1 #! /bin/sh 2 # From configure.in Revision: 1.145 . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.61. 5 # 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8 # This configure script is free software; the Free Software Foundation 9 # gives unlimited permission to copy, distribute and modify it. 10 ## --------------------- ## 11 ## M4sh Initialization. ## 12 ## --------------------- ## 13 14 # Be more Bourne compatible 15 DUALCASE=1; export DUALCASE # for MKS sh 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23 else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26 esac 27 28 fi 29 30 31 32 33 # PATH needs CR 34 # Avoid depending upon Character Ranges. 35 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38 as_cr_digits='0123456789' 39 as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41 # The user is always right. 42 if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52 fi 53 54 # Support unset when possible. 55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57 else 58 as_unset=false 59 fi 60 61 62 # IFS 63 # We need space, tab and new line, in precisely that order. Quoting is 64 # there to prevent editors from complaining about space-tab. 65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66 # splitting by setting IFS to empty value.) 67 as_nl=' 68 ' 69 IFS=" "" $as_nl" 70 71 # Find who we are. Look in the path if we contain no directory separator. 72 case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75 for as_dir in $PATH 76 do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80 done 81 IFS=$as_save_IFS 82 83 ;; 84 esac 85 # We did not find ourselves, most probably we were run as `sh COMMAND' 86 # in which case we are not to be found in the path. 87 if test "x$as_myself" = x; then 88 as_myself=$0 89 fi 90 if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93 fi 94 95 # Work around bugs in pre-3.0 UWIN ksh. 96 for as_var in ENV MAIL MAILPATH 97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98 done 99 PS1='$ ' 100 PS2='> ' 101 PS4='+ ' 102 103 # NLS nuisances. 104 for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108 do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114 done 115 116 # Required to use basename. 117 if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120 else 121 as_expr=false 122 fi 123 124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126 else 127 as_basename=false 128 fi 129 130 131 # Name of the executable. 132 as_me=`$as_basename -- "$0" || 133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136 echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151 # CDPATH. 152 $as_unset CDPATH 153 154 155 if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158 else 159 as_have_required=no 160 fi 161 162 if test $as_have_required = yes && (eval ": 163 (as_func_return () { 164 (exit \$1) 165 } 166 as_func_success () { 167 as_func_return 0 168 } 169 as_func_failure () { 170 as_func_return 1 171 } 172 as_func_ret_success () { 173 return 0 174 } 175 as_func_ret_failure () { 176 return 1 177 } 178 179 exitcode=0 180 if as_func_success; then 181 : 182 else 183 exitcode=1 184 echo as_func_success failed. 185 fi 186 187 if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190 fi 191 192 if as_func_ret_success; then 193 : 194 else 195 exitcode=1 196 echo as_func_ret_success failed. 197 fi 198 199 if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202 fi 203 204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206 else 207 exitcode=1 208 echo positional parameters were not saved. 209 fi 210 211 test \$exitcode = 0) || { (exit 1); exit 1; } 212 213 ( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218 ") 2> /dev/null; then 219 : 220 else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224 do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233 done 234 IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248 else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251 esac 252 253 fi 254 255 256 : 257 _ASEOF 258 }; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269 else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272 esac 273 274 fi 275 276 277 : 278 (as_func_return () { 279 (exit $1) 280 } 281 as_func_success () { 282 as_func_return 0 283 } 284 as_func_failure () { 285 as_func_return 1 286 } 287 as_func_ret_success () { 288 return 0 289 } 290 as_func_ret_failure () { 291 return 1 292 } 293 294 exitcode=0 295 if as_func_success; then 296 : 297 else 298 exitcode=1 299 echo as_func_success failed. 300 fi 301 302 if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305 fi 306 307 if as_func_ret_success; then 308 : 309 else 310 exitcode=1 311 echo as_func_ret_success failed. 312 fi 313 314 if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317 fi 318 319 if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321 else 322 exitcode=1 323 echo positional parameters were not saved. 324 fi 325 326 test $exitcode = 0) || { (exit 1); exit 1; } 327 328 ( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334 _ASEOF 335 }; then 336 break 337 fi 338 339 fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349 fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358 fi 359 360 361 fi 362 363 fi 364 365 366 367 (eval "as_func_return () { 368 (exit \$1) 369 } 370 as_func_success () { 371 as_func_return 0 372 } 373 as_func_failure () { 374 as_func_return 1 375 } 376 as_func_ret_success () { 377 return 0 378 } 379 as_func_ret_failure () { 380 return 1 381 } 382 383 exitcode=0 384 if as_func_success; then 385 : 386 else 387 exitcode=1 388 echo as_func_success failed. 389 fi 390 391 if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394 fi 395 396 if as_func_ret_success; then 397 : 398 else 399 exitcode=1 400 echo as_func_ret_success failed. 401 fi 402 403 if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406 fi 407 408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410 else 411 exitcode=1 412 echo positional parameters were not saved. 413 fi 414 415 test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420 } 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464 } 465 466 467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469 else 470 as_dirname=false 471 fi 472 473 ECHO_C= ECHO_N= ECHO_T= 474 case `echo -n x` in 475 -n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480 *) 481 ECHO_N='-n';; 482 esac 483 484 if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487 else 488 as_expr=false 489 fi 490 491 rm -f conf$$ conf$$.exe conf$$.file 492 if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494 else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497 fi 498 echo >conf$$.file 499 if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507 elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509 else 510 as_ln_s='cp -p' 511 fi 512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513 rmdir conf$$.dir 2>/dev/null 514 515 if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517 else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520 fi 521 522 if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524 else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542 fi 543 as_executable_p=$as_test_x 544 545 # Sed expression to map a string onto a valid CPP name. 546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548 # Sed expression to map a string onto a valid variable name. 549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553 554 # Check that we are running under the correct shell. 555 SHELL=${CONFIG_SHELL-/bin/sh} 556 557 case X$ECHO in 558 X*--fallback-echo) 559 # Remove one level of quotation (which was required for Make). 560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 561 ;; 562 esac 563 564 echo=${ECHO-echo} 565 if test "X$1" = X--no-reexec; then 566 # Discard the --no-reexec flag, and continue. 567 shift 568 elif test "X$1" = X--fallback-echo; then 569 # Avoid inline document here, it may be left over 570 : 571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 572 # Yippee, $echo works! 573 : 574 else 575 # Restart under the correct shell. 576 exec $SHELL "$0" --no-reexec ${1+"$@"} 577 fi 578 579 if test "X$1" = X--fallback-echo; then 580 # used as fallback echo 581 shift 582 cat <<EOF 583 $* 584 EOF 585 exit 0 586 fi 587 588 # The HP-UX ksh and POSIX shell print the target directory to stdout 589 # if CDPATH is set. 590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 591 592 if test -z "$ECHO"; then 593 if test "X${echo_test_string+set}" != Xset; then 594 # find a string as large as possible, as long as the shell can cope with it 595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 597 if (echo_test_string=`eval $cmd`) 2>/dev/null && 598 echo_test_string=`eval $cmd` && 599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 echo="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$echo" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 echo='print -r' 637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 echo='printf %s\n' 648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 echo="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 echo="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 echo=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691 fi 692 693 # Copy echo and quote the copy suitably for passing to libtool from 694 # the Makefile, instead of quoting the original, which is used later. 695 ECHO=$echo 696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698 fi 699 700 701 702 703 tagnames=${tagnames+${tagnames},}CXX 704 705 tagnames=${tagnames+${tagnames},}F77 706 707 exec 7<&0 </dev/null 6>&1 708 709 # Name of the host. 710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 711 # so uname gets run too. 712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713 714 # 715 # Initializations. 716 # 717 ac_default_prefix=/usr/local 718 ac_clean_files= 719 ac_config_libobj_dir=. 720 LIBOBJS= 721 cross_compiling=no 722 subdirs= 723 MFLAGS= 724 MAKEFLAGS= 725 SHELL=${CONFIG_SHELL-/bin/sh} 726 727 # Identity of this package. 728 PACKAGE_NAME= 729 PACKAGE_TARNAME= 730 PACKAGE_VERSION= 731 PACKAGE_STRING= 732 PACKAGE_BUGREPORT= 733 734 ac_unique_file="resolv/herror.c" 735 # Factoring default headers for most tests. 736 ac_includes_default="\ 737 #include <stdio.h> 738 #ifdef HAVE_SYS_TYPES_H 739 # include <sys/types.h> 740 #endif 741 #ifdef HAVE_SYS_STAT_H 742 # include <sys/stat.h> 743 #endif 744 #ifdef STDC_HEADERS 745 # include <stdlib.h> 746 # include <stddef.h> 747 #else 748 # ifdef HAVE_STDLIB_H 749 # include <stdlib.h> 750 # endif 751 #endif 752 #ifdef HAVE_STRING_H 753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754 # include <memory.h> 755 # endif 756 # include <string.h> 757 #endif 758 #ifdef HAVE_STRINGS_H 759 # include <strings.h> 760 #endif 761 #ifdef HAVE_INTTYPES_H 762 # include <inttypes.h> 763 #endif 764 #ifdef HAVE_STDINT_H 765 # include <stdint.h> 766 #endif 767 #ifdef HAVE_UNISTD_H 768 # include <unistd.h> 769 #endif" 770 771 ac_subst_vars='SHELL 772 PATH_SEPARATOR 773 PACKAGE_NAME 774 PACKAGE_TARNAME 775 PACKAGE_VERSION 776 PACKAGE_STRING 777 PACKAGE_BUGREPORT 778 exec_prefix 779 prefix 780 program_transform_name 781 bindir 782 sbindir 783 libexecdir 784 datarootdir 785 datadir 786 sysconfdir 787 sharedstatedir 788 localstatedir 789 includedir 790 oldincludedir 791 docdir 792 infodir 793 htmldir 794 dvidir 795 pdfdir 796 psdir 797 libdir 798 localedir 799 mandir 800 DEFS 801 ECHO_C 802 ECHO_N 803 ECHO_T 804 LIBS 805 build_alias 806 host_alias 807 target_alias 808 build 809 build_cpu 810 build_vendor 811 build_os 812 host 813 host_cpu 814 host_vendor 815 host_os 816 SET_MAKE 817 CC 818 CFLAGS 819 LDFLAGS 820 CPPFLAGS 821 ac_ct_CC 822 EXEEXT 823 OBJEXT 824 SED 825 GREP 826 EGREP 827 LN_S 828 ECHO 829 AR 830 RANLIB 831 STRIP 832 DSYMUTIL 833 NMEDIT 834 CPP 835 CXX 836 CXXFLAGS 837 ac_ct_CXX 838 CXXCPP 839 F77 840 FFLAGS 841 ac_ct_F77 842 LIBTOOL 843 INSTALL_PROGRAM 844 INSTALL_SCRIPT 845 INSTALL_DATA 846 STD_CINCLUDES 847 STD_CDEFINES 848 STD_CWARNINGS 849 CCOPT 850 ARFLAGS 851 TBL 852 NROFF 853 TR 854 LN 855 ETAGS 856 PERL 857 ISC_PLATFORM_NEEDSYSSELECTH 858 WANT_IRS_GR 859 WANT_IRS_GR_OBJS 860 WANT_IRS_PW 861 WANT_IRS_PW_OBJS 862 WANT_IRS_NIS 863 WANT_IRS_NIS_OBJS 864 WANT_IRS_NISGR_OBJS 865 WANT_IRS_NISPW_OBJS 866 WANT_IRS_DBPW_OBJS 867 ALWAYS_DEFINES 868 DO_PTHREADS 869 WANT_IRS_THREADSGR_OBJS 870 WANT_IRS_THREADSPW_OBJS 871 WANT_IRS_THREADS_OBJS 872 WANT_THREADS_OBJS 873 USE_IFNAMELINKID 874 ISC_THREAD_DIR 875 DAEMON_OBJS 876 NEED_DAEMON 877 STRSEP_OBJS 878 NEED_STRSEP 879 NEED_STRERROR 880 MKDEPCC 881 MKDEPCFLAGS 882 MKDEPPROG 883 IRIX_DNSSEC_WARNINGS_HACK 884 purify_path 885 PURIFY 886 O 887 A 888 SA 889 LIBTOOL_MKDEP_SED 890 LIBTOOL_MODE_COMPILE 891 LIBTOOL_MODE_INSTALL 892 LIBTOOL_MODE_LINK 893 HAS_INET6_STRUCTS 894 ISC_PLATFORM_NEEDNETINETIN6H 895 ISC_PLATFORM_NEEDNETINET6IN6H 896 HAS_IN_ADDR6 897 NEED_IN6ADDR_ANY 898 ISC_PLATFORM_HAVEIN6PKTINFO 899 ISC_PLATFORM_FIXIN6ISADDR 900 ISC_IPV6_H 901 ISC_IPV6_O 902 ISC_ISCIPV6_O 903 ISC_IPV6_C 904 HAVE_SIN6_SCOPE_ID 905 HAVE_SOCKADDR_STORAGE 906 ISC_PLATFORM_NEEDNTOP 907 ISC_PLATFORM_NEEDPTON 908 ISC_PLATFORM_NEEDATON 909 HAVE_SA_LEN 910 HAVE_MINIMUM_IFREQ 911 BSD_COMP 912 SOLARIS_BITTYPES 913 USE_FIONBIO_IOCTL 914 PORT_NONBLOCK 915 PORT_DIR 916 USE_POLL 917 HAVE_MD5 918 SOLARIS2 919 PORT_INCLUDE 920 ISC_PLATFORM_MSGHDRFLAVOR 921 ISC_PLATFORM_NEEDPORTT 922 ISC_PLATFORM_NEEDTIMESPEC 923 ISC_LWRES_ENDHOSTENTINT 924 ISC_LWRES_SETNETENTINT 925 ISC_LWRES_ENDNETENTINT 926 ISC_LWRES_GETHOSTBYADDRVOID 927 ISC_LWRES_NEEDHERRNO 928 ISC_LWRES_GETIPNODEPROTO 929 ISC_LWRES_GETADDRINFOPROTO 930 ISC_LWRES_GETNAMEINFOPROTO 931 NEED_PSELECT 932 NEED_GETTIMEOFDAY 933 HAVE_STRNDUP 934 ISC_PLATFORM_NEEDSTRSEP 935 ISC_PLATFORM_NEEDVSNPRINTF 936 ISC_EXTRA_OBJS 937 ISC_EXTRA_SRCS 938 ISC_PLATFORM_QUADFORMAT 939 ISC_SOCKLEN_T 940 GETGROUPLIST_ARGS 941 NET_R_ARGS 942 NET_R_BAD 943 NET_R_COPY 944 NET_R_COPY_ARGS 945 NET_R_OK 946 NET_R_SETANSWER 947 NET_R_RETURN 948 GETNETBYADDR_ADDR_T 949 NETENT_DATA 950 NET_R_ENT_ARGS 951 NET_R_SET_RESULT 952 NET_R_SET_RETURN 953 NET_R_END_RESULT 954 NET_R_END_RETURN 955 GROUP_R_ARGS 956 GROUP_R_BAD 957 GROUP_R_OK 958 GROUP_R_RETURN 959 GROUP_R_END_RESULT 960 GROUP_R_END_RETURN 961 GROUP_R_ENT_ARGS 962 GROUP_R_SET_RESULT 963 GROUP_R_SET_RETURN 964 HOST_R_ARGS 965 HOST_R_BAD 966 HOST_R_COPY 967 HOST_R_COPY_ARGS 968 HOST_R_ERRNO 969 HOST_R_OK 970 HOST_R_RETURN 971 HOST_R_SETANSWER 972 HOSTENT_DATA 973 HOST_R_END_RESULT 974 HOST_R_END_RETURN 975 HOST_R_ENT_ARGS 976 HOST_R_SET_RESULT 977 HOST_R_SET_RETURN 978 SETPWENT_VOID 979 SETGRENT_VOID 980 NGR_R_CONST 981 NGR_R_ARGS 982 NGR_R_BAD 983 NGR_R_COPY 984 NGR_R_COPY_ARGS 985 NGR_R_OK 986 NGR_R_RETURN 987 NGR_R_PRIVATE 988 NGR_R_END_RESULT 989 NGR_R_END_RETURN 990 NGR_R_END_ARGS 991 NGR_R_SET_RESULT 992 NGR_R_SET_RETURN 993 NGR_R_SET_ARGS 994 NGR_R_SET_CONST 995 PROTO_R_ARGS 996 PROTO_R_BAD 997 PROTO_R_COPY 998 PROTO_R_COPY_ARGS 999 PROTO_R_OK 1000 PROTO_R_SETANSWER 1001 PROTO_R_RETURN 1002 PROTOENT_DATA 1003 PROTO_R_END_RESULT 1004 PROTO_R_END_RETURN 1005 PROTO_R_ENT_ARGS 1006 PROTO_R_ENT_UNUSED 1007 PROTO_R_SET_RESULT 1008 PROTO_R_SET_RETURN 1009 PASS_R_ARGS 1010 PASS_R_BAD 1011 PASS_R_COPY 1012 PASS_R_COPY_ARGS 1013 PASS_R_OK 1014 PASS_R_RETURN 1015 PASS_R_END_RESULT 1016 PASS_R_END_RETURN 1017 PASS_R_ENT_ARGS 1018 PASS_R_SET_RESULT 1019 PASS_R_SET_RETURN 1020 SERV_R_ARGS 1021 SERV_R_BAD 1022 SERV_R_COPY 1023 SERV_R_COPY_ARGS 1024 SERV_R_OK 1025 SERV_R_SETANSWER 1026 SERV_R_RETURN 1027 SERVENT_DATA 1028 SERV_R_END_RESULT 1029 SERV_R_END_RETURN 1030 SERV_R_ENT_ARGS 1031 SERV_R_ENT_UNUSED 1032 SERV_R_SET_RESULT 1033 SERV_R_SET_RETURN 1034 SETNETGRENT_ARGS 1035 INNETGR_ARGS 1036 BIND9_TOP_BUILDDIR 1037 LIBOBJS 1038 LTLIBOBJS' 1039 ac_subst_files='BIND9_INCLUDES 1040 BIND9_MAKE_RULES 1041 LIBBIND_API' 1042 ac_precious_vars='build_alias 1043 host_alias 1044 target_alias 1045 CC 1046 CFLAGS 1047 LDFLAGS 1048 LIBS 1049 CPPFLAGS 1050 CPP 1051 CXX 1052 CXXFLAGS 1053 CCC 1054 CXXCPP 1055 F77 1056 FFLAGS' 1057 1058 1059 # Initialize some variables set by options. 1060 ac_init_help= 1061 ac_init_version=false 1062 # The variables have the same names as the options, with 1063 # dashes changed to underlines. 1064 cache_file=/dev/null 1065 exec_prefix=NONE 1066 no_create= 1067 no_recursion= 1068 prefix=NONE 1069 program_prefix=NONE 1070 program_suffix=NONE 1071 program_transform_name=s,x,x, 1072 silent= 1073 site= 1074 srcdir= 1075 verbose= 1076 x_includes=NONE 1077 x_libraries=NONE 1078 1079 # Installation directory options. 1080 # These are left unexpanded so users can "make install exec_prefix=/foo" 1081 # and all the variables that are supposed to be based on exec_prefix 1082 # by default will actually change. 1083 # Use braces instead of parens because sh, perl, etc. also accept them. 1084 # (The list follows the same order as the GNU Coding Standards.) 1085 bindir='${exec_prefix}/bin' 1086 sbindir='${exec_prefix}/sbin' 1087 libexecdir='${exec_prefix}/libexec' 1088 datarootdir='${prefix}/share' 1089 datadir='${datarootdir}' 1090 sysconfdir='${prefix}/etc' 1091 sharedstatedir='${prefix}/com' 1092 localstatedir='${prefix}/var' 1093 includedir='${prefix}/include' 1094 oldincludedir='/usr/include' 1095 docdir='${datarootdir}/doc/${PACKAGE}' 1096 infodir='${datarootdir}/info' 1097 htmldir='${docdir}' 1098 dvidir='${docdir}' 1099 pdfdir='${docdir}' 1100 psdir='${docdir}' 1101 libdir='${exec_prefix}/lib' 1102 localedir='${datarootdir}/locale' 1103 mandir='${datarootdir}/man' 1104 1105 ac_prev= 1106 ac_dashdash= 1107 for ac_option 1108 do 1109 # If the previous option needs an argument, assign it. 1110 if test -n "$ac_prev"; then 1111 eval $ac_prev=\$ac_option 1112 ac_prev= 1113 continue 1114 fi 1115 1116 case $ac_option in 1117 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1118 *) ac_optarg=yes ;; 1119 esac 1120 1121 # Accept the important Cygnus configure options, so we can diagnose typos. 1122 1123 case $ac_dashdash$ac_option in 1124 --) 1125 ac_dashdash=yes ;; 1126 1127 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1128 ac_prev=bindir ;; 1129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1130 bindir=$ac_optarg ;; 1131 1132 -build | --build | --buil | --bui | --bu) 1133 ac_prev=build_alias ;; 1134 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1135 build_alias=$ac_optarg ;; 1136 1137 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1139 ac_prev=cache_file ;; 1140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1142 cache_file=$ac_optarg ;; 1143 1144 --config-cache | -C) 1145 cache_file=config.cache ;; 1146 1147 -datadir | --datadir | --datadi | --datad) 1148 ac_prev=datadir ;; 1149 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1150 datadir=$ac_optarg ;; 1151 1152 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1153 | --dataroo | --dataro | --datar) 1154 ac_prev=datarootdir ;; 1155 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1156 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1157 datarootdir=$ac_optarg ;; 1158 1159 -disable-* | --disable-*) 1160 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1163 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1164 { (exit 1); exit 1; }; } 1165 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1166 eval enable_$ac_feature=no ;; 1167 1168 -docdir | --docdir | --docdi | --doc | --do) 1169 ac_prev=docdir ;; 1170 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1171 docdir=$ac_optarg ;; 1172 1173 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1174 ac_prev=dvidir ;; 1175 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1176 dvidir=$ac_optarg ;; 1177 1178 -enable-* | --enable-*) 1179 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1182 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1183 { (exit 1); exit 1; }; } 1184 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1185 eval enable_$ac_feature=\$ac_optarg ;; 1186 1187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1189 | --exec | --exe | --ex) 1190 ac_prev=exec_prefix ;; 1191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1193 | --exec=* | --exe=* | --ex=*) 1194 exec_prefix=$ac_optarg ;; 1195 1196 -gas | --gas | --ga | --g) 1197 # Obsolete; use --with-gas. 1198 with_gas=yes ;; 1199 1200 -help | --help | --hel | --he | -h) 1201 ac_init_help=long ;; 1202 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1203 ac_init_help=recursive ;; 1204 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1205 ac_init_help=short ;; 1206 1207 -host | --host | --hos | --ho) 1208 ac_prev=host_alias ;; 1209 -host=* | --host=* | --hos=* | --ho=*) 1210 host_alias=$ac_optarg ;; 1211 1212 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1213 ac_prev=htmldir ;; 1214 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1215 | --ht=*) 1216 htmldir=$ac_optarg ;; 1217 1218 -includedir | --includedir | --includedi | --included | --include \ 1219 | --includ | --inclu | --incl | --inc) 1220 ac_prev=includedir ;; 1221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1222 | --includ=* | --inclu=* | --incl=* | --inc=*) 1223 includedir=$ac_optarg ;; 1224 1225 -infodir | --infodir | --infodi | --infod | --info | --inf) 1226 ac_prev=infodir ;; 1227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1228 infodir=$ac_optarg ;; 1229 1230 -libdir | --libdir | --libdi | --libd) 1231 ac_prev=libdir ;; 1232 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1233 libdir=$ac_optarg ;; 1234 1235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1236 | --libexe | --libex | --libe) 1237 ac_prev=libexecdir ;; 1238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1239 | --libexe=* | --libex=* | --libe=*) 1240 libexecdir=$ac_optarg ;; 1241 1242 -localedir | --localedir | --localedi | --localed | --locale) 1243 ac_prev=localedir ;; 1244 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1245 localedir=$ac_optarg ;; 1246 1247 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1248 | --localstate | --localstat | --localsta | --localst | --locals) 1249 ac_prev=localstatedir ;; 1250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1251 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1252 localstatedir=$ac_optarg ;; 1253 1254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1255 ac_prev=mandir ;; 1256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1257 mandir=$ac_optarg ;; 1258 1259 -nfp | --nfp | --nf) 1260 # Obsolete; use --without-fp. 1261 with_fp=no ;; 1262 1263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1264 | --no-cr | --no-c | -n) 1265 no_create=yes ;; 1266 1267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1269 no_recursion=yes ;; 1270 1271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1273 | --oldin | --oldi | --old | --ol | --o) 1274 ac_prev=oldincludedir ;; 1275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1278 oldincludedir=$ac_optarg ;; 1279 1280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1281 ac_prev=prefix ;; 1282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1283 prefix=$ac_optarg ;; 1284 1285 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1286 | --program-pre | --program-pr | --program-p) 1287 ac_prev=program_prefix ;; 1288 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1290 program_prefix=$ac_optarg ;; 1291 1292 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1293 | --program-suf | --program-su | --program-s) 1294 ac_prev=program_suffix ;; 1295 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1297 program_suffix=$ac_optarg ;; 1298 1299 -program-transform-name | --program-transform-name \ 1300 | --program-transform-nam | --program-transform-na \ 1301 | --program-transform-n | --program-transform- \ 1302 | --program-transform | --program-transfor \ 1303 | --program-transfo | --program-transf \ 1304 | --program-trans | --program-tran \ 1305 | --progr-tra | --program-tr | --program-t) 1306 ac_prev=program_transform_name ;; 1307 -program-transform-name=* | --program-transform-name=* \ 1308 | --program-transform-nam=* | --program-transform-na=* \ 1309 | --program-transform-n=* | --program-transform-=* \ 1310 | --program-transform=* | --program-transfor=* \ 1311 | --program-transfo=* | --program-transf=* \ 1312 | --program-trans=* | --program-tran=* \ 1313 | --progr-tra=* | --program-tr=* | --program-t=*) 1314 program_transform_name=$ac_optarg ;; 1315 1316 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1317 ac_prev=pdfdir ;; 1318 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1319 pdfdir=$ac_optarg ;; 1320 1321 -psdir | --psdir | --psdi | --psd | --ps) 1322 ac_prev=psdir ;; 1323 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1324 psdir=$ac_optarg ;; 1325 1326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1327 | -silent | --silent | --silen | --sile | --sil) 1328 silent=yes ;; 1329 1330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1331 ac_prev=sbindir ;; 1332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1333 | --sbi=* | --sb=*) 1334 sbindir=$ac_optarg ;; 1335 1336 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1338 | --sharedst | --shareds | --shared | --share | --shar \ 1339 | --sha | --sh) 1340 ac_prev=sharedstatedir ;; 1341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1344 | --sha=* | --sh=*) 1345 sharedstatedir=$ac_optarg ;; 1346 1347 -site | --site | --sit) 1348 ac_prev=site ;; 1349 -site=* | --site=* | --sit=*) 1350 site=$ac_optarg ;; 1351 1352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1353 ac_prev=srcdir ;; 1354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1355 srcdir=$ac_optarg ;; 1356 1357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1358 | --syscon | --sysco | --sysc | --sys | --sy) 1359 ac_prev=sysconfdir ;; 1360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1362 sysconfdir=$ac_optarg ;; 1363 1364 -target | --target | --targe | --targ | --tar | --ta | --t) 1365 ac_prev=target_alias ;; 1366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1367 target_alias=$ac_optarg ;; 1368 1369 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1370 verbose=yes ;; 1371 1372 -version | --version | --versio | --versi | --vers | -V) 1373 ac_init_version=: ;; 1374 1375 -with-* | --with-*) 1376 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1377 # Reject names that are not valid shell variable names. 1378 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1379 { echo "$as_me: error: invalid package name: $ac_package" >&2 1380 { (exit 1); exit 1; }; } 1381 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1382 eval with_$ac_package=\$ac_optarg ;; 1383 1384 -without-* | --without-*) 1385 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1386 # Reject names that are not valid shell variable names. 1387 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1388 { echo "$as_me: error: invalid package name: $ac_package" >&2 1389 { (exit 1); exit 1; }; } 1390 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1391 eval with_$ac_package=no ;; 1392 1393 --x) 1394 # Obsolete; use --with-x. 1395 with_x=yes ;; 1396 1397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1398 | --x-incl | --x-inc | --x-in | --x-i) 1399 ac_prev=x_includes ;; 1400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1402 x_includes=$ac_optarg ;; 1403 1404 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1406 ac_prev=x_libraries ;; 1407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1409 x_libraries=$ac_optarg ;; 1410 1411 -*) { echo "$as_me: error: unrecognized option: $ac_option 1412 Try \`$0 --help' for more information." >&2 1413 { (exit 1); exit 1; }; } 1414 ;; 1415 1416 *=*) 1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1418 # Reject names that are not valid shell variable names. 1419 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1420 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1421 { (exit 1); exit 1; }; } 1422 eval $ac_envvar=\$ac_optarg 1423 export $ac_envvar ;; 1424 1425 *) 1426 # FIXME: should be removed in autoconf 3.0. 1427 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1428 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1429 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1430 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1431 ;; 1432 1433 esac 1434 done 1435 1436 if test -n "$ac_prev"; then 1437 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1438 { echo "$as_me: error: missing argument to $ac_option" >&2 1439 { (exit 1); exit 1; }; } 1440 fi 1441 1442 # Be sure to have absolute directory names. 1443 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1444 datadir sysconfdir sharedstatedir localstatedir includedir \ 1445 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1446 libdir localedir mandir 1447 do 1448 eval ac_val=\$$ac_var 1449 case $ac_val in 1450 [\\/$]* | ?:[\\/]* ) continue;; 1451 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1452 esac 1453 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1454 { (exit 1); exit 1; }; } 1455 done 1456 1457 # There might be people who depend on the old broken behavior: `$host' 1458 # used to hold the argument of --host etc. 1459 # FIXME: To remove some day. 1460 build=$build_alias 1461 host=$host_alias 1462 target=$target_alias 1463 1464 # FIXME: To remove some day. 1465 if test "x$host_alias" != x; then 1466 if test "x$build_alias" = x; then 1467 cross_compiling=maybe 1468 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1469 If a cross compiler is detected then cross compile mode will be used." >&2 1470 elif test "x$build_alias" != "x$host_alias"; then 1471 cross_compiling=yes 1472 fi 1473 fi 1474 1475 ac_tool_prefix= 1476 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1477 1478 test "$silent" = yes && exec 6>/dev/null 1479 1480 1481 ac_pwd=`pwd` && test -n "$ac_pwd" && 1482 ac_ls_di=`ls -di .` && 1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1484 { echo "$as_me: error: Working directory cannot be determined" >&2 1485 { (exit 1); exit 1; }; } 1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1487 { echo "$as_me: error: pwd does not report name of working directory" >&2 1488 { (exit 1); exit 1; }; } 1489 1490 1491 # Find the source files, if location was not specified. 1492 if test -z "$srcdir"; then 1493 ac_srcdir_defaulted=yes 1494 # Try the directory containing this script, then the parent directory. 1495 ac_confdir=`$as_dirname -- "$0" || 1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1497 X"$0" : 'X\(//\)[^/]' \| \ 1498 X"$0" : 'X\(//\)$' \| \ 1499 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1500 echo X"$0" | 1501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1502 s//\1/ 1503 q 1504 } 1505 /^X\(\/\/\)[^/].*/{ 1506 s//\1/ 1507 q 1508 } 1509 /^X\(\/\/\)$/{ 1510 s//\1/ 1511 q 1512 } 1513 /^X\(\/\).*/{ 1514 s//\1/ 1515 q 1516 } 1517 s/.*/./; q'` 1518 srcdir=$ac_confdir 1519 if test ! -r "$srcdir/$ac_unique_file"; then 1520 srcdir=.. 1521 fi 1522 else 1523 ac_srcdir_defaulted=no 1524 fi 1525 if test ! -r "$srcdir/$ac_unique_file"; then 1526 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1527 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1528 { (exit 1); exit 1; }; } 1529 fi 1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1531 ac_abs_confdir=`( 1532 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1533 { (exit 1); exit 1; }; } 1534 pwd)` 1535 # When building in place, set srcdir=. 1536 if test "$ac_abs_confdir" = "$ac_pwd"; then 1537 srcdir=. 1538 fi 1539 # Remove unnecessary trailing slashes from srcdir. 1540 # Double slashes in file names in object file debugging info 1541 # mess up M-x gdb in Emacs. 1542 case $srcdir in 1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1544 esac 1545 for ac_var in $ac_precious_vars; do 1546 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1547 eval ac_env_${ac_var}_value=\$${ac_var} 1548 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1549 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1550 done 1551 1552 # 1553 # Report the --help message. 1554 # 1555 if test "$ac_init_help" = "long"; then 1556 # Omit some internal or obsolete options to make the list less imposing. 1557 # This message is too long to be a string in the A/UX 3.1 sh. 1558 cat <<_ACEOF 1559 \`configure' configures this package to adapt to many kinds of systems. 1560 1561 Usage: $0 [OPTION]... [VAR=VALUE]... 1562 1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1564 VAR=VALUE. See below for descriptions of some of the useful variables. 1565 1566 Defaults for the options are specified in brackets. 1567 1568 Configuration: 1569 -h, --help display this help and exit 1570 --help=short display options specific to this package 1571 --help=recursive display the short help of all the included packages 1572 -V, --version display version information and exit 1573 -q, --quiet, --silent do not print \`checking...' messages 1574 --cache-file=FILE cache test results in FILE [disabled] 1575 -C, --config-cache alias for \`--cache-file=config.cache' 1576 -n, --no-create do not create output files 1577 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1578 1579 Installation directories: 1580 --prefix=PREFIX install architecture-independent files in PREFIX 1581 [$ac_default_prefix] 1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1583 [PREFIX] 1584 1585 By default, \`make install' will install all the files in 1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1588 for instance \`--prefix=\$HOME'. 1589 1590 For better control, use the options below. 1591 1592 Fine tuning of the installation directories: 1593 --bindir=DIR user executables [EPREFIX/bin] 1594 --sbindir=DIR system admin executables [EPREFIX/sbin] 1595 --libexecdir=DIR program executables [EPREFIX/libexec] 1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1599 --libdir=DIR object code libraries [EPREFIX/lib] 1600 --includedir=DIR C header files [PREFIX/include] 1601 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1604 --infodir=DIR info documentation [DATAROOTDIR/info] 1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1606 --mandir=DIR man documentation [DATAROOTDIR/man] 1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1608 --htmldir=DIR html documentation [DOCDIR] 1609 --dvidir=DIR dvi documentation [DOCDIR] 1610 --pdfdir=DIR pdf documentation [DOCDIR] 1611 --psdir=DIR ps documentation [DOCDIR] 1612 _ACEOF 1613 1614 cat <<\_ACEOF 1615 1616 System types: 1617 --build=BUILD configure for building on BUILD [guessed] 1618 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1619 _ACEOF 1620 fi 1621 1622 if test -n "$ac_init_help"; then 1623 1624 cat <<\_ACEOF 1625 1626 Optional Features: 1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1629 --enable-shared[=PKGS] build shared libraries [default=yes] 1630 --enable-static[=PKGS] build static libraries [default=yes] 1631 --enable-fast-install[=PKGS] 1632 optimize for fast installation [default=yes] 1633 --disable-libtool-lock avoid locking (might break parallel builds) 1634 --enable-threads enable multithreading 1635 --enable-ipv6 use IPv6 default=autodetect 1636 1637 Optional Packages: 1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1641 --with-pic try to use only PIC/non-PIC objects [default=use 1642 both] 1643 --with-tags[=TAGS] include additional configurations [automatic] 1644 --with-irs-gr Build with WANT_IRS_GR 1645 --with-irs-pw Build with WANT_IRS_PW 1646 --with-irs-nis Build with WANT_IRS_NIS 1647 --with-randomdev=PATH Specify path for random device 1648 --with-ptl2 on NetBSD, use the ptl2 thread library (experimental) 1649 --with-purify=PATH use Rational purify 1650 --with-libtool use GNU libtool (following indented options supported) 1651 --with-kame=PATH use Kame IPv6 default path /usr/local/v6 1652 1653 Some influential environment variables: 1654 CC C compiler command 1655 CFLAGS C compiler flags 1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1657 nonstandard directory <lib dir> 1658 LIBS libraries to pass to the linker, e.g. -l<library> 1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1660 you have headers in a nonstandard directory <include dir> 1661 CPP C preprocessor 1662 CXX C++ compiler command 1663 CXXFLAGS C++ compiler flags 1664 CXXCPP C++ preprocessor 1665 F77 Fortran 77 compiler command 1666 FFLAGS Fortran 77 compiler flags 1667 1668 Use these variables to override the choices made by `configure' or to help 1669 it to find libraries and programs with nonstandard names/locations. 1670 1671 _ACEOF 1672 ac_status=$? 1673 fi 1674 1675 if test "$ac_init_help" = "recursive"; then 1676 # If there are subdirs, report their specific --help. 1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1678 test -d "$ac_dir" || continue 1679 ac_builddir=. 1680 1681 case "$ac_dir" in 1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1683 *) 1684 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1685 # A ".." for each directory in $ac_dir_suffix. 1686 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1687 case $ac_top_builddir_sub in 1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1690 esac ;; 1691 esac 1692 ac_abs_top_builddir=$ac_pwd 1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1694 # for backward compatibility: 1695 ac_top_builddir=$ac_top_build_prefix 1696 1697 case $srcdir in 1698 .) # We are building in place. 1699 ac_srcdir=. 1700 ac_top_srcdir=$ac_top_builddir_sub 1701 ac_abs_top_srcdir=$ac_pwd ;; 1702 [\\/]* | ?:[\\/]* ) # Absolute name. 1703 ac_srcdir=$srcdir$ac_dir_suffix; 1704 ac_top_srcdir=$srcdir 1705 ac_abs_top_srcdir=$srcdir ;; 1706 *) # Relative name. 1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1708 ac_top_srcdir=$ac_top_build_prefix$srcdir 1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1710 esac 1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1712 1713 cd "$ac_dir" || { ac_status=$?; continue; } 1714 # Check for guested configure. 1715 if test -f "$ac_srcdir/configure.gnu"; then 1716 echo && 1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1718 elif test -f "$ac_srcdir/configure"; then 1719 echo && 1720 $SHELL "$ac_srcdir/configure" --help=recursive 1721 else 1722 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1723 fi || ac_status=$? 1724 cd "$ac_pwd" || { ac_status=$?; break; } 1725 done 1726 fi 1727 1728 test -n "$ac_init_help" && exit $ac_status 1729 if $ac_init_version; then 1730 cat <<\_ACEOF 1731 configure 1732 generated by GNU Autoconf 2.61 1733 1734 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1735 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1736 This configure script is free software; the Free Software Foundation 1737 gives unlimited permission to copy, distribute and modify it. 1738 _ACEOF 1739 exit 1740 fi 1741 cat >config.log <<_ACEOF 1742 This file contains any messages produced by compilers while 1743 running configure, to aid debugging if configure makes a mistake. 1744 1745 It was created by $as_me, which was 1746 generated by GNU Autoconf 2.61. Invocation command line was 1747 1748 $ $0 $@ 1749 1750 _ACEOF 1751 exec 5>>config.log 1752 { 1753 cat <<_ASUNAME 1754 ## --------- ## 1755 ## Platform. ## 1756 ## --------- ## 1757 1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1759 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1760 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1761 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1762 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1763 1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1766 1767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1770 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1774 1775 _ASUNAME 1776 1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778 for as_dir in $PATH 1779 do 1780 IFS=$as_save_IFS 1781 test -z "$as_dir" && as_dir=. 1782 echo "PATH: $as_dir" 1783 done 1784 IFS=$as_save_IFS 1785 1786 } >&5 1787 1788 cat >&5 <<_ACEOF 1789 1790 1791 ## ----------- ## 1792 ## Core tests. ## 1793 ## ----------- ## 1794 1795 _ACEOF 1796 1797 1798 # Keep a trace of the command line. 1799 # Strip out --no-create and --no-recursion so they do not pile up. 1800 # Strip out --silent because we don't want to record it for future runs. 1801 # Also quote any args containing shell meta-characters. 1802 # Make two passes to allow for proper duplicate-argument suppression. 1803 ac_configure_args= 1804 ac_configure_args0= 1805 ac_configure_args1= 1806 ac_must_keep_next=false 1807 for ac_pass in 1 2 1808 do 1809 for ac_arg 1810 do 1811 case $ac_arg in 1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1814 | -silent | --silent | --silen | --sile | --sil) 1815 continue ;; 1816 *\'*) 1817 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1818 esac 1819 case $ac_pass in 1820 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1821 2) 1822 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1823 if test $ac_must_keep_next = true; then 1824 ac_must_keep_next=false # Got value, back to normal. 1825 else 1826 case $ac_arg in 1827 *=* | --config-cache | -C | -disable-* | --disable-* \ 1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1830 | -with-* | --with-* | -without-* | --without-* | --x) 1831 case "$ac_configure_args0 " in 1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1833 esac 1834 ;; 1835 -* ) ac_must_keep_next=true ;; 1836 esac 1837 fi 1838 ac_configure_args="$ac_configure_args '$ac_arg'" 1839 ;; 1840 esac 1841 done 1842 done 1843 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1844 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1845 1846 # When interrupted or exit'd, cleanup temporary files, and complete 1847 # config.log. We remove comments because anyway the quotes in there 1848 # would cause problems or look ugly. 1849 # WARNING: Use '\'' to represent an apostrophe within the trap. 1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1851 trap 'exit_status=$? 1852 # Save into config.log some information that might help in debugging. 1853 { 1854 echo 1855 1856 cat <<\_ASBOX 1857 ## ---------------- ## 1858 ## Cache variables. ## 1859 ## ---------------- ## 1860 _ASBOX 1861 echo 1862 # The following way of writing the cache mishandles newlines in values, 1863 ( 1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1865 eval ac_val=\$$ac_var 1866 case $ac_val in #( 1867 *${as_nl}*) 1868 case $ac_var in #( 1869 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1870 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1871 esac 1872 case $ac_var in #( 1873 _ | IFS | as_nl) ;; #( 1874 *) $as_unset $ac_var ;; 1875 esac ;; 1876 esac 1877 done 1878 (set) 2>&1 | 1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1880 *${as_nl}ac_space=\ *) 1881 sed -n \ 1882 "s/'\''/'\''\\\\'\'''\''/g; 1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1884 ;; #( 1885 *) 1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1887 ;; 1888 esac | 1889 sort 1890 ) 1891 echo 1892 1893 cat <<\_ASBOX 1894 ## ----------------- ## 1895 ## Output variables. ## 1896 ## ----------------- ## 1897 _ASBOX 1898 echo 1899 for ac_var in $ac_subst_vars 1900 do 1901 eval ac_val=\$$ac_var 1902 case $ac_val in 1903 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1904 esac 1905 echo "$ac_var='\''$ac_val'\''" 1906 done | sort 1907 echo 1908 1909 if test -n "$ac_subst_files"; then 1910 cat <<\_ASBOX 1911 ## ------------------- ## 1912 ## File substitutions. ## 1913 ## ------------------- ## 1914 _ASBOX 1915 echo 1916 for ac_var in $ac_subst_files 1917 do 1918 eval ac_val=\$$ac_var 1919 case $ac_val in 1920 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1921 esac 1922 echo "$ac_var='\''$ac_val'\''" 1923 done | sort 1924 echo 1925 fi 1926 1927 if test -s confdefs.h; then 1928 cat <<\_ASBOX 1929 ## ----------- ## 1930 ## confdefs.h. ## 1931 ## ----------- ## 1932 _ASBOX 1933 echo 1934 cat confdefs.h 1935 echo 1936 fi 1937 test "$ac_signal" != 0 && 1938 echo "$as_me: caught signal $ac_signal" 1939 echo "$as_me: exit $exit_status" 1940 } >&5 1941 rm -f core *.core core.conftest.* && 1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1943 exit $exit_status 1944 ' 0 1945 for ac_signal in 1 2 13 15; do 1946 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1947 done 1948 ac_signal=0 1949 1950 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1951 rm -f -r conftest* confdefs.h 1952 1953 # Predefined preprocessor variables. 1954 1955 cat >>confdefs.h <<_ACEOF 1956 #define PACKAGE_NAME "$PACKAGE_NAME" 1957 _ACEOF 1958 1959 1960 cat >>confdefs.h <<_ACEOF 1961 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1962 _ACEOF 1963 1964 1965 cat >>confdefs.h <<_ACEOF 1966 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1967 _ACEOF 1968 1969 1970 cat >>confdefs.h <<_ACEOF 1971 #define PACKAGE_STRING "$PACKAGE_STRING" 1972 _ACEOF 1973 1974 1975 cat >>confdefs.h <<_ACEOF 1976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1977 _ACEOF 1978 1979 1980 # Let the site file select an alternate cache file if it wants to. 1981 # Prefer explicitly selected file to automatically selected ones. 1982 if test -n "$CONFIG_SITE"; then 1983 set x "$CONFIG_SITE" 1984 elif test "x$prefix" != xNONE; then 1985 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1986 else 1987 set x "$ac_default_prefix/share/config.site" \ 1988 "$ac_default_prefix/etc/config.site" 1989 fi 1990 shift 1991 for ac_site_file 1992 do 1993 if test -r "$ac_site_file"; then 1994 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1995 echo "$as_me: loading site script $ac_site_file" >&6;} 1996 sed 's/^/| /' "$ac_site_file" >&5 1997 . "$ac_site_file" 1998 fi 1999 done 2000 2001 if test -r "$cache_file"; then 2002 # Some versions of bash will fail to source /dev/null (special 2003 # files actually), so we avoid doing that. 2004 if test -f "$cache_file"; then 2005 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2006 echo "$as_me: loading cache $cache_file" >&6;} 2007 case $cache_file in 2008 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2009 *) . "./$cache_file";; 2010 esac 2011 fi 2012 else 2013 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2014 echo "$as_me: creating cache $cache_file" >&6;} 2015 >$cache_file 2016 fi 2017 2018 # Check that the precious variables saved in the cache have kept the same 2019 # value. 2020 ac_cache_corrupted=false 2021 for ac_var in $ac_precious_vars; do 2022 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2023 eval ac_new_set=\$ac_env_${ac_var}_set 2024 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2025 eval ac_new_val=\$ac_env_${ac_var}_value 2026 case $ac_old_set,$ac_new_set in 2027 set,) 2028 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2029 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2030 ac_cache_corrupted=: ;; 2031 ,set) 2032 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2033 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2034 ac_cache_corrupted=: ;; 2035 ,);; 2036 *) 2037 if test "x$ac_old_val" != "x$ac_new_val"; then 2038 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2039 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2040 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 2041 echo "$as_me: former value: $ac_old_val" >&2;} 2042 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 2043 echo "$as_me: current value: $ac_new_val" >&2;} 2044 ac_cache_corrupted=: 2045 fi;; 2046 esac 2047 # Pass precious variables to config.status. 2048 if test "$ac_new_set" = set; then 2049 case $ac_new_val in 2050 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 *) ac_arg=$ac_var=$ac_new_val ;; 2052 esac 2053 case " $ac_configure_args " in 2054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2055 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2056 esac 2057 fi 2058 done 2059 if $ac_cache_corrupted; then 2060 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2061 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2062 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2063 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2064 { (exit 1); exit 1; }; } 2065 fi 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 ac_ext=c 2084 ac_cpp='$CPP $CPPFLAGS' 2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2088 2089 2090 2091 2092 ac_config_headers="$ac_config_headers config.h" 2093 2094 2095 ac_aux_dir= 2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2097 if test -f "$ac_dir/install-sh"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/install-sh -c" 2100 break 2101 elif test -f "$ac_dir/install.sh"; then 2102 ac_aux_dir=$ac_dir 2103 ac_install_sh="$ac_aux_dir/install.sh -c" 2104 break 2105 elif test -f "$ac_dir/shtool"; then 2106 ac_aux_dir=$ac_dir 2107 ac_install_sh="$ac_aux_dir/shtool install -c" 2108 break 2109 fi 2110 done 2111 if test -z "$ac_aux_dir"; then 2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2113 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2114 { (exit 1); exit 1; }; } 2115 fi 2116 2117 # These three variables are undocumented and unsupported, 2118 # and are intended to be withdrawn in a future Autoconf release. 2119 # They can cause serious problems if a builder's source tree is in a directory 2120 # whose full name contains unusual characters. 2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2124 2125 2126 # Make sure we can run config.sub. 2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2130 { (exit 1); exit 1; }; } 2131 2132 { echo "$as_me:$LINENO: checking build system type" >&5 2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2134 if test "${ac_cv_build+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136 else 2137 ac_build_alias=$build_alias 2138 test "x$ac_build_alias" = x && 2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2140 test "x$ac_build_alias" = x && 2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2143 { (exit 1); exit 1; }; } 2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2147 { (exit 1); exit 1; }; } 2148 2149 fi 2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2151 echo "${ECHO_T}$ac_cv_build" >&6; } 2152 case $ac_cv_build in 2153 *-*-*) ;; 2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2155 echo "$as_me: error: invalid value of canonical build" >&2;} 2156 { (exit 1); exit 1; }; };; 2157 esac 2158 build=$ac_cv_build 2159 ac_save_IFS=$IFS; IFS='-' 2160 set x $ac_cv_build 2161 shift 2162 build_cpu=$1 2163 build_vendor=$2 2164 shift; shift 2165 # Remember, the first character of IFS is used to create $*, 2166 # except with old shells: 2167 build_os=$* 2168 IFS=$ac_save_IFS 2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2170 2171 2172 { echo "$as_me:$LINENO: checking host system type" >&5 2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2174 if test "${ac_cv_host+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176 else 2177 if test "x$host_alias" = x; then 2178 ac_cv_host=$ac_cv_build 2179 else 2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2183 { (exit 1); exit 1; }; } 2184 fi 2185 2186 fi 2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2188 echo "${ECHO_T}$ac_cv_host" >&6; } 2189 case $ac_cv_host in 2190 *-*-*) ;; 2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2192 echo "$as_me: error: invalid value of canonical host" >&2;} 2193 { (exit 1); exit 1; }; };; 2194 esac 2195 host=$ac_cv_host 2196 ac_save_IFS=$IFS; IFS='-' 2197 set x $ac_cv_host 2198 shift 2199 host_cpu=$1 2200 host_vendor=$2 2201 shift; shift 2202 # Remember, the first character of IFS is used to create $*, 2203 # except with old shells: 2204 host_os=$* 2205 IFS=$ac_save_IFS 2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2207 2208 2209 2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2212 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215 else 2216 cat >conftest.make <<\_ACEOF 2217 SHELL = /bin/sh 2218 all: 2219 @echo '@@@%%%=$(MAKE)=@@@%%%' 2220 _ACEOF 2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2223 *@@@%%%=?*=@@@%%%*) 2224 eval ac_cv_prog_make_${ac_make}_set=yes;; 2225 *) 2226 eval ac_cv_prog_make_${ac_make}_set=no;; 2227 esac 2228 rm -f conftest.make 2229 fi 2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2231 { echo "$as_me:$LINENO: result: yes" >&5 2232 echo "${ECHO_T}yes" >&6; } 2233 SET_MAKE= 2234 else 2235 { echo "$as_me:$LINENO: result: no" >&5 2236 echo "${ECHO_T}no" >&6; } 2237 SET_MAKE="MAKE=${MAKE-make}" 2238 fi 2239 2240 # Check whether --enable-shared was given. 2241 if test "${enable_shared+set}" = set; then 2242 enableval=$enable_shared; p=${PACKAGE-default} 2243 case $enableval in 2244 yes) enable_shared=yes ;; 2245 no) enable_shared=no ;; 2246 *) 2247 enable_shared=no 2248 # Look at the argument we got. We use all the common list separators. 2249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2250 for pkg in $enableval; do 2251 IFS="$lt_save_ifs" 2252 if test "X$pkg" = "X$p"; then 2253 enable_shared=yes 2254 fi 2255 done 2256 IFS="$lt_save_ifs" 2257 ;; 2258 esac 2259 else 2260 enable_shared=yes 2261 fi 2262 2263 2264 # Check whether --enable-static was given. 2265 if test "${enable_static+set}" = set; then 2266 enableval=$enable_static; p=${PACKAGE-default} 2267 case $enableval in 2268 yes) enable_static=yes ;; 2269 no) enable_static=no ;; 2270 *) 2271 enable_static=no 2272 # Look at the argument we got. We use all the common list separators. 2273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2274 for pkg in $enableval; do 2275 IFS="$lt_save_ifs" 2276 if test "X$pkg" = "X$p"; then 2277 enable_static=yes 2278 fi 2279 done 2280 IFS="$lt_save_ifs" 2281 ;; 2282 esac 2283 else 2284 enable_static=yes 2285 fi 2286 2287 2288 # Check whether --enable-fast-install was given. 2289 if test "${enable_fast_install+set}" = set; then 2290 enableval=$enable_fast_install; p=${PACKAGE-default} 2291 case $enableval in 2292 yes) enable_fast_install=yes ;; 2293 no) enable_fast_install=no ;; 2294 *) 2295 enable_fast_install=no 2296 # Look at the argument we got. We use all the common list separators. 2297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2298 for pkg in $enableval; do 2299 IFS="$lt_save_ifs" 2300 if test "X$pkg" = "X$p"; then 2301 enable_fast_install=yes 2302 fi 2303 done 2304 IFS="$lt_save_ifs" 2305 ;; 2306 esac 2307 else 2308 enable_fast_install=yes 2309 fi 2310 2311 2312 ac_ext=c 2313 ac_cpp='$CPP $CPPFLAGS' 2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2317 if test -n "$ac_tool_prefix"; then 2318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2319 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2322 if test "${ac_cv_prog_CC+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324 else 2325 if test -n "$CC"; then 2326 ac_cv_prog_CC="$CC" # Let the user override the test. 2327 else 2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329 for as_dir in $PATH 2330 do 2331 IFS=$as_save_IFS 2332 test -z "$as_dir" && as_dir=. 2333 for ac_exec_ext in '' $ac_executable_extensions; do 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2335 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2337 break 2 2338 fi 2339 done 2340 done 2341 IFS=$as_save_IFS 2342 2343 fi 2344 fi 2345 CC=$ac_cv_prog_CC 2346 if test -n "$CC"; then 2347 { echo "$as_me:$LINENO: result: $CC" >&5 2348 echo "${ECHO_T}$CC" >&6; } 2349 else 2350 { echo "$as_me:$LINENO: result: no" >&5 2351 echo "${ECHO_T}no" >&6; } 2352 fi 2353 2354 2355 fi 2356 if test -z "$ac_cv_prog_CC"; then 2357 ac_ct_CC=$CC 2358 # Extract the first word of "gcc", so it can be a program name with args. 2359 set dummy gcc; ac_word=$2 2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364 else 2365 if test -n "$ac_ct_CC"; then 2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2367 else 2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369 for as_dir in $PATH 2370 do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_ac_ct_CC="gcc" 2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379 done 2380 done 2381 IFS=$as_save_IFS 2382 2383 fi 2384 fi 2385 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2386 if test -n "$ac_ct_CC"; then 2387 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2388 echo "${ECHO_T}$ac_ct_CC" >&6; } 2389 else 2390 { echo "$as_me:$LINENO: result: no" >&5 2391 echo "${ECHO_T}no" >&6; } 2392 fi 2393 2394 if test "x$ac_ct_CC" = x; then 2395 CC="" 2396 else 2397 case $cross_compiling:$ac_tool_warned in 2398 yes:) 2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2400 whose name does not start with the host triplet. If you think this 2401 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2403 whose name does not start with the host triplet. If you think this 2404 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2405 ac_tool_warned=yes ;; 2406 esac 2407 CC=$ac_ct_CC 2408 fi 2409 else 2410 CC="$ac_cv_prog_CC" 2411 fi 2412 2413 if test -z "$CC"; then 2414 if test -n "$ac_tool_prefix"; then 2415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2416 set dummy ${ac_tool_prefix}cc; ac_word=$2 2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2419 if test "${ac_cv_prog_CC+set}" = set; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421 else 2422 if test -n "$CC"; then 2423 ac_cv_prog_CC="$CC" # Let the user override the test. 2424 else 2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426 for as_dir in $PATH 2427 do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2432 ac_cv_prog_CC="${ac_tool_prefix}cc" 2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2434 break 2 2435 fi 2436 done 2437 done 2438 IFS=$as_save_IFS 2439 2440 fi 2441 fi 2442 CC=$ac_cv_prog_CC 2443 if test -n "$CC"; then 2444 { echo "$as_me:$LINENO: result: $CC" >&5 2445 echo "${ECHO_T}$CC" >&6; } 2446 else 2447 { echo "$as_me:$LINENO: result: no" >&5 2448 echo "${ECHO_T}no" >&6; } 2449 fi 2450 2451 2452 fi 2453 fi 2454 if test -z "$CC"; then 2455 # Extract the first word of "cc", so it can be a program name with args. 2456 set dummy cc; ac_word=$2 2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2459 if test "${ac_cv_prog_CC+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461 else 2462 if test -n "$CC"; then 2463 ac_cv_prog_CC="$CC" # Let the user override the test. 2464 else 2465 ac_prog_rejected=no 2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467 for as_dir in $PATH 2468 do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2474 ac_prog_rejected=yes 2475 continue 2476 fi 2477 ac_cv_prog_CC="cc" 2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481 done 2482 done 2483 IFS=$as_save_IFS 2484 2485 if test $ac_prog_rejected = yes; then 2486 # We found a bogon in the path, so make sure we never use it. 2487 set dummy $ac_cv_prog_CC 2488 shift 2489 if test $# != 0; then 2490 # We chose a different compiler from the bogus one. 2491 # However, it has the same basename, so the bogon will be chosen 2492 # first if we set CC to just the basename; use the full file name. 2493 shift 2494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2495 fi 2496 fi 2497 fi 2498 fi 2499 CC=$ac_cv_prog_CC 2500 if test -n "$CC"; then 2501 { echo "$as_me:$LINENO: result: $CC" >&5 2502 echo "${ECHO_T}$CC" >&6; } 2503 else 2504 { echo "$as_me:$LINENO: result: no" >&5 2505 echo "${ECHO_T}no" >&6; } 2506 fi 2507 2508 2509 fi 2510 if test -z "$CC"; then 2511 if test -n "$ac_tool_prefix"; then 2512 for ac_prog in cl.exe 2513 do 2514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2518 if test "${ac_cv_prog_CC+set}" = set; then 2519 echo $ECHO_N "(cached) $ECHO_C" >&6 2520 else 2521 if test -n "$CC"; then 2522 ac_cv_prog_CC="$CC" # Let the user override the test. 2523 else 2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525 for as_dir in $PATH 2526 do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2533 break 2 2534 fi 2535 done 2536 done 2537 IFS=$as_save_IFS 2538 2539 fi 2540 fi 2541 CC=$ac_cv_prog_CC 2542 if test -n "$CC"; then 2543 { echo "$as_me:$LINENO: result: $CC" >&5 2544 echo "${ECHO_T}$CC" >&6; } 2545 else 2546 { echo "$as_me:$LINENO: result: no" >&5 2547 echo "${ECHO_T}no" >&6; } 2548 fi 2549 2550 2551 test -n "$CC" && break 2552 done 2553 fi 2554 if test -z "$CC"; then 2555 ac_ct_CC=$CC 2556 for ac_prog in cl.exe 2557 do 2558 # Extract the first word of "$ac_prog", so it can be a program name with args. 2559 set dummy $ac_prog; ac_word=$2 2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2563 echo $ECHO_N "(cached) $ECHO_C" >&6 2564 else 2565 if test -n "$ac_ct_CC"; then 2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2567 else 2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569 for as_dir in $PATH 2570 do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_exec_ext in '' $ac_executable_extensions; do 2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2575 ac_cv_prog_ac_ct_CC="$ac_prog" 2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2577 break 2 2578 fi 2579 done 2580 done 2581 IFS=$as_save_IFS 2582 2583 fi 2584 fi 2585 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2586 if test -n "$ac_ct_CC"; then 2587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2588 echo "${ECHO_T}$ac_ct_CC" >&6; } 2589 else 2590 { echo "$as_me:$LINENO: result: no" >&5 2591 echo "${ECHO_T}no" >&6; } 2592 fi 2593 2594 2595 test -n "$ac_ct_CC" && break 2596 done 2597 2598 if test "x$ac_ct_CC" = x; then 2599 CC="" 2600 else 2601 case $cross_compiling:$ac_tool_warned in 2602 yes:) 2603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2604 whose name does not start with the host triplet. If you think this 2605 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2607 whose name does not start with the host triplet. If you think this 2608 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2609 ac_tool_warned=yes ;; 2610 esac 2611 CC=$ac_ct_CC 2612 fi 2613 fi 2614 2615 fi 2616 2617 2618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2619 See \`config.log' for more details." >&5 2620 echo "$as_me: error: no acceptable C compiler found in \$PATH 2621 See \`config.log' for more details." >&2;} 2622 { (exit 1); exit 1; }; } 2623 2624 # Provide some information about the compiler. 2625 echo "$as_me:$LINENO: checking for C compiler version" >&5 2626 ac_compiler=`set X $ac_compile; echo $2` 2627 { (ac_try="$ac_compiler --version >&5" 2628 case "(($ac_try" in 2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2630 *) ac_try_echo=$ac_try;; 2631 esac 2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2633 (eval "$ac_compiler --version >&5") 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); } 2637 { (ac_try="$ac_compiler -v >&5" 2638 case "(($ac_try" in 2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2640 *) ac_try_echo=$ac_try;; 2641 esac 2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2643 (eval "$ac_compiler -v >&5") 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } 2647 { (ac_try="$ac_compiler -V >&5" 2648 case "(($ac_try" in 2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2650 *) ac_try_echo=$ac_try;; 2651 esac 2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2653 (eval "$ac_compiler -V >&5") 2>&5 2654 ac_status=$? 2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 (exit $ac_status); } 2657 2658 cat >conftest.$ac_ext <<_ACEOF 2659 /* confdefs.h. */ 2660 _ACEOF 2661 cat confdefs.h >>conftest.$ac_ext 2662 cat >>conftest.$ac_ext <<_ACEOF 2663 /* end confdefs.h. */ 2664 2665 int 2666 main () 2667 { 2668 2669 ; 2670 return 0; 2671 } 2672 _ACEOF 2673 ac_clean_files_save=$ac_clean_files 2674 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2675 # Try to create an executable without -o first, disregard a.out. 2676 # It will help us diagnose broken compilers, and finding out an intuition 2677 # of exeext. 2678 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2679 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2680 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2681 # 2682 # List of possible output files, starting from the most likely. 2683 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2684 # only as a last resort. b.out is created by i960 compilers. 2685 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2686 # 2687 # The IRIX 6 linker writes into existing files which may not be 2688 # executable, retaining their permissions. Remove them first so a 2689 # subsequent execution test works. 2690 ac_rmfiles= 2691 for ac_file in $ac_files 2692 do 2693 case $ac_file in 2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2695 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2696 esac 2697 done 2698 rm -f $ac_rmfiles 2699 2700 if { (ac_try="$ac_link_default" 2701 case "(($ac_try" in 2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2703 *) ac_try_echo=$ac_try;; 2704 esac 2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2706 (eval "$ac_link_default") 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); }; then 2710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2711 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2712 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2713 # so that the user can short-circuit this test for compilers unknown to 2714 # Autoconf. 2715 for ac_file in $ac_files '' 2716 do 2717 test -f "$ac_file" || continue 2718 case $ac_file in 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2720 ;; 2721 [ab].out ) 2722 # We found the default executable, but exeext='' is most 2723 # certainly right. 2724 break;; 2725 *.* ) 2726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2727 then :; else 2728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2729 fi 2730 # We set ac_cv_exeext here because the later test for it is not 2731 # safe: cross compilers may not add the suffix if given an `-o' 2732 # argument, so we may need to know it at that point already. 2733 # Even if this section looks crufty: it has the advantage of 2734 # actually working. 2735 break;; 2736 * ) 2737 break;; 2738 esac 2739 done 2740 test "$ac_cv_exeext" = no && ac_cv_exeext= 2741 2742 else 2743 ac_file='' 2744 fi 2745 2746 { echo "$as_me:$LINENO: result: $ac_file" >&5 2747 echo "${ECHO_T}$ac_file" >&6; } 2748 if test -z "$ac_file"; then 2749 echo "$as_me: failed program was:" >&5 2750 sed 's/^/| /' conftest.$ac_ext >&5 2751 2752 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2753 See \`config.log' for more details." >&5 2754 echo "$as_me: error: C compiler cannot create executables 2755 See \`config.log' for more details." >&2;} 2756 { (exit 77); exit 77; }; } 2757 fi 2758 2759 ac_exeext=$ac_cv_exeext 2760 2761 # Check that the compiler produces executables we can run. If not, either 2762 # the compiler is broken, or we cross compile. 2763 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2766 # If not cross compiling, check that we can run a simple program. 2767 if test "$cross_compiling" != yes; then 2768 if { ac_try='./$ac_file' 2769 { (case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772 esac 2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2774 (eval "$ac_try") 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); }; }; then 2778 cross_compiling=no 2779 else 2780 if test "$cross_compiling" = maybe; then 2781 cross_compiling=yes 2782 else 2783 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2784 If you meant to cross compile, use \`--host'. 2785 See \`config.log' for more details." >&5 2786 echo "$as_me: error: cannot run C compiled programs. 2787 If you meant to cross compile, use \`--host'. 2788 See \`config.log' for more details." >&2;} 2789 { (exit 1); exit 1; }; } 2790 fi 2791 fi 2792 fi 2793 { echo "$as_me:$LINENO: result: yes" >&5 2794 echo "${ECHO_T}yes" >&6; } 2795 2796 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2797 ac_clean_files=$ac_clean_files_save 2798 # Check that the compiler produces executables we can run. If not, either 2799 # the compiler is broken, or we cross compile. 2800 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2801 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2802 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2803 echo "${ECHO_T}$cross_compiling" >&6; } 2804 2805 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2806 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2807 if { (ac_try="$ac_link" 2808 case "(($ac_try" in 2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2810 *) ac_try_echo=$ac_try;; 2811 esac 2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2813 (eval "$ac_link") 2>&5 2814 ac_status=$? 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); }; then 2817 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2818 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2819 # work properly (i.e., refer to `conftest.exe'), while it won't with 2820 # `rm'. 2821 for ac_file in conftest.exe conftest conftest.*; do 2822 test -f "$ac_file" || continue 2823 case $ac_file in 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2826 break;; 2827 * ) break;; 2828 esac 2829 done 2830 else 2831 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2832 See \`config.log' for more details." >&5 2833 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2834 See \`config.log' for more details." >&2;} 2835 { (exit 1); exit 1; }; } 2836 fi 2837 2838 rm -f conftest$ac_cv_exeext 2839 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2840 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2841 2842 rm -f conftest.$ac_ext 2843 EXEEXT=$ac_cv_exeext 2844 ac_exeext=$EXEEXT 2845 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2846 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2847 if test "${ac_cv_objext+set}" = set; then 2848 echo $ECHO_N "(cached) $ECHO_C" >&6 2849 else 2850 cat >conftest.$ac_ext <<_ACEOF 2851 /* confdefs.h. */ 2852 _ACEOF 2853 cat confdefs.h >>conftest.$ac_ext 2854 cat >>conftest.$ac_ext <<_ACEOF 2855 /* end confdefs.h. */ 2856 2857 int 2858 main () 2859 { 2860 2861 ; 2862 return 0; 2863 } 2864 _ACEOF 2865 rm -f conftest.o conftest.obj 2866 if { (ac_try="$ac_compile" 2867 case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870 esac 2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2872 (eval "$ac_compile") 2>&5 2873 ac_status=$? 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); }; then 2876 for ac_file in conftest.o conftest.obj conftest.*; do 2877 test -f "$ac_file" || continue; 2878 case $ac_file in 2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2881 break;; 2882 esac 2883 done 2884 else 2885 echo "$as_me: failed program was:" >&5 2886 sed 's/^/| /' conftest.$ac_ext >&5 2887 2888 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2889 See \`config.log' for more details." >&5 2890 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2891 See \`config.log' for more details." >&2;} 2892 { (exit 1); exit 1; }; } 2893 fi 2894 2895 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2896 fi 2897 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2898 echo "${ECHO_T}$ac_cv_objext" >&6; } 2899 OBJEXT=$ac_cv_objext 2900 ac_objext=$OBJEXT 2901 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2902 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2903 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2904 echo $ECHO_N "(cached) $ECHO_C" >&6 2905 else 2906 cat >conftest.$ac_ext <<_ACEOF 2907 /* confdefs.h. */ 2908 _ACEOF 2909 cat confdefs.h >>conftest.$ac_ext 2910 cat >>conftest.$ac_ext <<_ACEOF 2911 /* end confdefs.h. */ 2912 2913 int 2914 main () 2915 { 2916 #ifndef __GNUC__ 2917 choke me 2918 #endif 2919 2920 ; 2921 return 0; 2922 } 2923 _ACEOF 2924 rm -f conftest.$ac_objext 2925 if { (ac_try="$ac_compile" 2926 case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929 esac 2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2931 (eval "$ac_compile") 2>conftest.er1 2932 ac_status=$? 2933 grep -v '^ *+' conftest.er1 >conftest.err 2934 rm -f conftest.er1 2935 cat conftest.err >&5 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } && { 2938 test -z "$ac_c_werror_flag" || 2939 test ! -s conftest.err 2940 } && test -s conftest.$ac_objext; then 2941 ac_compiler_gnu=yes 2942 else 2943 echo "$as_me: failed program was:" >&5 2944 sed 's/^/| /' conftest.$ac_ext >&5 2945 2946 ac_compiler_gnu=no 2947 fi 2948 2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2950 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2951 2952 fi 2953 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2954 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2955 GCC=`test $ac_compiler_gnu = yes && echo yes` 2956 ac_test_CFLAGS=${CFLAGS+set} 2957 ac_save_CFLAGS=$CFLAGS 2958 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2959 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2960 if test "${ac_cv_prog_cc_g+set}" = set; then 2961 echo $ECHO_N "(cached) $ECHO_C" >&6 2962 else 2963 ac_save_c_werror_flag=$ac_c_werror_flag 2964 ac_c_werror_flag=yes 2965 ac_cv_prog_cc_g=no 2966 CFLAGS="-g" 2967 cat >conftest.$ac_ext <<_ACEOF 2968 /* confdefs.h. */ 2969 _ACEOF 2970 cat confdefs.h >>conftest.$ac_ext 2971 cat >>conftest.$ac_ext <<_ACEOF 2972 /* end confdefs.h. */ 2973 2974 int 2975 main () 2976 { 2977 2978 ; 2979 return 0; 2980 } 2981 _ACEOF 2982 rm -f conftest.$ac_objext 2983 if { (ac_try="$ac_compile" 2984 case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987 esac 2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2989 (eval "$ac_compile") 2>conftest.er1 2990 ac_status=$? 2991 grep -v '^ *+' conftest.er1 >conftest.err 2992 rm -f conftest.er1 2993 cat conftest.err >&5 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); } && { 2996 test -z "$ac_c_werror_flag" || 2997 test ! -s conftest.err 2998 } && test -s conftest.$ac_objext; then 2999 ac_cv_prog_cc_g=yes 3000 else 3001 echo "$as_me: failed program was:" >&5 3002 sed 's/^/| /' conftest.$ac_ext >&5 3003 3004 CFLAGS="" 3005 cat >conftest.$ac_ext <<_ACEOF 3006 /* confdefs.h. */ 3007 _ACEOF 3008 cat confdefs.h >>conftest.$ac_ext 3009 cat >>conftest.$ac_ext <<_ACEOF 3010 /* end confdefs.h. */ 3011 3012 int 3013 main () 3014 { 3015 3016 ; 3017 return 0; 3018 } 3019 _ACEOF 3020 rm -f conftest.$ac_objext 3021 if { (ac_try="$ac_compile" 3022 case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025 esac 3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3027 (eval "$ac_compile") 2>conftest.er1 3028 ac_status=$? 3029 grep -v '^ *+' conftest.er1 >conftest.err 3030 rm -f conftest.er1 3031 cat conftest.err >&5 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); } && { 3034 test -z "$ac_c_werror_flag" || 3035 test ! -s conftest.err 3036 } && test -s conftest.$ac_objext; then 3037 : 3038 else 3039 echo "$as_me: failed program was:" >&5 3040 sed 's/^/| /' conftest.$ac_ext >&5 3041 3042 ac_c_werror_flag=$ac_save_c_werror_flag 3043 CFLAGS="-g" 3044 cat >conftest.$ac_ext <<_ACEOF 3045 /* confdefs.h. */ 3046 _ACEOF 3047 cat confdefs.h >>conftest.$ac_ext 3048 cat >>conftest.$ac_ext <<_ACEOF 3049 /* end confdefs.h. */ 3050 3051 int 3052 main () 3053 { 3054 3055 ; 3056 return 0; 3057 } 3058 _ACEOF 3059 rm -f conftest.$ac_objext 3060 if { (ac_try="$ac_compile" 3061 case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064 esac 3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3066 (eval "$ac_compile") 2>conftest.er1 3067 ac_status=$? 3068 grep -v '^ *+' conftest.er1 >conftest.err 3069 rm -f conftest.er1 3070 cat conftest.err >&5 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); } && { 3073 test -z "$ac_c_werror_flag" || 3074 test ! -s conftest.err 3075 } && test -s conftest.$ac_objext; then 3076 ac_cv_prog_cc_g=yes 3077 else 3078 echo "$as_me: failed program was:" >&5 3079 sed 's/^/| /' conftest.$ac_ext >&5 3080 3081 3082 fi 3083 3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085 fi 3086 3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3088 fi 3089 3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3091 ac_c_werror_flag=$ac_save_c_werror_flag 3092 fi 3093 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3094 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3095 if test "$ac_test_CFLAGS" = set; then 3096 CFLAGS=$ac_save_CFLAGS 3097 elif test $ac_cv_prog_cc_g = yes; then 3098 if test "$GCC" = yes; then 3099 CFLAGS="-g -O2" 3100 else 3101 CFLAGS="-g" 3102 fi 3103 else 3104 if test "$GCC" = yes; then 3105 CFLAGS="-O2" 3106 else 3107 CFLAGS= 3108 fi 3109 fi 3110 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3111 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3112 if test "${ac_cv_prog_cc_c89+set}" = set; then 3113 echo $ECHO_N "(cached) $ECHO_C" >&6 3114 else 3115 ac_cv_prog_cc_c89=no 3116 ac_save_CC=$CC 3117 cat >conftest.$ac_ext <<_ACEOF 3118 /* confdefs.h. */ 3119 _ACEOF 3120 cat confdefs.h >>conftest.$ac_ext 3121 cat >>conftest.$ac_ext <<_ACEOF 3122 /* end confdefs.h. */ 3123 #include <stdarg.h> 3124 #include <stdio.h> 3125 #include <sys/types.h> 3126 #include <sys/stat.h> 3127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3128 struct buf { int x; }; 3129 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3130 static char *e (p, i) 3131 char **p; 3132 int i; 3133 { 3134 return p[i]; 3135 } 3136 static char *f (char * (*g) (char **, int), char **p, ...) 3137 { 3138 char *s; 3139 va_list v; 3140 va_start (v,p); 3141 s = g (p, va_arg (v,int)); 3142 va_end (v); 3143 return s; 3144 } 3145 3146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3147 function prototypes and stuff, but not '\xHH' hex character constants. 3148 These don't provoke an error unfortunately, instead are silently treated 3149 as 'x'. The following induces an error, until -std is added to get 3150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3151 array size at least. It's necessary to write '\x00'==0 to get something 3152 that's true only with -std. */ 3153 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3154 3155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3156 inside strings and character constants. */ 3157 #define FOO(x) 'x' 3158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3159 3160 int test (int i, double x); 3161 struct s1 {int (*f) (int a);}; 3162 struct s2 {int (*f) (double a);}; 3163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3164 int argc; 3165 char **argv; 3166 int 3167 main () 3168 { 3169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3170 ; 3171 return 0; 3172 } 3173 _ACEOF 3174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3176 do 3177 CC="$ac_save_CC $ac_arg" 3178 rm -f conftest.$ac_objext 3179 if { (ac_try="$ac_compile" 3180 case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183 esac 3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3185 (eval "$ac_compile") 2>conftest.er1 3186 ac_status=$? 3187 grep -v '^ *+' conftest.er1 >conftest.err 3188 rm -f conftest.er1 3189 cat conftest.err >&5 3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 (exit $ac_status); } && { 3192 test -z "$ac_c_werror_flag" || 3193 test ! -s conftest.err 3194 } && test -s conftest.$ac_objext; then 3195 ac_cv_prog_cc_c89=$ac_arg 3196 else 3197 echo "$as_me: failed program was:" >&5 3198 sed 's/^/| /' conftest.$ac_ext >&5 3199 3200 3201 fi 3202 3203 rm -f core conftest.err conftest.$ac_objext 3204 test "x$ac_cv_prog_cc_c89" != "xno" && break 3205 done 3206 rm -f conftest.$ac_ext 3207 CC=$ac_save_CC 3208 3209 fi 3210 # AC_CACHE_VAL 3211 case "x$ac_cv_prog_cc_c89" in 3212 x) 3213 { echo "$as_me:$LINENO: result: none needed" >&5 3214 echo "${ECHO_T}none needed" >&6; } ;; 3215 xno) 3216 { echo "$as_me:$LINENO: result: unsupported" >&5 3217 echo "${ECHO_T}unsupported" >&6; } ;; 3218 *) 3219 CC="$CC $ac_cv_prog_cc_c89" 3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3221 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3222 esac 3223 3224 3225 ac_ext=c 3226 ac_cpp='$CPP $CPPFLAGS' 3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3230 3231 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3232 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3233 if test "${lt_cv_path_SED+set}" = set; then 3234 echo $ECHO_N "(cached) $ECHO_C" >&6 3235 else 3236 # Loop through the user's path and test for sed and gsed. 3237 # Then use that list of sed's as ones to test for truncation. 3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239 for as_dir in $PATH 3240 do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for lt_ac_prog in sed gsed; do 3244 for ac_exec_ext in '' $ac_executable_extensions; do 3245 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3246 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3247 fi 3248 done 3249 done 3250 done 3251 IFS=$as_save_IFS 3252 lt_ac_max=0 3253 lt_ac_count=0 3254 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 3255 # along with /bin/sed that truncates output. 3256 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3257 test ! -f $lt_ac_sed && continue 3258 cat /dev/null > conftest.in 3259 lt_ac_count=0 3260 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3261 # Check for GNU sed and select it if it is found. 3262 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3263 lt_cv_path_SED=$lt_ac_sed 3264 break 3265 fi 3266 while true; do 3267 cat conftest.in conftest.in >conftest.tmp 3268 mv conftest.tmp conftest.in 3269 cp conftest.in conftest.nl 3270 echo >>conftest.nl 3271 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3272 cmp -s conftest.out conftest.nl || break 3273 # 10000 chars as input seems more than enough 3274 test $lt_ac_count -gt 10 && break 3275 lt_ac_count=`expr $lt_ac_count + 1` 3276 if test $lt_ac_count -gt $lt_ac_max; then 3277 lt_ac_max=$lt_ac_count 3278 lt_cv_path_SED=$lt_ac_sed 3279 fi 3280 done 3281 done 3282 3283 fi 3284 3285 SED=$lt_cv_path_SED 3286 3287 { echo "$as_me:$LINENO: result: $SED" >&5 3288 echo "${ECHO_T}$SED" >&6; } 3289 3290 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3291 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3292 if test "${ac_cv_path_GREP+set}" = set; then 3293 echo $ECHO_N "(cached) $ECHO_C" >&6 3294 else 3295 # Extract the first word of "grep ggrep" to use in msg output 3296 if test -z "$GREP"; then 3297 set dummy grep ggrep; ac_prog_name=$2 3298 if test "${ac_cv_path_GREP+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300 else 3301 ac_path_GREP_found=false 3302 # Loop through the user's path and test for each of PROGNAME-LIST 3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3305 do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_prog in grep ggrep; do 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3311 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3312 # Check for GNU ac_path_GREP and select it if it is found. 3313 # Check for GNU $ac_path_GREP 3314 case `"$ac_path_GREP" --version 2>&1` in 3315 *GNU*) 3316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3317 *) 3318 ac_count=0 3319 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3320 while : 3321 do 3322 cat "conftest.in" "conftest.in" >"conftest.tmp" 3323 mv "conftest.tmp" "conftest.in" 3324 cp "conftest.in" "conftest.nl" 3325 echo 'GREP' >> "conftest.nl" 3326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3328 ac_count=`expr $ac_count + 1` 3329 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3330 # Best one so far, save it but keep looking for a better one 3331 ac_cv_path_GREP="$ac_path_GREP" 3332 ac_path_GREP_max=$ac_count 3333 fi 3334 # 10*(2^10) chars as input seems more than enough 3335 test $ac_count -gt 10 && break 3336 done 3337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3338 esac 3339 3340 3341 $ac_path_GREP_found && break 3 3342 done 3343 done 3344 3345 done 3346 IFS=$as_save_IFS 3347 3348 3349 fi 3350 3351 GREP="$ac_cv_path_GREP" 3352 if test -z "$GREP"; then 3353 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3354 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3355 { (exit 1); exit 1; }; } 3356 fi 3357 3358 else 3359 ac_cv_path_GREP=$GREP 3360 fi 3361 3362 3363 fi 3364 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3365 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3366 GREP="$ac_cv_path_GREP" 3367 3368 3369 { echo "$as_me:$LINENO: checking for egrep" >&5 3370 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3371 if test "${ac_cv_path_EGREP+set}" = set; then 3372 echo $ECHO_N "(cached) $ECHO_C" >&6 3373 else 3374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3375 then ac_cv_path_EGREP="$GREP -E" 3376 else 3377 # Extract the first word of "egrep" to use in msg output 3378 if test -z "$EGREP"; then 3379 set dummy egrep; ac_prog_name=$2 3380 if test "${ac_cv_path_EGREP+set}" = set; then 3381 echo $ECHO_N "(cached) $ECHO_C" >&6 3382 else 3383 ac_path_EGREP_found=false 3384 # Loop through the user's path and test for each of PROGNAME-LIST 3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3387 do 3388 IFS=$as_save_IFS 3389 test -z "$as_dir" && as_dir=. 3390 for ac_prog in egrep; do 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3393 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3394 # Check for GNU ac_path_EGREP and select it if it is found. 3395 # Check for GNU $ac_path_EGREP 3396 case `"$ac_path_EGREP" --version 2>&1` in 3397 *GNU*) 3398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3399 *) 3400 ac_count=0 3401 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3402 while : 3403 do 3404 cat "conftest.in" "conftest.in" >"conftest.tmp" 3405 mv "conftest.tmp" "conftest.in" 3406 cp "conftest.in" "conftest.nl" 3407 echo 'EGREP' >> "conftest.nl" 3408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3410 ac_count=`expr $ac_count + 1` 3411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3412 # Best one so far, save it but keep looking for a better one 3413 ac_cv_path_EGREP="$ac_path_EGREP" 3414 ac_path_EGREP_max=$ac_count 3415 fi 3416 # 10*(2^10) chars as input seems more than enough 3417 test $ac_count -gt 10 && break 3418 done 3419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3420 esac 3421 3422 3423 $ac_path_EGREP_found && break 3 3424 done 3425 done 3426 3427 done 3428 IFS=$as_save_IFS 3429 3430 3431 fi 3432 3433 EGREP="$ac_cv_path_EGREP" 3434 if test -z "$EGREP"; then 3435 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3436 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3437 { (exit 1); exit 1; }; } 3438 fi 3439 3440 else 3441 ac_cv_path_EGREP=$EGREP 3442 fi 3443 3444 3445 fi 3446 fi 3447 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3448 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3449 EGREP="$ac_cv_path_EGREP" 3450 3451 3452 3453 # Check whether --with-gnu-ld was given. 3454 if test "${with_gnu_ld+set}" = set; then 3455 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3456 else 3457 with_gnu_ld=no 3458 fi 3459 3460 ac_prog=ld 3461 if test "$GCC" = yes; then 3462 # Check if gcc -print-prog-name=ld gives a path. 3463 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3464 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3465 case $host in 3466 *-*-mingw*) 3467 # gcc leaves a trailing carriage return which upsets mingw 3468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3469 *) 3470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3471 esac 3472 case $ac_prog in 3473 # Accept absolute paths. 3474 [\\/]* | ?:[\\/]*) 3475 re_direlt='/[^/][^/]*/\.\./' 3476 # Canonicalize the pathname of ld 3477 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3479 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3480 done 3481 test -z "$LD" && LD="$ac_prog" 3482 ;; 3483 "") 3484 # If it fails, then pretend we aren't using GCC. 3485 ac_prog=ld 3486 ;; 3487 *) 3488 # If it is relative, then search for the first ld in PATH. 3489 with_gnu_ld=unknown 3490 ;; 3491 esac 3492 elif test "$with_gnu_ld" = yes; then 3493 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3494 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3495 else 3496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3497 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3498 fi 3499 if test "${lt_cv_path_LD+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501 else 3502 if test -z "$LD"; then 3503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3504 for ac_dir in $PATH; do 3505 IFS="$lt_save_ifs" 3506 test -z "$ac_dir" && ac_dir=. 3507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3508 lt_cv_path_LD="$ac_dir/$ac_prog" 3509 # Check to see if the program is GNU ld. I'd rather use --version, 3510 # but apparently some variants of GNU ld only accept -v. 3511 # Break only if it was the GNU/non-GNU ld that we prefer. 3512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3513 *GNU* | *'with BFD'*) 3514 test "$with_gnu_ld" != no && break 3515 ;; 3516 *) 3517 test "$with_gnu_ld" != yes && break 3518 ;; 3519 esac 3520 fi 3521 done 3522 IFS="$lt_save_ifs" 3523 else 3524 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3525 fi 3526 fi 3527 3528 LD="$lt_cv_path_LD" 3529 if test -n "$LD"; then 3530 { echo "$as_me:$LINENO: result: $LD" >&5 3531 echo "${ECHO_T}$LD" >&6; } 3532 else 3533 { echo "$as_me:$LINENO: result: no" >&5 3534 echo "${ECHO_T}no" >&6; } 3535 fi 3536 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3537 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3538 { (exit 1); exit 1; }; } 3539 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3540 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3541 if test "${lt_cv_prog_gnu_ld+set}" = set; then 3542 echo $ECHO_N "(cached) $ECHO_C" >&6 3543 else 3544 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3545 case `$LD -v 2>&1 </dev/null` in 3546 *GNU* | *'with BFD'*) 3547 lt_cv_prog_gnu_ld=yes 3548 ;; 3549 *) 3550 lt_cv_prog_gnu_ld=no 3551 ;; 3552 esac 3553 fi 3554 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3555 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3556 with_gnu_ld=$lt_cv_prog_gnu_ld 3557 3558 3559 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3560 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3561 if test "${lt_cv_ld_reload_flag+set}" = set; then 3562 echo $ECHO_N "(cached) $ECHO_C" >&6 3563 else 3564 lt_cv_ld_reload_flag='-r' 3565 fi 3566 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3567 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3568 reload_flag=$lt_cv_ld_reload_flag 3569 case $reload_flag in 3570 "" | " "*) ;; 3571 *) reload_flag=" $reload_flag" ;; 3572 esac 3573 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3574 case $host_os in 3575 darwin*) 3576 if test "$GCC" = yes; then 3577 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3578 else 3579 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3580 fi 3581 ;; 3582 esac 3583 3584 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3585 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 3586 if test "${lt_cv_path_NM+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588 else 3589 if test -n "$NM"; then 3590 # Let the user override the test. 3591 lt_cv_path_NM="$NM" 3592 else 3593 lt_nm_to_check="${ac_tool_prefix}nm" 3594 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3595 lt_nm_to_check="$lt_nm_to_check nm" 3596 fi 3597 for lt_tmp_nm in $lt_nm_to_check; do 3598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3599 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3600 IFS="$lt_save_ifs" 3601 test -z "$ac_dir" && ac_dir=. 3602 tmp_nm="$ac_dir/$lt_tmp_nm" 3603 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3604 # Check to see if the nm accepts a BSD-compat flag. 3605 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3606 # nm: unknown option "B" ignored 3607 # Tru64's nm complains that /dev/null is an invalid object file 3608 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3609 */dev/null* | *'Invalid file or object type'*) 3610 lt_cv_path_NM="$tmp_nm -B" 3611 break 3612 ;; 3613 *) 3614 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3615 */dev/null*) 3616 lt_cv_path_NM="$tmp_nm -p" 3617 break 3618 ;; 3619 *) 3620 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3621 continue # so that we can try to find one that supports BSD flags 3622 ;; 3623 esac 3624 ;; 3625 esac 3626 fi 3627 done 3628 IFS="$lt_save_ifs" 3629 done 3630 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3631 fi 3632 fi 3633 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3634 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 3635 NM="$lt_cv_path_NM" 3636 3637 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 3638 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3639 LN_S=$as_ln_s 3640 if test "$LN_S" = "ln -s"; then 3641 { echo "$as_me:$LINENO: result: yes" >&5 3642 echo "${ECHO_T}yes" >&6; } 3643 else 3644 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3645 echo "${ECHO_T}no, using $LN_S" >&6; } 3646 fi 3647 3648 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 3649 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 3650 if test "${lt_cv_deplibs_check_method+set}" = set; then 3651 echo $ECHO_N "(cached) $ECHO_C" >&6 3652 else 3653 lt_cv_file_magic_cmd='$MAGIC_CMD' 3654 lt_cv_file_magic_test_file= 3655 lt_cv_deplibs_check_method='unknown' 3656 # Need to set the preceding variable on all platforms that support 3657 # interlibrary dependencies. 3658 # 'none' -- dependencies not supported. 3659 # `unknown' -- same as none, but documents that we really don't know. 3660 # 'pass_all' -- all dependencies passed with no checks. 3661 # 'test_compile' -- check by making test program. 3662 # 'file_magic [[regex]]' -- check by looking for files in library path 3663 # which responds to the $file_magic_cmd with a given extended regex. 3664 # If you have `file' or equivalent on your system and you're not sure 3665 # whether `pass_all' will *always* work, you probably want this one. 3666 3667 case $host_os in 3668 aix[4-9]*) 3669 lt_cv_deplibs_check_method=pass_all 3670 ;; 3671 3672 beos*) 3673 lt_cv_deplibs_check_method=pass_all 3674 ;; 3675 3676 bsdi[45]*) 3677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3678 lt_cv_file_magic_cmd='/usr/bin/file -L' 3679 lt_cv_file_magic_test_file=/shlib/libc.so 3680 ;; 3681 3682 cygwin*) 3683 # func_win32_libid is a shell function defined in ltmain.sh 3684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3685 lt_cv_file_magic_cmd='func_win32_libid' 3686 ;; 3687 3688 mingw* | pw32*) 3689 # Base MSYS/MinGW do not provide the 'file' command needed by 3690 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3691 # unless we find 'file', for example because we are cross-compiling. 3692 if ( file / ) >/dev/null 2>&1; then 3693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3694 lt_cv_file_magic_cmd='func_win32_libid' 3695 else 3696 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3697 lt_cv_file_magic_cmd='$OBJDUMP -f' 3698 fi 3699 ;; 3700 3701 darwin* | rhapsody*) 3702 lt_cv_deplibs_check_method=pass_all 3703 ;; 3704 3705 freebsd* | dragonfly*) 3706 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3707 case $host_cpu in 3708 i*86 ) 3709 # Not sure whether the presence of OpenBSD here was a mistake. 3710 # Let's accept both of them until this is cleared up. 3711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3712 lt_cv_file_magic_cmd=/usr/bin/file 3713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3714 ;; 3715 esac 3716 else 3717 lt_cv_deplibs_check_method=pass_all 3718 fi 3719 ;; 3720 3721 gnu*) 3722 lt_cv_deplibs_check_method=pass_all 3723 ;; 3724 3725 hpux10.20* | hpux11*) 3726 lt_cv_file_magic_cmd=/usr/bin/file 3727 case $host_cpu in 3728 ia64*) 3729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3730 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3731 ;; 3732 hppa*64*) 3733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 3734 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3735 ;; 3736 *) 3737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3738 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3739 ;; 3740 esac 3741 ;; 3742 3743 interix[3-9]*) 3744 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3746 ;; 3747 3748 irix5* | irix6* | nonstopux*) 3749 case $LD in 3750 *-32|*"-32 ") libmagic=32-bit;; 3751 *-n32|*"-n32 ") libmagic=N32;; 3752 *-64|*"-64 ") libmagic=64-bit;; 3753 *) libmagic=never-match;; 3754 esac 3755 lt_cv_deplibs_check_method=pass_all 3756 ;; 3757 3758 # This must be Linux ELF. 3759 linux* | k*bsd*-gnu) 3760 lt_cv_deplibs_check_method=pass_all 3761 ;; 3762 3763 netbsd*) 3764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3766 else 3767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3768 fi 3769 ;; 3770 3771 newos6*) 3772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3773 lt_cv_file_magic_cmd=/usr/bin/file 3774 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3775 ;; 3776 3777 nto-qnx*) 3778 lt_cv_deplibs_check_method=unknown 3779 ;; 3780 3781 openbsd*) 3782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3784 else 3785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3786 fi 3787 ;; 3788 3789 osf3* | osf4* | osf5*) 3790 lt_cv_deplibs_check_method=pass_all 3791 ;; 3792 3793 rdos*) 3794 lt_cv_deplibs_check_method=pass_all 3795 ;; 3796 3797 solaris*) 3798 lt_cv_deplibs_check_method=pass_all 3799 ;; 3800 3801 sysv4 | sysv4.3*) 3802 case $host_vendor in 3803 motorola) 3804 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]' 3805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3806 ;; 3807 ncr) 3808 lt_cv_deplibs_check_method=pass_all 3809 ;; 3810 sequent) 3811 lt_cv_file_magic_cmd='/bin/file' 3812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3813 ;; 3814 sni) 3815 lt_cv_file_magic_cmd='/bin/file' 3816 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3817 lt_cv_file_magic_test_file=/lib/libc.so 3818 ;; 3819 siemens) 3820 lt_cv_deplibs_check_method=pass_all 3821 ;; 3822 pc) 3823 lt_cv_deplibs_check_method=pass_all 3824 ;; 3825 esac 3826 ;; 3827 3828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3829 lt_cv_deplibs_check_method=pass_all 3830 ;; 3831 esac 3832 3833 fi 3834 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3835 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 3836 file_magic_cmd=$lt_cv_file_magic_cmd 3837 deplibs_check_method=$lt_cv_deplibs_check_method 3838 test -z "$deplibs_check_method" && deplibs_check_method=unknown 3839 3840 3841 3842 3843 # If no C compiler was specified, use CC. 3844 LTCC=${LTCC-"$CC"} 3845 3846 # If no C compiler flags were specified, use CFLAGS. 3847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3848 3849 # Allow CC to be a program name with arguments. 3850 compiler=$CC 3851 3852 3853 # Check whether --enable-libtool-lock was given. 3854 if test "${enable_libtool_lock+set}" = set; then 3855 enableval=$enable_libtool_lock; 3856 fi 3857 3858 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3859 3860 # Some flags need to be propagated to the compiler or linker for good 3861 # libtool support. 3862 case $host in 3863 ia64-*-hpux*) 3864 # Find out which ABI we are using. 3865 echo 'int i;' > conftest.$ac_ext 3866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3867 (eval $ac_compile) 2>&5 3868 ac_status=$? 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); }; then 3871 case `/usr/bin/file conftest.$ac_objext` in 3872 *ELF-32*) 3873 HPUX_IA64_MODE="32" 3874 ;; 3875 *ELF-64*) 3876 HPUX_IA64_MODE="64" 3877 ;; 3878 esac 3879 fi 3880 rm -rf conftest* 3881 ;; 3882 *-*-irix6*) 3883 # Find out which ABI we are using. 3884 echo '#line 3884 "configure"' > conftest.$ac_ext 3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3886 (eval $ac_compile) 2>&5 3887 ac_status=$? 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); }; then 3890 if test "$lt_cv_prog_gnu_ld" = yes; then 3891 case `/usr/bin/file conftest.$ac_objext` in 3892 *32-bit*) 3893 LD="${LD-ld} -melf32bsmip" 3894 ;; 3895 *N32*) 3896 LD="${LD-ld} -melf32bmipn32" 3897 ;; 3898 *64-bit*) 3899 LD="${LD-ld} -melf64bmip" 3900 ;; 3901 esac 3902 else 3903 case `/usr/bin/file conftest.$ac_objext` in 3904 *32-bit*) 3905 LD="${LD-ld} -32" 3906 ;; 3907 *N32*) 3908 LD="${LD-ld} -n32" 3909 ;; 3910 *64-bit*) 3911 LD="${LD-ld} -64" 3912 ;; 3913 esac 3914 fi 3915 fi 3916 rm -rf conftest* 3917 ;; 3918 3919 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3920 s390*-*linux*|sparc*-*linux*) 3921 # Find out which ABI we are using. 3922 echo 'int i;' > conftest.$ac_ext 3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3924 (eval $ac_compile) 2>&5 3925 ac_status=$? 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); }; then 3928 case `/usr/bin/file conftest.o` in 3929 *32-bit*) 3930 case $host in 3931 x86_64-*kfreebsd*-gnu) 3932 LD="${LD-ld} -m elf_i386_fbsd" 3933 ;; 3934 x86_64-*linux*) 3935 LD="${LD-ld} -m elf_i386" 3936 ;; 3937 ppc64-*linux*|powerpc64-*linux*) 3938 LD="${LD-ld} -m elf32ppclinux" 3939 ;; 3940 s390x-*linux*) 3941 LD="${LD-ld} -m elf_s390" 3942 ;; 3943 sparc64-*linux*) 3944 LD="${LD-ld} -m elf32_sparc" 3945 ;; 3946 esac 3947 ;; 3948 *64-bit*) 3949 case $host in 3950 x86_64-*kfreebsd*-gnu) 3951 LD="${LD-ld} -m elf_x86_64_fbsd" 3952 ;; 3953 x86_64-*linux*) 3954 LD="${LD-ld} -m elf_x86_64" 3955 ;; 3956 ppc*-*linux*|powerpc*-*linux*) 3957 LD="${LD-ld} -m elf64ppc" 3958 ;; 3959 s390*-*linux*) 3960 LD="${LD-ld} -m elf64_s390" 3961 ;; 3962 sparc*-*linux*) 3963 LD="${LD-ld} -m elf64_sparc" 3964 ;; 3965 esac 3966 ;; 3967 esac 3968 fi 3969 rm -rf conftest* 3970 ;; 3971 3972 *-*-sco3.2v5*) 3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3974 SAVE_CFLAGS="$CFLAGS" 3975 CFLAGS="$CFLAGS -belf" 3976 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 3978 if test "${lt_cv_cc_needs_belf+set}" = set; then 3979 echo $ECHO_N "(cached) $ECHO_C" >&6 3980 else 3981 ac_ext=c 3982 ac_cpp='$CPP $CPPFLAGS' 3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986 3987 cat >conftest.$ac_ext <<_ACEOF 3988 /* confdefs.h. */ 3989 _ACEOF 3990 cat confdefs.h >>conftest.$ac_ext 3991 cat >>conftest.$ac_ext <<_ACEOF 3992 /* end confdefs.h. */ 3993 3994 int 3995 main () 3996 { 3997 3998 ; 3999 return 0; 4000 } 4001 _ACEOF 4002 rm -f conftest.$ac_objext conftest$ac_exeext 4003 if { (ac_try="$ac_link" 4004 case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007 esac 4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4009 (eval "$ac_link") 2>conftest.er1 4010 ac_status=$? 4011 grep -v '^ *+' conftest.er1 >conftest.err 4012 rm -f conftest.er1 4013 cat conftest.err >&5 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); } && { 4016 test -z "$ac_c_werror_flag" || 4017 test ! -s conftest.err 4018 } && test -s conftest$ac_exeext && 4019 $as_test_x conftest$ac_exeext; then 4020 lt_cv_cc_needs_belf=yes 4021 else 4022 echo "$as_me: failed program was:" >&5 4023 sed 's/^/| /' conftest.$ac_ext >&5 4024 4025 lt_cv_cc_needs_belf=no 4026 fi 4027 4028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4029 conftest$ac_exeext conftest.$ac_ext 4030 ac_ext=c 4031 ac_cpp='$CPP $CPPFLAGS' 4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4035 4036 fi 4037 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4038 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4041 CFLAGS="$SAVE_CFLAGS" 4042 fi 4043 ;; 4044 sparc*-*solaris*) 4045 # Find out which ABI we are using. 4046 echo 'int i;' > conftest.$ac_ext 4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4048 (eval $ac_compile) 2>&5 4049 ac_status=$? 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); }; then 4052 case `/usr/bin/file conftest.o` in 4053 *64-bit*) 4054 case $lt_cv_prog_gnu_ld in 4055 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4056 *) 4057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4058 LD="${LD-ld} -64" 4059 fi 4060 ;; 4061 esac 4062 ;; 4063 esac 4064 fi 4065 rm -rf conftest* 4066 ;; 4067 4068 4069 esac 4070 4071 need_locks="$enable_libtool_lock" 4072 4073 4074 ac_ext=c 4075 ac_cpp='$CPP $CPPFLAGS' 4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4080 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4081 # On Suns, sometimes $CPP names a directory. 4082 if test -n "$CPP" && test -d "$CPP"; then 4083 CPP= 4084 fi 4085 if test -z "$CPP"; then 4086 if test "${ac_cv_prog_CPP+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088 else 4089 # Double quotes because CPP needs to be expanded 4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4091 do 4092 ac_preproc_ok=false 4093 for ac_c_preproc_warn_flag in '' yes 4094 do 4095 # Use a header file that comes with gcc, so configuring glibc 4096 # with a fresh cross-compiler works. 4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4098 # <limits.h> exists even on freestanding compilers. 4099 # On the NeXT, cc -E runs the code through the compiler's parser, 4100 # not just through cpp. "Syntax error" is here to catch this case. 4101 cat >conftest.$ac_ext <<_ACEOF 4102 /* confdefs.h. */ 4103 _ACEOF 4104 cat confdefs.h >>conftest.$ac_ext 4105 cat >>conftest.$ac_ext <<_ACEOF 4106 /* end confdefs.h. */ 4107 #ifdef __STDC__ 4108 # include <limits.h> 4109 #else 4110 # include <assert.h> 4111 #endif 4112 Syntax error 4113 _ACEOF 4114 if { (ac_try="$ac_cpp conftest.$ac_ext" 4115 case "(($ac_try" in 4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4117 *) ac_try_echo=$ac_try;; 4118 esac 4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4121 ac_status=$? 4122 grep -v '^ *+' conftest.er1 >conftest.err 4123 rm -f conftest.er1 4124 cat conftest.err >&5 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); } >/dev/null && { 4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4128 test ! -s conftest.err 4129 }; then 4130 : 4131 else 4132 echo "$as_me: failed program was:" >&5 4133 sed 's/^/| /' conftest.$ac_ext >&5 4134 4135 # Broken: fails on valid input. 4136 continue 4137 fi 4138 4139 rm -f conftest.err conftest.$ac_ext 4140 4141 # OK, works on sane cases. Now check whether nonexistent headers 4142 # can be detected and how. 4143 cat >conftest.$ac_ext <<_ACEOF 4144 /* confdefs.h. */ 4145 _ACEOF 4146 cat confdefs.h >>conftest.$ac_ext 4147 cat >>conftest.$ac_ext <<_ACEOF 4148 /* end confdefs.h. */ 4149 #include <ac_nonexistent.h> 4150 _ACEOF 4151 if { (ac_try="$ac_cpp conftest.$ac_ext" 4152 case "(($ac_try" in 4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4154 *) ac_try_echo=$ac_try;; 4155 esac 4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4158 ac_status=$? 4159 grep -v '^ *+' conftest.er1 >conftest.err 4160 rm -f conftest.er1 4161 cat conftest.err >&5 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } >/dev/null && { 4164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4165 test ! -s conftest.err 4166 }; then 4167 # Broken: success on invalid input. 4168 continue 4169 else 4170 echo "$as_me: failed program was:" >&5 4171 sed 's/^/| /' conftest.$ac_ext >&5 4172 4173 # Passes both tests. 4174 ac_preproc_ok=: 4175 break 4176 fi 4177 4178 rm -f conftest.err conftest.$ac_ext 4179 4180 done 4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4182 rm -f conftest.err conftest.$ac_ext 4183 if $ac_preproc_ok; then 4184 break 4185 fi 4186 4187 done 4188 ac_cv_prog_CPP=$CPP 4189 4190 fi 4191 CPP=$ac_cv_prog_CPP 4192 else 4193 ac_cv_prog_CPP=$CPP 4194 fi 4195 { echo "$as_me:$LINENO: result: $CPP" >&5 4196 echo "${ECHO_T}$CPP" >&6; } 4197 ac_preproc_ok=false 4198 for ac_c_preproc_warn_flag in '' yes 4199 do 4200 # Use a header file that comes with gcc, so configuring glibc 4201 # with a fresh cross-compiler works. 4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4203 # <limits.h> exists even on freestanding compilers. 4204 # On the NeXT, cc -E runs the code through the compiler's parser, 4205 # not just through cpp. "Syntax error" is here to catch this case. 4206 cat >conftest.$ac_ext <<_ACEOF 4207 /* confdefs.h. */ 4208 _ACEOF 4209 cat confdefs.h >>conftest.$ac_ext 4210 cat >>conftest.$ac_ext <<_ACEOF 4211 /* end confdefs.h. */ 4212 #ifdef __STDC__ 4213 # include <limits.h> 4214 #else 4215 # include <assert.h> 4216 #endif 4217 Syntax error 4218 _ACEOF 4219 if { (ac_try="$ac_cpp conftest.$ac_ext" 4220 case "(($ac_try" in 4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4222 *) ac_try_echo=$ac_try;; 4223 esac 4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4226 ac_status=$? 4227 grep -v '^ *+' conftest.er1 >conftest.err 4228 rm -f conftest.er1 4229 cat conftest.err >&5 4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4231 (exit $ac_status); } >/dev/null && { 4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4233 test ! -s conftest.err 4234 }; then 4235 : 4236 else 4237 echo "$as_me: failed program was:" >&5 4238 sed 's/^/| /' conftest.$ac_ext >&5 4239 4240 # Broken: fails on valid input. 4241 continue 4242 fi 4243 4244 rm -f conftest.err conftest.$ac_ext 4245 4246 # OK, works on sane cases. Now check whether nonexistent headers 4247 # can be detected and how. 4248 cat >conftest.$ac_ext <<_ACEOF 4249 /* confdefs.h. */ 4250 _ACEOF 4251 cat confdefs.h >>conftest.$ac_ext 4252 cat >>conftest.$ac_ext <<_ACEOF 4253 /* end confdefs.h. */ 4254 #include <ac_nonexistent.h> 4255 _ACEOF 4256 if { (ac_try="$ac_cpp conftest.$ac_ext" 4257 case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260 esac 4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } >/dev/null && { 4269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4270 test ! -s conftest.err 4271 }; then 4272 # Broken: success on invalid input. 4273 continue 4274 else 4275 echo "$as_me: failed program was:" >&5 4276 sed 's/^/| /' conftest.$ac_ext >&5 4277 4278 # Passes both tests. 4279 ac_preproc_ok=: 4280 break 4281 fi 4282 4283 rm -f conftest.err conftest.$ac_ext 4284 4285 done 4286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4287 rm -f conftest.err conftest.$ac_ext 4288 if $ac_preproc_ok; then 4289 : 4290 else 4291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4292 See \`config.log' for more details." >&5 4293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4294 See \`config.log' for more details." >&2;} 4295 { (exit 1); exit 1; }; } 4296 fi 4297 4298 ac_ext=c 4299 ac_cpp='$CPP $CPPFLAGS' 4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4303 4304 4305 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4307 if test "${ac_cv_header_stdc+set}" = set; then 4308 echo $ECHO_N "(cached) $ECHO_C" >&6 4309 else 4310 cat >conftest.$ac_ext <<_ACEOF 4311 /* confdefs.h. */ 4312 _ACEOF 4313 cat confdefs.h >>conftest.$ac_ext 4314 cat >>conftest.$ac_ext <<_ACEOF 4315 /* end confdefs.h. */ 4316 #include <stdlib.h> 4317 #include <stdarg.h> 4318 #include <string.h> 4319 #include <float.h> 4320 4321 int 4322 main () 4323 { 4324 4325 ; 4326 return 0; 4327 } 4328 _ACEOF 4329 rm -f conftest.$ac_objext 4330 if { (ac_try="$ac_compile" 4331 case "(($ac_try" in 4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4333 *) ac_try_echo=$ac_try;; 4334 esac 4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4336 (eval "$ac_compile") 2>conftest.er1 4337 ac_status=$? 4338 grep -v '^ *+' conftest.er1 >conftest.err 4339 rm -f conftest.er1 4340 cat conftest.err >&5 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); } && { 4343 test -z "$ac_c_werror_flag" || 4344 test ! -s conftest.err 4345 } && test -s conftest.$ac_objext; then 4346 ac_cv_header_stdc=yes 4347 else 4348 echo "$as_me: failed program was:" >&5 4349 sed 's/^/| /' conftest.$ac_ext >&5 4350 4351 ac_cv_header_stdc=no 4352 fi 4353 4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4355 4356 if test $ac_cv_header_stdc = yes; then 4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4358 cat >conftest.$ac_ext <<_ACEOF 4359 /* confdefs.h. */ 4360 _ACEOF 4361 cat confdefs.h >>conftest.$ac_ext 4362 cat >>conftest.$ac_ext <<_ACEOF 4363 /* end confdefs.h. */ 4364 #include <string.h> 4365 4366 _ACEOF 4367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4368 $EGREP "memchr" >/dev/null 2>&1; then 4369 : 4370 else 4371 ac_cv_header_stdc=no 4372 fi 4373 rm -f conftest* 4374 4375 fi 4376 4377 if test $ac_cv_header_stdc = yes; then 4378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4379 cat >conftest.$ac_ext <<_ACEOF 4380 /* confdefs.h. */ 4381 _ACEOF 4382 cat confdefs.h >>conftest.$ac_ext 4383 cat >>conftest.$ac_ext <<_ACEOF 4384 /* end confdefs.h. */ 4385 #include <stdlib.h> 4386 4387 _ACEOF 4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4389 $EGREP "free" >/dev/null 2>&1; then 4390 : 4391 else 4392 ac_cv_header_stdc=no 4393 fi 4394 rm -f conftest* 4395 4396 fi 4397 4398 if test $ac_cv_header_stdc = yes; then 4399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4400 if test "$cross_compiling" = yes; then 4401 : 4402 else 4403 cat >conftest.$ac_ext <<_ACEOF 4404 /* confdefs.h. */ 4405 _ACEOF 4406 cat confdefs.h >>conftest.$ac_ext 4407 cat >>conftest.$ac_ext <<_ACEOF 4408 /* end confdefs.h. */ 4409 #include <ctype.h> 4410 #include <stdlib.h> 4411 #if ((' ' & 0x0FF) == 0x020) 4412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4414 #else 4415 # define ISLOWER(c) \ 4416 (('a' <= (c) && (c) <= 'i') \ 4417 || ('j' <= (c) && (c) <= 'r') \ 4418 || ('s' <= (c) && (c) <= 'z')) 4419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4420 #endif 4421 4422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4423 int 4424 main () 4425 { 4426 int i; 4427 for (i = 0; i < 256; i++) 4428 if (XOR (islower (i), ISLOWER (i)) 4429 || toupper (i) != TOUPPER (i)) 4430 return 2; 4431 return 0; 4432 } 4433 _ACEOF 4434 rm -f conftest$ac_exeext 4435 if { (ac_try="$ac_link" 4436 case "(($ac_try" in 4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4438 *) ac_try_echo=$ac_try;; 4439 esac 4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4441 (eval "$ac_link") 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4445 { (case "(($ac_try" in 4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4447 *) ac_try_echo=$ac_try;; 4448 esac 4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4450 (eval "$ac_try") 2>&5 4451 ac_status=$? 4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4453 (exit $ac_status); }; }; then 4454 : 4455 else 4456 echo "$as_me: program exited with status $ac_status" >&5 4457 echo "$as_me: failed program was:" >&5 4458 sed 's/^/| /' conftest.$ac_ext >&5 4459 4460 ( exit $ac_status ) 4461 ac_cv_header_stdc=no 4462 fi 4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4464 fi 4465 4466 4467 fi 4468 fi 4469 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4470 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4471 if test $ac_cv_header_stdc = yes; then 4472 4473 cat >>confdefs.h <<\_ACEOF 4474 #define STDC_HEADERS 1 4475 _ACEOF 4476 4477 fi 4478 4479 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4490 inttypes.h stdint.h unistd.h 4491 do 4492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4493 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497 else 4498 cat >conftest.$ac_ext <<_ACEOF 4499 /* confdefs.h. */ 4500 _ACEOF 4501 cat confdefs.h >>conftest.$ac_ext 4502 cat >>conftest.$ac_ext <<_ACEOF 4503 /* end confdefs.h. */ 4504 $ac_includes_default 4505 4506 #include <$ac_header> 4507 _ACEOF 4508 rm -f conftest.$ac_objext 4509 if { (ac_try="$ac_compile" 4510 case "(($ac_try" in 4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4512 *) ac_try_echo=$ac_try;; 4513 esac 4514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4515 (eval "$ac_compile") 2>conftest.er1 4516 ac_status=$? 4517 grep -v '^ *+' conftest.er1 >conftest.err 4518 rm -f conftest.er1 4519 cat conftest.err >&5 4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); } && { 4522 test -z "$ac_c_werror_flag" || 4523 test ! -s conftest.err 4524 } && test -s conftest.$ac_objext; then 4525 eval "$as_ac_Header=yes" 4526 else 4527 echo "$as_me: failed program was:" >&5 4528 sed 's/^/| /' conftest.$ac_ext >&5 4529 4530 eval "$as_ac_Header=no" 4531 fi 4532 4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4534 fi 4535 ac_res=`eval echo '${'$as_ac_Header'}'` 4536 { echo "$as_me:$LINENO: result: $ac_res" >&5 4537 echo "${ECHO_T}$ac_res" >&6; } 4538 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4539 cat >>confdefs.h <<_ACEOF 4540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4541 _ACEOF 4542 4543 fi 4544 4545 done 4546 4547 4548 4549 for ac_header in dlfcn.h 4550 do 4551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4553 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557 fi 4558 ac_res=`eval echo '${'$as_ac_Header'}'` 4559 { echo "$as_me:$LINENO: result: $ac_res" >&5 4560 echo "${ECHO_T}$ac_res" >&6; } 4561 else 4562 # Is the header compilable? 4563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 4564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4565 cat >conftest.$ac_ext <<_ACEOF 4566 /* confdefs.h. */ 4567 _ACEOF 4568 cat confdefs.h >>conftest.$ac_ext 4569 cat >>conftest.$ac_ext <<_ACEOF 4570 /* end confdefs.h. */ 4571 $ac_includes_default 4572 #include <$ac_header> 4573 _ACEOF 4574 rm -f conftest.$ac_objext 4575 if { (ac_try="$ac_compile" 4576 case "(($ac_try" in 4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4578 *) ac_try_echo=$ac_try;; 4579 esac 4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4581 (eval "$ac_compile") 2>conftest.er1 4582 ac_status=$? 4583 grep -v '^ *+' conftest.er1 >conftest.err 4584 rm -f conftest.er1 4585 cat conftest.err >&5 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); } && { 4588 test -z "$ac_c_werror_flag" || 4589 test ! -s conftest.err 4590 } && test -s conftest.$ac_objext; then 4591 ac_header_compiler=yes 4592 else 4593 echo "$as_me: failed program was:" >&5 4594 sed 's/^/| /' conftest.$ac_ext >&5 4595 4596 ac_header_compiler=no 4597 fi 4598 4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4601 echo "${ECHO_T}$ac_header_compiler" >&6; } 4602 4603 # Is the header present? 4604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4606 cat >conftest.$ac_ext <<_ACEOF 4607 /* confdefs.h. */ 4608 _ACEOF 4609 cat confdefs.h >>conftest.$ac_ext 4610 cat >>conftest.$ac_ext <<_ACEOF 4611 /* end confdefs.h. */ 4612 #include <$ac_header> 4613 _ACEOF 4614 if { (ac_try="$ac_cpp conftest.$ac_ext" 4615 case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618 esac 4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } >/dev/null && { 4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4628 test ! -s conftest.err 4629 }; then 4630 ac_header_preproc=yes 4631 else 4632 echo "$as_me: failed program was:" >&5 4633 sed 's/^/| /' conftest.$ac_ext >&5 4634 4635 ac_header_preproc=no 4636 fi 4637 4638 rm -f conftest.err conftest.$ac_ext 4639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4640 echo "${ECHO_T}$ac_header_preproc" >&6; } 4641 4642 # So? What about this header? 4643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4644 yes:no: ) 4645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4649 ac_header_preproc=yes 4650 ;; 4651 no:yes:* ) 4652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4664 4665 ;; 4666 esac 4667 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4670 echo $ECHO_N "(cached) $ECHO_C" >&6 4671 else 4672 eval "$as_ac_Header=\$ac_header_preproc" 4673 fi 4674 ac_res=`eval echo '${'$as_ac_Header'}'` 4675 { echo "$as_me:$LINENO: result: $ac_res" >&5 4676 echo "${ECHO_T}$ac_res" >&6; } 4677 4678 fi 4679 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4680 cat >>confdefs.h <<_ACEOF 4681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4682 _ACEOF 4683 4684 fi 4685 4686 done 4687 4688 ac_ext=cpp 4689 ac_cpp='$CXXCPP $CPPFLAGS' 4690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4693 if test -z "$CXX"; then 4694 if test -n "$CCC"; then 4695 CXX=$CCC 4696 else 4697 if test -n "$ac_tool_prefix"; then 4698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4699 do 4700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4702 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4704 if test "${ac_cv_prog_CXX+set}" = set; then 4705 echo $ECHO_N "(cached) $ECHO_C" >&6 4706 else 4707 if test -n "$CXX"; then 4708 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4709 else 4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711 for as_dir in $PATH 4712 do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721 done 4722 done 4723 IFS=$as_save_IFS 4724 4725 fi 4726 fi 4727 CXX=$ac_cv_prog_CXX 4728 if test -n "$CXX"; then 4729 { echo "$as_me:$LINENO: result: $CXX" >&5 4730 echo "${ECHO_T}$CXX" >&6; } 4731 else 4732 { echo "$as_me:$LINENO: result: no" >&5 4733 echo "${ECHO_T}no" >&6; } 4734 fi 4735 4736 4737 test -n "$CXX" && break 4738 done 4739 fi 4740 if test -z "$CXX"; then 4741 ac_ct_CXX=$CXX 4742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4743 do 4744 # Extract the first word of "$ac_prog", so it can be a program name with args. 4745 set dummy $ac_prog; ac_word=$2 4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4748 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 4750 else 4751 if test -n "$ac_ct_CXX"; then 4752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4753 else 4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755 for as_dir in $PATH 4756 do 4757 IFS=$as_save_IFS 4758 test -z "$as_dir" && as_dir=. 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4761 ac_cv_prog_ac_ct_CXX="$ac_prog" 4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4763 break 2 4764 fi 4765 done 4766 done 4767 IFS=$as_save_IFS 4768 4769 fi 4770 fi 4771 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4772 if test -n "$ac_ct_CXX"; then 4773 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4774 echo "${ECHO_T}$ac_ct_CXX" >&6; } 4775 else 4776 { echo "$as_me:$LINENO: result: no" >&5 4777 echo "${ECHO_T}no" >&6; } 4778 fi 4779 4780 4781 test -n "$ac_ct_CXX" && break 4782 done 4783 4784 if test "x$ac_ct_CXX" = x; then 4785 CXX="g++" 4786 else 4787 case $cross_compiling:$ac_tool_warned in 4788 yes:) 4789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4790 whose name does not start with the host triplet. If you think this 4791 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 4792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4793 whose name does not start with the host triplet. If you think this 4794 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 4795 ac_tool_warned=yes ;; 4796 esac 4797 CXX=$ac_ct_CXX 4798 fi 4799 fi 4800 4801 fi 4802 fi 4803 # Provide some information about the compiler. 4804 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 4805 ac_compiler=`set X $ac_compile; echo $2` 4806 { (ac_try="$ac_compiler --version >&5" 4807 case "(($ac_try" in 4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4809 *) ac_try_echo=$ac_try;; 4810 esac 4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4812 (eval "$ac_compiler --version >&5") 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); } 4816 { (ac_try="$ac_compiler -v >&5" 4817 case "(($ac_try" in 4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4819 *) ac_try_echo=$ac_try;; 4820 esac 4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4822 (eval "$ac_compiler -v >&5") 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); } 4826 { (ac_try="$ac_compiler -V >&5" 4827 case "(($ac_try" in 4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4829 *) ac_try_echo=$ac_try;; 4830 esac 4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4832 (eval "$ac_compiler -V >&5") 2>&5 4833 ac_status=$? 4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); } 4836 4837 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4838 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 4839 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4840 echo $ECHO_N "(cached) $ECHO_C" >&6 4841 else 4842 cat >conftest.$ac_ext <<_ACEOF 4843 /* confdefs.h. */ 4844 _ACEOF 4845 cat confdefs.h >>conftest.$ac_ext 4846 cat >>conftest.$ac_ext <<_ACEOF 4847 /* end confdefs.h. */ 4848 4849 int 4850 main () 4851 { 4852 #ifndef __GNUC__ 4853 choke me 4854 #endif 4855 4856 ; 4857 return 0; 4858 } 4859 _ACEOF 4860 rm -f conftest.$ac_objext 4861 if { (ac_try="$ac_compile" 4862 case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865 esac 4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_compile") 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && { 4874 test -z "$ac_cxx_werror_flag" || 4875 test ! -s conftest.err 4876 } && test -s conftest.$ac_objext; then 4877 ac_compiler_gnu=yes 4878 else 4879 echo "$as_me: failed program was:" >&5 4880 sed 's/^/| /' conftest.$ac_ext >&5 4881 4882 ac_compiler_gnu=no 4883 fi 4884 4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4887 4888 fi 4889 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4890 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 4891 GXX=`test $ac_compiler_gnu = yes && echo yes` 4892 ac_test_CXXFLAGS=${CXXFLAGS+set} 4893 ac_save_CXXFLAGS=$CXXFLAGS 4894 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4895 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 4896 if test "${ac_cv_prog_cxx_g+set}" = set; then 4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4898 else 4899 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4900 ac_cxx_werror_flag=yes 4901 ac_cv_prog_cxx_g=no 4902 CXXFLAGS="-g" 4903 cat >conftest.$ac_ext <<_ACEOF 4904 /* confdefs.h. */ 4905 _ACEOF 4906 cat confdefs.h >>conftest.$ac_ext 4907 cat >>conftest.$ac_ext <<_ACEOF 4908 /* end confdefs.h. */ 4909 4910 int 4911 main () 4912 { 4913 4914 ; 4915 return 0; 4916 } 4917 _ACEOF 4918 rm -f conftest.$ac_objext 4919 if { (ac_try="$ac_compile" 4920 case "(($ac_try" in 4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4922 *) ac_try_echo=$ac_try;; 4923 esac 4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4925 (eval "$ac_compile") 2>conftest.er1 4926 ac_status=$? 4927 grep -v '^ *+' conftest.er1 >conftest.err 4928 rm -f conftest.er1 4929 cat conftest.err >&5 4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4931 (exit $ac_status); } && { 4932 test -z "$ac_cxx_werror_flag" || 4933 test ! -s conftest.err 4934 } && test -s conftest.$ac_objext; then 4935 ac_cv_prog_cxx_g=yes 4936 else 4937 echo "$as_me: failed program was:" >&5 4938 sed 's/^/| /' conftest.$ac_ext >&5 4939 4940 CXXFLAGS="" 4941 cat >conftest.$ac_ext <<_ACEOF 4942 /* confdefs.h. */ 4943 _ACEOF 4944 cat confdefs.h >>conftest.$ac_ext 4945 cat >>conftest.$ac_ext <<_ACEOF 4946 /* end confdefs.h. */ 4947 4948 int 4949 main () 4950 { 4951 4952 ; 4953 return 0; 4954 } 4955 _ACEOF 4956 rm -f conftest.$ac_objext 4957 if { (ac_try="$ac_compile" 4958 case "(($ac_try" in 4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4960 *) ac_try_echo=$ac_try;; 4961 esac 4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4963 (eval "$ac_compile") 2>conftest.er1 4964 ac_status=$? 4965 grep -v '^ *+' conftest.er1 >conftest.err 4966 rm -f conftest.er1 4967 cat conftest.err >&5 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } && { 4970 test -z "$ac_cxx_werror_flag" || 4971 test ! -s conftest.err 4972 } && test -s conftest.$ac_objext; then 4973 : 4974 else 4975 echo "$as_me: failed program was:" >&5 4976 sed 's/^/| /' conftest.$ac_ext >&5 4977 4978 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4979 CXXFLAGS="-g" 4980 cat >conftest.$ac_ext <<_ACEOF 4981 /* confdefs.h. */ 4982 _ACEOF 4983 cat confdefs.h >>conftest.$ac_ext 4984 cat >>conftest.$ac_ext <<_ACEOF 4985 /* end confdefs.h. */ 4986 4987 int 4988 main () 4989 { 4990 4991 ; 4992 return 0; 4993 } 4994 _ACEOF 4995 rm -f conftest.$ac_objext 4996 if { (ac_try="$ac_compile" 4997 case "(($ac_try" in 4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4999 *) ac_try_echo=$ac_try;; 5000 esac 5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5002 (eval "$ac_compile") 2>conftest.er1 5003 ac_status=$? 5004 grep -v '^ *+' conftest.er1 >conftest.err 5005 rm -f conftest.er1 5006 cat conftest.err >&5 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); } && { 5009 test -z "$ac_cxx_werror_flag" || 5010 test ! -s conftest.err 5011 } && test -s conftest.$ac_objext; then 5012 ac_cv_prog_cxx_g=yes 5013 else 5014 echo "$as_me: failed program was:" >&5 5015 sed 's/^/| /' conftest.$ac_ext >&5 5016 5017 5018 fi 5019 5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5021 fi 5022 5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024 fi 5025 5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5028 fi 5029 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5030 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5031 if test "$ac_test_CXXFLAGS" = set; then 5032 CXXFLAGS=$ac_save_CXXFLAGS 5033 elif test $ac_cv_prog_cxx_g = yes; then 5034 if test "$GXX" = yes; then 5035 CXXFLAGS="-g -O2" 5036 else 5037 CXXFLAGS="-g" 5038 fi 5039 else 5040 if test "$GXX" = yes; then 5041 CXXFLAGS="-O2" 5042 else 5043 CXXFLAGS= 5044 fi 5045 fi 5046 ac_ext=cpp 5047 ac_cpp='$CXXCPP $CPPFLAGS' 5048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5051 5052 5053 5054 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5056 (test "X$CXX" != "Xg++"))) ; then 5057 ac_ext=cpp 5058 ac_cpp='$CXXCPP $CPPFLAGS' 5059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5062 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5063 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5064 if test -z "$CXXCPP"; then 5065 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5066 echo $ECHO_N "(cached) $ECHO_C" >&6 5067 else 5068 # Double quotes because CXXCPP needs to be expanded 5069 for CXXCPP in "$CXX -E" "/lib/cpp" 5070 do 5071 ac_preproc_ok=false 5072 for ac_cxx_preproc_warn_flag in '' yes 5073 do 5074 # Use a header file that comes with gcc, so configuring glibc 5075 # with a fresh cross-compiler works. 5076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5077 # <limits.h> exists even on freestanding compilers. 5078 # On the NeXT, cc -E runs the code through the compiler's parser, 5079 # not just through cpp. "Syntax error" is here to catch this case. 5080 cat >conftest.$ac_ext <<_ACEOF 5081 /* confdefs.h. */ 5082 _ACEOF 5083 cat confdefs.h >>conftest.$ac_ext 5084 cat >>conftest.$ac_ext <<_ACEOF 5085 /* end confdefs.h. */ 5086 #ifdef __STDC__ 5087 # include <limits.h> 5088 #else 5089 # include <assert.h> 5090 #endif 5091 Syntax error 5092 _ACEOF 5093 if { (ac_try="$ac_cpp conftest.$ac_ext" 5094 case "(($ac_try" in 5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5096 *) ac_try_echo=$ac_try;; 5097 esac 5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5100 ac_status=$? 5101 grep -v '^ *+' conftest.er1 >conftest.err 5102 rm -f conftest.er1 5103 cat conftest.err >&5 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); } >/dev/null && { 5106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5107 test ! -s conftest.err 5108 }; then 5109 : 5110 else 5111 echo "$as_me: failed program was:" >&5 5112 sed 's/^/| /' conftest.$ac_ext >&5 5113 5114 # Broken: fails on valid input. 5115 continue 5116 fi 5117 5118 rm -f conftest.err conftest.$ac_ext 5119 5120 # OK, works on sane cases. Now check whether nonexistent headers 5121 # can be detected and how. 5122 cat >conftest.$ac_ext <<_ACEOF 5123 /* confdefs.h. */ 5124 _ACEOF 5125 cat confdefs.h >>conftest.$ac_ext 5126 cat >>conftest.$ac_ext <<_ACEOF 5127 /* end confdefs.h. */ 5128 #include <ac_nonexistent.h> 5129 _ACEOF 5130 if { (ac_try="$ac_cpp conftest.$ac_ext" 5131 case "(($ac_try" in 5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5133 *) ac_try_echo=$ac_try;; 5134 esac 5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5137 ac_status=$? 5138 grep -v '^ *+' conftest.er1 >conftest.err 5139 rm -f conftest.er1 5140 cat conftest.err >&5 5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5142 (exit $ac_status); } >/dev/null && { 5143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5144 test ! -s conftest.err 5145 }; then 5146 # Broken: success on invalid input. 5147 continue 5148 else 5149 echo "$as_me: failed program was:" >&5 5150 sed 's/^/| /' conftest.$ac_ext >&5 5151 5152 # Passes both tests. 5153 ac_preproc_ok=: 5154 break 5155 fi 5156 5157 rm -f conftest.err conftest.$ac_ext 5158 5159 done 5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5161 rm -f conftest.err conftest.$ac_ext 5162 if $ac_preproc_ok; then 5163 break 5164 fi 5165 5166 done 5167 ac_cv_prog_CXXCPP=$CXXCPP 5168 5169 fi 5170 CXXCPP=$ac_cv_prog_CXXCPP 5171 else 5172 ac_cv_prog_CXXCPP=$CXXCPP 5173 fi 5174 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 5175 echo "${ECHO_T}$CXXCPP" >&6; } 5176 ac_preproc_ok=false 5177 for ac_cxx_preproc_warn_flag in '' yes 5178 do 5179 # Use a header file that comes with gcc, so configuring glibc 5180 # with a fresh cross-compiler works. 5181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5182 # <limits.h> exists even on freestanding compilers. 5183 # On the NeXT, cc -E runs the code through the compiler's parser, 5184 # not just through cpp. "Syntax error" is here to catch this case. 5185 cat >conftest.$ac_ext <<_ACEOF 5186 /* confdefs.h. */ 5187 _ACEOF 5188 cat confdefs.h >>conftest.$ac_ext 5189 cat >>conftest.$ac_ext <<_ACEOF 5190 /* end confdefs.h. */ 5191 #ifdef __STDC__ 5192 # include <limits.h> 5193 #else 5194 # include <assert.h> 5195 #endif 5196 Syntax error 5197 _ACEOF 5198 if { (ac_try="$ac_cpp conftest.$ac_ext" 5199 case "(($ac_try" in 5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5201 *) ac_try_echo=$ac_try;; 5202 esac 5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5205 ac_status=$? 5206 grep -v '^ *+' conftest.er1 >conftest.err 5207 rm -f conftest.er1 5208 cat conftest.err >&5 5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5210 (exit $ac_status); } >/dev/null && { 5211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5212 test ! -s conftest.err 5213 }; then 5214 : 5215 else 5216 echo "$as_me: failed program was:" >&5 5217 sed 's/^/| /' conftest.$ac_ext >&5 5218 5219 # Broken: fails on valid input. 5220 continue 5221 fi 5222 5223 rm -f conftest.err conftest.$ac_ext 5224 5225 # OK, works on sane cases. Now check whether nonexistent headers 5226 # can be detected and how. 5227 cat >conftest.$ac_ext <<_ACEOF 5228 /* confdefs.h. */ 5229 _ACEOF 5230 cat confdefs.h >>conftest.$ac_ext 5231 cat >>conftest.$ac_ext <<_ACEOF 5232 /* end confdefs.h. */ 5233 #include <ac_nonexistent.h> 5234 _ACEOF 5235 if { (ac_try="$ac_cpp conftest.$ac_ext" 5236 case "(($ac_try" in 5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5238 *) ac_try_echo=$ac_try;; 5239 esac 5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5242 ac_status=$? 5243 grep -v '^ *+' conftest.er1 >conftest.err 5244 rm -f conftest.er1 5245 cat conftest.err >&5 5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5247 (exit $ac_status); } >/dev/null && { 5248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5249 test ! -s conftest.err 5250 }; then 5251 # Broken: success on invalid input. 5252 continue 5253 else 5254 echo "$as_me: failed program was:" >&5 5255 sed 's/^/| /' conftest.$ac_ext >&5 5256 5257 # Passes both tests. 5258 ac_preproc_ok=: 5259 break 5260 fi 5261 5262 rm -f conftest.err conftest.$ac_ext 5263 5264 done 5265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5266 rm -f conftest.err conftest.$ac_ext 5267 if $ac_preproc_ok; then 5268 : 5269 else 5270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5271 See \`config.log' for more details." >&5 5272 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5273 See \`config.log' for more details." >&2;} 5274 { (exit 1); exit 1; }; } 5275 fi 5276 5277 ac_ext=cpp 5278 ac_cpp='$CXXCPP $CPPFLAGS' 5279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5282 5283 fi 5284 5285 5286 ac_ext=f 5287 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5288 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5289 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5290 if test -n "$ac_tool_prefix"; then 5291 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5292 do 5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5295 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5297 if test "${ac_cv_prog_F77+set}" = set; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299 else 5300 if test -n "$F77"; then 5301 ac_cv_prog_F77="$F77" # Let the user override the test. 5302 else 5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304 for as_dir in $PATH 5305 do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5310 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314 done 5315 done 5316 IFS=$as_save_IFS 5317 5318 fi 5319 fi 5320 F77=$ac_cv_prog_F77 5321 if test -n "$F77"; then 5322 { echo "$as_me:$LINENO: result: $F77" >&5 5323 echo "${ECHO_T}$F77" >&6; } 5324 else 5325 { echo "$as_me:$LINENO: result: no" >&5 5326 echo "${ECHO_T}no" >&6; } 5327 fi 5328 5329 5330 test -n "$F77" && break 5331 done 5332 fi 5333 if test -z "$F77"; then 5334 ac_ct_F77=$F77 5335 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5336 do 5337 # Extract the first word of "$ac_prog", so it can be a program name with args. 5338 set dummy $ac_prog; ac_word=$2 5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5341 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5342 echo $ECHO_N "(cached) $ECHO_C" >&6 5343 else 5344 if test -n "$ac_ct_F77"; then 5345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5346 else 5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5348 for as_dir in $PATH 5349 do 5350 IFS=$as_save_IFS 5351 test -z "$as_dir" && as_dir=. 5352 for ac_exec_ext in '' $ac_executable_extensions; do 5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5354 ac_cv_prog_ac_ct_F77="$ac_prog" 5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5356 break 2 5357 fi 5358 done 5359 done 5360 IFS=$as_save_IFS 5361 5362 fi 5363 fi 5364 ac_ct_F77=$ac_cv_prog_ac_ct_F77 5365 if test -n "$ac_ct_F77"; then 5366 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5367 echo "${ECHO_T}$ac_ct_F77" >&6; } 5368 else 5369 { echo "$as_me:$LINENO: result: no" >&5 5370 echo "${ECHO_T}no" >&6; } 5371 fi 5372 5373 5374 test -n "$ac_ct_F77" && break 5375 done 5376 5377 if test "x$ac_ct_F77" = x; then 5378 F77="" 5379 else 5380 case $cross_compiling:$ac_tool_warned in 5381 yes:) 5382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5383 whose name does not start with the host triplet. If you think this 5384 configuration is useful to you, please write to autoconf@gnu.org." >&5 5385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5386 whose name does not start with the host triplet. If you think this 5387 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5388 ac_tool_warned=yes ;; 5389 esac 5390 F77=$ac_ct_F77 5391 fi 5392 fi 5393 5394 5395 # Provide some information about the compiler. 5396 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5397 ac_compiler=`set X $ac_compile; echo $2` 5398 { (ac_try="$ac_compiler --version >&5" 5399 case "(($ac_try" in 5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5401 *) ac_try_echo=$ac_try;; 5402 esac 5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5404 (eval "$ac_compiler --version >&5") 2>&5 5405 ac_status=$? 5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 (exit $ac_status); } 5408 { (ac_try="$ac_compiler -v >&5" 5409 case "(($ac_try" in 5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5411 *) ac_try_echo=$ac_try;; 5412 esac 5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5414 (eval "$ac_compiler -v >&5") 2>&5 5415 ac_status=$? 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); } 5418 { (ac_try="$ac_compiler -V >&5" 5419 case "(($ac_try" in 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5421 *) ac_try_echo=$ac_try;; 5422 esac 5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5424 (eval "$ac_compiler -V >&5") 2>&5 5425 ac_status=$? 5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5427 (exit $ac_status); } 5428 rm -f a.out 5429 5430 # If we don't use `.F' as extension, the preprocessor is not run on the 5431 # input file. (Note that this only needs to work for GNU compilers.) 5432 ac_save_ext=$ac_ext 5433 ac_ext=F 5434 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5435 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5436 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5437 echo $ECHO_N "(cached) $ECHO_C" >&6 5438 else 5439 cat >conftest.$ac_ext <<_ACEOF 5440 program main 5441 #ifndef __GNUC__ 5442 choke me 5443 #endif 5444 5445 end 5446 _ACEOF 5447 rm -f conftest.$ac_objext 5448 if { (ac_try="$ac_compile" 5449 case "(($ac_try" in 5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5451 *) ac_try_echo=$ac_try;; 5452 esac 5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5454 (eval "$ac_compile") 2>conftest.er1 5455 ac_status=$? 5456 grep -v '^ *+' conftest.er1 >conftest.err 5457 rm -f conftest.er1 5458 cat conftest.err >&5 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } && { 5461 test -z "$ac_f77_werror_flag" || 5462 test ! -s conftest.err 5463 } && test -s conftest.$ac_objext; then 5464 ac_compiler_gnu=yes 5465 else 5466 echo "$as_me: failed program was:" >&5 5467 sed 's/^/| /' conftest.$ac_ext >&5 5468 5469 ac_compiler_gnu=no 5470 fi 5471 5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5474 5475 fi 5476 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5478 ac_ext=$ac_save_ext 5479 ac_test_FFLAGS=${FFLAGS+set} 5480 ac_save_FFLAGS=$FFLAGS 5481 FFLAGS= 5482 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5484 if test "${ac_cv_prog_f77_g+set}" = set; then 5485 echo $ECHO_N "(cached) $ECHO_C" >&6 5486 else 5487 FFLAGS=-g 5488 cat >conftest.$ac_ext <<_ACEOF 5489 program main 5490 5491 end 5492 _ACEOF 5493 rm -f conftest.$ac_objext 5494 if { (ac_try="$ac_compile" 5495 case "(($ac_try" in 5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5497 *) ac_try_echo=$ac_try;; 5498 esac 5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5500 (eval "$ac_compile") 2>conftest.er1 5501 ac_status=$? 5502 grep -v '^ *+' conftest.er1 >conftest.err 5503 rm -f conftest.er1 5504 cat conftest.err >&5 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5506 (exit $ac_status); } && { 5507 test -z "$ac_f77_werror_flag" || 5508 test ! -s conftest.err 5509 } && test -s conftest.$ac_objext; then 5510 ac_cv_prog_f77_g=yes 5511 else 5512 echo "$as_me: failed program was:" >&5 5513 sed 's/^/| /' conftest.$ac_ext >&5 5514 5515 ac_cv_prog_f77_g=no 5516 fi 5517 5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5519 5520 fi 5521 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5522 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 5523 if test "$ac_test_FFLAGS" = set; then 5524 FFLAGS=$ac_save_FFLAGS 5525 elif test $ac_cv_prog_f77_g = yes; then 5526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5527 FFLAGS="-g -O2" 5528 else 5529 FFLAGS="-g" 5530 fi 5531 else 5532 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5533 FFLAGS="-O2" 5534 else 5535 FFLAGS= 5536 fi 5537 fi 5538 5539 G77=`test $ac_compiler_gnu = yes && echo yes` 5540 ac_ext=c 5541 ac_cpp='$CPP $CPPFLAGS' 5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5545 5546 5547 5548 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5549 # find the maximum length of command line arguments 5550 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5551 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5552 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5554 else 5555 i=0 5556 teststring="ABCD" 5557 5558 case $build_os in 5559 msdosdjgpp*) 5560 # On DJGPP, this test can blow up pretty badly due to problems in libc 5561 # (any single argument exceeding 2000 bytes causes a buffer overrun 5562 # during glob expansion). Even if it were fixed, the result of this 5563 # check would be larger than it should be. 5564 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5565 ;; 5566 5567 gnu*) 5568 # Under GNU Hurd, this test is not required because there is 5569 # no limit to the length of command line arguments. 5570 # Libtool will interpret -1 as no limit whatsoever 5571 lt_cv_sys_max_cmd_len=-1; 5572 ;; 5573 5574 cygwin* | mingw*) 5575 # On Win9x/ME, this test blows up -- it succeeds, but takes 5576 # about 5 minutes as the teststring grows exponentially. 5577 # Worse, since 9x/ME are not pre-emptively multitasking, 5578 # you end up with a "frozen" computer, even though with patience 5579 # the test eventually succeeds (with a max line length of 256k). 5580 # Instead, let's just punt: use the minimum linelength reported by 5581 # all of the supported platforms: 8192 (on NT/2K/XP). 5582 lt_cv_sys_max_cmd_len=8192; 5583 ;; 5584 5585 amigaos*) 5586 # On AmigaOS with pdksh, this test takes hours, literally. 5587 # So we just punt and use a minimum line length of 8192. 5588 lt_cv_sys_max_cmd_len=8192; 5589 ;; 5590 5591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5592 # This has been around since 386BSD, at least. Likely further. 5593 if test -x /sbin/sysctl; then 5594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5595 elif test -x /usr/sbin/sysctl; then 5596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5597 else 5598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5599 fi 5600 # And add a safety zone 5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5603 ;; 5604 5605 interix*) 5606 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5607 lt_cv_sys_max_cmd_len=196608 5608 ;; 5609 5610 osf*) 5611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5613 # nice to cause kernel panics so lets avoid the loop below. 5614 # First set a reasonable default. 5615 lt_cv_sys_max_cmd_len=16384 5616 # 5617 if test -x /sbin/sysconfig; then 5618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5619 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5620 esac 5621 fi 5622 ;; 5623 sco3.2v5*) 5624 lt_cv_sys_max_cmd_len=102400 5625 ;; 5626 sysv5* | sco5v6* | sysv4.2uw2*) 5627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5628 if test -n "$kargmax"; then 5629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5630 else 5631 lt_cv_sys_max_cmd_len=32768 5632 fi 5633 ;; 5634 *) 5635 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5636 if test -n "$lt_cv_sys_max_cmd_len"; then 5637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5639 else 5640 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5641 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5642 = "XX$teststring") >/dev/null 2>&1 && 5643 new_result=`expr "X$teststring" : ".*" 2>&1` && 5644 lt_cv_sys_max_cmd_len=$new_result && 5645 test $i != 17 # 1/2 MB should be enough 5646 do 5647 i=`expr $i + 1` 5648 teststring=$teststring$teststring 5649 done 5650 teststring= 5651 # Add a significant safety factor because C++ compilers can tack on massive 5652 # amounts of additional arguments before passing them to the linker. 5653 # It appears as though 1/2 is a usable value. 5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5655 fi 5656 ;; 5657 esac 5658 5659 fi 5660 5661 if test -n $lt_cv_sys_max_cmd_len ; then 5662 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5663 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5664 else 5665 { echo "$as_me:$LINENO: result: none" >&5 5666 echo "${ECHO_T}none" >&6; } 5667 fi 5668 5669 5670 5671 5672 5673 # Check for command to grab the raw symbol name followed by C symbol from nm. 5674 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5675 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5676 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5677 echo $ECHO_N "(cached) $ECHO_C" >&6 5678 else 5679 5680 # These are sane defaults that work on at least a few old systems. 5681 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5682 5683 # Character class describing NM global symbol codes. 5684 symcode='[BCDEGRST]' 5685 5686 # Regexp to match symbols that can be accessed directly from C. 5687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5688 5689 # Transform an extracted symbol line into a proper C declaration 5690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5691 5692 # Transform an extracted symbol line into symbol name and symbol address 5693 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5694 5695 # Define system-specific variables. 5696 case $host_os in 5697 aix*) 5698 symcode='[BCDT]' 5699 ;; 5700 cygwin* | mingw* | pw32*) 5701 symcode='[ABCDGISTW]' 5702 ;; 5703 hpux*) # Its linker distinguishes data from code symbols 5704 if test "$host_cpu" = ia64; then 5705 symcode='[ABCDEGRST]' 5706 fi 5707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5708 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5709 ;; 5710 linux* | k*bsd*-gnu) 5711 if test "$host_cpu" = ia64; then 5712 symcode='[ABCDGIRSTW]' 5713 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5714 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5715 fi 5716 ;; 5717 irix* | nonstopux*) 5718 symcode='[BCDEGRST]' 5719 ;; 5720 osf*) 5721 symcode='[BCDEGQRST]' 5722 ;; 5723 solaris*) 5724 symcode='[BDRT]' 5725 ;; 5726 sco3.2v5*) 5727 symcode='[DT]' 5728 ;; 5729 sysv4.2uw2*) 5730 symcode='[DT]' 5731 ;; 5732 sysv5* | sco5v6* | unixware* | OpenUNIX*) 5733 symcode='[ABDT]' 5734 ;; 5735 sysv4) 5736 symcode='[DFNSTU]' 5737 ;; 5738 esac 5739 5740 # Handle CRLF in mingw tool chain 5741 opt_cr= 5742 case $build_os in 5743 mingw*) 5744 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5745 ;; 5746 esac 5747 5748 # If we're using GNU nm, then use its standard symbol codes. 5749 case `$NM -V 2>&1` in 5750 *GNU* | *'with BFD'*) 5751 symcode='[ABCDGIRSTW]' ;; 5752 esac 5753 5754 # Try without a prefix undercore, then with it. 5755 for ac_symprfx in "" "_"; do 5756 5757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5758 symxfrm="\\1 $ac_symprfx\\2 \\2" 5759 5760 # Write the raw and C identifiers. 5761 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5762 5763 # Check to see that the pipe works correctly. 5764 pipe_works=no 5765 5766 rm -f conftest* 5767 cat > conftest.$ac_ext <<EOF 5768 #ifdef __cplusplus 5769 extern "C" { 5770 #endif 5771 char nm_test_var; 5772 void nm_test_func(){} 5773 #ifdef __cplusplus 5774 } 5775 #endif 5776 int main(){nm_test_var='a';nm_test_func();return(0);} 5777 EOF 5778 5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5780 (eval $ac_compile) 2>&5 5781 ac_status=$? 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); }; then 5784 # Now try to grab the symbols. 5785 nlist=conftest.nm 5786 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5787 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5788 ac_status=$? 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5790 (exit $ac_status); } && test -s "$nlist"; then 5791 # Try sorting and uniquifying the output. 5792 if sort "$nlist" | uniq > "$nlist"T; then 5793 mv -f "$nlist"T "$nlist" 5794 else 5795 rm -f "$nlist"T 5796 fi 5797 5798 # Make sure that we snagged all the symbols we need. 5799 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5800 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5801 cat <<EOF > conftest.$ac_ext 5802 #ifdef __cplusplus 5803 extern "C" { 5804 #endif 5805 5806 EOF 5807 # Now generate the symbol file. 5808 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5809 5810 cat <<EOF >> conftest.$ac_ext 5811 #if defined (__STDC__) && __STDC__ 5812 # define lt_ptr_t void * 5813 #else 5814 # define lt_ptr_t char * 5815 # define const 5816 #endif 5817 5818 /* The mapping between symbol names and symbols. */ 5819 const struct { 5820 const char *name; 5821 lt_ptr_t address; 5822 } 5823 lt_preloaded_symbols[] = 5824 { 5825 EOF 5826 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5827 cat <<\EOF >> conftest.$ac_ext 5828 {0, (lt_ptr_t) 0} 5829 }; 5830 5831 #ifdef __cplusplus 5832 } 5833 #endif 5834 EOF 5835 # Now try linking the two files. 5836 mv conftest.$ac_objext conftstm.$ac_objext 5837 lt_save_LIBS="$LIBS" 5838 lt_save_CFLAGS="$CFLAGS" 5839 LIBS="conftstm.$ac_objext" 5840 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5842 (eval $ac_link) 2>&5 5843 ac_status=$? 5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5846 pipe_works=yes 5847 fi 5848 LIBS="$lt_save_LIBS" 5849 CFLAGS="$lt_save_CFLAGS" 5850 else 5851 echo "cannot find nm_test_func in $nlist" >&5 5852 fi 5853 else 5854 echo "cannot find nm_test_var in $nlist" >&5 5855 fi 5856 else 5857 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5858 fi 5859 else 5860 echo "$progname: failed program was:" >&5 5861 cat conftest.$ac_ext >&5 5862 fi 5863 rm -rf conftest* conftst* 5864 5865 # Do not use the global_symbol_pipe unless it works. 5866 if test "$pipe_works" = yes; then 5867 break 5868 else 5869 lt_cv_sys_global_symbol_pipe= 5870 fi 5871 done 5872 5873 fi 5874 5875 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5876 lt_cv_sys_global_symbol_to_cdecl= 5877 fi 5878 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5879 { echo "$as_me:$LINENO: result: failed" >&5 5880 echo "${ECHO_T}failed" >&6; } 5881 else 5882 { echo "$as_me:$LINENO: result: ok" >&5 5883 echo "${ECHO_T}ok" >&6; } 5884 fi 5885 5886 { echo "$as_me:$LINENO: checking for objdir" >&5 5887 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 5888 if test "${lt_cv_objdir+set}" = set; then 5889 echo $ECHO_N "(cached) $ECHO_C" >&6 5890 else 5891 rm -f .libs 2>/dev/null 5892 mkdir .libs 2>/dev/null 5893 if test -d .libs; then 5894 lt_cv_objdir=.libs 5895 else 5896 # MS-DOS does not allow filenames that begin with a dot. 5897 lt_cv_objdir=_libs 5898 fi 5899 rmdir .libs 2>/dev/null 5900 fi 5901 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5902 echo "${ECHO_T}$lt_cv_objdir" >&6; } 5903 objdir=$lt_cv_objdir 5904 5905 5906 5907 5908 5909 case $host_os in 5910 aix3*) 5911 # AIX sometimes has problems with the GCC collect2 program. For some 5912 # reason, if we set the COLLECT_NAMES environment variable, the problems 5913 # vanish in a puff of smoke. 5914 if test "X${COLLECT_NAMES+set}" != Xset; then 5915 COLLECT_NAMES= 5916 export COLLECT_NAMES 5917 fi 5918 ;; 5919 esac 5920 5921 # Sed substitution that helps us do robust quoting. It backslashifies 5922 # metacharacters that are still active within double-quoted strings. 5923 Xsed='sed -e 1s/^X//' 5924 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5925 5926 # Same as above, but do not quote variable references. 5927 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5928 5929 # Sed substitution to delay expansion of an escaped shell variable in a 5930 # double_quote_subst'ed string. 5931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5932 5933 # Sed substitution to avoid accidental globbing in evaled expressions 5934 no_glob_subst='s/\*/\\\*/g' 5935 5936 # Constants: 5937 rm="rm -f" 5938 5939 # Global variables: 5940 default_ofile=libtool 5941 can_build_shared=yes 5942 5943 # All known linkers require a `.a' archive for static linking (except MSVC, 5944 # which needs '.lib'). 5945 libext=a 5946 ltmain="$ac_aux_dir/ltmain.sh" 5947 ofile="$default_ofile" 5948 with_gnu_ld="$lt_cv_prog_gnu_ld" 5949 5950 if test -n "$ac_tool_prefix"; then 5951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5952 set dummy ${ac_tool_prefix}ar; ac_word=$2 5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5955 if test "${ac_cv_prog_AR+set}" = set; then 5956 echo $ECHO_N "(cached) $ECHO_C" >&6 5957 else 5958 if test -n "$AR"; then 5959 ac_cv_prog_AR="$AR" # Let the user override the test. 5960 else 5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962 for as_dir in $PATH 5963 do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5968 ac_cv_prog_AR="${ac_tool_prefix}ar" 5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972 done 5973 done 5974 IFS=$as_save_IFS 5975 5976 fi 5977 fi 5978 AR=$ac_cv_prog_AR 5979 if test -n "$AR"; then 5980 { echo "$as_me:$LINENO: result: $AR" >&5 5981 echo "${ECHO_T}$AR" >&6; } 5982 else 5983 { echo "$as_me:$LINENO: result: no" >&5 5984 echo "${ECHO_T}no" >&6; } 5985 fi 5986 5987 5988 fi 5989 if test -z "$ac_cv_prog_AR"; then 5990 ac_ct_AR=$AR 5991 # Extract the first word of "ar", so it can be a program name with args. 5992 set dummy ar; ac_word=$2 5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5995 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997 else 5998 if test -n "$ac_ct_AR"; then 5999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6000 else 6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002 for as_dir in $PATH 6003 do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6008 ac_cv_prog_ac_ct_AR="ar" 6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012 done 6013 done 6014 IFS=$as_save_IFS 6015 6016 fi 6017 fi 6018 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6019 if test -n "$ac_ct_AR"; then 6020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6021 echo "${ECHO_T}$ac_ct_AR" >&6; } 6022 else 6023 { echo "$as_me:$LINENO: result: no" >&5 6024 echo "${ECHO_T}no" >&6; } 6025 fi 6026 6027 if test "x$ac_ct_AR" = x; then 6028 AR="false" 6029 else 6030 case $cross_compiling:$ac_tool_warned in 6031 yes:) 6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6033 whose name does not start with the host triplet. If you think this 6034 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6036 whose name does not start with the host triplet. If you think this 6037 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6038 ac_tool_warned=yes ;; 6039 esac 6040 AR=$ac_ct_AR 6041 fi 6042 else 6043 AR="$ac_cv_prog_AR" 6044 fi 6045 6046 if test -n "$ac_tool_prefix"; then 6047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6051 if test "${ac_cv_prog_RANLIB+set}" = set; then 6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6053 else 6054 if test -n "$RANLIB"; then 6055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6056 else 6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058 for as_dir in $PATH 6059 do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068 done 6069 done 6070 IFS=$as_save_IFS 6071 6072 fi 6073 fi 6074 RANLIB=$ac_cv_prog_RANLIB 6075 if test -n "$RANLIB"; then 6076 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6077 echo "${ECHO_T}$RANLIB" >&6; } 6078 else 6079 { echo "$as_me:$LINENO: result: no" >&5 6080 echo "${ECHO_T}no" >&6; } 6081 fi 6082 6083 6084 fi 6085 if test -z "$ac_cv_prog_RANLIB"; then 6086 ac_ct_RANLIB=$RANLIB 6087 # Extract the first word of "ranlib", so it can be a program name with args. 6088 set dummy ranlib; ac_word=$2 6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093 else 6094 if test -n "$ac_ct_RANLIB"; then 6095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6096 else 6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098 for as_dir in $PATH 6099 do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6104 ac_cv_prog_ac_ct_RANLIB="ranlib" 6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108 done 6109 done 6110 IFS=$as_save_IFS 6111 6112 fi 6113 fi 6114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6115 if test -n "$ac_ct_RANLIB"; then 6116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6117 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6118 else 6119 { echo "$as_me:$LINENO: result: no" >&5 6120 echo "${ECHO_T}no" >&6; } 6121 fi 6122 6123 if test "x$ac_ct_RANLIB" = x; then 6124 RANLIB=":" 6125 else 6126 case $cross_compiling:$ac_tool_warned in 6127 yes:) 6128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6129 whose name does not start with the host triplet. If you think this 6130 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6132 whose name does not start with the host triplet. If you think this 6133 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6134 ac_tool_warned=yes ;; 6135 esac 6136 RANLIB=$ac_ct_RANLIB 6137 fi 6138 else 6139 RANLIB="$ac_cv_prog_RANLIB" 6140 fi 6141 6142 if test -n "$ac_tool_prefix"; then 6143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6144 set dummy ${ac_tool_prefix}strip; ac_word=$2 6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6147 if test "${ac_cv_prog_STRIP+set}" = set; then 6148 echo $ECHO_N "(cached) $ECHO_C" >&6 6149 else 6150 if test -n "$STRIP"; then 6151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6152 else 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154 for as_dir in $PATH 6155 do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6160 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164 done 6165 done 6166 IFS=$as_save_IFS 6167 6168 fi 6169 fi 6170 STRIP=$ac_cv_prog_STRIP 6171 if test -n "$STRIP"; then 6172 { echo "$as_me:$LINENO: result: $STRIP" >&5 6173 echo "${ECHO_T}$STRIP" >&6; } 6174 else 6175 { echo "$as_me:$LINENO: result: no" >&5 6176 echo "${ECHO_T}no" >&6; } 6177 fi 6178 6179 6180 fi 6181 if test -z "$ac_cv_prog_STRIP"; then 6182 ac_ct_STRIP=$STRIP 6183 # Extract the first word of "strip", so it can be a program name with args. 6184 set dummy strip; ac_word=$2 6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6187 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189 else 6190 if test -n "$ac_ct_STRIP"; then 6191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6192 else 6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194 for as_dir in $PATH 6195 do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6200 ac_cv_prog_ac_ct_STRIP="strip" 6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204 done 6205 done 6206 IFS=$as_save_IFS 6207 6208 fi 6209 fi 6210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6211 if test -n "$ac_ct_STRIP"; then 6212 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6213 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6214 else 6215 { echo "$as_me:$LINENO: result: no" >&5 6216 echo "${ECHO_T}no" >&6; } 6217 fi 6218 6219 if test "x$ac_ct_STRIP" = x; then 6220 STRIP=":" 6221 else 6222 case $cross_compiling:$ac_tool_warned in 6223 yes:) 6224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6225 whose name does not start with the host triplet. If you think this 6226 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6228 whose name does not start with the host triplet. If you think this 6229 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6230 ac_tool_warned=yes ;; 6231 esac 6232 STRIP=$ac_ct_STRIP 6233 fi 6234 else 6235 STRIP="$ac_cv_prog_STRIP" 6236 fi 6237 6238 6239 old_CC="$CC" 6240 old_CFLAGS="$CFLAGS" 6241 6242 # Set sane defaults for various variables 6243 test -z "$AR" && AR=ar 6244 test -z "$AR_FLAGS" && AR_FLAGS=cru 6245 test -z "$AS" && AS=as 6246 test -z "$CC" && CC=cc 6247 test -z "$LTCC" && LTCC=$CC 6248 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6249 test -z "$DLLTOOL" && DLLTOOL=dlltool 6250 test -z "$LD" && LD=ld 6251 test -z "$LN_S" && LN_S="ln -s" 6252 test -z "$MAGIC_CMD" && MAGIC_CMD=file 6253 test -z "$NM" && NM=nm 6254 test -z "$SED" && SED=sed 6255 test -z "$OBJDUMP" && OBJDUMP=objdump 6256 test -z "$RANLIB" && RANLIB=: 6257 test -z "$STRIP" && STRIP=: 6258 test -z "$ac_objext" && ac_objext=o 6259 6260 # Determine commands to create old-style static archives. 6261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6262 old_postinstall_cmds='chmod 644 $oldlib' 6263 old_postuninstall_cmds= 6264 6265 if test -n "$RANLIB"; then 6266 case $host_os in 6267 openbsd*) 6268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6269 ;; 6270 *) 6271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6272 ;; 6273 esac 6274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6275 fi 6276 6277 for cc_temp in $compiler""; do 6278 case $cc_temp in 6279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6281 \-*) ;; 6282 *) break;; 6283 esac 6284 done 6285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6286 6287 6288 # Only perform the check for file, if the check method requires it 6289 case $deplibs_check_method in 6290 file_magic*) 6291 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6292 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6293 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6294 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6295 echo $ECHO_N "(cached) $ECHO_C" >&6 6296 else 6297 case $MAGIC_CMD in 6298 [\\/*] | ?:[\\/]*) 6299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6300 ;; 6301 *) 6302 lt_save_MAGIC_CMD="$MAGIC_CMD" 6303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6305 for ac_dir in $ac_dummy; do 6306 IFS="$lt_save_ifs" 6307 test -z "$ac_dir" && ac_dir=. 6308 if test -f $ac_dir/${ac_tool_prefix}file; then 6309 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6310 if test -n "$file_magic_test_file"; then 6311 case $deplibs_check_method in 6312 "file_magic "*) 6313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6316 $EGREP "$file_magic_regex" > /dev/null; then 6317 : 6318 else 6319 cat <<EOF 1>&2 6320 6321 *** Warning: the command libtool uses to detect shared libraries, 6322 *** $file_magic_cmd, produces output that libtool cannot recognize. 6323 *** The result is that libtool may fail to recognize shared libraries 6324 *** as such. This will affect the creation of libtool libraries that 6325 *** depend on shared libraries, but programs linked with such libtool 6326 *** libraries will work regardless of this problem. Nevertheless, you 6327 *** may want to report the problem to your system manager and/or to 6328 *** bug-libtool@gnu.org 6329 6330 EOF 6331 fi ;; 6332 esac 6333 fi 6334 break 6335 fi 6336 done 6337 IFS="$lt_save_ifs" 6338 MAGIC_CMD="$lt_save_MAGIC_CMD" 6339 ;; 6340 esac 6341 fi 6342 6343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6344 if test -n "$MAGIC_CMD"; then 6345 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6346 echo "${ECHO_T}$MAGIC_CMD" >&6; } 6347 else 6348 { echo "$as_me:$LINENO: result: no" >&5 6349 echo "${ECHO_T}no" >&6; } 6350 fi 6351 6352 if test -z "$lt_cv_path_MAGIC_CMD"; then 6353 if test -n "$ac_tool_prefix"; then 6354 { echo "$as_me:$LINENO: checking for file" >&5 6355 echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6356 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6357 echo $ECHO_N "(cached) $ECHO_C" >&6 6358 else 6359 case $MAGIC_CMD in 6360 [\\/*] | ?:[\\/]*) 6361 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6362 ;; 6363 *) 6364 lt_save_MAGIC_CMD="$MAGIC_CMD" 6365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6366 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6367 for ac_dir in $ac_dummy; do 6368 IFS="$lt_save_ifs" 6369 test -z "$ac_dir" && ac_dir=. 6370 if test -f $ac_dir/file; then 6371 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6372 if test -n "$file_magic_test_file"; then 6373 case $deplibs_check_method in 6374 "file_magic "*) 6375 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6377 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6378 $EGREP "$file_magic_regex" > /dev/null; then 6379 : 6380 else 6381 cat <<EOF 1>&2 6382 6383 *** Warning: the command libtool uses to detect shared libraries, 6384 *** $file_magic_cmd, produces output that libtool cannot recognize. 6385 *** The result is that libtool may fail to recognize shared libraries 6386 *** as such. This will affect the creation of libtool libraries that 6387 *** depend on shared libraries, but programs linked with such libtool 6388 *** libraries will work regardless of this problem. Nevertheless, you 6389 *** may want to report the problem to your system manager and/or to 6390 *** bug-libtool@gnu.org 6391 6392 EOF 6393 fi ;; 6394 esac 6395 fi 6396 break 6397 fi 6398 done 6399 IFS="$lt_save_ifs" 6400 MAGIC_CMD="$lt_save_MAGIC_CMD" 6401 ;; 6402 esac 6403 fi 6404 6405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6406 if test -n "$MAGIC_CMD"; then 6407 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6408 echo "${ECHO_T}$MAGIC_CMD" >&6; } 6409 else 6410 { echo "$as_me:$LINENO: result: no" >&5 6411 echo "${ECHO_T}no" >&6; } 6412 fi 6413 6414 else 6415 MAGIC_CMD=: 6416 fi 6417 fi 6418 6419 fi 6420 ;; 6421 esac 6422 6423 6424 case $host_os in 6425 rhapsody* | darwin*) 6426 if test -n "$ac_tool_prefix"; then 6427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6428 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6429 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6431 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6432 echo $ECHO_N "(cached) $ECHO_C" >&6 6433 else 6434 if test -n "$DSYMUTIL"; then 6435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6436 else 6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438 for as_dir in $PATH 6439 do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448 done 6449 done 6450 IFS=$as_save_IFS 6451 6452 fi 6453 fi 6454 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6455 if test -n "$DSYMUTIL"; then 6456 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6457 echo "${ECHO_T}$DSYMUTIL" >&6; } 6458 else 6459 { echo "$as_me:$LINENO: result: no" >&5 6460 echo "${ECHO_T}no" >&6; } 6461 fi 6462 6463 6464 fi 6465 if test -z "$ac_cv_prog_DSYMUTIL"; then 6466 ac_ct_DSYMUTIL=$DSYMUTIL 6467 # Extract the first word of "dsymutil", so it can be a program name with args. 6468 set dummy dsymutil; ac_word=$2 6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6471 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6472 echo $ECHO_N "(cached) $ECHO_C" >&6 6473 else 6474 if test -n "$ac_ct_DSYMUTIL"; then 6475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6476 else 6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478 for as_dir in $PATH 6479 do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488 done 6489 done 6490 IFS=$as_save_IFS 6491 6492 fi 6493 fi 6494 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6495 if test -n "$ac_ct_DSYMUTIL"; then 6496 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6497 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 6498 else 6499 { echo "$as_me:$LINENO: result: no" >&5 6500 echo "${ECHO_T}no" >&6; } 6501 fi 6502 6503 if test "x$ac_ct_DSYMUTIL" = x; then 6504 DSYMUTIL=":" 6505 else 6506 case $cross_compiling:$ac_tool_warned in 6507 yes:) 6508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6509 whose name does not start with the host triplet. If you think this 6510 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6512 whose name does not start with the host triplet. If you think this 6513 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6514 ac_tool_warned=yes ;; 6515 esac 6516 DSYMUTIL=$ac_ct_DSYMUTIL 6517 fi 6518 else 6519 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6520 fi 6521 6522 if test -n "$ac_tool_prefix"; then 6523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6524 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6527 if test "${ac_cv_prog_NMEDIT+set}" = set; then 6528 echo $ECHO_N "(cached) $ECHO_C" >&6 6529 else 6530 if test -n "$NMEDIT"; then 6531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6532 else 6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534 for as_dir in $PATH 6535 do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544 done 6545 done 6546 IFS=$as_save_IFS 6547 6548 fi 6549 fi 6550 NMEDIT=$ac_cv_prog_NMEDIT 6551 if test -n "$NMEDIT"; then 6552 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 6553 echo "${ECHO_T}$NMEDIT" >&6; } 6554 else 6555 { echo "$as_me:$LINENO: result: no" >&5 6556 echo "${ECHO_T}no" >&6; } 6557 fi 6558 6559 6560 fi 6561 if test -z "$ac_cv_prog_NMEDIT"; then 6562 ac_ct_NMEDIT=$NMEDIT 6563 # Extract the first word of "nmedit", so it can be a program name with args. 6564 set dummy nmedit; ac_word=$2 6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6567 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569 else 6570 if test -n "$ac_ct_NMEDIT"; then 6571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6572 else 6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574 for as_dir in $PATH 6575 do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584 done 6585 done 6586 IFS=$as_save_IFS 6587 6588 fi 6589 fi 6590 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6591 if test -n "$ac_ct_NMEDIT"; then 6592 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6593 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 6594 else 6595 { echo "$as_me:$LINENO: result: no" >&5 6596 echo "${ECHO_T}no" >&6; } 6597 fi 6598 6599 if test "x$ac_ct_NMEDIT" = x; then 6600 NMEDIT=":" 6601 else 6602 case $cross_compiling:$ac_tool_warned in 6603 yes:) 6604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6605 whose name does not start with the host triplet. If you think this 6606 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6608 whose name does not start with the host triplet. If you think this 6609 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6610 ac_tool_warned=yes ;; 6611 esac 6612 NMEDIT=$ac_ct_NMEDIT 6613 fi 6614 else 6615 NMEDIT="$ac_cv_prog_NMEDIT" 6616 fi 6617 6618 6619 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6620 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6621 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6622 echo $ECHO_N "(cached) $ECHO_C" >&6 6623 else 6624 lt_cv_apple_cc_single_mod=no 6625 if test -z "${LT_MULTI_MODULE}"; then 6626 # By default we will add the -single_module flag. You can override 6627 # by either setting the environment variable LT_MULTI_MODULE 6628 # non-empty at configure time, or by adding -multi_module to the 6629 # link flags. 6630 echo "int foo(void){return 1;}" > conftest.c 6631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6632 -dynamiclib ${wl}-single_module conftest.c 6633 if test -f libconftest.dylib; then 6634 lt_cv_apple_cc_single_mod=yes 6635 rm -rf libconftest.dylib* 6636 fi 6637 rm conftest.c 6638 fi 6639 fi 6640 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6641 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6642 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6643 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6644 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646 else 6647 lt_cv_ld_exported_symbols_list=no 6648 save_LDFLAGS=$LDFLAGS 6649 echo "_main" > conftest.sym 6650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6651 cat >conftest.$ac_ext <<_ACEOF 6652 /* confdefs.h. */ 6653 _ACEOF 6654 cat confdefs.h >>conftest.$ac_ext 6655 cat >>conftest.$ac_ext <<_ACEOF 6656 /* end confdefs.h. */ 6657 6658 int 6659 main () 6660 { 6661 6662 ; 6663 return 0; 6664 } 6665 _ACEOF 6666 rm -f conftest.$ac_objext conftest$ac_exeext 6667 if { (ac_try="$ac_link" 6668 case "(($ac_try" in 6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6670 *) ac_try_echo=$ac_try;; 6671 esac 6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6673 (eval "$ac_link") 2>conftest.er1 6674 ac_status=$? 6675 grep -v '^ *+' conftest.er1 >conftest.err 6676 rm -f conftest.er1 6677 cat conftest.err >&5 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); } && { 6680 test -z "$ac_c_werror_flag" || 6681 test ! -s conftest.err 6682 } && test -s conftest$ac_exeext && 6683 $as_test_x conftest$ac_exeext; then 6684 lt_cv_ld_exported_symbols_list=yes 6685 else 6686 echo "$as_me: failed program was:" >&5 6687 sed 's/^/| /' conftest.$ac_ext >&5 6688 6689 lt_cv_ld_exported_symbols_list=no 6690 fi 6691 6692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6693 conftest$ac_exeext conftest.$ac_ext 6694 LDFLAGS="$save_LDFLAGS" 6695 6696 fi 6697 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6698 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6699 case $host_os in 6700 rhapsody* | darwin1.[0123]) 6701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6702 darwin1.*) 6703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6704 darwin*) 6705 # if running on 10.5 or later, the deployment target defaults 6706 # to the OS version, if on x86, and 10.4, the deployment 6707 # target defaults to 10.4. Don't you love it? 6708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6709 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6711 10.[012]*) 6712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6713 10.*) 6714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6715 esac 6716 ;; 6717 esac 6718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6719 _lt_dar_single_mod='$single_module' 6720 fi 6721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6723 else 6724 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 6725 fi 6726 if test "$DSYMUTIL" != ":"; then 6727 _lt_dsymutil="~$DSYMUTIL \$lib || :" 6728 else 6729 _lt_dsymutil= 6730 fi 6731 ;; 6732 esac 6733 6734 6735 enable_dlopen=no 6736 enable_win32_dll=no 6737 6738 # Check whether --enable-libtool-lock was given. 6739 if test "${enable_libtool_lock+set}" = set; then 6740 enableval=$enable_libtool_lock; 6741 fi 6742 6743 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6744 6745 6746 # Check whether --with-pic was given. 6747 if test "${with_pic+set}" = set; then 6748 withval=$with_pic; pic_mode="$withval" 6749 else 6750 pic_mode=default 6751 fi 6752 6753 test -z "$pic_mode" && pic_mode=default 6754 6755 # Use C for the default configuration in the libtool script 6756 tagname= 6757 lt_save_CC="$CC" 6758 ac_ext=c 6759 ac_cpp='$CPP $CPPFLAGS' 6760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6762 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6763 6764 6765 # Source file extension for C test sources. 6766 ac_ext=c 6767 6768 # Object file extension for compiled C test sources. 6769 objext=o 6770 objext=$objext 6771 6772 # Code to be used in simple compile tests 6773 lt_simple_compile_test_code="int some_variable = 0;" 6774 6775 # Code to be used in simple link tests 6776 lt_simple_link_test_code='int main(){return(0);}' 6777 6778 6779 # If no C compiler was specified, use CC. 6780 LTCC=${LTCC-"$CC"} 6781 6782 # If no C compiler flags were specified, use CFLAGS. 6783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6784 6785 # Allow CC to be a program name with arguments. 6786 compiler=$CC 6787 6788 6789 # save warnings/boilerplate of simple test code 6790 ac_outfile=conftest.$ac_objext 6791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6793 _lt_compiler_boilerplate=`cat conftest.err` 6794 $rm conftest* 6795 6796 ac_outfile=conftest.$ac_objext 6797 echo "$lt_simple_link_test_code" >conftest.$ac_ext 6798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6799 _lt_linker_boilerplate=`cat conftest.err` 6800 $rm -r conftest* 6801 6802 6803 ## CAVEAT EMPTOR: 6804 ## There is no encapsulation within the following macros, do not change 6805 ## the running order or otherwise move them around unless you know exactly 6806 ## what you are doing... 6807 6808 lt_prog_compiler_no_builtin_flag= 6809 6810 if test "$GCC" = yes; then 6811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6812 6813 6814 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6815 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 6816 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6817 echo $ECHO_N "(cached) $ECHO_C" >&6 6818 else 6819 lt_cv_prog_compiler_rtti_exceptions=no 6820 ac_outfile=conftest.$ac_objext 6821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6822 lt_compiler_flag="-fno-rtti -fno-exceptions" 6823 # Insert the option either (1) after the last *FLAGS variable, or 6824 # (2) before a word containing "conftest.", or (3) at the end. 6825 # Note that $ac_compile itself does not contain backslashes and begins 6826 # with a dollar sign (not a hyphen), so the echo should work correctly. 6827 # The option is referenced via a variable to avoid confusing sed. 6828 lt_compile=`echo "$ac_compile" | $SED \ 6829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6831 -e 's:$: $lt_compiler_flag:'` 6832 (eval echo "\"\$as_me:6832: $lt_compile\"" >&5) 6833 (eval "$lt_compile" 2>conftest.err) 6834 ac_status=$? 6835 cat conftest.err >&5 6836 echo "$as_me:6836: \$? = $ac_status" >&5 6837 if (exit $ac_status) && test -s "$ac_outfile"; then 6838 # The compiler can only warn and ignore the option if not recognized 6839 # So say no if there are warnings other than the usual output. 6840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6843 lt_cv_prog_compiler_rtti_exceptions=yes 6844 fi 6845 fi 6846 $rm conftest* 6847 6848 fi 6849 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6850 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6851 6852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6854 else 6855 : 6856 fi 6857 6858 fi 6859 6860 lt_prog_compiler_wl= 6861 lt_prog_compiler_pic= 6862 lt_prog_compiler_static= 6863 6864 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6865 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 6866 6867 if test "$GCC" = yes; then 6868 lt_prog_compiler_wl='-Wl,' 6869 lt_prog_compiler_static='-static' 6870 6871 case $host_os in 6872 aix*) 6873 # All AIX code is PIC. 6874 if test "$host_cpu" = ia64; then 6875 # AIX 5 now supports IA64 processor 6876 lt_prog_compiler_static='-Bstatic' 6877 fi 6878 ;; 6879 6880 amigaos*) 6881 # FIXME: we need at least 68020 code to build shared libraries, but 6882 # adding the `-m68020' flag to GCC prevents building anything better, 6883 # like `-m68040'. 6884 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6885 ;; 6886 6887 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6888 # PIC is the default for these OSes. 6889 ;; 6890 6891 mingw* | cygwin* | pw32* | os2*) 6892 # This hack is so that the source file can tell whether it is being 6893 # built for inclusion in a dll (and should export symbols for example). 6894 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6895 # (--disable-auto-import) libraries 6896 lt_prog_compiler_pic='-DDLL_EXPORT' 6897 ;; 6898 6899 darwin* | rhapsody*) 6900 # PIC is the default on this platform 6901 # Common symbols not allowed in MH_DYLIB files 6902 lt_prog_compiler_pic='-fno-common' 6903 ;; 6904 6905 interix[3-9]*) 6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6907 # Instead, we relocate shared libraries at runtime. 6908 ;; 6909 6910 msdosdjgpp*) 6911 # Just because we use GCC doesn't mean we suddenly get shared libraries 6912 # on systems that don't support them. 6913 lt_prog_compiler_can_build_shared=no 6914 enable_shared=no 6915 ;; 6916 6917 sysv4*MP*) 6918 if test -d /usr/nec; then 6919 lt_prog_compiler_pic=-Kconform_pic 6920 fi 6921 ;; 6922 6923 hpux*) 6924 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6925 # not for PA HP-UX. 6926 case $host_cpu in 6927 hppa*64*|ia64*) 6928 # +Z the default 6929 ;; 6930 *) 6931 lt_prog_compiler_pic='-fPIC' 6932 ;; 6933 esac 6934 ;; 6935 6936 *) 6937 lt_prog_compiler_pic='-fPIC' 6938 ;; 6939 esac 6940 else 6941 # PORTME Check for flag to pass linker flags through the system compiler. 6942 case $host_os in 6943 aix*) 6944 lt_prog_compiler_wl='-Wl,' 6945 if test "$host_cpu" = ia64; then 6946 # AIX 5 now supports IA64 processor 6947 lt_prog_compiler_static='-Bstatic' 6948 else 6949 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6950 fi 6951 ;; 6952 darwin*) 6953 # PIC is the default on this platform 6954 # Common symbols not allowed in MH_DYLIB files 6955 case $cc_basename in 6956 xlc*) 6957 lt_prog_compiler_pic='-qnocommon' 6958 lt_prog_compiler_wl='-Wl,' 6959 ;; 6960 esac 6961 ;; 6962 6963 mingw* | cygwin* | pw32* | os2*) 6964 # This hack is so that the source file can tell whether it is being 6965 # built for inclusion in a dll (and should export symbols for example). 6966 lt_prog_compiler_pic='-DDLL_EXPORT' 6967 ;; 6968 6969 hpux9* | hpux10* | hpux11*) 6970 lt_prog_compiler_wl='-Wl,' 6971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6972 # not for PA HP-UX. 6973 case $host_cpu in 6974 hppa*64*|ia64*) 6975 # +Z the default 6976 ;; 6977 *) 6978 lt_prog_compiler_pic='+Z' 6979 ;; 6980 esac 6981 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6982 lt_prog_compiler_static='${wl}-a ${wl}archive' 6983 ;; 6984 6985 irix5* | irix6* | nonstopux*) 6986 lt_prog_compiler_wl='-Wl,' 6987 # PIC (with -KPIC) is the default. 6988 lt_prog_compiler_static='-non_shared' 6989 ;; 6990 6991 newsos6) 6992 lt_prog_compiler_pic='-KPIC' 6993 lt_prog_compiler_static='-Bstatic' 6994 ;; 6995 6996 linux* | k*bsd*-gnu) 6997 case $cc_basename in 6998 icc* | ecc*) 6999 lt_prog_compiler_wl='-Wl,' 7000 lt_prog_compiler_pic='-KPIC' 7001 lt_prog_compiler_static='-static' 7002 ;; 7003 pgcc* | pgf77* | pgf90* | pgf95*) 7004 # Portland Group compilers (*not* the Pentium gcc compiler, 7005 # which looks to be a dead project) 7006 lt_prog_compiler_wl='-Wl,' 7007 lt_prog_compiler_pic='-fpic' 7008 lt_prog_compiler_static='-Bstatic' 7009 ;; 7010 ccc*) 7011 lt_prog_compiler_wl='-Wl,' 7012 # All Alpha code is PIC. 7013 lt_prog_compiler_static='-non_shared' 7014 ;; 7015 *) 7016 case `$CC -V 2>&1 | sed 5q` in 7017 *Sun\ C*) 7018 # Sun C 5.9 7019 lt_prog_compiler_pic='-KPIC' 7020 lt_prog_compiler_static='-Bstatic' 7021 lt_prog_compiler_wl='-Wl,' 7022 ;; 7023 *Sun\ F*) 7024 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7025 lt_prog_compiler_pic='-KPIC' 7026 lt_prog_compiler_static='-Bstatic' 7027 lt_prog_compiler_wl='' 7028 ;; 7029 esac 7030 ;; 7031 esac 7032 ;; 7033 7034 osf3* | osf4* | osf5*) 7035 lt_prog_compiler_wl='-Wl,' 7036 # All OSF/1 code is PIC. 7037 lt_prog_compiler_static='-non_shared' 7038 ;; 7039 7040 rdos*) 7041 lt_prog_compiler_static='-non_shared' 7042 ;; 7043 7044 solaris*) 7045 lt_prog_compiler_pic='-KPIC' 7046 lt_prog_compiler_static='-Bstatic' 7047 case $cc_basename in 7048 f77* | f90* | f95*) 7049 lt_prog_compiler_wl='-Qoption ld ';; 7050 *) 7051 lt_prog_compiler_wl='-Wl,';; 7052 esac 7053 ;; 7054 7055 sunos4*) 7056 lt_prog_compiler_wl='-Qoption ld ' 7057 lt_prog_compiler_pic='-PIC' 7058 lt_prog_compiler_static='-Bstatic' 7059 ;; 7060 7061 sysv4 | sysv4.2uw2* | sysv4.3*) 7062 lt_prog_compiler_wl='-Wl,' 7063 lt_prog_compiler_pic='-KPIC' 7064 lt_prog_compiler_static='-Bstatic' 7065 ;; 7066 7067 sysv4*MP*) 7068 if test -d /usr/nec ;then 7069 lt_prog_compiler_pic='-Kconform_pic' 7070 lt_prog_compiler_static='-Bstatic' 7071 fi 7072 ;; 7073 7074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7075 lt_prog_compiler_wl='-Wl,' 7076 lt_prog_compiler_pic='-KPIC' 7077 lt_prog_compiler_static='-Bstatic' 7078 ;; 7079 7080 unicos*) 7081 lt_prog_compiler_wl='-Wl,' 7082 lt_prog_compiler_can_build_shared=no 7083 ;; 7084 7085 uts4*) 7086 lt_prog_compiler_pic='-pic' 7087 lt_prog_compiler_static='-Bstatic' 7088 ;; 7089 7090 *) 7091 lt_prog_compiler_can_build_shared=no 7092 ;; 7093 esac 7094 fi 7095 7096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7097 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7098 7099 # 7100 # Check to make sure the PIC flag actually works. 7101 # 7102 if test -n "$lt_prog_compiler_pic"; then 7103 7104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7106 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7107 echo $ECHO_N "(cached) $ECHO_C" >&6 7108 else 7109 lt_cv_prog_compiler_pic_works=no 7110 ac_outfile=conftest.$ac_objext 7111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7113 # Insert the option either (1) after the last *FLAGS variable, or 7114 # (2) before a word containing "conftest.", or (3) at the end. 7115 # Note that $ac_compile itself does not contain backslashes and begins 7116 # with a dollar sign (not a hyphen), so the echo should work correctly. 7117 # The option is referenced via a variable to avoid confusing sed. 7118 lt_compile=`echo "$ac_compile" | $SED \ 7119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7121 -e 's:$: $lt_compiler_flag:'` 7122 (eval echo "\"\$as_me:7122: $lt_compile\"" >&5) 7123 (eval "$lt_compile" 2>conftest.err) 7124 ac_status=$? 7125 cat conftest.err >&5 7126 echo "$as_me:7126: \$? = $ac_status" >&5 7127 if (exit $ac_status) && test -s "$ac_outfile"; then 7128 # The compiler can only warn and ignore the option if not recognized 7129 # So say no if there are warnings other than the usual output. 7130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7133 lt_cv_prog_compiler_pic_works=yes 7134 fi 7135 fi 7136 $rm conftest* 7137 7138 fi 7139 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7140 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7141 7142 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7143 case $lt_prog_compiler_pic in 7144 "" | " "*) ;; 7145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7146 esac 7147 else 7148 lt_prog_compiler_pic= 7149 lt_prog_compiler_can_build_shared=no 7150 fi 7151 7152 fi 7153 case $host_os in 7154 # For platforms which do not support PIC, -DPIC is meaningless: 7155 *djgpp*) 7156 lt_prog_compiler_pic= 7157 ;; 7158 *) 7159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7160 ;; 7161 esac 7162 7163 # 7164 # Check to make sure the static flag actually works. 7165 # 7166 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7169 if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7170 echo $ECHO_N "(cached) $ECHO_C" >&6 7171 else 7172 lt_cv_prog_compiler_static_works=no 7173 save_LDFLAGS="$LDFLAGS" 7174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7175 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7177 # The linker can only warn and ignore the option if not recognized 7178 # So say no if there are warnings 7179 if test -s conftest.err; then 7180 # Append any errors to the config.log. 7181 cat conftest.err 1>&5 7182 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7184 if diff conftest.exp conftest.er2 >/dev/null; then 7185 lt_cv_prog_compiler_static_works=yes 7186 fi 7187 else 7188 lt_cv_prog_compiler_static_works=yes 7189 fi 7190 fi 7191 $rm -r conftest* 7192 LDFLAGS="$save_LDFLAGS" 7193 7194 fi 7195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7196 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7197 7198 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7199 : 7200 else 7201 lt_prog_compiler_static= 7202 fi 7203 7204 7205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7208 echo $ECHO_N "(cached) $ECHO_C" >&6 7209 else 7210 lt_cv_prog_compiler_c_o=no 7211 $rm -r conftest 2>/dev/null 7212 mkdir conftest 7213 cd conftest 7214 mkdir out 7215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7216 7217 lt_compiler_flag="-o out/conftest2.$ac_objext" 7218 # Insert the option either (1) after the last *FLAGS variable, or 7219 # (2) before a word containing "conftest.", or (3) at the end. 7220 # Note that $ac_compile itself does not contain backslashes and begins 7221 # with a dollar sign (not a hyphen), so the echo should work correctly. 7222 lt_compile=`echo "$ac_compile" | $SED \ 7223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7225 -e 's:$: $lt_compiler_flag:'` 7226 (eval echo "\"\$as_me:7226: $lt_compile\"" >&5) 7227 (eval "$lt_compile" 2>out/conftest.err) 7228 ac_status=$? 7229 cat out/conftest.err >&5 7230 echo "$as_me:7230: \$? = $ac_status" >&5 7231 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7232 then 7233 # The compiler can only warn and ignore the option if not recognized 7234 # So say no if there are warnings 7235 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7238 lt_cv_prog_compiler_c_o=yes 7239 fi 7240 fi 7241 chmod u+w . 2>&5 7242 $rm conftest* 7243 # SGI C++ compiler will create directory out/ii_files/ for 7244 # template instantiation 7245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7246 $rm out/* && rmdir out 7247 cd .. 7248 rmdir conftest 7249 $rm conftest* 7250 7251 fi 7252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7254 7255 7256 hard_links="nottested" 7257 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7258 # do not overwrite the value of need_locks provided by the user 7259 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7261 hard_links=yes 7262 $rm conftest* 7263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7264 touch conftest.a 7265 ln conftest.a conftest.b 2>&5 || hard_links=no 7266 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7267 { echo "$as_me:$LINENO: result: $hard_links" >&5 7268 echo "${ECHO_T}$hard_links" >&6; } 7269 if test "$hard_links" = no; then 7270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7272 need_locks=warn 7273 fi 7274 else 7275 need_locks=no 7276 fi 7277 7278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7280 7281 runpath_var= 7282 allow_undefined_flag= 7283 enable_shared_with_static_runtimes=no 7284 archive_cmds= 7285 archive_expsym_cmds= 7286 old_archive_From_new_cmds= 7287 old_archive_from_expsyms_cmds= 7288 export_dynamic_flag_spec= 7289 whole_archive_flag_spec= 7290 thread_safe_flag_spec= 7291 hardcode_libdir_flag_spec= 7292 hardcode_libdir_flag_spec_ld= 7293 hardcode_libdir_separator= 7294 hardcode_direct=no 7295 hardcode_minus_L=no 7296 hardcode_shlibpath_var=unsupported 7297 link_all_deplibs=unknown 7298 hardcode_automatic=no 7299 module_cmds= 7300 module_expsym_cmds= 7301 always_export_symbols=no 7302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7303 # include_expsyms should be a list of space-separated symbols to be *always* 7304 # included in the symbol list 7305 include_expsyms= 7306 # exclude_expsyms can be an extended regexp of symbols to exclude 7307 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7309 # as well as any symbol that contains `d'. 7310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7312 # platforms (ab)use it in PIC code, but their linkers get confused if 7313 # the symbol is explicitly referenced. Since portable code cannot 7314 # rely on this symbol name, it's probably fine to never include it in 7315 # preloaded symbol tables. 7316 # Exclude shared library initialization/finalization symbols. 7317 extract_expsyms_cmds= 7318 # Just being paranoid about ensuring that cc_basename is set. 7319 for cc_temp in $compiler""; do 7320 case $cc_temp in 7321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7323 \-*) ;; 7324 *) break;; 7325 esac 7326 done 7327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7328 7329 case $host_os in 7330 cygwin* | mingw* | pw32*) 7331 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7332 # When not using gcc, we currently assume that we are using 7333 # Microsoft Visual C++. 7334 if test "$GCC" != yes; then 7335 with_gnu_ld=no 7336 fi 7337 ;; 7338 interix*) 7339 # we just hope/assume this is gcc and not c89 (= MSVC++) 7340 with_gnu_ld=yes 7341 ;; 7342 openbsd*) 7343 with_gnu_ld=no 7344 ;; 7345 esac 7346 7347 ld_shlibs=yes 7348 if test "$with_gnu_ld" = yes; then 7349 # If archive_cmds runs LD, not CC, wlarc should be empty 7350 wlarc='${wl}' 7351 7352 # Set some defaults for GNU ld with shared library support. These 7353 # are reset later if shared libraries are not supported. Putting them 7354 # here allows them to be overridden if necessary. 7355 runpath_var=LD_RUN_PATH 7356 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7357 export_dynamic_flag_spec='${wl}--export-dynamic' 7358 # ancient GNU ld didn't support --whole-archive et. al. 7359 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7360 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7361 else 7362 whole_archive_flag_spec= 7363 fi 7364 supports_anon_versioning=no 7365 case `$LD -v 2>/dev/null` in 7366 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7367 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7368 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7369 *\ 2.11.*) ;; # other 2.11 versions 7370 *) supports_anon_versioning=yes ;; 7371 esac 7372 7373 # See if GNU ld supports shared libraries. 7374 case $host_os in 7375 aix[3-9]*) 7376 # On AIX/PPC, the GNU linker is very broken 7377 if test "$host_cpu" != ia64; then 7378 ld_shlibs=no 7379 cat <<EOF 1>&2 7380 7381 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 7382 *** to be unable to reliably create shared libraries on AIX. 7383 *** Therefore, libtool is disabling shared libraries support. If you 7384 *** really care for shared libraries, you may want to modify your PATH 7385 *** so that a non-GNU linker is found, and then restart. 7386 7387 EOF 7388 fi 7389 ;; 7390 7391 amigaos*) 7392 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)' 7393 hardcode_libdir_flag_spec='-L$libdir' 7394 hardcode_minus_L=yes 7395 7396 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 7397 # that the semantics of dynamic libraries on AmigaOS, at least up 7398 # to version 4, is to share data among multiple programs linked 7399 # with the same dynamic library. Since this doesn't match the 7400 # behavior of shared libraries on other platforms, we can't use 7401 # them. 7402 ld_shlibs=no 7403 ;; 7404 7405 beos*) 7406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7407 allow_undefined_flag=unsupported 7408 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 7409 # support --undefined. This deserves some investigation. FIXME 7410 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7411 else 7412 ld_shlibs=no 7413 fi 7414 ;; 7415 7416 cygwin* | mingw* | pw32*) 7417 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7418 # as there is no search path for DLLs. 7419 hardcode_libdir_flag_spec='-L$libdir' 7420 allow_undefined_flag=unsupported 7421 always_export_symbols=no 7422 enable_shared_with_static_runtimes=yes 7423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7424 7425 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7427 # If the export-symbols file already is a .def file (1st line 7428 # is EXPORTS), use it as is; otherwise, prepend... 7429 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7430 cp $export_symbols $output_objdir/$soname.def; 7431 else 7432 echo EXPORTS > $output_objdir/$soname.def; 7433 cat $export_symbols >> $output_objdir/$soname.def; 7434 fi~ 7435 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7436 else 7437 ld_shlibs=no 7438 fi 7439 ;; 7440 7441 interix[3-9]*) 7442 hardcode_direct=no 7443 hardcode_shlibpath_var=no 7444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7445 export_dynamic_flag_spec='${wl}-E' 7446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7447 # Instead, shared libraries are loaded at an image base (0x10000000 by 7448 # default) and relocated if they conflict, which is a slow very memory 7449 # consuming and fragmenting process. To avoid this, we pick a random, 7450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7451 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7453 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' 7454 ;; 7455 7456 gnu* | linux* | k*bsd*-gnu) 7457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7458 tmp_addflag= 7459 case $cc_basename,$host_cpu in 7460 pgcc*) # Portland Group C compiler 7461 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7462 tmp_addflag=' $pic_flag' 7463 ;; 7464 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7465 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7466 tmp_addflag=' $pic_flag -Mnomain' ;; 7467 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7468 tmp_addflag=' -i_dynamic' ;; 7469 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7470 tmp_addflag=' -i_dynamic -nofor_main' ;; 7471 ifc* | ifort*) # Intel Fortran compiler 7472 tmp_addflag=' -nofor_main' ;; 7473 esac 7474 case `$CC -V 2>&1 | sed 5q` in 7475 *Sun\ C*) # Sun C 5.9 7476 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7477 tmp_sharedflag='-G' ;; 7478 *Sun\ F*) # Sun Fortran 8.3 7479 tmp_sharedflag='-G' ;; 7480 *) 7481 tmp_sharedflag='-shared' ;; 7482 esac 7483 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7484 7485 if test $supports_anon_versioning = yes; then 7486 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7488 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7489 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7490 fi 7491 else 7492 ld_shlibs=no 7493 fi 7494 ;; 7495 7496 netbsd*) 7497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7498 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7499 wlarc= 7500 else 7501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7503 fi 7504 ;; 7505 7506 solaris*) 7507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7508 ld_shlibs=no 7509 cat <<EOF 1>&2 7510 7511 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 7512 *** create shared libraries on Solaris systems. Therefore, libtool 7513 *** is disabling shared libraries support. We urge you to upgrade GNU 7514 *** binutils to release 2.9.1 or newer. Another option is to modify 7515 *** your PATH or compiler configuration so that the native linker is 7516 *** used, and then restart. 7517 7518 EOF 7519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7522 else 7523 ld_shlibs=no 7524 fi 7525 ;; 7526 7527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7528 case `$LD -v 2>&1` in 7529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7530 ld_shlibs=no 7531 cat <<_LT_EOF 1>&2 7532 7533 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7534 *** reliably create shared libraries on SCO systems. Therefore, libtool 7535 *** is disabling shared libraries support. We urge you to upgrade GNU 7536 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7537 *** your PATH or compiler configuration so that the native linker is 7538 *** used, and then restart. 7539 7540 _LT_EOF 7541 ;; 7542 *) 7543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7544 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7547 else 7548 ld_shlibs=no 7549 fi 7550 ;; 7551 esac 7552 ;; 7553 7554 sunos4*) 7555 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7556 wlarc= 7557 hardcode_direct=yes 7558 hardcode_shlibpath_var=no 7559 ;; 7560 7561 *) 7562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7565 else 7566 ld_shlibs=no 7567 fi 7568 ;; 7569 esac 7570 7571 if test "$ld_shlibs" = no; then 7572 runpath_var= 7573 hardcode_libdir_flag_spec= 7574 export_dynamic_flag_spec= 7575 whole_archive_flag_spec= 7576 fi 7577 else 7578 # PORTME fill in a description of your system's linker (not GNU ld) 7579 case $host_os in 7580 aix3*) 7581 allow_undefined_flag=unsupported 7582 always_export_symbols=yes 7583 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' 7584 # Note: this linker hardcodes the directories in LIBPATH if there 7585 # are no directories specified by -L. 7586 hardcode_minus_L=yes 7587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7588 # Neither direct hardcoding nor static linking is supported with a 7589 # broken collect2. 7590 hardcode_direct=unsupported 7591 fi 7592 ;; 7593 7594 aix[4-9]*) 7595 if test "$host_cpu" = ia64; then 7596 # On IA64, the linker does run time linking by default, so we don't 7597 # have to do anything special. 7598 aix_use_runtimelinking=no 7599 exp_sym_flag='-Bexport' 7600 no_entry_flag="" 7601 else 7602 # If we're using GNU nm, then we don't want the "-C" option. 7603 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7605 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7606 else 7607 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' 7608 fi 7609 aix_use_runtimelinking=no 7610 7611 # Test if we are trying to use run time linking or normal 7612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7613 # need to do runtime linking. 7614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7615 for ld_flag in $LDFLAGS; do 7616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7617 aix_use_runtimelinking=yes 7618 break 7619 fi 7620 done 7621 ;; 7622 esac 7623 7624 exp_sym_flag='-bexport' 7625 no_entry_flag='-bnoentry' 7626 fi 7627 7628 # When large executables or shared objects are built, AIX ld can 7629 # have problems creating the table of contents. If linking a library 7630 # or program results in "error TOC overflow" add -mminimal-toc to 7631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7633 7634 archive_cmds='' 7635 hardcode_direct=yes 7636 hardcode_libdir_separator=':' 7637 link_all_deplibs=yes 7638 7639 if test "$GCC" = yes; then 7640 case $host_os in aix4.[012]|aix4.[012].*) 7641 # We only want to do this on AIX 4.2 and lower, the check 7642 # below for broken collect2 doesn't work under 4.3+ 7643 collect2name=`${CC} -print-prog-name=collect2` 7644 if test -f "$collect2name" && \ 7645 strings "$collect2name" | grep resolve_lib_name >/dev/null 7646 then 7647 # We have reworked collect2 7648 : 7649 else 7650 # We have old collect2 7651 hardcode_direct=unsupported 7652 # It fails to find uninstalled libraries when the uninstalled 7653 # path is not listed in the libpath. Setting hardcode_minus_L 7654 # to unsupported forces relinking 7655 hardcode_minus_L=yes 7656 hardcode_libdir_flag_spec='-L$libdir' 7657 hardcode_libdir_separator= 7658 fi 7659 ;; 7660 esac 7661 shared_flag='-shared' 7662 if test "$aix_use_runtimelinking" = yes; then 7663 shared_flag="$shared_flag "'${wl}-G' 7664 fi 7665 else 7666 # not using gcc 7667 if test "$host_cpu" = ia64; then 7668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7669 # chokes on -Wl,-G. The following line is correct: 7670 shared_flag='-G' 7671 else 7672 if test "$aix_use_runtimelinking" = yes; then 7673 shared_flag='${wl}-G' 7674 else 7675 shared_flag='${wl}-bM:SRE' 7676 fi 7677 fi 7678 fi 7679 7680 # It seems that -bexpall does not export symbols beginning with 7681 # underscore (_), so it is better to generate a list of symbols to export. 7682 always_export_symbols=yes 7683 if test "$aix_use_runtimelinking" = yes; then 7684 # Warning - without using the other runtime loading flags (-brtl), 7685 # -berok will link without error, but may produce a broken library. 7686 allow_undefined_flag='-berok' 7687 # Determine the default libpath from the value encoded in an empty executable. 7688 cat >conftest.$ac_ext <<_ACEOF 7689 /* confdefs.h. */ 7690 _ACEOF 7691 cat confdefs.h >>conftest.$ac_ext 7692 cat >>conftest.$ac_ext <<_ACEOF 7693 /* end confdefs.h. */ 7694 7695 int 7696 main () 7697 { 7698 7699 ; 7700 return 0; 7701 } 7702 _ACEOF 7703 rm -f conftest.$ac_objext conftest$ac_exeext 7704 if { (ac_try="$ac_link" 7705 case "(($ac_try" in 7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7707 *) ac_try_echo=$ac_try;; 7708 esac 7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7710 (eval "$ac_link") 2>conftest.er1 7711 ac_status=$? 7712 grep -v '^ *+' conftest.er1 >conftest.err 7713 rm -f conftest.er1 7714 cat conftest.err >&5 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 (exit $ac_status); } && { 7717 test -z "$ac_c_werror_flag" || 7718 test ! -s conftest.err 7719 } && test -s conftest$ac_exeext && 7720 $as_test_x conftest$ac_exeext; then 7721 7722 lt_aix_libpath_sed=' 7723 /Import File Strings/,/^$/ { 7724 /^0/ { 7725 s/^0 *\(.*\)$/\1/ 7726 p 7727 } 7728 }' 7729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7730 # Check for a 64-bit object if we didn't find anything. 7731 if test -z "$aix_libpath"; then 7732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7733 fi 7734 else 7735 echo "$as_me: failed program was:" >&5 7736 sed 's/^/| /' conftest.$ac_ext >&5 7737 7738 7739 fi 7740 7741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7742 conftest$ac_exeext conftest.$ac_ext 7743 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7744 7745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7746 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7747 else 7748 if test "$host_cpu" = ia64; then 7749 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7750 allow_undefined_flag="-z nodefs" 7751 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" 7752 else 7753 # Determine the default libpath from the value encoded in an empty executable. 7754 cat >conftest.$ac_ext <<_ACEOF 7755 /* confdefs.h. */ 7756 _ACEOF 7757 cat confdefs.h >>conftest.$ac_ext 7758 cat >>conftest.$ac_ext <<_ACEOF 7759 /* end confdefs.h. */ 7760 7761 int 7762 main () 7763 { 7764 7765 ; 7766 return 0; 7767 } 7768 _ACEOF 7769 rm -f conftest.$ac_objext conftest$ac_exeext 7770 if { (ac_try="$ac_link" 7771 case "(($ac_try" in 7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7773 *) ac_try_echo=$ac_try;; 7774 esac 7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7776 (eval "$ac_link") 2>conftest.er1 7777 ac_status=$? 7778 grep -v '^ *+' conftest.er1 >conftest.err 7779 rm -f conftest.er1 7780 cat conftest.err >&5 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } && { 7783 test -z "$ac_c_werror_flag" || 7784 test ! -s conftest.err 7785 } && test -s conftest$ac_exeext && 7786 $as_test_x conftest$ac_exeext; then 7787 7788 lt_aix_libpath_sed=' 7789 /Import File Strings/,/^$/ { 7790 /^0/ { 7791 s/^0 *\(.*\)$/\1/ 7792 p 7793 } 7794 }' 7795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7796 # Check for a 64-bit object if we didn't find anything. 7797 if test -z "$aix_libpath"; then 7798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7799 fi 7800 else 7801 echo "$as_me: failed program was:" >&5 7802 sed 's/^/| /' conftest.$ac_ext >&5 7803 7804 7805 fi 7806 7807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7808 conftest$ac_exeext conftest.$ac_ext 7809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7810 7811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7812 # Warning - without using the other run time loading flags, 7813 # -berok will link without error, but may produce a broken library. 7814 no_undefined_flag=' ${wl}-bernotok' 7815 allow_undefined_flag=' ${wl}-berok' 7816 # Exported symbols can be pulled into shared objects from archives 7817 whole_archive_flag_spec='$convenience' 7818 archive_cmds_need_lc=yes 7819 # This is similar to how AIX traditionally builds its shared libraries. 7820 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' 7821 fi 7822 fi 7823 ;; 7824 7825 amigaos*) 7826 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)' 7827 hardcode_libdir_flag_spec='-L$libdir' 7828 hardcode_minus_L=yes 7829 # see comment about different semantics on the GNU ld section 7830 ld_shlibs=no 7831 ;; 7832 7833 bsdi[45]*) 7834 export_dynamic_flag_spec=-rdynamic 7835 ;; 7836 7837 cygwin* | mingw* | pw32*) 7838 # When not using gcc, we currently assume that we are using 7839 # Microsoft Visual C++. 7840 # hardcode_libdir_flag_spec is actually meaningless, as there is 7841 # no search path for DLLs. 7842 hardcode_libdir_flag_spec=' ' 7843 allow_undefined_flag=unsupported 7844 # Tell ltmain to make .lib files, not .a files. 7845 libext=lib 7846 # Tell ltmain to make .dll files, not .so files. 7847 shrext_cmds=".dll" 7848 # FIXME: Setting linknames here is a bad hack. 7849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7850 # The linker will automatically build a .lib file if we build a DLL. 7851 old_archive_From_new_cmds='true' 7852 # FIXME: Should let the user specify the lib program. 7853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7854 fix_srcfile_path='`cygpath -w "$srcfile"`' 7855 enable_shared_with_static_runtimes=yes 7856 ;; 7857 7858 darwin* | rhapsody*) 7859 case $host_os in 7860 rhapsody* | darwin1.[012]) 7861 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7862 ;; 7863 *) # Darwin 1.3 on 7864 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7865 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7866 else 7867 case ${MACOSX_DEPLOYMENT_TARGET} in 7868 10.[012]) 7869 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7870 ;; 7871 10.*) 7872 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7873 ;; 7874 esac 7875 fi 7876 ;; 7877 esac 7878 archive_cmds_need_lc=no 7879 hardcode_direct=no 7880 hardcode_automatic=yes 7881 hardcode_shlibpath_var=unsupported 7882 whole_archive_flag_spec='' 7883 link_all_deplibs=yes 7884 if test "$GCC" = yes ; then 7885 output_verbose_link_cmd='echo' 7886 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7887 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7888 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}" 7889 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}" 7890 else 7891 case $cc_basename in 7892 xlc*) 7893 output_verbose_link_cmd='echo' 7894 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 7895 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7897 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7898 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7899 ;; 7900 *) 7901 ld_shlibs=no 7902 ;; 7903 esac 7904 fi 7905 ;; 7906 7907 dgux*) 7908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7909 hardcode_libdir_flag_spec='-L$libdir' 7910 hardcode_shlibpath_var=no 7911 ;; 7912 7913 freebsd1*) 7914 ld_shlibs=no 7915 ;; 7916 7917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7918 # support. Future versions do this automatically, but an explicit c++rt0.o 7919 # does not break anything, and helps significantly (at the cost of a little 7920 # extra space). 7921 freebsd2.2*) 7922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7923 hardcode_libdir_flag_spec='-R$libdir' 7924 hardcode_direct=yes 7925 hardcode_shlibpath_var=no 7926 ;; 7927 7928 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7929 freebsd2*) 7930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7931 hardcode_direct=yes 7932 hardcode_minus_L=yes 7933 hardcode_shlibpath_var=no 7934 ;; 7935 7936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7937 freebsd* | dragonfly*) 7938 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7939 hardcode_libdir_flag_spec='-R$libdir' 7940 hardcode_direct=yes 7941 hardcode_shlibpath_var=no 7942 ;; 7943 7944 hpux9*) 7945 if test "$GCC" = yes; then 7946 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7947 else 7948 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' 7949 fi 7950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7951 hardcode_libdir_separator=: 7952 hardcode_direct=yes 7953 7954 # hardcode_minus_L: Not really in the search PATH, 7955 # but as the default location of the library. 7956 hardcode_minus_L=yes 7957 export_dynamic_flag_spec='${wl}-E' 7958 ;; 7959 7960 hpux10*) 7961 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7963 else 7964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7965 fi 7966 if test "$with_gnu_ld" = no; then 7967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7968 hardcode_libdir_separator=: 7969 7970 hardcode_direct=yes 7971 export_dynamic_flag_spec='${wl}-E' 7972 7973 # hardcode_minus_L: Not really in the search PATH, 7974 # but as the default location of the library. 7975 hardcode_minus_L=yes 7976 fi 7977 ;; 7978 7979 hpux11*) 7980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7981 case $host_cpu in 7982 hppa*64*) 7983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7984 ;; 7985 ia64*) 7986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7987 ;; 7988 *) 7989 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7990 ;; 7991 esac 7992 else 7993 case $host_cpu in 7994 hppa*64*) 7995 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7996 ;; 7997 ia64*) 7998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7999 ;; 8000 *) 8001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8002 ;; 8003 esac 8004 fi 8005 if test "$with_gnu_ld" = no; then 8006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8007 hardcode_libdir_separator=: 8008 8009 case $host_cpu in 8010 hppa*64*|ia64*) 8011 hardcode_libdir_flag_spec_ld='+b $libdir' 8012 hardcode_direct=no 8013 hardcode_shlibpath_var=no 8014 ;; 8015 *) 8016 hardcode_direct=yes 8017 export_dynamic_flag_spec='${wl}-E' 8018 8019 # hardcode_minus_L: Not really in the search PATH, 8020 # but as the default location of the library. 8021 hardcode_minus_L=yes 8022 ;; 8023 esac 8024 fi 8025 ;; 8026 8027 irix5* | irix6* | nonstopux*) 8028 if test "$GCC" = yes; then 8029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8030 else 8031 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8032 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8033 fi 8034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8035 hardcode_libdir_separator=: 8036 link_all_deplibs=yes 8037 ;; 8038 8039 netbsd*) 8040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8042 else 8043 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8044 fi 8045 hardcode_libdir_flag_spec='-R$libdir' 8046 hardcode_direct=yes 8047 hardcode_shlibpath_var=no 8048 ;; 8049 8050 newsos6) 8051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8052 hardcode_direct=yes 8053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8054 hardcode_libdir_separator=: 8055 hardcode_shlibpath_var=no 8056 ;; 8057 8058 openbsd*) 8059 if test -f /usr/libexec/ld.so; then 8060 hardcode_direct=yes 8061 hardcode_shlibpath_var=no 8062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8064 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8066 export_dynamic_flag_spec='${wl}-E' 8067 else 8068 case $host_os in 8069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8071 hardcode_libdir_flag_spec='-R$libdir' 8072 ;; 8073 *) 8074 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8076 ;; 8077 esac 8078 fi 8079 else 8080 ld_shlibs=no 8081 fi 8082 ;; 8083 8084 os2*) 8085 hardcode_libdir_flag_spec='-L$libdir' 8086 hardcode_minus_L=yes 8087 allow_undefined_flag=unsupported 8088 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' 8089 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8090 ;; 8091 8092 osf3*) 8093 if test "$GCC" = yes; then 8094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8095 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8096 else 8097 allow_undefined_flag=' -expect_unresolved \*' 8098 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8099 fi 8100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8101 hardcode_libdir_separator=: 8102 ;; 8103 8104 osf4* | osf5*) # as osf3* with the addition of -msym flag 8105 if test "$GCC" = yes; then 8106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8107 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8109 else 8110 allow_undefined_flag=' -expect_unresolved \*' 8111 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8112 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8113 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8114 8115 # Both c and cxx compiler support -rpath directly 8116 hardcode_libdir_flag_spec='-rpath $libdir' 8117 fi 8118 hardcode_libdir_separator=: 8119 ;; 8120 8121 solaris*) 8122 no_undefined_flag=' -z text' 8123 if test "$GCC" = yes; then 8124 wlarc='${wl}' 8125 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8126 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8127 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8128 else 8129 wlarc='' 8130 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8131 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8132 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8133 fi 8134 hardcode_libdir_flag_spec='-R$libdir' 8135 hardcode_shlibpath_var=no 8136 case $host_os in 8137 solaris2.[0-5] | solaris2.[0-5].*) ;; 8138 *) 8139 # The compiler driver will combine and reorder linker options, 8140 # but understands `-z linker_flag'. GCC discards it without `$wl', 8141 # but is careful enough not to reorder. 8142 # Supported since Solaris 2.6 (maybe 2.5.1?) 8143 if test "$GCC" = yes; then 8144 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8145 else 8146 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8147 fi 8148 ;; 8149 esac 8150 link_all_deplibs=yes 8151 ;; 8152 8153 sunos4*) 8154 if test "x$host_vendor" = xsequent; then 8155 # Use $CC to link under sequent, because it throws in some extra .o 8156 # files that make .init and .fini sections work. 8157 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8158 else 8159 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8160 fi 8161 hardcode_libdir_flag_spec='-L$libdir' 8162 hardcode_direct=yes 8163 hardcode_minus_L=yes 8164 hardcode_shlibpath_var=no 8165 ;; 8166 8167 sysv4) 8168 case $host_vendor in 8169 sni) 8170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8171 hardcode_direct=yes # is this really true??? 8172 ;; 8173 siemens) 8174 ## LD is ld it makes a PLAMLIB 8175 ## CC just makes a GrossModule. 8176 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8177 reload_cmds='$CC -r -o $output$reload_objs' 8178 hardcode_direct=no 8179 ;; 8180 motorola) 8181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8182 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8183 ;; 8184 esac 8185 runpath_var='LD_RUN_PATH' 8186 hardcode_shlibpath_var=no 8187 ;; 8188 8189 sysv4.3*) 8190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8191 hardcode_shlibpath_var=no 8192 export_dynamic_flag_spec='-Bexport' 8193 ;; 8194 8195 sysv4*MP*) 8196 if test -d /usr/nec; then 8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8198 hardcode_shlibpath_var=no 8199 runpath_var=LD_RUN_PATH 8200 hardcode_runpath_var=yes 8201 ld_shlibs=yes 8202 fi 8203 ;; 8204 8205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8206 no_undefined_flag='${wl}-z,text' 8207 archive_cmds_need_lc=no 8208 hardcode_shlibpath_var=no 8209 runpath_var='LD_RUN_PATH' 8210 8211 if test "$GCC" = yes; then 8212 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8213 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8214 else 8215 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8216 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8217 fi 8218 ;; 8219 8220 sysv5* | sco3.2v5* | sco5v6*) 8221 # Note: We can NOT use -z defs as we might desire, because we do not 8222 # link with -lc, and that would cause any symbols used from libc to 8223 # always be unresolved, which means just about no library would 8224 # ever link correctly. If we're not using GNU ld we use -z text 8225 # though, which does catch some bad symbols but isn't as heavy-handed 8226 # as -z defs. 8227 no_undefined_flag='${wl}-z,text' 8228 allow_undefined_flag='${wl}-z,nodefs' 8229 archive_cmds_need_lc=no 8230 hardcode_shlibpath_var=no 8231 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8232 hardcode_libdir_separator=':' 8233 link_all_deplibs=yes 8234 export_dynamic_flag_spec='${wl}-Bexport' 8235 runpath_var='LD_RUN_PATH' 8236 8237 if test "$GCC" = yes; then 8238 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8240 else 8241 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8243 fi 8244 ;; 8245 8246 uts4*) 8247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8248 hardcode_libdir_flag_spec='-L$libdir' 8249 hardcode_shlibpath_var=no 8250 ;; 8251 8252 *) 8253 ld_shlibs=no 8254 ;; 8255 esac 8256 fi 8257 8258 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8259 echo "${ECHO_T}$ld_shlibs" >&6; } 8260 test "$ld_shlibs" = no && can_build_shared=no 8261 8262 # 8263 # Do we need to explicitly link libc? 8264 # 8265 case "x$archive_cmds_need_lc" in 8266 x|xyes) 8267 # Assume -lc should be added 8268 archive_cmds_need_lc=yes 8269 8270 if test "$enable_shared" = yes && test "$GCC" = yes; then 8271 case $archive_cmds in 8272 *'~'*) 8273 # FIXME: we may have to deal with multi-command sequences. 8274 ;; 8275 '$CC '*) 8276 # Test whether the compiler implicitly links with -lc since on some 8277 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8278 # to ld, don't add -lc before -lgcc. 8279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8281 $rm conftest* 8282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8283 8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8285 (eval $ac_compile) 2>&5 8286 ac_status=$? 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 (exit $ac_status); } 2>conftest.err; then 8289 soname=conftest 8290 lib=conftest 8291 libobjs=conftest.$ac_objext 8292 deplibs= 8293 wl=$lt_prog_compiler_wl 8294 pic_flag=$lt_prog_compiler_pic 8295 compiler_flags=-v 8296 linker_flags=-v 8297 verstring= 8298 output_objdir=. 8299 libname=conftest 8300 lt_save_allow_undefined_flag=$allow_undefined_flag 8301 allow_undefined_flag= 8302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8303 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8304 ac_status=$? 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8306 (exit $ac_status); } 8307 then 8308 archive_cmds_need_lc=no 8309 else 8310 archive_cmds_need_lc=yes 8311 fi 8312 allow_undefined_flag=$lt_save_allow_undefined_flag 8313 else 8314 cat conftest.err 1>&5 8315 fi 8316 $rm conftest* 8317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8318 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8319 ;; 8320 esac 8321 fi 8322 ;; 8323 esac 8324 8325 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8327 library_names_spec= 8328 libname_spec='lib$name' 8329 soname_spec= 8330 shrext_cmds=".so" 8331 postinstall_cmds= 8332 postuninstall_cmds= 8333 finish_cmds= 8334 finish_eval= 8335 shlibpath_var= 8336 shlibpath_overrides_runpath=unknown 8337 version_type=none 8338 dynamic_linker="$host_os ld.so" 8339 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8340 8341 if test "$GCC" = yes; then 8342 case $host_os in 8343 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8344 *) lt_awk_arg="/^libraries:/" ;; 8345 esac 8346 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8347 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8348 # if the path contains ";" then we assume it to be the separator 8349 # otherwise default to the standard path separator (i.e. ":") - it is 8350 # assumed that no part of a normal pathname contains ";" but that should 8351 # okay in the real world where ";" in dirpaths is itself problematic. 8352 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8353 else 8354 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8355 fi 8356 # Ok, now we have the path, separated by spaces, we can step through it 8357 # and add multilib dir if necessary. 8358 lt_tmp_lt_search_path_spec= 8359 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8360 for lt_sys_path in $lt_search_path_spec; do 8361 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8363 else 8364 test -d "$lt_sys_path" && \ 8365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8366 fi 8367 done 8368 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8369 BEGIN {RS=" "; FS="/|\n";} { 8370 lt_foo=""; 8371 lt_count=0; 8372 for (lt_i = NF; lt_i > 0; lt_i--) { 8373 if ($lt_i != "" && $lt_i != ".") { 8374 if ($lt_i == "..") { 8375 lt_count++; 8376 } else { 8377 if (lt_count == 0) { 8378 lt_foo="/" $lt_i lt_foo; 8379 } else { 8380 lt_count--; 8381 } 8382 } 8383 } 8384 } 8385 if (lt_foo != "") { lt_freq[lt_foo]++; } 8386 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8387 }'` 8388 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8389 else 8390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8391 fi 8392 need_lib_prefix=unknown 8393 hardcode_into_libs=no 8394 8395 # when you set need_version to no, make sure it does not cause -set_version 8396 # flags to be left without arguments 8397 need_version=unknown 8398 8399 case $host_os in 8400 aix3*) 8401 version_type=linux 8402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8403 shlibpath_var=LIBPATH 8404 8405 # AIX 3 has no versioning support, so we append a major version to the name. 8406 soname_spec='${libname}${release}${shared_ext}$major' 8407 ;; 8408 8409 aix[4-9]*) 8410 version_type=linux 8411 need_lib_prefix=no 8412 need_version=no 8413 hardcode_into_libs=yes 8414 if test "$host_cpu" = ia64; then 8415 # AIX 5 supports IA64 8416 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8417 shlibpath_var=LD_LIBRARY_PATH 8418 else 8419 # With GCC up to 2.95.x, collect2 would create an import file 8420 # for dependence libraries. The import file would start with 8421 # the line `#! .'. This would cause the generated library to 8422 # depend on `.', always an invalid library. This was fixed in 8423 # development snapshots of GCC prior to 3.0. 8424 case $host_os in 8425 aix4 | aix4.[01] | aix4.[01].*) 8426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8427 echo ' yes ' 8428 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8429 : 8430 else 8431 can_build_shared=no 8432 fi 8433 ;; 8434 esac 8435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8436 # soname into executable. Probably we can add versioning support to 8437 # collect2, so additional links can be useful in future. 8438 if test "$aix_use_runtimelinking" = yes; then 8439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8440 # instead of lib<name>.a to let people know that these are not 8441 # typical AIX shared libraries. 8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8443 else 8444 # We preserve .a as extension for shared libraries through AIX4.2 8445 # and later when we are not doing run time linking. 8446 library_names_spec='${libname}${release}.a $libname.a' 8447 soname_spec='${libname}${release}${shared_ext}$major' 8448 fi 8449 shlibpath_var=LIBPATH 8450 fi 8451 ;; 8452 8453 amigaos*) 8454 library_names_spec='$libname.ixlibrary $libname.a' 8455 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8456 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 8457 ;; 8458 8459 beos*) 8460 library_names_spec='${libname}${shared_ext}' 8461 dynamic_linker="$host_os ld.so" 8462 shlibpath_var=LIBRARY_PATH 8463 ;; 8464 8465 bsdi[45]*) 8466 version_type=linux 8467 need_version=no 8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8469 soname_spec='${libname}${release}${shared_ext}$major' 8470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8471 shlibpath_var=LD_LIBRARY_PATH 8472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8474 # the default ld.so.conf also contains /usr/contrib/lib and 8475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8476 # libtool to hard-code these into programs 8477 ;; 8478 8479 cygwin* | mingw* | pw32*) 8480 version_type=windows 8481 shrext_cmds=".dll" 8482 need_version=no 8483 need_lib_prefix=no 8484 8485 case $GCC,$host_os in 8486 yes,cygwin* | yes,mingw* | yes,pw32*) 8487 library_names_spec='$libname.dll.a' 8488 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8489 postinstall_cmds='base_file=`basename \${file}`~ 8490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8491 dldir=$destdir/`dirname \$dlpath`~ 8492 test -d \$dldir || mkdir -p \$dldir~ 8493 $install_prog $dir/$dlname \$dldir/$dlname~ 8494 chmod a+x \$dldir/$dlname' 8495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8496 dlpath=$dir/\$dldll~ 8497 $rm \$dlpath' 8498 shlibpath_overrides_runpath=yes 8499 8500 case $host_os in 8501 cygwin*) 8502 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8505 ;; 8506 mingw*) 8507 # MinGW DLLs use traditional 'lib' prefix 8508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8511 # It is most probably a Windows format PATH printed by 8512 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8513 # path with ; separators, and with drive letters. We can handle the 8514 # drive letters (cygwin fileutils understands them), so leave them, 8515 # especially as we might pass files found there to a mingw objdump, 8516 # which wouldn't understand a cygwinified path. Ahh. 8517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8518 else 8519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8520 fi 8521 ;; 8522 pw32*) 8523 # pw32 DLLs use 'pw' prefix rather than 'lib' 8524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8525 ;; 8526 esac 8527 ;; 8528 8529 *) 8530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8531 ;; 8532 esac 8533 dynamic_linker='Win32 ld.exe' 8534 # FIXME: first we should search . and the directory the executable is in 8535 shlibpath_var=PATH 8536 ;; 8537 8538 darwin* | rhapsody*) 8539 dynamic_linker="$host_os dyld" 8540 version_type=darwin 8541 need_lib_prefix=no 8542 need_version=no 8543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8544 soname_spec='${libname}${release}${major}$shared_ext' 8545 shlibpath_overrides_runpath=yes 8546 shlibpath_var=DYLD_LIBRARY_PATH 8547 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8548 8549 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8551 ;; 8552 8553 dgux*) 8554 version_type=linux 8555 need_lib_prefix=no 8556 need_version=no 8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8558 soname_spec='${libname}${release}${shared_ext}$major' 8559 shlibpath_var=LD_LIBRARY_PATH 8560 ;; 8561 8562 freebsd1*) 8563 dynamic_linker=no 8564 ;; 8565 8566 freebsd* | dragonfly*) 8567 # DragonFly does not have aout. When/if they implement a new 8568 # versioning mechanism, adjust this. 8569 if test -x /usr/bin/objformat; then 8570 objformat=`/usr/bin/objformat` 8571 else 8572 case $host_os in 8573 freebsd[123]*) objformat=aout ;; 8574 *) objformat=elf ;; 8575 esac 8576 fi 8577 version_type=freebsd-$objformat 8578 case $version_type in 8579 freebsd-elf*) 8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8581 need_version=no 8582 need_lib_prefix=no 8583 ;; 8584 freebsd-*) 8585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8586 need_version=yes 8587 ;; 8588 esac 8589 shlibpath_var=LD_LIBRARY_PATH 8590 case $host_os in 8591 freebsd2*) 8592 shlibpath_overrides_runpath=yes 8593 ;; 8594 freebsd3.[01]* | freebsdelf3.[01]*) 8595 shlibpath_overrides_runpath=yes 8596 hardcode_into_libs=yes 8597 ;; 8598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8600 shlibpath_overrides_runpath=no 8601 hardcode_into_libs=yes 8602 ;; 8603 *) # from 4.6 on, and DragonFly 8604 shlibpath_overrides_runpath=yes 8605 hardcode_into_libs=yes 8606 ;; 8607 esac 8608 ;; 8609 8610 gnu*) 8611 version_type=linux 8612 need_lib_prefix=no 8613 need_version=no 8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8615 soname_spec='${libname}${release}${shared_ext}$major' 8616 shlibpath_var=LD_LIBRARY_PATH 8617 hardcode_into_libs=yes 8618 ;; 8619 8620 hpux9* | hpux10* | hpux11*) 8621 # Give a soname corresponding to the major version so that dld.sl refuses to 8622 # link against other versions. 8623 version_type=sunos 8624 need_lib_prefix=no 8625 need_version=no 8626 case $host_cpu in 8627 ia64*) 8628 shrext_cmds='.so' 8629 hardcode_into_libs=yes 8630 dynamic_linker="$host_os dld.so" 8631 shlibpath_var=LD_LIBRARY_PATH 8632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8634 soname_spec='${libname}${release}${shared_ext}$major' 8635 if test "X$HPUX_IA64_MODE" = X32; then 8636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8637 else 8638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8639 fi 8640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8641 ;; 8642 hppa*64*) 8643 shrext_cmds='.sl' 8644 hardcode_into_libs=yes 8645 dynamic_linker="$host_os dld.sl" 8646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8649 soname_spec='${libname}${release}${shared_ext}$major' 8650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8652 ;; 8653 *) 8654 shrext_cmds='.sl' 8655 dynamic_linker="$host_os dld.sl" 8656 shlibpath_var=SHLIB_PATH 8657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8659 soname_spec='${libname}${release}${shared_ext}$major' 8660 ;; 8661 esac 8662 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8663 postinstall_cmds='chmod 555 $lib' 8664 ;; 8665 8666 interix[3-9]*) 8667 version_type=linux 8668 need_lib_prefix=no 8669 need_version=no 8670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8671 soname_spec='${libname}${release}${shared_ext}$major' 8672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8673 shlibpath_var=LD_LIBRARY_PATH 8674 shlibpath_overrides_runpath=no 8675 hardcode_into_libs=yes 8676 ;; 8677 8678 irix5* | irix6* | nonstopux*) 8679 case $host_os in 8680 nonstopux*) version_type=nonstopux ;; 8681 *) 8682 if test "$lt_cv_prog_gnu_ld" = yes; then 8683 version_type=linux 8684 else 8685 version_type=irix 8686 fi ;; 8687 esac 8688 need_lib_prefix=no 8689 need_version=no 8690 soname_spec='${libname}${release}${shared_ext}$major' 8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8692 case $host_os in 8693 irix5* | nonstopux*) 8694 libsuff= shlibsuff= 8695 ;; 8696 *) 8697 case $LD in # libtool.m4 will add one of these switches to LD 8698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8699 libsuff= shlibsuff= libmagic=32-bit;; 8700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8701 libsuff=32 shlibsuff=N32 libmagic=N32;; 8702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8703 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8704 *) libsuff= shlibsuff= libmagic=never-match;; 8705 esac 8706 ;; 8707 esac 8708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8709 shlibpath_overrides_runpath=no 8710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8712 hardcode_into_libs=yes 8713 ;; 8714 8715 # No shared lib support for Linux oldld, aout, or coff. 8716 linux*oldld* | linux*aout* | linux*coff*) 8717 dynamic_linker=no 8718 ;; 8719 8720 # This must be Linux ELF. 8721 linux* | k*bsd*-gnu) 8722 version_type=linux 8723 need_lib_prefix=no 8724 need_version=no 8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8726 soname_spec='${libname}${release}${shared_ext}$major' 8727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8728 shlibpath_var=LD_LIBRARY_PATH 8729 shlibpath_overrides_runpath=no 8730 # This implies no fast_install, which is unacceptable. 8731 # Some rework will be needed to allow for fast_install 8732 # before this can be enabled. 8733 hardcode_into_libs=yes 8734 8735 # Append ld.so.conf contents to the search path 8736 if test -f /etc/ld.so.conf; then 8737 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;/^$/d' | tr '\n' ' '` 8738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8739 fi 8740 8741 # We used to test for /lib/ld.so.1 and disable shared libraries on 8742 # powerpc, because MkLinux only supported shared libraries with the 8743 # GNU dynamic linker. Since this was broken with cross compilers, 8744 # most powerpc-linux boxes support dynamic linking these days and 8745 # people can always --disable-shared, the test was removed, and we 8746 # assume the GNU/Linux dynamic linker is in use. 8747 dynamic_linker='GNU/Linux ld.so' 8748 ;; 8749 8750 netbsd*) 8751 version_type=sunos 8752 need_lib_prefix=no 8753 need_version=no 8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8757 dynamic_linker='NetBSD (a.out) ld.so' 8758 else 8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8760 soname_spec='${libname}${release}${shared_ext}$major' 8761 dynamic_linker='NetBSD ld.elf_so' 8762 fi 8763 shlibpath_var=LD_LIBRARY_PATH 8764 shlibpath_overrides_runpath=yes 8765 hardcode_into_libs=yes 8766 ;; 8767 8768 newsos6) 8769 version_type=linux 8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8771 shlibpath_var=LD_LIBRARY_PATH 8772 shlibpath_overrides_runpath=yes 8773 ;; 8774 8775 nto-qnx*) 8776 version_type=linux 8777 need_lib_prefix=no 8778 need_version=no 8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8780 soname_spec='${libname}${release}${shared_ext}$major' 8781 shlibpath_var=LD_LIBRARY_PATH 8782 shlibpath_overrides_runpath=yes 8783 ;; 8784 8785 openbsd*) 8786 version_type=sunos 8787 sys_lib_dlsearch_path_spec="/usr/lib" 8788 need_lib_prefix=no 8789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8790 case $host_os in 8791 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8792 *) need_version=no ;; 8793 esac 8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8796 shlibpath_var=LD_LIBRARY_PATH 8797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8798 case $host_os in 8799 openbsd2.[89] | openbsd2.[89].*) 8800 shlibpath_overrides_runpath=no 8801 ;; 8802 *) 8803 shlibpath_overrides_runpath=yes 8804 ;; 8805 esac 8806 else 8807 shlibpath_overrides_runpath=yes 8808 fi 8809 ;; 8810 8811 os2*) 8812 libname_spec='$name' 8813 shrext_cmds=".dll" 8814 need_lib_prefix=no 8815 library_names_spec='$libname${shared_ext} $libname.a' 8816 dynamic_linker='OS/2 ld.exe' 8817 shlibpath_var=LIBPATH 8818 ;; 8819 8820 osf3* | osf4* | osf5*) 8821 version_type=osf 8822 need_lib_prefix=no 8823 need_version=no 8824 soname_spec='${libname}${release}${shared_ext}$major' 8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8826 shlibpath_var=LD_LIBRARY_PATH 8827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8829 ;; 8830 8831 rdos*) 8832 dynamic_linker=no 8833 ;; 8834 8835 solaris*) 8836 version_type=linux 8837 need_lib_prefix=no 8838 need_version=no 8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8840 soname_spec='${libname}${release}${shared_ext}$major' 8841 shlibpath_var=LD_LIBRARY_PATH 8842 shlibpath_overrides_runpath=yes 8843 hardcode_into_libs=yes 8844 # ldd complains unless libraries are executable 8845 postinstall_cmds='chmod +x $lib' 8846 ;; 8847 8848 sunos4*) 8849 version_type=sunos 8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8852 shlibpath_var=LD_LIBRARY_PATH 8853 shlibpath_overrides_runpath=yes 8854 if test "$with_gnu_ld" = yes; then 8855 need_lib_prefix=no 8856 fi 8857 need_version=yes 8858 ;; 8859 8860 sysv4 | sysv4.3*) 8861 version_type=linux 8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8863 soname_spec='${libname}${release}${shared_ext}$major' 8864 shlibpath_var=LD_LIBRARY_PATH 8865 case $host_vendor in 8866 sni) 8867 shlibpath_overrides_runpath=no 8868 need_lib_prefix=no 8869 export_dynamic_flag_spec='${wl}-Blargedynsym' 8870 runpath_var=LD_RUN_PATH 8871 ;; 8872 siemens) 8873 need_lib_prefix=no 8874 ;; 8875 motorola) 8876 need_lib_prefix=no 8877 need_version=no 8878 shlibpath_overrides_runpath=no 8879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8880 ;; 8881 esac 8882 ;; 8883 8884 sysv4*MP*) 8885 if test -d /usr/nec ;then 8886 version_type=linux 8887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8888 soname_spec='$libname${shared_ext}.$major' 8889 shlibpath_var=LD_LIBRARY_PATH 8890 fi 8891 ;; 8892 8893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8894 version_type=freebsd-elf 8895 need_lib_prefix=no 8896 need_version=no 8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8898 soname_spec='${libname}${release}${shared_ext}$major' 8899 shlibpath_var=LD_LIBRARY_PATH 8900 hardcode_into_libs=yes 8901 if test "$with_gnu_ld" = yes; then 8902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8903 shlibpath_overrides_runpath=no 8904 else 8905 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8906 shlibpath_overrides_runpath=yes 8907 case $host_os in 8908 sco3.2v5*) 8909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8910 ;; 8911 esac 8912 fi 8913 sys_lib_dlsearch_path_spec='/usr/lib' 8914 ;; 8915 8916 uts4*) 8917 version_type=linux 8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8919 soname_spec='${libname}${release}${shared_ext}$major' 8920 shlibpath_var=LD_LIBRARY_PATH 8921 ;; 8922 8923 *) 8924 dynamic_linker=no 8925 ;; 8926 esac 8927 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8928 echo "${ECHO_T}$dynamic_linker" >&6; } 8929 test "$dynamic_linker" = no && can_build_shared=no 8930 8931 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 8932 echo $ECHO_N "(cached) $ECHO_C" >&6 8933 else 8934 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 8935 fi 8936 8937 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 8938 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 8939 echo $ECHO_N "(cached) $ECHO_C" >&6 8940 else 8941 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 8942 fi 8943 8944 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 8945 8946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8947 if test "$GCC" = yes; then 8948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8949 fi 8950 8951 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8952 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 8953 hardcode_action= 8954 if test -n "$hardcode_libdir_flag_spec" || \ 8955 test -n "$runpath_var" || \ 8956 test "X$hardcode_automatic" = "Xyes" ; then 8957 8958 # We can hardcode non-existant directories. 8959 if test "$hardcode_direct" != no && 8960 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8961 # have to relink, otherwise we might link with an installed library 8962 # when we should be linking with a yet-to-be-installed one 8963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8964 test "$hardcode_minus_L" != no; then 8965 # Linking always hardcodes the temporary library directory. 8966 hardcode_action=relink 8967 else 8968 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8969 hardcode_action=immediate 8970 fi 8971 else 8972 # We cannot hardcode anything, or else we can only hardcode existing 8973 # directories. 8974 hardcode_action=unsupported 8975 fi 8976 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 8977 echo "${ECHO_T}$hardcode_action" >&6; } 8978 8979 if test "$hardcode_action" = relink; then 8980 # Fast installation is not supported 8981 enable_fast_install=no 8982 elif test "$shlibpath_overrides_runpath" = yes || 8983 test "$enable_shared" = no; then 8984 # Fast installation is not necessary 8985 enable_fast_install=needless 8986 fi 8987 8988 striplib= 8989 old_striplib= 8990 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8991 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 8992 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8993 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8994 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8995 { echo "$as_me:$LINENO: result: yes" >&5 8996 echo "${ECHO_T}yes" >&6; } 8997 else 8998 # FIXME - insert some real tests, host_os isn't really good enough 8999 case $host_os in 9000 darwin*) 9001 if test -n "$STRIP" ; then 9002 striplib="$STRIP -x" 9003 old_striplib="$STRIP -S" 9004 { echo "$as_me:$LINENO: result: yes" >&5 9005 echo "${ECHO_T}yes" >&6; } 9006 else 9007 { echo "$as_me:$LINENO: result: no" >&5 9008 echo "${ECHO_T}no" >&6; } 9009 fi 9010 ;; 9011 *) 9012 { echo "$as_me:$LINENO: result: no" >&5 9013 echo "${ECHO_T}no" >&6; } 9014 ;; 9015 esac 9016 fi 9017 9018 if test "x$enable_dlopen" != xyes; then 9019 enable_dlopen=unknown 9020 enable_dlopen_self=unknown 9021 enable_dlopen_self_static=unknown 9022 else 9023 lt_cv_dlopen=no 9024 lt_cv_dlopen_libs= 9025 9026 case $host_os in 9027 beos*) 9028 lt_cv_dlopen="load_add_on" 9029 lt_cv_dlopen_libs= 9030 lt_cv_dlopen_self=yes 9031 ;; 9032 9033 mingw* | pw32*) 9034 lt_cv_dlopen="LoadLibrary" 9035 lt_cv_dlopen_libs= 9036 ;; 9037 9038 cygwin*) 9039 lt_cv_dlopen="dlopen" 9040 lt_cv_dlopen_libs= 9041 ;; 9042 9043 darwin*) 9044 # if libdl is installed we need to link against it 9045 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9046 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9047 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9048 echo $ECHO_N "(cached) $ECHO_C" >&6 9049 else 9050 ac_check_lib_save_LIBS=$LIBS 9051 LIBS="-ldl $LIBS" 9052 cat >conftest.$ac_ext <<_ACEOF 9053 /* confdefs.h. */ 9054 _ACEOF 9055 cat confdefs.h >>conftest.$ac_ext 9056 cat >>conftest.$ac_ext <<_ACEOF 9057 /* end confdefs.h. */ 9058 9059 /* Override any GCC internal prototype to avoid an error. 9060 Use char because int might match the return type of a GCC 9061 builtin and then its argument prototype would still apply. */ 9062 #ifdef __cplusplus 9063 extern "C" 9064 #endif 9065 char dlopen (); 9066 int 9067 main () 9068 { 9069 return dlopen (); 9070 ; 9071 return 0; 9072 } 9073 _ACEOF 9074 rm -f conftest.$ac_objext conftest$ac_exeext 9075 if { (ac_try="$ac_link" 9076 case "(($ac_try" in 9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9078 *) ac_try_echo=$ac_try;; 9079 esac 9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9081 (eval "$ac_link") 2>conftest.er1 9082 ac_status=$? 9083 grep -v '^ *+' conftest.er1 >conftest.err 9084 rm -f conftest.er1 9085 cat conftest.err >&5 9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9087 (exit $ac_status); } && { 9088 test -z "$ac_c_werror_flag" || 9089 test ! -s conftest.err 9090 } && test -s conftest$ac_exeext && 9091 $as_test_x conftest$ac_exeext; then 9092 ac_cv_lib_dl_dlopen=yes 9093 else 9094 echo "$as_me: failed program was:" >&5 9095 sed 's/^/| /' conftest.$ac_ext >&5 9096 9097 ac_cv_lib_dl_dlopen=no 9098 fi 9099 9100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9101 conftest$ac_exeext conftest.$ac_ext 9102 LIBS=$ac_check_lib_save_LIBS 9103 fi 9104 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9106 if test $ac_cv_lib_dl_dlopen = yes; then 9107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9108 else 9109 9110 lt_cv_dlopen="dyld" 9111 lt_cv_dlopen_libs= 9112 lt_cv_dlopen_self=yes 9113 9114 fi 9115 9116 ;; 9117 9118 *) 9119 { echo "$as_me:$LINENO: checking for shl_load" >&5 9120 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9121 if test "${ac_cv_func_shl_load+set}" = set; then 9122 echo $ECHO_N "(cached) $ECHO_C" >&6 9123 else 9124 cat >conftest.$ac_ext <<_ACEOF 9125 /* confdefs.h. */ 9126 _ACEOF 9127 cat confdefs.h >>conftest.$ac_ext 9128 cat >>conftest.$ac_ext <<_ACEOF 9129 /* end confdefs.h. */ 9130 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9132 #define shl_load innocuous_shl_load 9133 9134 /* System header to define __stub macros and hopefully few prototypes, 9135 which can conflict with char shl_load (); below. 9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9137 <limits.h> exists even on freestanding compilers. */ 9138 9139 #ifdef __STDC__ 9140 # include <limits.h> 9141 #else 9142 # include <assert.h> 9143 #endif 9144 9145 #undef shl_load 9146 9147 /* Override any GCC internal prototype to avoid an error. 9148 Use char because int might match the return type of a GCC 9149 builtin and then its argument prototype would still apply. */ 9150 #ifdef __cplusplus 9151 extern "C" 9152 #endif 9153 char shl_load (); 9154 /* The GNU C library defines this for functions which it implements 9155 to always fail with ENOSYS. Some functions are actually named 9156 something starting with __ and the normal name is an alias. */ 9157 #if defined __stub_shl_load || defined __stub___shl_load 9158 choke me 9159 #endif 9160 9161 int 9162 main () 9163 { 9164 return shl_load (); 9165 ; 9166 return 0; 9167 } 9168 _ACEOF 9169 rm -f conftest.$ac_objext conftest$ac_exeext 9170 if { (ac_try="$ac_link" 9171 case "(($ac_try" in 9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9173 *) ac_try_echo=$ac_try;; 9174 esac 9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9176 (eval "$ac_link") 2>conftest.er1 9177 ac_status=$? 9178 grep -v '^ *+' conftest.er1 >conftest.err 9179 rm -f conftest.er1 9180 cat conftest.err >&5 9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9182 (exit $ac_status); } && { 9183 test -z "$ac_c_werror_flag" || 9184 test ! -s conftest.err 9185 } && test -s conftest$ac_exeext && 9186 $as_test_x conftest$ac_exeext; then 9187 ac_cv_func_shl_load=yes 9188 else 9189 echo "$as_me: failed program was:" >&5 9190 sed 's/^/| /' conftest.$ac_ext >&5 9191 9192 ac_cv_func_shl_load=no 9193 fi 9194 9195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9196 conftest$ac_exeext conftest.$ac_ext 9197 fi 9198 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9199 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9200 if test $ac_cv_func_shl_load = yes; then 9201 lt_cv_dlopen="shl_load" 9202 else 9203 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9204 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9205 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9206 echo $ECHO_N "(cached) $ECHO_C" >&6 9207 else 9208 ac_check_lib_save_LIBS=$LIBS 9209 LIBS="-ldld $LIBS" 9210 cat >conftest.$ac_ext <<_ACEOF 9211 /* confdefs.h. */ 9212 _ACEOF 9213 cat confdefs.h >>conftest.$ac_ext 9214 cat >>conftest.$ac_ext <<_ACEOF 9215 /* end confdefs.h. */ 9216 9217 /* Override any GCC internal prototype to avoid an error. 9218 Use char because int might match the return type of a GCC 9219 builtin and then its argument prototype would still apply. */ 9220 #ifdef __cplusplus 9221 extern "C" 9222 #endif 9223 char shl_load (); 9224 int 9225 main () 9226 { 9227 return shl_load (); 9228 ; 9229 return 0; 9230 } 9231 _ACEOF 9232 rm -f conftest.$ac_objext conftest$ac_exeext 9233 if { (ac_try="$ac_link" 9234 case "(($ac_try" in 9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9236 *) ac_try_echo=$ac_try;; 9237 esac 9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9239 (eval "$ac_link") 2>conftest.er1 9240 ac_status=$? 9241 grep -v '^ *+' conftest.er1 >conftest.err 9242 rm -f conftest.er1 9243 cat conftest.err >&5 9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9245 (exit $ac_status); } && { 9246 test -z "$ac_c_werror_flag" || 9247 test ! -s conftest.err 9248 } && test -s conftest$ac_exeext && 9249 $as_test_x conftest$ac_exeext; then 9250 ac_cv_lib_dld_shl_load=yes 9251 else 9252 echo "$as_me: failed program was:" >&5 9253 sed 's/^/| /' conftest.$ac_ext >&5 9254 9255 ac_cv_lib_dld_shl_load=no 9256 fi 9257 9258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9259 conftest$ac_exeext conftest.$ac_ext 9260 LIBS=$ac_check_lib_save_LIBS 9261 fi 9262 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9263 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9264 if test $ac_cv_lib_dld_shl_load = yes; then 9265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9266 else 9267 { echo "$as_me:$LINENO: checking for dlopen" >&5 9268 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9269 if test "${ac_cv_func_dlopen+set}" = set; then 9270 echo $ECHO_N "(cached) $ECHO_C" >&6 9271 else 9272 cat >conftest.$ac_ext <<_ACEOF 9273 /* confdefs.h. */ 9274 _ACEOF 9275 cat confdefs.h >>conftest.$ac_ext 9276 cat >>conftest.$ac_ext <<_ACEOF 9277 /* end confdefs.h. */ 9278 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9279 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9280 #define dlopen innocuous_dlopen 9281 9282 /* System header to define __stub macros and hopefully few prototypes, 9283 which can conflict with char dlopen (); below. 9284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9285 <limits.h> exists even on freestanding compilers. */ 9286 9287 #ifdef __STDC__ 9288 # include <limits.h> 9289 #else 9290 # include <assert.h> 9291 #endif 9292 9293 #undef dlopen 9294 9295 /* Override any GCC internal prototype to avoid an error. 9296 Use char because int might match the return type of a GCC 9297 builtin and then its argument prototype would still apply. */ 9298 #ifdef __cplusplus 9299 extern "C" 9300 #endif 9301 char dlopen (); 9302 /* The GNU C library defines this for functions which it implements 9303 to always fail with ENOSYS. Some functions are actually named 9304 something starting with __ and the normal name is an alias. */ 9305 #if defined __stub_dlopen || defined __stub___dlopen 9306 choke me 9307 #endif 9308 9309 int 9310 main () 9311 { 9312 return dlopen (); 9313 ; 9314 return 0; 9315 } 9316 _ACEOF 9317 rm -f conftest.$ac_objext conftest$ac_exeext 9318 if { (ac_try="$ac_link" 9319 case "(($ac_try" in 9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9321 *) ac_try_echo=$ac_try;; 9322 esac 9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9324 (eval "$ac_link") 2>conftest.er1 9325 ac_status=$? 9326 grep -v '^ *+' conftest.er1 >conftest.err 9327 rm -f conftest.er1 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 (exit $ac_status); } && { 9331 test -z "$ac_c_werror_flag" || 9332 test ! -s conftest.err 9333 } && test -s conftest$ac_exeext && 9334 $as_test_x conftest$ac_exeext; then 9335 ac_cv_func_dlopen=yes 9336 else 9337 echo "$as_me: failed program was:" >&5 9338 sed 's/^/| /' conftest.$ac_ext >&5 9339 9340 ac_cv_func_dlopen=no 9341 fi 9342 9343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9344 conftest$ac_exeext conftest.$ac_ext 9345 fi 9346 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9347 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9348 if test $ac_cv_func_dlopen = yes; then 9349 lt_cv_dlopen="dlopen" 9350 else 9351 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9352 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9353 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9354 echo $ECHO_N "(cached) $ECHO_C" >&6 9355 else 9356 ac_check_lib_save_LIBS=$LIBS 9357 LIBS="-ldl $LIBS" 9358 cat >conftest.$ac_ext <<_ACEOF 9359 /* confdefs.h. */ 9360 _ACEOF 9361 cat confdefs.h >>conftest.$ac_ext 9362 cat >>conftest.$ac_ext <<_ACEOF 9363 /* end confdefs.h. */ 9364 9365 /* Override any GCC internal prototype to avoid an error. 9366 Use char because int might match the return type of a GCC 9367 builtin and then its argument prototype would still apply. */ 9368 #ifdef __cplusplus 9369 extern "C" 9370 #endif 9371 char dlopen (); 9372 int 9373 main () 9374 { 9375 return dlopen (); 9376 ; 9377 return 0; 9378 } 9379 _ACEOF 9380 rm -f conftest.$ac_objext conftest$ac_exeext 9381 if { (ac_try="$ac_link" 9382 case "(($ac_try" in 9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9384 *) ac_try_echo=$ac_try;; 9385 esac 9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9387 (eval "$ac_link") 2>conftest.er1 9388 ac_status=$? 9389 grep -v '^ *+' conftest.er1 >conftest.err 9390 rm -f conftest.er1 9391 cat conftest.err >&5 9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9393 (exit $ac_status); } && { 9394 test -z "$ac_c_werror_flag" || 9395 test ! -s conftest.err 9396 } && test -s conftest$ac_exeext && 9397 $as_test_x conftest$ac_exeext; then 9398 ac_cv_lib_dl_dlopen=yes 9399 else 9400 echo "$as_me: failed program was:" >&5 9401 sed 's/^/| /' conftest.$ac_ext >&5 9402 9403 ac_cv_lib_dl_dlopen=no 9404 fi 9405 9406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9407 conftest$ac_exeext conftest.$ac_ext 9408 LIBS=$ac_check_lib_save_LIBS 9409 fi 9410 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9412 if test $ac_cv_lib_dl_dlopen = yes; then 9413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9414 else 9415 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9416 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9417 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9418 echo $ECHO_N "(cached) $ECHO_C" >&6 9419 else 9420 ac_check_lib_save_LIBS=$LIBS 9421 LIBS="-lsvld $LIBS" 9422 cat >conftest.$ac_ext <<_ACEOF 9423 /* confdefs.h. */ 9424 _ACEOF 9425 cat confdefs.h >>conftest.$ac_ext 9426 cat >>conftest.$ac_ext <<_ACEOF 9427 /* end confdefs.h. */ 9428 9429 /* Override any GCC internal prototype to avoid an error. 9430 Use char because int might match the return type of a GCC 9431 builtin and then its argument prototype would still apply. */ 9432 #ifdef __cplusplus 9433 extern "C" 9434 #endif 9435 char dlopen (); 9436 int 9437 main () 9438 { 9439 return dlopen (); 9440 ; 9441 return 0; 9442 } 9443 _ACEOF 9444 rm -f conftest.$ac_objext conftest$ac_exeext 9445 if { (ac_try="$ac_link" 9446 case "(($ac_try" in 9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9448 *) ac_try_echo=$ac_try;; 9449 esac 9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9451 (eval "$ac_link") 2>conftest.er1 9452 ac_status=$? 9453 grep -v '^ *+' conftest.er1 >conftest.err 9454 rm -f conftest.er1 9455 cat conftest.err >&5 9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9457 (exit $ac_status); } && { 9458 test -z "$ac_c_werror_flag" || 9459 test ! -s conftest.err 9460 } && test -s conftest$ac_exeext && 9461 $as_test_x conftest$ac_exeext; then 9462 ac_cv_lib_svld_dlopen=yes 9463 else 9464 echo "$as_me: failed program was:" >&5 9465 sed 's/^/| /' conftest.$ac_ext >&5 9466 9467 ac_cv_lib_svld_dlopen=no 9468 fi 9469 9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9471 conftest$ac_exeext conftest.$ac_ext 9472 LIBS=$ac_check_lib_save_LIBS 9473 fi 9474 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9475 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9476 if test $ac_cv_lib_svld_dlopen = yes; then 9477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9478 else 9479 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9480 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9481 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9482 echo $ECHO_N "(cached) $ECHO_C" >&6 9483 else 9484 ac_check_lib_save_LIBS=$LIBS 9485 LIBS="-ldld $LIBS" 9486 cat >conftest.$ac_ext <<_ACEOF 9487 /* confdefs.h. */ 9488 _ACEOF 9489 cat confdefs.h >>conftest.$ac_ext 9490 cat >>conftest.$ac_ext <<_ACEOF 9491 /* end confdefs.h. */ 9492 9493 /* Override any GCC internal prototype to avoid an error. 9494 Use char because int might match the return type of a GCC 9495 builtin and then its argument prototype would still apply. */ 9496 #ifdef __cplusplus 9497 extern "C" 9498 #endif 9499 char dld_link (); 9500 int 9501 main () 9502 { 9503 return dld_link (); 9504 ; 9505 return 0; 9506 } 9507 _ACEOF 9508 rm -f conftest.$ac_objext conftest$ac_exeext 9509 if { (ac_try="$ac_link" 9510 case "(($ac_try" in 9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9512 *) ac_try_echo=$ac_try;; 9513 esac 9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9515 (eval "$ac_link") 2>conftest.er1 9516 ac_status=$? 9517 grep -v '^ *+' conftest.er1 >conftest.err 9518 rm -f conftest.er1 9519 cat conftest.err >&5 9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9521 (exit $ac_status); } && { 9522 test -z "$ac_c_werror_flag" || 9523 test ! -s conftest.err 9524 } && test -s conftest$ac_exeext && 9525 $as_test_x conftest$ac_exeext; then 9526 ac_cv_lib_dld_dld_link=yes 9527 else 9528 echo "$as_me: failed program was:" >&5 9529 sed 's/^/| /' conftest.$ac_ext >&5 9530 9531 ac_cv_lib_dld_dld_link=no 9532 fi 9533 9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9535 conftest$ac_exeext conftest.$ac_ext 9536 LIBS=$ac_check_lib_save_LIBS 9537 fi 9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9539 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9540 if test $ac_cv_lib_dld_dld_link = yes; then 9541 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9542 fi 9543 9544 9545 fi 9546 9547 9548 fi 9549 9550 9551 fi 9552 9553 9554 fi 9555 9556 9557 fi 9558 9559 ;; 9560 esac 9561 9562 if test "x$lt_cv_dlopen" != xno; then 9563 enable_dlopen=yes 9564 else 9565 enable_dlopen=no 9566 fi 9567 9568 case $lt_cv_dlopen in 9569 dlopen) 9570 save_CPPFLAGS="$CPPFLAGS" 9571 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9572 9573 save_LDFLAGS="$LDFLAGS" 9574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9575 9576 save_LIBS="$LIBS" 9577 LIBS="$lt_cv_dlopen_libs $LIBS" 9578 9579 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9580 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9581 if test "${lt_cv_dlopen_self+set}" = set; then 9582 echo $ECHO_N "(cached) $ECHO_C" >&6 9583 else 9584 if test "$cross_compiling" = yes; then : 9585 lt_cv_dlopen_self=cross 9586 else 9587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9588 lt_status=$lt_dlunknown 9589 cat > conftest.$ac_ext <<EOF 9590 #line 9590 "configure" 9591 #include "confdefs.h" 9592 9593 #if HAVE_DLFCN_H 9594 #include <dlfcn.h> 9595 #endif 9596 9597 #include <stdio.h> 9598 9599 #ifdef RTLD_GLOBAL 9600 # define LT_DLGLOBAL RTLD_GLOBAL 9601 #else 9602 # ifdef DL_GLOBAL 9603 # define LT_DLGLOBAL DL_GLOBAL 9604 # else 9605 # define LT_DLGLOBAL 0 9606 # endif 9607 #endif 9608 9609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9610 find out it does not work in some platform. */ 9611 #ifndef LT_DLLAZY_OR_NOW 9612 # ifdef RTLD_LAZY 9613 # define LT_DLLAZY_OR_NOW RTLD_LAZY 9614 # else 9615 # ifdef DL_LAZY 9616 # define LT_DLLAZY_OR_NOW DL_LAZY 9617 # else 9618 # ifdef RTLD_NOW 9619 # define LT_DLLAZY_OR_NOW RTLD_NOW 9620 # else 9621 # ifdef DL_NOW 9622 # define LT_DLLAZY_OR_NOW DL_NOW 9623 # else 9624 # define LT_DLLAZY_OR_NOW 0 9625 # endif 9626 # endif 9627 # endif 9628 # endif 9629 #endif 9630 9631 #ifdef __cplusplus 9632 extern "C" void exit (int); 9633 #endif 9634 9635 void fnord() { int i=42;} 9636 int main () 9637 { 9638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9639 int status = $lt_dlunknown; 9640 9641 if (self) 9642 { 9643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9644 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9645 /* dlclose (self); */ 9646 } 9647 else 9648 puts (dlerror ()); 9649 9650 exit (status); 9651 } 9652 EOF 9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9654 (eval $ac_link) 2>&5 9655 ac_status=$? 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9658 (./conftest; exit; ) >&5 2>/dev/null 9659 lt_status=$? 9660 case x$lt_status in 9661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9663 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9664 esac 9665 else : 9666 # compilation failed 9667 lt_cv_dlopen_self=no 9668 fi 9669 fi 9670 rm -fr conftest* 9671 9672 9673 fi 9674 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9675 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9676 9677 if test "x$lt_cv_dlopen_self" = xyes; then 9678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9679 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9680 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9681 if test "${lt_cv_dlopen_self_static+set}" = set; then 9682 echo $ECHO_N "(cached) $ECHO_C" >&6 9683 else 9684 if test "$cross_compiling" = yes; then : 9685 lt_cv_dlopen_self_static=cross 9686 else 9687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9688 lt_status=$lt_dlunknown 9689 cat > conftest.$ac_ext <<EOF 9690 #line 9690 "configure" 9691 #include "confdefs.h" 9692 9693 #if HAVE_DLFCN_H 9694 #include <dlfcn.h> 9695 #endif 9696 9697 #include <stdio.h> 9698 9699 #ifdef RTLD_GLOBAL 9700 # define LT_DLGLOBAL RTLD_GLOBAL 9701 #else 9702 # ifdef DL_GLOBAL 9703 # define LT_DLGLOBAL DL_GLOBAL 9704 # else 9705 # define LT_DLGLOBAL 0 9706 # endif 9707 #endif 9708 9709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9710 find out it does not work in some platform. */ 9711 #ifndef LT_DLLAZY_OR_NOW 9712 # ifdef RTLD_LAZY 9713 # define LT_DLLAZY_OR_NOW RTLD_LAZY 9714 # else 9715 # ifdef DL_LAZY 9716 # define LT_DLLAZY_OR_NOW DL_LAZY 9717 # else 9718 # ifdef RTLD_NOW 9719 # define LT_DLLAZY_OR_NOW RTLD_NOW 9720 # else 9721 # ifdef DL_NOW 9722 # define LT_DLLAZY_OR_NOW DL_NOW 9723 # else 9724 # define LT_DLLAZY_OR_NOW 0 9725 # endif 9726 # endif 9727 # endif 9728 # endif 9729 #endif 9730 9731 #ifdef __cplusplus 9732 extern "C" void exit (int); 9733 #endif 9734 9735 void fnord() { int i=42;} 9736 int main () 9737 { 9738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9739 int status = $lt_dlunknown; 9740 9741 if (self) 9742 { 9743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9745 /* dlclose (self); */ 9746 } 9747 else 9748 puts (dlerror ()); 9749 9750 exit (status); 9751 } 9752 EOF 9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9754 (eval $ac_link) 2>&5 9755 ac_status=$? 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9758 (./conftest; exit; ) >&5 2>/dev/null 9759 lt_status=$? 9760 case x$lt_status in 9761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9764 esac 9765 else : 9766 # compilation failed 9767 lt_cv_dlopen_self_static=no 9768 fi 9769 fi 9770 rm -fr conftest* 9771 9772 9773 fi 9774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9775 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9776 fi 9777 9778 CPPFLAGS="$save_CPPFLAGS" 9779 LDFLAGS="$save_LDFLAGS" 9780 LIBS="$save_LIBS" 9781 ;; 9782 esac 9783 9784 case $lt_cv_dlopen_self in 9785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9786 *) enable_dlopen_self=unknown ;; 9787 esac 9788 9789 case $lt_cv_dlopen_self_static in 9790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9791 *) enable_dlopen_self_static=unknown ;; 9792 esac 9793 fi 9794 9795 9796 # Report which library types will actually be built 9797 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9798 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9799 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 9800 echo "${ECHO_T}$can_build_shared" >&6; } 9801 9802 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9803 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9804 test "$can_build_shared" = "no" && enable_shared=no 9805 9806 # On AIX, shared libraries and static libraries use the same namespace, and 9807 # are all built from PIC. 9808 case $host_os in 9809 aix3*) 9810 test "$enable_shared" = yes && enable_static=no 9811 if test -n "$RANLIB"; then 9812 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9813 postinstall_cmds='$RANLIB $lib' 9814 fi 9815 ;; 9816 9817 aix[4-9]*) 9818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9819 test "$enable_shared" = yes && enable_static=no 9820 fi 9821 ;; 9822 esac 9823 { echo "$as_me:$LINENO: result: $enable_shared" >&5 9824 echo "${ECHO_T}$enable_shared" >&6; } 9825 9826 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9827 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9828 # Make sure either enable_shared or enable_static is yes. 9829 test "$enable_shared" = yes || enable_static=yes 9830 { echo "$as_me:$LINENO: result: $enable_static" >&5 9831 echo "${ECHO_T}$enable_static" >&6; } 9832 9833 # The else clause should only fire when bootstrapping the 9834 # libtool distribution, otherwise you forgot to ship ltmain.sh 9835 # with your package, and you will get complaints that there are 9836 # no rules to generate ltmain.sh. 9837 if test -f "$ltmain"; then 9838 # See if we are running on zsh, and set the options which allow our commands through 9839 # without removal of \ escapes. 9840 if test -n "${ZSH_VERSION+set}" ; then 9841 setopt NO_GLOB_SUBST 9842 fi 9843 # Now quote all the things that may contain metacharacters while being 9844 # careful not to overquote the AC_SUBSTed values. We take copies of the 9845 # variables and quote the copies for generation of the libtool script. 9846 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9847 SED SHELL STRIP \ 9848 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9849 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9850 deplibs_check_method reload_flag reload_cmds need_locks \ 9851 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9852 lt_cv_sys_global_symbol_to_c_name_address \ 9853 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9854 old_postinstall_cmds old_postuninstall_cmds \ 9855 compiler \ 9856 CC \ 9857 LD \ 9858 lt_prog_compiler_wl \ 9859 lt_prog_compiler_pic \ 9860 lt_prog_compiler_static \ 9861 lt_prog_compiler_no_builtin_flag \ 9862 export_dynamic_flag_spec \ 9863 thread_safe_flag_spec \ 9864 whole_archive_flag_spec \ 9865 enable_shared_with_static_runtimes \ 9866 old_archive_cmds \ 9867 old_archive_from_new_cmds \ 9868 predep_objects \ 9869 postdep_objects \ 9870 predeps \ 9871 postdeps \ 9872 compiler_lib_search_path \ 9873 compiler_lib_search_dirs \ 9874 archive_cmds \ 9875 archive_expsym_cmds \ 9876 postinstall_cmds \ 9877 postuninstall_cmds \ 9878 old_archive_from_expsyms_cmds \ 9879 allow_undefined_flag \ 9880 no_undefined_flag \ 9881 export_symbols_cmds \ 9882 hardcode_libdir_flag_spec \ 9883 hardcode_libdir_flag_spec_ld \ 9884 hardcode_libdir_separator \ 9885 hardcode_automatic \ 9886 module_cmds \ 9887 module_expsym_cmds \ 9888 lt_cv_prog_compiler_c_o \ 9889 fix_srcfile_path \ 9890 exclude_expsyms \ 9891 include_expsyms; do 9892 9893 case $var in 9894 old_archive_cmds | \ 9895 old_archive_from_new_cmds | \ 9896 archive_cmds | \ 9897 archive_expsym_cmds | \ 9898 module_cmds | \ 9899 module_expsym_cmds | \ 9900 old_archive_from_expsyms_cmds | \ 9901 export_symbols_cmds | \ 9902 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9903 postinstall_cmds | postuninstall_cmds | \ 9904 old_postinstall_cmds | old_postuninstall_cmds | \ 9905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9906 # Double-quote double-evaled strings. 9907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9908 ;; 9909 *) 9910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9911 ;; 9912 esac 9913 done 9914 9915 case $lt_echo in 9916 *'\$0 --fallback-echo"') 9917 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9918 ;; 9919 esac 9920 9921 cfgfile="${ofile}T" 9922 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9923 $rm -f "$cfgfile" 9924 { echo "$as_me:$LINENO: creating $ofile" >&5 9925 echo "$as_me: creating $ofile" >&6;} 9926 9927 cat <<__EOF__ >> "$cfgfile" 9928 #! $SHELL 9929 9930 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9931 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9932 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 9933 # 9934 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 9935 # Free Software Foundation, Inc. 9936 # 9937 # This file is part of GNU Libtool: 9938 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996 9939 # 9940 # This program is free software; you can redistribute it and/or modify 9941 # it under the terms of the GNU General Public License as published by 9942 # the Free Software Foundation; either version 2 of the License, or 9943 # (at your option) any later version. 9944 # 9945 # This program is distributed in the hope that it will be useful, but 9946 # WITHOUT ANY WARRANTY; without even the implied warranty of 9947 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9948 # General Public License for more details. 9949 # 9950 # You should have received a copy of the GNU General Public License 9951 # along with this program; if not, write to the Free Software 9952 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9953 # 9954 # As a special exception to the GNU General Public License, if you 9955 # distribute this file as part of a program that contains a 9956 # configuration script generated by Autoconf, you may include it under 9957 # the same distribution terms that you use for the rest of that program. 9958 9959 # A sed program that does not truncate output. 9960 SED=$lt_SED 9961 9962 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 9963 Xsed="$SED -e 1s/^X//" 9964 9965 # The HP-UX ksh and POSIX shell print the target directory to stdout 9966 # if CDPATH is set. 9967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9968 9969 # The names of the tagged configurations supported by this script. 9970 available_tags= 9971 9972 # ### BEGIN LIBTOOL CONFIG 9973 9974 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9975 9976 # Shell to use when invoking shell scripts. 9977 SHELL=$lt_SHELL 9978 9979 # Whether or not to build shared libraries. 9980 build_libtool_libs=$enable_shared 9981 9982 # Whether or not to build static libraries. 9983 build_old_libs=$enable_static 9984 9985 # Whether or not to add -lc for building shared libraries. 9986 build_libtool_need_lc=$archive_cmds_need_lc 9987 9988 # Whether or not to disallow shared libs when runtime libs are static 9989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9990 9991 # Whether or not to optimize for fast installation. 9992 fast_install=$enable_fast_install 9993 9994 # The host system. 9995 host_alias=$host_alias 9996 host=$host 9997 host_os=$host_os 9998 9999 # The build system. 10000 build_alias=$build_alias 10001 build=$build 10002 build_os=$build_os 10003 10004 # An echo program that does not interpret backslashes. 10005 echo=$lt_echo 10006 10007 # The archiver. 10008 AR=$lt_AR 10009 AR_FLAGS=$lt_AR_FLAGS 10010 10011 # A C compiler. 10012 LTCC=$lt_LTCC 10013 10014 # LTCC compiler flags. 10015 LTCFLAGS=$lt_LTCFLAGS 10016 10017 # A language-specific compiler. 10018 CC=$lt_compiler 10019 10020 # Is the compiler the GNU C compiler? 10021 with_gcc=$GCC 10022 10023 # An ERE matcher. 10024 EGREP=$lt_EGREP 10025 10026 # The linker used to build libraries. 10027 LD=$lt_LD 10028 10029 # Whether we need hard or soft links. 10030 LN_S=$lt_LN_S 10031 10032 # A BSD-compatible nm program. 10033 NM=$lt_NM 10034 10035 # A symbol stripping program 10036 STRIP=$lt_STRIP 10037 10038 # Used to examine libraries when file_magic_cmd begins "file" 10039 MAGIC_CMD=$MAGIC_CMD 10040 10041 # Used on cygwin: DLL creation program. 10042 DLLTOOL="$DLLTOOL" 10043 10044 # Used on cygwin: object dumper. 10045 OBJDUMP="$OBJDUMP" 10046 10047 # Used on cygwin: assembler. 10048 AS="$AS" 10049 10050 # The name of the directory that contains temporary libtool files. 10051 objdir=$objdir 10052 10053 # How to create reloadable object files. 10054 reload_flag=$lt_reload_flag 10055 reload_cmds=$lt_reload_cmds 10056 10057 # How to pass a linker flag through the compiler. 10058 wl=$lt_lt_prog_compiler_wl 10059 10060 # Object file suffix (normally "o"). 10061 objext="$ac_objext" 10062 10063 # Old archive suffix (normally "a"). 10064 libext="$libext" 10065 10066 # Shared library suffix (normally ".so"). 10067 shrext_cmds='$shrext_cmds' 10068 10069 # Executable file suffix (normally ""). 10070 exeext="$exeext" 10071 10072 # Additional compiler flags for building library objects. 10073 pic_flag=$lt_lt_prog_compiler_pic 10074 pic_mode=$pic_mode 10075 10076 # What is the maximum length of a command? 10077 max_cmd_len=$lt_cv_sys_max_cmd_len 10078 10079 # Does compiler simultaneously support -c and -o options? 10080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10081 10082 # Must we lock files when doing compilation? 10083 need_locks=$lt_need_locks 10084 10085 # Do we need the lib prefix for modules? 10086 need_lib_prefix=$need_lib_prefix 10087 10088 # Do we need a version for libraries? 10089 need_version=$need_version 10090 10091 # Whether dlopen is supported. 10092 dlopen_support=$enable_dlopen 10093 10094 # Whether dlopen of programs is supported. 10095 dlopen_self=$enable_dlopen_self 10096 10097 # Whether dlopen of statically linked programs is supported. 10098 dlopen_self_static=$enable_dlopen_self_static 10099 10100 # Compiler flag to prevent dynamic linking. 10101 link_static_flag=$lt_lt_prog_compiler_static 10102 10103 # Compiler flag to turn off builtin functions. 10104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10105 10106 # Compiler flag to allow reflexive dlopens. 10107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10108 10109 # Compiler flag to generate shared objects directly from archives. 10110 whole_archive_flag_spec=$lt_whole_archive_flag_spec 10111 10112 # Compiler flag to generate thread-safe objects. 10113 thread_safe_flag_spec=$lt_thread_safe_flag_spec 10114 10115 # Library versioning type. 10116 version_type=$version_type 10117 10118 # Format of library name prefix. 10119 libname_spec=$lt_libname_spec 10120 10121 # List of archive names. First name is the real one, the rest are links. 10122 # The last name is the one that the linker finds with -lNAME. 10123 library_names_spec=$lt_library_names_spec 10124 10125 # The coded name of the library, if different from the real name. 10126 soname_spec=$lt_soname_spec 10127 10128 # Commands used to build and install an old-style archive. 10129 RANLIB=$lt_RANLIB 10130 old_archive_cmds=$lt_old_archive_cmds 10131 old_postinstall_cmds=$lt_old_postinstall_cmds 10132 old_postuninstall_cmds=$lt_old_postuninstall_cmds 10133 10134 # Create an old-style archive from a shared archive. 10135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10136 10137 # Create a temporary old-style archive to link instead of a shared archive. 10138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10139 10140 # Commands used to build and install a shared archive. 10141 archive_cmds=$lt_archive_cmds 10142 archive_expsym_cmds=$lt_archive_expsym_cmds 10143 postinstall_cmds=$lt_postinstall_cmds 10144 postuninstall_cmds=$lt_postuninstall_cmds 10145 10146 # Commands used to build a loadable module (assumed same as above if empty) 10147 module_cmds=$lt_module_cmds 10148 module_expsym_cmds=$lt_module_expsym_cmds 10149 10150 # Commands to strip libraries. 10151 old_striplib=$lt_old_striplib 10152 striplib=$lt_striplib 10153 10154 # Dependencies to place before the objects being linked to create a 10155 # shared library. 10156 predep_objects=$lt_predep_objects 10157 10158 # Dependencies to place after the objects being linked to create a 10159 # shared library. 10160 postdep_objects=$lt_postdep_objects 10161 10162 # Dependencies to place before the objects being linked to create a 10163 # shared library. 10164 predeps=$lt_predeps 10165 10166 # Dependencies to place after the objects being linked to create a 10167 # shared library. 10168 postdeps=$lt_postdeps 10169 10170 # The directories searched by this compiler when creating a shared 10171 # library 10172 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10173 10174 # The library search path used internally by the compiler when linking 10175 # a shared library. 10176 compiler_lib_search_path=$lt_compiler_lib_search_path 10177 10178 # Method to check whether dependent libraries are shared objects. 10179 deplibs_check_method=$lt_deplibs_check_method 10180 10181 # Command to use when deplibs_check_method == file_magic. 10182 file_magic_cmd=$lt_file_magic_cmd 10183 10184 # Flag that allows shared libraries with undefined symbols to be built. 10185 allow_undefined_flag=$lt_allow_undefined_flag 10186 10187 # Flag that forces no undefined symbols. 10188 no_undefined_flag=$lt_no_undefined_flag 10189 10190 # Commands used to finish a libtool library installation in a directory. 10191 finish_cmds=$lt_finish_cmds 10192 10193 # Same as above, but a single script fragment to be evaled but not shown. 10194 finish_eval=$lt_finish_eval 10195 10196 # Take the output of nm and produce a listing of raw symbols and C names. 10197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10198 10199 # Transform the output of nm in a proper C declaration 10200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10201 10202 # Transform the output of nm in a C name address pair 10203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10204 10205 # This is the shared library runtime path variable. 10206 runpath_var=$runpath_var 10207 10208 # This is the shared library path variable. 10209 shlibpath_var=$shlibpath_var 10210 10211 # Is shlibpath searched before the hard-coded library search path? 10212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10213 10214 # How to hardcode a shared library path into an executable. 10215 hardcode_action=$hardcode_action 10216 10217 # Whether we should hardcode library paths into libraries. 10218 hardcode_into_libs=$hardcode_into_libs 10219 10220 # Flag to hardcode \$libdir into a binary during linking. 10221 # This must work even if \$libdir does not exist. 10222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10223 10224 # If ld is used when linking, flag to hardcode \$libdir into 10225 # a binary during linking. This must work even if \$libdir does 10226 # not exist. 10227 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10228 10229 # Whether we need a single -rpath flag with a separated argument. 10230 hardcode_libdir_separator=$lt_hardcode_libdir_separator 10231 10232 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10233 # resulting binary. 10234 hardcode_direct=$hardcode_direct 10235 10236 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10237 # resulting binary. 10238 hardcode_minus_L=$hardcode_minus_L 10239 10240 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10241 # the resulting binary. 10242 hardcode_shlibpath_var=$hardcode_shlibpath_var 10243 10244 # Set to yes if building a shared library automatically hardcodes DIR into the library 10245 # and all subsequent libraries and executables linked against it. 10246 hardcode_automatic=$hardcode_automatic 10247 10248 # Variables whose values should be saved in libtool wrapper scripts and 10249 # restored at relink time. 10250 variables_saved_for_relink="$variables_saved_for_relink" 10251 10252 # Whether libtool must link a program against all its dependency libraries. 10253 link_all_deplibs=$link_all_deplibs 10254 10255 # Compile-time system search path for libraries 10256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10257 10258 # Run-time system search path for libraries 10259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10260 10261 # Fix the shell variable \$srcfile for the compiler. 10262 fix_srcfile_path=$lt_fix_srcfile_path 10263 10264 # Set to yes if exported symbols are required. 10265 always_export_symbols=$always_export_symbols 10266 10267 # The commands to list exported symbols. 10268 export_symbols_cmds=$lt_export_symbols_cmds 10269 10270 # The commands to extract the exported symbol list from a shared archive. 10271 extract_expsyms_cmds=$lt_extract_expsyms_cmds 10272 10273 # Symbols that should not be listed in the preloaded symbols. 10274 exclude_expsyms=$lt_exclude_expsyms 10275 10276 # Symbols that must always be exported. 10277 include_expsyms=$lt_include_expsyms 10278 10279 # ### END LIBTOOL CONFIG 10280 10281 __EOF__ 10282 10283 10284 case $host_os in 10285 aix3*) 10286 cat <<\EOF >> "$cfgfile" 10287 10288 # AIX sometimes has problems with the GCC collect2 program. For some 10289 # reason, if we set the COLLECT_NAMES environment variable, the problems 10290 # vanish in a puff of smoke. 10291 if test "X${COLLECT_NAMES+set}" != Xset; then 10292 COLLECT_NAMES= 10293 export COLLECT_NAMES 10294 fi 10295 EOF 10296 ;; 10297 esac 10298 10299 # We use sed instead of cat because bash on DJGPP gets confused if 10300 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10301 # text mode, it properly converts lines to CR/LF. This bash problem 10302 # is reportedly fixed, but why not run on old versions too? 10303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10304 10305 mv -f "$cfgfile" "$ofile" || \ 10306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10307 chmod +x "$ofile" 10308 10309 else 10310 # If there is no Makefile yet, we rely on a make rule to execute 10311 # `config.status --recheck' to rerun these tests and create the 10312 # libtool script then. 10313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10314 if test -f "$ltmain_in"; then 10315 test -f Makefile && make "$ltmain" 10316 fi 10317 fi 10318 10319 10320 ac_ext=c 10321 ac_cpp='$CPP $CPPFLAGS' 10322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10324 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10325 10326 CC="$lt_save_CC" 10327 10328 10329 # Check whether --with-tags was given. 10330 if test "${with_tags+set}" = set; then 10331 withval=$with_tags; tagnames="$withval" 10332 fi 10333 10334 10335 if test -f "$ltmain" && test -n "$tagnames"; then 10336 if test ! -f "${ofile}"; then 10337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10338 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10339 fi 10340 10341 if test -z "$LTCC"; then 10342 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10343 if test -z "$LTCC"; then 10344 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10345 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10346 else 10347 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10348 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10349 fi 10350 fi 10351 if test -z "$LTCFLAGS"; then 10352 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10353 fi 10354 10355 # Extract list of available tagged configurations in $ofile. 10356 # Note that this assumes the entire list is on one line. 10357 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10358 10359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10360 for tagname in $tagnames; do 10361 IFS="$lt_save_ifs" 10362 # Check whether tagname contains only valid characters 10363 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10364 "") ;; 10365 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10366 echo "$as_me: error: invalid tag name: $tagname" >&2;} 10367 { (exit 1); exit 1; }; } 10368 ;; 10369 esac 10370 10371 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10372 then 10373 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10374 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10375 { (exit 1); exit 1; }; } 10376 fi 10377 10378 # Update the list of available tags. 10379 if test -n "$tagname"; then 10380 echo appending configuration tag \"$tagname\" to $ofile 10381 10382 case $tagname in 10383 CXX) 10384 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10386 (test "X$CXX" != "Xg++"))) ; then 10387 ac_ext=cpp 10388 ac_cpp='$CXXCPP $CPPFLAGS' 10389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10392 10393 10394 10395 10396 archive_cmds_need_lc_CXX=no 10397 allow_undefined_flag_CXX= 10398 always_export_symbols_CXX=no 10399 archive_expsym_cmds_CXX= 10400 export_dynamic_flag_spec_CXX= 10401 hardcode_direct_CXX=no 10402 hardcode_libdir_flag_spec_CXX= 10403 hardcode_libdir_flag_spec_ld_CXX= 10404 hardcode_libdir_separator_CXX= 10405 hardcode_minus_L_CXX=no 10406 hardcode_shlibpath_var_CXX=unsupported 10407 hardcode_automatic_CXX=no 10408 module_cmds_CXX= 10409 module_expsym_cmds_CXX= 10410 link_all_deplibs_CXX=unknown 10411 old_archive_cmds_CXX=$old_archive_cmds 10412 no_undefined_flag_CXX= 10413 whole_archive_flag_spec_CXX= 10414 enable_shared_with_static_runtimes_CXX=no 10415 10416 # Dependencies to place before and after the object being linked: 10417 predep_objects_CXX= 10418 postdep_objects_CXX= 10419 predeps_CXX= 10420 postdeps_CXX= 10421 compiler_lib_search_path_CXX= 10422 compiler_lib_search_dirs_CXX= 10423 10424 # Source file extension for C++ test sources. 10425 ac_ext=cpp 10426 10427 # Object file extension for compiled C++ test sources. 10428 objext=o 10429 objext_CXX=$objext 10430 10431 # Code to be used in simple compile tests 10432 lt_simple_compile_test_code="int some_variable = 0;" 10433 10434 # Code to be used in simple link tests 10435 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10436 10437 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 10438 10439 # If no C compiler was specified, use CC. 10440 LTCC=${LTCC-"$CC"} 10441 10442 # If no C compiler flags were specified, use CFLAGS. 10443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10444 10445 # Allow CC to be a program name with arguments. 10446 compiler=$CC 10447 10448 10449 # save warnings/boilerplate of simple test code 10450 ac_outfile=conftest.$ac_objext 10451 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10453 _lt_compiler_boilerplate=`cat conftest.err` 10454 $rm conftest* 10455 10456 ac_outfile=conftest.$ac_objext 10457 echo "$lt_simple_link_test_code" >conftest.$ac_ext 10458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10459 _lt_linker_boilerplate=`cat conftest.err` 10460 $rm -r conftest* 10461 10462 10463 # Allow CC to be a program name with arguments. 10464 lt_save_CC=$CC 10465 lt_save_LD=$LD 10466 lt_save_GCC=$GCC 10467 GCC=$GXX 10468 lt_save_with_gnu_ld=$with_gnu_ld 10469 lt_save_path_LD=$lt_cv_path_LD 10470 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10472 else 10473 $as_unset lt_cv_prog_gnu_ld 10474 fi 10475 if test -n "${lt_cv_path_LDCXX+set}"; then 10476 lt_cv_path_LD=$lt_cv_path_LDCXX 10477 else 10478 $as_unset lt_cv_path_LD 10479 fi 10480 test -z "${LDCXX+set}" || LD=$LDCXX 10481 CC=${CXX-"c++"} 10482 compiler=$CC 10483 compiler_CXX=$CC 10484 for cc_temp in $compiler""; do 10485 case $cc_temp in 10486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10488 \-*) ;; 10489 *) break;; 10490 esac 10491 done 10492 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10493 10494 10495 # We don't want -fno-exception wen compiling C++ code, so set the 10496 # no_builtin_flag separately 10497 if test "$GXX" = yes; then 10498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10499 else 10500 lt_prog_compiler_no_builtin_flag_CXX= 10501 fi 10502 10503 if test "$GXX" = yes; then 10504 # Set up default GNU C++ configuration 10505 10506 10507 # Check whether --with-gnu-ld was given. 10508 if test "${with_gnu_ld+set}" = set; then 10509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10510 else 10511 with_gnu_ld=no 10512 fi 10513 10514 ac_prog=ld 10515 if test "$GCC" = yes; then 10516 # Check if gcc -print-prog-name=ld gives a path. 10517 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10518 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10519 case $host in 10520 *-*-mingw*) 10521 # gcc leaves a trailing carriage return which upsets mingw 10522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10523 *) 10524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10525 esac 10526 case $ac_prog in 10527 # Accept absolute paths. 10528 [\\/]* | ?:[\\/]*) 10529 re_direlt='/[^/][^/]*/\.\./' 10530 # Canonicalize the pathname of ld 10531 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10533 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10534 done 10535 test -z "$LD" && LD="$ac_prog" 10536 ;; 10537 "") 10538 # If it fails, then pretend we aren't using GCC. 10539 ac_prog=ld 10540 ;; 10541 *) 10542 # If it is relative, then search for the first ld in PATH. 10543 with_gnu_ld=unknown 10544 ;; 10545 esac 10546 elif test "$with_gnu_ld" = yes; then 10547 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10548 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10549 else 10550 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10551 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10552 fi 10553 if test "${lt_cv_path_LD+set}" = set; then 10554 echo $ECHO_N "(cached) $ECHO_C" >&6 10555 else 10556 if test -z "$LD"; then 10557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10558 for ac_dir in $PATH; do 10559 IFS="$lt_save_ifs" 10560 test -z "$ac_dir" && ac_dir=. 10561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10562 lt_cv_path_LD="$ac_dir/$ac_prog" 10563 # Check to see if the program is GNU ld. I'd rather use --version, 10564 # but apparently some variants of GNU ld only accept -v. 10565 # Break only if it was the GNU/non-GNU ld that we prefer. 10566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10567 *GNU* | *'with BFD'*) 10568 test "$with_gnu_ld" != no && break 10569 ;; 10570 *) 10571 test "$with_gnu_ld" != yes && break 10572 ;; 10573 esac 10574 fi 10575 done 10576 IFS="$lt_save_ifs" 10577 else 10578 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10579 fi 10580 fi 10581 10582 LD="$lt_cv_path_LD" 10583 if test -n "$LD"; then 10584 { echo "$as_me:$LINENO: result: $LD" >&5 10585 echo "${ECHO_T}$LD" >&6; } 10586 else 10587 { echo "$as_me:$LINENO: result: no" >&5 10588 echo "${ECHO_T}no" >&6; } 10589 fi 10590 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10591 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10592 { (exit 1); exit 1; }; } 10593 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10594 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10595 if test "${lt_cv_prog_gnu_ld+set}" = set; then 10596 echo $ECHO_N "(cached) $ECHO_C" >&6 10597 else 10598 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10599 case `$LD -v 2>&1 </dev/null` in 10600 *GNU* | *'with BFD'*) 10601 lt_cv_prog_gnu_ld=yes 10602 ;; 10603 *) 10604 lt_cv_prog_gnu_ld=no 10605 ;; 10606 esac 10607 fi 10608 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10609 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10610 with_gnu_ld=$lt_cv_prog_gnu_ld 10611 10612 10613 10614 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10615 # archiving commands below assume that GNU ld is being used. 10616 if test "$with_gnu_ld" = yes; then 10617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10618 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10619 10620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10622 10623 # If archive_cmds runs LD, not CC, wlarc should be empty 10624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10625 # investigate it a little bit more. (MM) 10626 wlarc='${wl}' 10627 10628 # ancient GNU ld didn't support --whole-archive et. al. 10629 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10630 grep 'no-whole-archive' > /dev/null; then 10631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10632 else 10633 whole_archive_flag_spec_CXX= 10634 fi 10635 else 10636 with_gnu_ld=no 10637 wlarc= 10638 10639 # A generic and very simple default shared library creation 10640 # command for GNU C++ for the case where it uses the native 10641 # linker, instead of GNU ld. If possible, this setting should 10642 # overridden to take advantage of the native linker features on 10643 # the platform it is being used on. 10644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10645 fi 10646 10647 # Commands to make compiler produce verbose output that lists 10648 # what "hidden" libraries, object files and flags are used when 10649 # linking a shared library. 10650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10651 10652 else 10653 GXX=no 10654 with_gnu_ld=no 10655 wlarc= 10656 fi 10657 10658 # PORTME: fill in a description of your system's C++ link characteristics 10659 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10661 ld_shlibs_CXX=yes 10662 case $host_os in 10663 aix3*) 10664 # FIXME: insert proper C++ library support 10665 ld_shlibs_CXX=no 10666 ;; 10667 aix[4-9]*) 10668 if test "$host_cpu" = ia64; then 10669 # On IA64, the linker does run time linking by default, so we don't 10670 # have to do anything special. 10671 aix_use_runtimelinking=no 10672 exp_sym_flag='-Bexport' 10673 no_entry_flag="" 10674 else 10675 aix_use_runtimelinking=no 10676 10677 # Test if we are trying to use run time linking or normal 10678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10679 # need to do runtime linking. 10680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10681 for ld_flag in $LDFLAGS; do 10682 case $ld_flag in 10683 *-brtl*) 10684 aix_use_runtimelinking=yes 10685 break 10686 ;; 10687 esac 10688 done 10689 ;; 10690 esac 10691 10692 exp_sym_flag='-bexport' 10693 no_entry_flag='-bnoentry' 10694 fi 10695 10696 # When large executables or shared objects are built, AIX ld can 10697 # have problems creating the table of contents. If linking a library 10698 # or program results in "error TOC overflow" add -mminimal-toc to 10699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10701 10702 archive_cmds_CXX='' 10703 hardcode_direct_CXX=yes 10704 hardcode_libdir_separator_CXX=':' 10705 link_all_deplibs_CXX=yes 10706 10707 if test "$GXX" = yes; then 10708 case $host_os in aix4.[012]|aix4.[012].*) 10709 # We only want to do this on AIX 4.2 and lower, the check 10710 # below for broken collect2 doesn't work under 4.3+ 10711 collect2name=`${CC} -print-prog-name=collect2` 10712 if test -f "$collect2name" && \ 10713 strings "$collect2name" | grep resolve_lib_name >/dev/null 10714 then 10715 # We have reworked collect2 10716 : 10717 else 10718 # We have old collect2 10719 hardcode_direct_CXX=unsupported 10720 # It fails to find uninstalled libraries when the uninstalled 10721 # path is not listed in the libpath. Setting hardcode_minus_L 10722 # to unsupported forces relinking 10723 hardcode_minus_L_CXX=yes 10724 hardcode_libdir_flag_spec_CXX='-L$libdir' 10725 hardcode_libdir_separator_CXX= 10726 fi 10727 ;; 10728 esac 10729 shared_flag='-shared' 10730 if test "$aix_use_runtimelinking" = yes; then 10731 shared_flag="$shared_flag "'${wl}-G' 10732 fi 10733 else 10734 # not using gcc 10735 if test "$host_cpu" = ia64; then 10736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10737 # chokes on -Wl,-G. The following line is correct: 10738 shared_flag='-G' 10739 else 10740 if test "$aix_use_runtimelinking" = yes; then 10741 shared_flag='${wl}-G' 10742 else 10743 shared_flag='${wl}-bM:SRE' 10744 fi 10745 fi 10746 fi 10747 10748 # It seems that -bexpall does not export symbols beginning with 10749 # underscore (_), so it is better to generate a list of symbols to export. 10750 always_export_symbols_CXX=yes 10751 if test "$aix_use_runtimelinking" = yes; then 10752 # Warning - without using the other runtime loading flags (-brtl), 10753 # -berok will link without error, but may produce a broken library. 10754 allow_undefined_flag_CXX='-berok' 10755 # Determine the default libpath from the value encoded in an empty executable. 10756 cat >conftest.$ac_ext <<_ACEOF 10757 /* confdefs.h. */ 10758 _ACEOF 10759 cat confdefs.h >>conftest.$ac_ext 10760 cat >>conftest.$ac_ext <<_ACEOF 10761 /* end confdefs.h. */ 10762 10763 int 10764 main () 10765 { 10766 10767 ; 10768 return 0; 10769 } 10770 _ACEOF 10771 rm -f conftest.$ac_objext conftest$ac_exeext 10772 if { (ac_try="$ac_link" 10773 case "(($ac_try" in 10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10775 *) ac_try_echo=$ac_try;; 10776 esac 10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10778 (eval "$ac_link") 2>conftest.er1 10779 ac_status=$? 10780 grep -v '^ *+' conftest.er1 >conftest.err 10781 rm -f conftest.er1 10782 cat conftest.err >&5 10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10784 (exit $ac_status); } && { 10785 test -z "$ac_cxx_werror_flag" || 10786 test ! -s conftest.err 10787 } && test -s conftest$ac_exeext && 10788 $as_test_x conftest$ac_exeext; then 10789 10790 lt_aix_libpath_sed=' 10791 /Import File Strings/,/^$/ { 10792 /^0/ { 10793 s/^0 *\(.*\)$/\1/ 10794 p 10795 } 10796 }' 10797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10798 # Check for a 64-bit object if we didn't find anything. 10799 if test -z "$aix_libpath"; then 10800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10801 fi 10802 else 10803 echo "$as_me: failed program was:" >&5 10804 sed 's/^/| /' conftest.$ac_ext >&5 10805 10806 10807 fi 10808 10809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10810 conftest$ac_exeext conftest.$ac_ext 10811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10812 10813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10814 10815 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10816 else 10817 if test "$host_cpu" = ia64; then 10818 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10819 allow_undefined_flag_CXX="-z nodefs" 10820 archive_expsym_cmds_CXX="\$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" 10821 else 10822 # Determine the default libpath from the value encoded in an empty executable. 10823 cat >conftest.$ac_ext <<_ACEOF 10824 /* confdefs.h. */ 10825 _ACEOF 10826 cat confdefs.h >>conftest.$ac_ext 10827 cat >>conftest.$ac_ext <<_ACEOF 10828 /* end confdefs.h. */ 10829 10830 int 10831 main () 10832 { 10833 10834 ; 10835 return 0; 10836 } 10837 _ACEOF 10838 rm -f conftest.$ac_objext conftest$ac_exeext 10839 if { (ac_try="$ac_link" 10840 case "(($ac_try" in 10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10842 *) ac_try_echo=$ac_try;; 10843 esac 10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10845 (eval "$ac_link") 2>conftest.er1 10846 ac_status=$? 10847 grep -v '^ *+' conftest.er1 >conftest.err 10848 rm -f conftest.er1 10849 cat conftest.err >&5 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 (exit $ac_status); } && { 10852 test -z "$ac_cxx_werror_flag" || 10853 test ! -s conftest.err 10854 } && test -s conftest$ac_exeext && 10855 $as_test_x conftest$ac_exeext; then 10856 10857 lt_aix_libpath_sed=' 10858 /Import File Strings/,/^$/ { 10859 /^0/ { 10860 s/^0 *\(.*\)$/\1/ 10861 p 10862 } 10863 }' 10864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10865 # Check for a 64-bit object if we didn't find anything. 10866 if test -z "$aix_libpath"; then 10867 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10868 fi 10869 else 10870 echo "$as_me: failed program was:" >&5 10871 sed 's/^/| /' conftest.$ac_ext >&5 10872 10873 10874 fi 10875 10876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10877 conftest$ac_exeext conftest.$ac_ext 10878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10879 10880 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10881 # Warning - without using the other run time loading flags, 10882 # -berok will link without error, but may produce a broken library. 10883 no_undefined_flag_CXX=' ${wl}-bernotok' 10884 allow_undefined_flag_CXX=' ${wl}-berok' 10885 # Exported symbols can be pulled into shared objects from archives 10886 whole_archive_flag_spec_CXX='$convenience' 10887 archive_cmds_need_lc_CXX=yes 10888 # This is similar to how AIX traditionally builds its shared libraries. 10889 archive_expsym_cmds_CXX="\$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' 10890 fi 10891 fi 10892 ;; 10893 10894 beos*) 10895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10896 allow_undefined_flag_CXX=unsupported 10897 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10898 # support --undefined. This deserves some investigation. FIXME 10899 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10900 else 10901 ld_shlibs_CXX=no 10902 fi 10903 ;; 10904 10905 chorus*) 10906 case $cc_basename in 10907 *) 10908 # FIXME: insert proper C++ library support 10909 ld_shlibs_CXX=no 10910 ;; 10911 esac 10912 ;; 10913 10914 cygwin* | mingw* | pw32*) 10915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10916 # as there is no search path for DLLs. 10917 hardcode_libdir_flag_spec_CXX='-L$libdir' 10918 allow_undefined_flag_CXX=unsupported 10919 always_export_symbols_CXX=no 10920 enable_shared_with_static_runtimes_CXX=yes 10921 10922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10923 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10924 # If the export-symbols file already is a .def file (1st line 10925 # is EXPORTS), use it as is; otherwise, prepend... 10926 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10927 cp $export_symbols $output_objdir/$soname.def; 10928 else 10929 echo EXPORTS > $output_objdir/$soname.def; 10930 cat $export_symbols >> $output_objdir/$soname.def; 10931 fi~ 10932 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10933 else 10934 ld_shlibs_CXX=no 10935 fi 10936 ;; 10937 darwin* | rhapsody*) 10938 archive_cmds_need_lc_CXX=no 10939 hardcode_direct_CXX=no 10940 hardcode_automatic_CXX=yes 10941 hardcode_shlibpath_var_CXX=unsupported 10942 whole_archive_flag_spec_CXX='' 10943 link_all_deplibs_CXX=yes 10944 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 10945 if test "$GXX" = yes ; then 10946 output_verbose_link_cmd='echo' 10947 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10948 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10949 archive_expsym_cmds_CXX="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}" 10950 module_expsym_cmds_CXX="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}" 10951 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 10952 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 10953 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 10954 fi 10955 else 10956 case $cc_basename in 10957 xlc*) 10958 output_verbose_link_cmd='echo' 10959 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 10960 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10962 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10963 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10964 ;; 10965 *) 10966 ld_shlibs_CXX=no 10967 ;; 10968 esac 10969 fi 10970 ;; 10971 10972 dgux*) 10973 case $cc_basename in 10974 ec++*) 10975 # FIXME: insert proper C++ library support 10976 ld_shlibs_CXX=no 10977 ;; 10978 ghcx*) 10979 # Green Hills C++ Compiler 10980 # FIXME: insert proper C++ library support 10981 ld_shlibs_CXX=no 10982 ;; 10983 *) 10984 # FIXME: insert proper C++ library support 10985 ld_shlibs_CXX=no 10986 ;; 10987 esac 10988 ;; 10989 freebsd[12]*) 10990 # C++ shared libraries reported to be fairly broken before switch to ELF 10991 ld_shlibs_CXX=no 10992 ;; 10993 freebsd-elf*) 10994 archive_cmds_need_lc_CXX=no 10995 ;; 10996 freebsd* | dragonfly*) 10997 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10998 # conventions 10999 ld_shlibs_CXX=yes 11000 ;; 11001 gnu*) 11002 ;; 11003 hpux9*) 11004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11005 hardcode_libdir_separator_CXX=: 11006 export_dynamic_flag_spec_CXX='${wl}-E' 11007 hardcode_direct_CXX=yes 11008 hardcode_minus_L_CXX=yes # Not in the search PATH, 11009 # but as the default 11010 # location of the library. 11011 11012 case $cc_basename in 11013 CC*) 11014 # FIXME: insert proper C++ library support 11015 ld_shlibs_CXX=no 11016 ;; 11017 aCC*) 11018 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11019 # Commands to make compiler produce verbose output that lists 11020 # what "hidden" libraries, object files and flags are used when 11021 # linking a shared library. 11022 # 11023 # There doesn't appear to be a way to prevent this compiler from 11024 # explicitly linking system object files so we need to strip them 11025 # from the output so that they don't get included in the library 11026 # dependencies. 11027 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11028 ;; 11029 *) 11030 if test "$GXX" = yes; then 11031 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11032 else 11033 # FIXME: insert proper C++ library support 11034 ld_shlibs_CXX=no 11035 fi 11036 ;; 11037 esac 11038 ;; 11039 hpux10*|hpux11*) 11040 if test $with_gnu_ld = no; then 11041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11042 hardcode_libdir_separator_CXX=: 11043 11044 case $host_cpu in 11045 hppa*64*|ia64*) ;; 11046 *) 11047 export_dynamic_flag_spec_CXX='${wl}-E' 11048 ;; 11049 esac 11050 fi 11051 case $host_cpu in 11052 hppa*64*|ia64*) 11053 hardcode_direct_CXX=no 11054 hardcode_shlibpath_var_CXX=no 11055 ;; 11056 *) 11057 hardcode_direct_CXX=yes 11058 hardcode_minus_L_CXX=yes # Not in the search PATH, 11059 # but as the default 11060 # location of the library. 11061 ;; 11062 esac 11063 11064 case $cc_basename in 11065 CC*) 11066 # FIXME: insert proper C++ library support 11067 ld_shlibs_CXX=no 11068 ;; 11069 aCC*) 11070 case $host_cpu in 11071 hppa*64*) 11072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11073 ;; 11074 ia64*) 11075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11076 ;; 11077 *) 11078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11079 ;; 11080 esac 11081 # Commands to make compiler produce verbose output that lists 11082 # what "hidden" libraries, object files and flags are used when 11083 # linking a shared library. 11084 # 11085 # There doesn't appear to be a way to prevent this compiler from 11086 # explicitly linking system object files so we need to strip them 11087 # from the output so that they don't get included in the library 11088 # dependencies. 11089 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11090 ;; 11091 *) 11092 if test "$GXX" = yes; then 11093 if test $with_gnu_ld = no; then 11094 case $host_cpu in 11095 hppa*64*) 11096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11097 ;; 11098 ia64*) 11099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11100 ;; 11101 *) 11102 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11103 ;; 11104 esac 11105 fi 11106 else 11107 # FIXME: insert proper C++ library support 11108 ld_shlibs_CXX=no 11109 fi 11110 ;; 11111 esac 11112 ;; 11113 interix[3-9]*) 11114 hardcode_direct_CXX=no 11115 hardcode_shlibpath_var_CXX=no 11116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11117 export_dynamic_flag_spec_CXX='${wl}-E' 11118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11119 # Instead, shared libraries are loaded at an image base (0x10000000 by 11120 # default) and relocated if they conflict, which is a slow very memory 11121 # consuming and fragmenting process. To avoid this, we pick a random, 11122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11123 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11124 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11125 archive_expsym_cmds_CXX='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' 11126 ;; 11127 irix5* | irix6*) 11128 case $cc_basename in 11129 CC*) 11130 # SGI C++ 11131 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11132 11133 # Archives containing C++ object files must be created using 11134 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11135 # necessary to make sure instantiated templates are included 11136 # in the archive. 11137 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11138 ;; 11139 *) 11140 if test "$GXX" = yes; then 11141 if test "$with_gnu_ld" = no; then 11142 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11143 else 11144 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11145 fi 11146 fi 11147 link_all_deplibs_CXX=yes 11148 ;; 11149 esac 11150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11151 hardcode_libdir_separator_CXX=: 11152 ;; 11153 linux* | k*bsd*-gnu) 11154 case $cc_basename in 11155 KCC*) 11156 # Kuck and Associates, Inc. (KAI) C++ Compiler 11157 11158 # KCC will only create a shared library if the output file 11159 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11160 # to its proper name (with version) after linking. 11161 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11162 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 11163 # Commands to make compiler produce verbose output that lists 11164 # what "hidden" libraries, object files and flags are used when 11165 # linking a shared library. 11166 # 11167 # There doesn't appear to be a way to prevent this compiler from 11168 # explicitly linking system object files so we need to strip them 11169 # from the output so that they don't get included in the library 11170 # dependencies. 11171 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11172 11173 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11175 11176 # Archives containing C++ object files must be created using 11177 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11179 ;; 11180 icpc*) 11181 # Intel C++ 11182 with_gnu_ld=yes 11183 # version 8.0 and above of icpc choke on multiply defined symbols 11184 # if we add $predep_objects and $postdep_objects, however 7.1 and 11185 # earlier do not add the objects themselves. 11186 case `$CC -V 2>&1` in 11187 *"Version 7."*) 11188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11189 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11190 ;; 11191 *) # Version 8.0 or newer 11192 tmp_idyn= 11193 case $host_cpu in 11194 ia64*) tmp_idyn=' -i_dynamic';; 11195 esac 11196 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11197 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11198 ;; 11199 esac 11200 archive_cmds_need_lc_CXX=no 11201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11203 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11204 ;; 11205 pgCC* | pgcpp*) 11206 # Portland Group C++ compiler 11207 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11208 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11209 11210 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11212 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11213 ;; 11214 cxx*) 11215 # Compaq C++ 11216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11217 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 11218 11219 runpath_var=LD_RUN_PATH 11220 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11221 hardcode_libdir_separator_CXX=: 11222 11223 # Commands to make compiler produce verbose output that lists 11224 # what "hidden" libraries, object files and flags are used when 11225 # linking a shared library. 11226 # 11227 # There doesn't appear to be a way to prevent this compiler from 11228 # explicitly linking system object files so we need to strip them 11229 # from the output so that they don't get included in the library 11230 # dependencies. 11231 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11232 ;; 11233 *) 11234 case `$CC -V 2>&1 | sed 5q` in 11235 *Sun\ C*) 11236 # Sun C++ 5.9 11237 no_undefined_flag_CXX=' -zdefs' 11238 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11239 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11240 hardcode_libdir_flag_spec_CXX='-R$libdir' 11241 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11242 11243 # Not sure whether something based on 11244 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11245 # would be better. 11246 output_verbose_link_cmd='echo' 11247 11248 # Archives containing C++ object files must be created using 11249 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11250 # necessary to make sure instantiated templates are included 11251 # in the archive. 11252 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11253 ;; 11254 esac 11255 ;; 11256 esac 11257 ;; 11258 lynxos*) 11259 # FIXME: insert proper C++ library support 11260 ld_shlibs_CXX=no 11261 ;; 11262 m88k*) 11263 # FIXME: insert proper C++ library support 11264 ld_shlibs_CXX=no 11265 ;; 11266 mvs*) 11267 case $cc_basename in 11268 cxx*) 11269 # FIXME: insert proper C++ library support 11270 ld_shlibs_CXX=no 11271 ;; 11272 *) 11273 # FIXME: insert proper C++ library support 11274 ld_shlibs_CXX=no 11275 ;; 11276 esac 11277 ;; 11278 netbsd*) 11279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11280 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11281 wlarc= 11282 hardcode_libdir_flag_spec_CXX='-R$libdir' 11283 hardcode_direct_CXX=yes 11284 hardcode_shlibpath_var_CXX=no 11285 fi 11286 # Workaround some broken pre-1.5 toolchains 11287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11288 ;; 11289 openbsd2*) 11290 # C++ shared libraries are fairly broken 11291 ld_shlibs_CXX=no 11292 ;; 11293 openbsd*) 11294 if test -f /usr/libexec/ld.so; then 11295 hardcode_direct_CXX=yes 11296 hardcode_shlibpath_var_CXX=no 11297 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11300 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11301 export_dynamic_flag_spec_CXX='${wl}-E' 11302 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11303 fi 11304 output_verbose_link_cmd='echo' 11305 else 11306 ld_shlibs_CXX=no 11307 fi 11308 ;; 11309 osf3*) 11310 case $cc_basename in 11311 KCC*) 11312 # Kuck and Associates, Inc. (KAI) C++ Compiler 11313 11314 # KCC will only create a shared library if the output file 11315 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11316 # to its proper name (with version) after linking. 11317 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11318 11319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11320 hardcode_libdir_separator_CXX=: 11321 11322 # Archives containing C++ object files must be created using 11323 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11324 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11325 11326 ;; 11327 RCC*) 11328 # Rational C++ 2.4.1 11329 # FIXME: insert proper C++ library support 11330 ld_shlibs_CXX=no 11331 ;; 11332 cxx*) 11333 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11334 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11335 11336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11337 hardcode_libdir_separator_CXX=: 11338 11339 # Commands to make compiler produce verbose output that lists 11340 # what "hidden" libraries, object files and flags are used when 11341 # linking a shared library. 11342 # 11343 # There doesn't appear to be a way to prevent this compiler from 11344 # explicitly linking system object files so we need to strip them 11345 # from the output so that they don't get included in the library 11346 # dependencies. 11347 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11348 ;; 11349 *) 11350 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11351 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11352 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11353 11354 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11355 hardcode_libdir_separator_CXX=: 11356 11357 # Commands to make compiler produce verbose output that lists 11358 # what "hidden" libraries, object files and flags are used when 11359 # linking a shared library. 11360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11361 11362 else 11363 # FIXME: insert proper C++ library support 11364 ld_shlibs_CXX=no 11365 fi 11366 ;; 11367 esac 11368 ;; 11369 osf4* | osf5*) 11370 case $cc_basename in 11371 KCC*) 11372 # Kuck and Associates, Inc. (KAI) C++ Compiler 11373 11374 # KCC will only create a shared library if the output file 11375 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11376 # to its proper name (with version) after linking. 11377 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11378 11379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11380 hardcode_libdir_separator_CXX=: 11381 11382 # Archives containing C++ object files must be created using 11383 # the KAI C++ compiler. 11384 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11385 ;; 11386 RCC*) 11387 # Rational C++ 2.4.1 11388 # FIXME: insert proper C++ library support 11389 ld_shlibs_CXX=no 11390 ;; 11391 cxx*) 11392 allow_undefined_flag_CXX=' -expect_unresolved \*' 11393 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11394 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11395 echo "-hidden">> $lib.exp~ 11396 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 11397 $rm $lib.exp' 11398 11399 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11400 hardcode_libdir_separator_CXX=: 11401 11402 # Commands to make compiler produce verbose output that lists 11403 # what "hidden" libraries, object files and flags are used when 11404 # linking a shared library. 11405 # 11406 # There doesn't appear to be a way to prevent this compiler from 11407 # explicitly linking system object files so we need to strip them 11408 # from the output so that they don't get included in the library 11409 # dependencies. 11410 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11411 ;; 11412 *) 11413 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11415 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11416 11417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11418 hardcode_libdir_separator_CXX=: 11419 11420 # Commands to make compiler produce verbose output that lists 11421 # what "hidden" libraries, object files and flags are used when 11422 # linking a shared library. 11423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11424 11425 else 11426 # FIXME: insert proper C++ library support 11427 ld_shlibs_CXX=no 11428 fi 11429 ;; 11430 esac 11431 ;; 11432 psos*) 11433 # FIXME: insert proper C++ library support 11434 ld_shlibs_CXX=no 11435 ;; 11436 sunos4*) 11437 case $cc_basename in 11438 CC*) 11439 # Sun C++ 4.x 11440 # FIXME: insert proper C++ library support 11441 ld_shlibs_CXX=no 11442 ;; 11443 lcc*) 11444 # Lucid 11445 # FIXME: insert proper C++ library support 11446 ld_shlibs_CXX=no 11447 ;; 11448 *) 11449 # FIXME: insert proper C++ library support 11450 ld_shlibs_CXX=no 11451 ;; 11452 esac 11453 ;; 11454 solaris*) 11455 case $cc_basename in 11456 CC*) 11457 # Sun C++ 4.2, 5.x and Centerline C++ 11458 archive_cmds_need_lc_CXX=yes 11459 no_undefined_flag_CXX=' -zdefs' 11460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11461 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11462 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11463 11464 hardcode_libdir_flag_spec_CXX='-R$libdir' 11465 hardcode_shlibpath_var_CXX=no 11466 case $host_os in 11467 solaris2.[0-5] | solaris2.[0-5].*) ;; 11468 *) 11469 # The compiler driver will combine and reorder linker options, 11470 # but understands `-z linker_flag'. 11471 # Supported since Solaris 2.6 (maybe 2.5.1?) 11472 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11473 ;; 11474 esac 11475 link_all_deplibs_CXX=yes 11476 11477 output_verbose_link_cmd='echo' 11478 11479 # Archives containing C++ object files must be created using 11480 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11481 # necessary to make sure instantiated templates are included 11482 # in the archive. 11483 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11484 ;; 11485 gcx*) 11486 # Green Hills C++ Compiler 11487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11488 11489 # The C++ compiler must be used to create the archive. 11490 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11491 ;; 11492 *) 11493 # GNU C++ compiler with Solaris linker 11494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11495 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11496 if $CC --version | grep -v '^2\.7' > /dev/null; then 11497 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11498 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11499 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11500 11501 # Commands to make compiler produce verbose output that lists 11502 # what "hidden" libraries, object files and flags are used when 11503 # linking a shared library. 11504 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11505 else 11506 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11507 # platform. 11508 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11509 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11510 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11511 11512 # Commands to make compiler produce verbose output that lists 11513 # what "hidden" libraries, object files and flags are used when 11514 # linking a shared library. 11515 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11516 fi 11517 11518 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11519 case $host_os in 11520 solaris2.[0-5] | solaris2.[0-5].*) ;; 11521 *) 11522 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11523 ;; 11524 esac 11525 fi 11526 ;; 11527 esac 11528 ;; 11529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11530 no_undefined_flag_CXX='${wl}-z,text' 11531 archive_cmds_need_lc_CXX=no 11532 hardcode_shlibpath_var_CXX=no 11533 runpath_var='LD_RUN_PATH' 11534 11535 case $cc_basename in 11536 CC*) 11537 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11538 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11539 ;; 11540 *) 11541 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11542 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11543 ;; 11544 esac 11545 ;; 11546 sysv5* | sco3.2v5* | sco5v6*) 11547 # Note: We can NOT use -z defs as we might desire, because we do not 11548 # link with -lc, and that would cause any symbols used from libc to 11549 # always be unresolved, which means just about no library would 11550 # ever link correctly. If we're not using GNU ld we use -z text 11551 # though, which does catch some bad symbols but isn't as heavy-handed 11552 # as -z defs. 11553 # For security reasons, it is highly recommended that you always 11554 # use absolute paths for naming shared libraries, and exclude the 11555 # DT_RUNPATH tag from executables and libraries. But doing so 11556 # requires that you compile everything twice, which is a pain. 11557 # So that behaviour is only enabled if SCOABSPATH is set to a 11558 # non-empty value in the environment. Most likely only useful for 11559 # creating official distributions of packages. 11560 # This is a hack until libtool officially supports absolute path 11561 # names for shared libraries. 11562 no_undefined_flag_CXX='${wl}-z,text' 11563 allow_undefined_flag_CXX='${wl}-z,nodefs' 11564 archive_cmds_need_lc_CXX=no 11565 hardcode_shlibpath_var_CXX=no 11566 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11567 hardcode_libdir_separator_CXX=':' 11568 link_all_deplibs_CXX=yes 11569 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11570 runpath_var='LD_RUN_PATH' 11571 11572 case $cc_basename in 11573 CC*) 11574 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11575 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11576 ;; 11577 *) 11578 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11579 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11580 ;; 11581 esac 11582 ;; 11583 tandem*) 11584 case $cc_basename in 11585 NCC*) 11586 # NonStop-UX NCC 3.20 11587 # FIXME: insert proper C++ library support 11588 ld_shlibs_CXX=no 11589 ;; 11590 *) 11591 # FIXME: insert proper C++ library support 11592 ld_shlibs_CXX=no 11593 ;; 11594 esac 11595 ;; 11596 vxworks*) 11597 # FIXME: insert proper C++ library support 11598 ld_shlibs_CXX=no 11599 ;; 11600 *) 11601 # FIXME: insert proper C++ library support 11602 ld_shlibs_CXX=no 11603 ;; 11604 esac 11605 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11606 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11607 test "$ld_shlibs_CXX" = no && can_build_shared=no 11608 11609 GCC_CXX="$GXX" 11610 LD_CXX="$LD" 11611 11612 ## CAVEAT EMPTOR: 11613 ## There is no encapsulation within the following macros, do not change 11614 ## the running order or otherwise move them around unless you know exactly 11615 ## what you are doing... 11616 cat > conftest.$ac_ext <<EOF 11617 class Foo 11618 { 11619 public: 11620 Foo (void) { a = 0; } 11621 private: 11622 int a; 11623 }; 11624 EOF 11625 11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11627 (eval $ac_compile) 2>&5 11628 ac_status=$? 11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11630 (exit $ac_status); }; then 11631 # Parse the compiler output and extract the necessary 11632 # objects, libraries and library flags. 11633 11634 # Sentinel used to keep track of whether or not we are before 11635 # the conftest object file. 11636 pre_test_object_deps_done=no 11637 11638 # The `*' in the case matches for architectures that use `case' in 11639 # $output_verbose_cmd can trigger glob expansion during the loop 11640 # eval without this substitution. 11641 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11642 11643 for p in `eval $output_verbose_link_cmd`; do 11644 case $p in 11645 11646 -L* | -R* | -l*) 11647 # Some compilers place space between "-{L,R}" and the path. 11648 # Remove the space. 11649 if test $p = "-L" \ 11650 || test $p = "-R"; then 11651 prev=$p 11652 continue 11653 else 11654 prev= 11655 fi 11656 11657 if test "$pre_test_object_deps_done" = no; then 11658 case $p in 11659 -L* | -R*) 11660 # Internal compiler library paths should come after those 11661 # provided the user. The postdeps already come after the 11662 # user supplied libs so there is no need to process them. 11663 if test -z "$compiler_lib_search_path_CXX"; then 11664 compiler_lib_search_path_CXX="${prev}${p}" 11665 else 11666 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11667 fi 11668 ;; 11669 # The "-l" case would never come before the object being 11670 # linked, so don't bother handling this case. 11671 esac 11672 else 11673 if test -z "$postdeps_CXX"; then 11674 postdeps_CXX="${prev}${p}" 11675 else 11676 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11677 fi 11678 fi 11679 ;; 11680 11681 *.$objext) 11682 # This assumes that the test object file only shows up 11683 # once in the compiler output. 11684 if test "$p" = "conftest.$objext"; then 11685 pre_test_object_deps_done=yes 11686 continue 11687 fi 11688 11689 if test "$pre_test_object_deps_done" = no; then 11690 if test -z "$predep_objects_CXX"; then 11691 predep_objects_CXX="$p" 11692 else 11693 predep_objects_CXX="$predep_objects_CXX $p" 11694 fi 11695 else 11696 if test -z "$postdep_objects_CXX"; then 11697 postdep_objects_CXX="$p" 11698 else 11699 postdep_objects_CXX="$postdep_objects_CXX $p" 11700 fi 11701 fi 11702 ;; 11703 11704 *) ;; # Ignore the rest. 11705 11706 esac 11707 done 11708 11709 # Clean up. 11710 rm -f a.out a.exe 11711 else 11712 echo "libtool.m4: error: problem compiling CXX test program" 11713 fi 11714 11715 $rm -f confest.$objext 11716 11717 compiler_lib_search_dirs_CXX= 11718 if test -n "$compiler_lib_search_path_CXX"; then 11719 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 11720 fi 11721 11722 # PORTME: override above test on systems where it is broken 11723 case $host_os in 11724 interix[3-9]*) 11725 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11726 # hack all around it, let's just trust "g++" to DTRT. 11727 predep_objects_CXX= 11728 postdep_objects_CXX= 11729 postdeps_CXX= 11730 ;; 11731 11732 linux*) 11733 case `$CC -V 2>&1 | sed 5q` in 11734 *Sun\ C*) 11735 # Sun C++ 5.9 11736 # 11737 # The more standards-conforming stlport4 library is 11738 # incompatible with the Cstd library. Avoid specifying 11739 # it if it's in CXXFLAGS. Ignore libCrun as 11740 # -library=stlport4 depends on it. 11741 case " $CXX $CXXFLAGS " in 11742 *" -library=stlport4 "*) 11743 solaris_use_stlport4=yes 11744 ;; 11745 esac 11746 if test "$solaris_use_stlport4" != yes; then 11747 postdeps_CXX='-library=Cstd -library=Crun' 11748 fi 11749 ;; 11750 esac 11751 ;; 11752 11753 solaris*) 11754 case $cc_basename in 11755 CC*) 11756 # The more standards-conforming stlport4 library is 11757 # incompatible with the Cstd library. Avoid specifying 11758 # it if it's in CXXFLAGS. Ignore libCrun as 11759 # -library=stlport4 depends on it. 11760 case " $CXX $CXXFLAGS " in 11761 *" -library=stlport4 "*) 11762 solaris_use_stlport4=yes 11763 ;; 11764 esac 11765 11766 # Adding this requires a known-good setup of shared libraries for 11767 # Sun compiler versions before 5.6, else PIC objects from an old 11768 # archive will be linked into the output, leading to subtle bugs. 11769 if test "$solaris_use_stlport4" != yes; then 11770 postdeps_CXX='-library=Cstd -library=Crun' 11771 fi 11772 ;; 11773 esac 11774 ;; 11775 esac 11776 11777 case " $postdeps_CXX " in 11778 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 11779 esac 11780 11781 lt_prog_compiler_wl_CXX= 11782 lt_prog_compiler_pic_CXX= 11783 lt_prog_compiler_static_CXX= 11784 11785 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11786 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11787 11788 # C++ specific cases for pic, static, wl, etc. 11789 if test "$GXX" = yes; then 11790 lt_prog_compiler_wl_CXX='-Wl,' 11791 lt_prog_compiler_static_CXX='-static' 11792 11793 case $host_os in 11794 aix*) 11795 # All AIX code is PIC. 11796 if test "$host_cpu" = ia64; then 11797 # AIX 5 now supports IA64 processor 11798 lt_prog_compiler_static_CXX='-Bstatic' 11799 fi 11800 ;; 11801 amigaos*) 11802 # FIXME: we need at least 68020 code to build shared libraries, but 11803 # adding the `-m68020' flag to GCC prevents building anything better, 11804 # like `-m68040'. 11805 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11806 ;; 11807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11808 # PIC is the default for these OSes. 11809 ;; 11810 mingw* | cygwin* | os2* | pw32*) 11811 # This hack is so that the source file can tell whether it is being 11812 # built for inclusion in a dll (and should export symbols for example). 11813 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11814 # (--disable-auto-import) libraries 11815 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11816 ;; 11817 darwin* | rhapsody*) 11818 # PIC is the default on this platform 11819 # Common symbols not allowed in MH_DYLIB files 11820 lt_prog_compiler_pic_CXX='-fno-common' 11821 ;; 11822 *djgpp*) 11823 # DJGPP does not support shared libraries at all 11824 lt_prog_compiler_pic_CXX= 11825 ;; 11826 interix[3-9]*) 11827 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11828 # Instead, we relocate shared libraries at runtime. 11829 ;; 11830 sysv4*MP*) 11831 if test -d /usr/nec; then 11832 lt_prog_compiler_pic_CXX=-Kconform_pic 11833 fi 11834 ;; 11835 hpux*) 11836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11837 # not for PA HP-UX. 11838 case $host_cpu in 11839 hppa*64*|ia64*) 11840 ;; 11841 *) 11842 lt_prog_compiler_pic_CXX='-fPIC' 11843 ;; 11844 esac 11845 ;; 11846 *) 11847 lt_prog_compiler_pic_CXX='-fPIC' 11848 ;; 11849 esac 11850 else 11851 case $host_os in 11852 aix[4-9]*) 11853 # All AIX code is PIC. 11854 if test "$host_cpu" = ia64; then 11855 # AIX 5 now supports IA64 processor 11856 lt_prog_compiler_static_CXX='-Bstatic' 11857 else 11858 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11859 fi 11860 ;; 11861 chorus*) 11862 case $cc_basename in 11863 cxch68*) 11864 # Green Hills C++ Compiler 11865 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 11866 ;; 11867 esac 11868 ;; 11869 darwin*) 11870 # PIC is the default on this platform 11871 # Common symbols not allowed in MH_DYLIB files 11872 case $cc_basename in 11873 xlc*) 11874 lt_prog_compiler_pic_CXX='-qnocommon' 11875 lt_prog_compiler_wl_CXX='-Wl,' 11876 ;; 11877 esac 11878 ;; 11879 dgux*) 11880 case $cc_basename in 11881 ec++*) 11882 lt_prog_compiler_pic_CXX='-KPIC' 11883 ;; 11884 ghcx*) 11885 # Green Hills C++ Compiler 11886 lt_prog_compiler_pic_CXX='-pic' 11887 ;; 11888 *) 11889 ;; 11890 esac 11891 ;; 11892 freebsd* | dragonfly*) 11893 # FreeBSD uses GNU C++ 11894 ;; 11895 hpux9* | hpux10* | hpux11*) 11896 case $cc_basename in 11897 CC*) 11898 lt_prog_compiler_wl_CXX='-Wl,' 11899 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11900 if test "$host_cpu" != ia64; then 11901 lt_prog_compiler_pic_CXX='+Z' 11902 fi 11903 ;; 11904 aCC*) 11905 lt_prog_compiler_wl_CXX='-Wl,' 11906 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11907 case $host_cpu in 11908 hppa*64*|ia64*) 11909 # +Z the default 11910 ;; 11911 *) 11912 lt_prog_compiler_pic_CXX='+Z' 11913 ;; 11914 esac 11915 ;; 11916 *) 11917 ;; 11918 esac 11919 ;; 11920 interix*) 11921 # This is c89, which is MS Visual C++ (no shared libs) 11922 # Anyone wants to do a port? 11923 ;; 11924 irix5* | irix6* | nonstopux*) 11925 case $cc_basename in 11926 CC*) 11927 lt_prog_compiler_wl_CXX='-Wl,' 11928 lt_prog_compiler_static_CXX='-non_shared' 11929 # CC pic flag -KPIC is the default. 11930 ;; 11931 *) 11932 ;; 11933 esac 11934 ;; 11935 linux* | k*bsd*-gnu) 11936 case $cc_basename in 11937 KCC*) 11938 # KAI C++ Compiler 11939 lt_prog_compiler_wl_CXX='--backend -Wl,' 11940 lt_prog_compiler_pic_CXX='-fPIC' 11941 ;; 11942 icpc* | ecpc*) 11943 # Intel C++ 11944 lt_prog_compiler_wl_CXX='-Wl,' 11945 lt_prog_compiler_pic_CXX='-KPIC' 11946 lt_prog_compiler_static_CXX='-static' 11947 ;; 11948 pgCC* | pgcpp*) 11949 # Portland Group C++ compiler. 11950 lt_prog_compiler_wl_CXX='-Wl,' 11951 lt_prog_compiler_pic_CXX='-fpic' 11952 lt_prog_compiler_static_CXX='-Bstatic' 11953 ;; 11954 cxx*) 11955 # Compaq C++ 11956 # Make sure the PIC flag is empty. It appears that all Alpha 11957 # Linux and Compaq Tru64 Unix objects are PIC. 11958 lt_prog_compiler_pic_CXX= 11959 lt_prog_compiler_static_CXX='-non_shared' 11960 ;; 11961 *) 11962 case `$CC -V 2>&1 | sed 5q` in 11963 *Sun\ C*) 11964 # Sun C++ 5.9 11965 lt_prog_compiler_pic_CXX='-KPIC' 11966 lt_prog_compiler_static_CXX='-Bstatic' 11967 lt_prog_compiler_wl_CXX='-Qoption ld ' 11968 ;; 11969 esac 11970 ;; 11971 esac 11972 ;; 11973 lynxos*) 11974 ;; 11975 m88k*) 11976 ;; 11977 mvs*) 11978 case $cc_basename in 11979 cxx*) 11980 lt_prog_compiler_pic_CXX='-W c,exportall' 11981 ;; 11982 *) 11983 ;; 11984 esac 11985 ;; 11986 netbsd*) 11987 ;; 11988 osf3* | osf4* | osf5*) 11989 case $cc_basename in 11990 KCC*) 11991 lt_prog_compiler_wl_CXX='--backend -Wl,' 11992 ;; 11993 RCC*) 11994 # Rational C++ 2.4.1 11995 lt_prog_compiler_pic_CXX='-pic' 11996 ;; 11997 cxx*) 11998 # Digital/Compaq C++ 11999 lt_prog_compiler_wl_CXX='-Wl,' 12000 # Make sure the PIC flag is empty. It appears that all Alpha 12001 # Linux and Compaq Tru64 Unix objects are PIC. 12002 lt_prog_compiler_pic_CXX= 12003 lt_prog_compiler_static_CXX='-non_shared' 12004 ;; 12005 *) 12006 ;; 12007 esac 12008 ;; 12009 psos*) 12010 ;; 12011 solaris*) 12012 case $cc_basename in 12013 CC*) 12014 # Sun C++ 4.2, 5.x and Centerline C++ 12015 lt_prog_compiler_pic_CXX='-KPIC' 12016 lt_prog_compiler_static_CXX='-Bstatic' 12017 lt_prog_compiler_wl_CXX='-Qoption ld ' 12018 ;; 12019 gcx*) 12020 # Green Hills C++ Compiler 12021 lt_prog_compiler_pic_CXX='-PIC' 12022 ;; 12023 *) 12024 ;; 12025 esac 12026 ;; 12027 sunos4*) 12028 case $cc_basename in 12029 CC*) 12030 # Sun C++ 4.x 12031 lt_prog_compiler_pic_CXX='-pic' 12032 lt_prog_compiler_static_CXX='-Bstatic' 12033 ;; 12034 lcc*) 12035 # Lucid 12036 lt_prog_compiler_pic_CXX='-pic' 12037 ;; 12038 *) 12039 ;; 12040 esac 12041 ;; 12042 tandem*) 12043 case $cc_basename in 12044 NCC*) 12045 # NonStop-UX NCC 3.20 12046 lt_prog_compiler_pic_CXX='-KPIC' 12047 ;; 12048 *) 12049 ;; 12050 esac 12051 ;; 12052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12053 case $cc_basename in 12054 CC*) 12055 lt_prog_compiler_wl_CXX='-Wl,' 12056 lt_prog_compiler_pic_CXX='-KPIC' 12057 lt_prog_compiler_static_CXX='-Bstatic' 12058 ;; 12059 esac 12060 ;; 12061 vxworks*) 12062 ;; 12063 *) 12064 lt_prog_compiler_can_build_shared_CXX=no 12065 ;; 12066 esac 12067 fi 12068 12069 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12070 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12071 12072 # 12073 # Check to make sure the PIC flag actually works. 12074 # 12075 if test -n "$lt_prog_compiler_pic_CXX"; then 12076 12077 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12078 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12079 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12080 echo $ECHO_N "(cached) $ECHO_C" >&6 12081 else 12082 lt_cv_prog_compiler_pic_works_CXX=no 12083 ac_outfile=conftest.$ac_objext 12084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12085 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12086 # Insert the option either (1) after the last *FLAGS variable, or 12087 # (2) before a word containing "conftest.", or (3) at the end. 12088 # Note that $ac_compile itself does not contain backslashes and begins 12089 # with a dollar sign (not a hyphen), so the echo should work correctly. 12090 # The option is referenced via a variable to avoid confusing sed. 12091 lt_compile=`echo "$ac_compile" | $SED \ 12092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12094 -e 's:$: $lt_compiler_flag:'` 12095 (eval echo "\"\$as_me:12095: $lt_compile\"" >&5) 12096 (eval "$lt_compile" 2>conftest.err) 12097 ac_status=$? 12098 cat conftest.err >&5 12099 echo "$as_me:12099: \$? = $ac_status" >&5 12100 if (exit $ac_status) && test -s "$ac_outfile"; then 12101 # The compiler can only warn and ignore the option if not recognized 12102 # So say no if there are warnings other than the usual output. 12103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12106 lt_cv_prog_compiler_pic_works_CXX=yes 12107 fi 12108 fi 12109 $rm conftest* 12110 12111 fi 12112 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12113 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12114 12115 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12116 case $lt_prog_compiler_pic_CXX in 12117 "" | " "*) ;; 12118 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12119 esac 12120 else 12121 lt_prog_compiler_pic_CXX= 12122 lt_prog_compiler_can_build_shared_CXX=no 12123 fi 12124 12125 fi 12126 case $host_os in 12127 # For platforms which do not support PIC, -DPIC is meaningless: 12128 *djgpp*) 12129 lt_prog_compiler_pic_CXX= 12130 ;; 12131 *) 12132 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12133 ;; 12134 esac 12135 12136 # 12137 # Check to make sure the static flag actually works. 12138 # 12139 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12140 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12141 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12142 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12143 echo $ECHO_N "(cached) $ECHO_C" >&6 12144 else 12145 lt_cv_prog_compiler_static_works_CXX=no 12146 save_LDFLAGS="$LDFLAGS" 12147 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12148 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12150 # The linker can only warn and ignore the option if not recognized 12151 # So say no if there are warnings 12152 if test -s conftest.err; then 12153 # Append any errors to the config.log. 12154 cat conftest.err 1>&5 12155 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12157 if diff conftest.exp conftest.er2 >/dev/null; then 12158 lt_cv_prog_compiler_static_works_CXX=yes 12159 fi 12160 else 12161 lt_cv_prog_compiler_static_works_CXX=yes 12162 fi 12163 fi 12164 $rm -r conftest* 12165 LDFLAGS="$save_LDFLAGS" 12166 12167 fi 12168 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12169 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 12170 12171 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12172 : 12173 else 12174 lt_prog_compiler_static_CXX= 12175 fi 12176 12177 12178 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12180 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12181 echo $ECHO_N "(cached) $ECHO_C" >&6 12182 else 12183 lt_cv_prog_compiler_c_o_CXX=no 12184 $rm -r conftest 2>/dev/null 12185 mkdir conftest 12186 cd conftest 12187 mkdir out 12188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12189 12190 lt_compiler_flag="-o out/conftest2.$ac_objext" 12191 # Insert the option either (1) after the last *FLAGS variable, or 12192 # (2) before a word containing "conftest.", or (3) at the end. 12193 # Note that $ac_compile itself does not contain backslashes and begins 12194 # with a dollar sign (not a hyphen), so the echo should work correctly. 12195 lt_compile=`echo "$ac_compile" | $SED \ 12196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12198 -e 's:$: $lt_compiler_flag:'` 12199 (eval echo "\"\$as_me:12199: $lt_compile\"" >&5) 12200 (eval "$lt_compile" 2>out/conftest.err) 12201 ac_status=$? 12202 cat out/conftest.err >&5 12203 echo "$as_me:12203: \$? = $ac_status" >&5 12204 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12205 then 12206 # The compiler can only warn and ignore the option if not recognized 12207 # So say no if there are warnings 12208 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12211 lt_cv_prog_compiler_c_o_CXX=yes 12212 fi 12213 fi 12214 chmod u+w . 2>&5 12215 $rm conftest* 12216 # SGI C++ compiler will create directory out/ii_files/ for 12217 # template instantiation 12218 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12219 $rm out/* && rmdir out 12220 cd .. 12221 rmdir conftest 12222 $rm conftest* 12223 12224 fi 12225 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12226 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12227 12228 12229 hard_links="nottested" 12230 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12231 # do not overwrite the value of need_locks provided by the user 12232 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12234 hard_links=yes 12235 $rm conftest* 12236 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12237 touch conftest.a 12238 ln conftest.a conftest.b 2>&5 || hard_links=no 12239 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12240 { echo "$as_me:$LINENO: result: $hard_links" >&5 12241 echo "${ECHO_T}$hard_links" >&6; } 12242 if test "$hard_links" = no; then 12243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12245 need_locks=warn 12246 fi 12247 else 12248 need_locks=no 12249 fi 12250 12251 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12253 12254 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12255 case $host_os in 12256 aix[4-9]*) 12257 # If we're using GNU nm, then we don't want the "-C" option. 12258 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12259 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12260 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12261 else 12262 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12263 fi 12264 ;; 12265 pw32*) 12266 export_symbols_cmds_CXX="$ltdll_cmds" 12267 ;; 12268 cygwin* | mingw*) 12269 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12270 ;; 12271 *) 12272 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12273 ;; 12274 esac 12275 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12276 12277 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12278 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12279 test "$ld_shlibs_CXX" = no && can_build_shared=no 12280 12281 # 12282 # Do we need to explicitly link libc? 12283 # 12284 case "x$archive_cmds_need_lc_CXX" in 12285 x|xyes) 12286 # Assume -lc should be added 12287 archive_cmds_need_lc_CXX=yes 12288 12289 if test "$enable_shared" = yes && test "$GCC" = yes; then 12290 case $archive_cmds_CXX in 12291 *'~'*) 12292 # FIXME: we may have to deal with multi-command sequences. 12293 ;; 12294 '$CC '*) 12295 # Test whether the compiler implicitly links with -lc since on some 12296 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12297 # to ld, don't add -lc before -lgcc. 12298 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12299 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12300 $rm conftest* 12301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12302 12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12304 (eval $ac_compile) 2>&5 12305 ac_status=$? 12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12307 (exit $ac_status); } 2>conftest.err; then 12308 soname=conftest 12309 lib=conftest 12310 libobjs=conftest.$ac_objext 12311 deplibs= 12312 wl=$lt_prog_compiler_wl_CXX 12313 pic_flag=$lt_prog_compiler_pic_CXX 12314 compiler_flags=-v 12315 linker_flags=-v 12316 verstring= 12317 output_objdir=. 12318 libname=conftest 12319 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12320 allow_undefined_flag_CXX= 12321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12322 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12323 ac_status=$? 12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12325 (exit $ac_status); } 12326 then 12327 archive_cmds_need_lc_CXX=no 12328 else 12329 archive_cmds_need_lc_CXX=yes 12330 fi 12331 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12332 else 12333 cat conftest.err 1>&5 12334 fi 12335 $rm conftest* 12336 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12337 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12338 ;; 12339 esac 12340 fi 12341 ;; 12342 esac 12343 12344 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12345 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12346 library_names_spec= 12347 libname_spec='lib$name' 12348 soname_spec= 12349 shrext_cmds=".so" 12350 postinstall_cmds= 12351 postuninstall_cmds= 12352 finish_cmds= 12353 finish_eval= 12354 shlibpath_var= 12355 shlibpath_overrides_runpath=unknown 12356 version_type=none 12357 dynamic_linker="$host_os ld.so" 12358 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12359 12360 need_lib_prefix=unknown 12361 hardcode_into_libs=no 12362 12363 # when you set need_version to no, make sure it does not cause -set_version 12364 # flags to be left without arguments 12365 need_version=unknown 12366 12367 case $host_os in 12368 aix3*) 12369 version_type=linux 12370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12371 shlibpath_var=LIBPATH 12372 12373 # AIX 3 has no versioning support, so we append a major version to the name. 12374 soname_spec='${libname}${release}${shared_ext}$major' 12375 ;; 12376 12377 aix[4-9]*) 12378 version_type=linux 12379 need_lib_prefix=no 12380 need_version=no 12381 hardcode_into_libs=yes 12382 if test "$host_cpu" = ia64; then 12383 # AIX 5 supports IA64 12384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12385 shlibpath_var=LD_LIBRARY_PATH 12386 else 12387 # With GCC up to 2.95.x, collect2 would create an import file 12388 # for dependence libraries. The import file would start with 12389 # the line `#! .'. This would cause the generated library to 12390 # depend on `.', always an invalid library. This was fixed in 12391 # development snapshots of GCC prior to 3.0. 12392 case $host_os in 12393 aix4 | aix4.[01] | aix4.[01].*) 12394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12395 echo ' yes ' 12396 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12397 : 12398 else 12399 can_build_shared=no 12400 fi 12401 ;; 12402 esac 12403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12404 # soname into executable. Probably we can add versioning support to 12405 # collect2, so additional links can be useful in future. 12406 if test "$aix_use_runtimelinking" = yes; then 12407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12408 # instead of lib<name>.a to let people know that these are not 12409 # typical AIX shared libraries. 12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12411 else 12412 # We preserve .a as extension for shared libraries through AIX4.2 12413 # and later when we are not doing run time linking. 12414 library_names_spec='${libname}${release}.a $libname.a' 12415 soname_spec='${libname}${release}${shared_ext}$major' 12416 fi 12417 shlibpath_var=LIBPATH 12418 fi 12419 ;; 12420 12421 amigaos*) 12422 library_names_spec='$libname.ixlibrary $libname.a' 12423 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12424 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 12425 ;; 12426 12427 beos*) 12428 library_names_spec='${libname}${shared_ext}' 12429 dynamic_linker="$host_os ld.so" 12430 shlibpath_var=LIBRARY_PATH 12431 ;; 12432 12433 bsdi[45]*) 12434 version_type=linux 12435 need_version=no 12436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12437 soname_spec='${libname}${release}${shared_ext}$major' 12438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12439 shlibpath_var=LD_LIBRARY_PATH 12440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12442 # the default ld.so.conf also contains /usr/contrib/lib and 12443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12444 # libtool to hard-code these into programs 12445 ;; 12446 12447 cygwin* | mingw* | pw32*) 12448 version_type=windows 12449 shrext_cmds=".dll" 12450 need_version=no 12451 need_lib_prefix=no 12452 12453 case $GCC,$host_os in 12454 yes,cygwin* | yes,mingw* | yes,pw32*) 12455 library_names_spec='$libname.dll.a' 12456 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12457 postinstall_cmds='base_file=`basename \${file}`~ 12458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12459 dldir=$destdir/`dirname \$dlpath`~ 12460 test -d \$dldir || mkdir -p \$dldir~ 12461 $install_prog $dir/$dlname \$dldir/$dlname~ 12462 chmod a+x \$dldir/$dlname' 12463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12464 dlpath=$dir/\$dldll~ 12465 $rm \$dlpath' 12466 shlibpath_overrides_runpath=yes 12467 12468 case $host_os in 12469 cygwin*) 12470 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12473 ;; 12474 mingw*) 12475 # MinGW DLLs use traditional 'lib' prefix 12476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12479 # It is most probably a Windows format PATH printed by 12480 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12481 # path with ; separators, and with drive letters. We can handle the 12482 # drive letters (cygwin fileutils understands them), so leave them, 12483 # especially as we might pass files found there to a mingw objdump, 12484 # which wouldn't understand a cygwinified path. Ahh. 12485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12486 else 12487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12488 fi 12489 ;; 12490 pw32*) 12491 # pw32 DLLs use 'pw' prefix rather than 'lib' 12492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12493 ;; 12494 esac 12495 ;; 12496 12497 *) 12498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12499 ;; 12500 esac 12501 dynamic_linker='Win32 ld.exe' 12502 # FIXME: first we should search . and the directory the executable is in 12503 shlibpath_var=PATH 12504 ;; 12505 12506 darwin* | rhapsody*) 12507 dynamic_linker="$host_os dyld" 12508 version_type=darwin 12509 need_lib_prefix=no 12510 need_version=no 12511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12512 soname_spec='${libname}${release}${major}$shared_ext' 12513 shlibpath_overrides_runpath=yes 12514 shlibpath_var=DYLD_LIBRARY_PATH 12515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12516 12517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12518 ;; 12519 12520 dgux*) 12521 version_type=linux 12522 need_lib_prefix=no 12523 need_version=no 12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12525 soname_spec='${libname}${release}${shared_ext}$major' 12526 shlibpath_var=LD_LIBRARY_PATH 12527 ;; 12528 12529 freebsd1*) 12530 dynamic_linker=no 12531 ;; 12532 12533 freebsd* | dragonfly*) 12534 # DragonFly does not have aout. When/if they implement a new 12535 # versioning mechanism, adjust this. 12536 if test -x /usr/bin/objformat; then 12537 objformat=`/usr/bin/objformat` 12538 else 12539 case $host_os in 12540 freebsd[123]*) objformat=aout ;; 12541 *) objformat=elf ;; 12542 esac 12543 fi 12544 version_type=freebsd-$objformat 12545 case $version_type in 12546 freebsd-elf*) 12547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12548 need_version=no 12549 need_lib_prefix=no 12550 ;; 12551 freebsd-*) 12552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12553 need_version=yes 12554 ;; 12555 esac 12556 shlibpath_var=LD_LIBRARY_PATH 12557 case $host_os in 12558 freebsd2*) 12559 shlibpath_overrides_runpath=yes 12560 ;; 12561 freebsd3.[01]* | freebsdelf3.[01]*) 12562 shlibpath_overrides_runpath=yes 12563 hardcode_into_libs=yes 12564 ;; 12565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12567 shlibpath_overrides_runpath=no 12568 hardcode_into_libs=yes 12569 ;; 12570 *) # from 4.6 on, and DragonFly 12571 shlibpath_overrides_runpath=yes 12572 hardcode_into_libs=yes 12573 ;; 12574 esac 12575 ;; 12576 12577 gnu*) 12578 version_type=linux 12579 need_lib_prefix=no 12580 need_version=no 12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12582 soname_spec='${libname}${release}${shared_ext}$major' 12583 shlibpath_var=LD_LIBRARY_PATH 12584 hardcode_into_libs=yes 12585 ;; 12586 12587 hpux9* | hpux10* | hpux11*) 12588 # Give a soname corresponding to the major version so that dld.sl refuses to 12589 # link against other versions. 12590 version_type=sunos 12591 need_lib_prefix=no 12592 need_version=no 12593 case $host_cpu in 12594 ia64*) 12595 shrext_cmds='.so' 12596 hardcode_into_libs=yes 12597 dynamic_linker="$host_os dld.so" 12598 shlibpath_var=LD_LIBRARY_PATH 12599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12601 soname_spec='${libname}${release}${shared_ext}$major' 12602 if test "X$HPUX_IA64_MODE" = X32; then 12603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12604 else 12605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12606 fi 12607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12608 ;; 12609 hppa*64*) 12610 shrext_cmds='.sl' 12611 hardcode_into_libs=yes 12612 dynamic_linker="$host_os dld.sl" 12613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12616 soname_spec='${libname}${release}${shared_ext}$major' 12617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12619 ;; 12620 *) 12621 shrext_cmds='.sl' 12622 dynamic_linker="$host_os dld.sl" 12623 shlibpath_var=SHLIB_PATH 12624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12626 soname_spec='${libname}${release}${shared_ext}$major' 12627 ;; 12628 esac 12629 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12630 postinstall_cmds='chmod 555 $lib' 12631 ;; 12632 12633 interix[3-9]*) 12634 version_type=linux 12635 need_lib_prefix=no 12636 need_version=no 12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12638 soname_spec='${libname}${release}${shared_ext}$major' 12639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12640 shlibpath_var=LD_LIBRARY_PATH 12641 shlibpath_overrides_runpath=no 12642 hardcode_into_libs=yes 12643 ;; 12644 12645 irix5* | irix6* | nonstopux*) 12646 case $host_os in 12647 nonstopux*) version_type=nonstopux ;; 12648 *) 12649 if test "$lt_cv_prog_gnu_ld" = yes; then 12650 version_type=linux 12651 else 12652 version_type=irix 12653 fi ;; 12654 esac 12655 need_lib_prefix=no 12656 need_version=no 12657 soname_spec='${libname}${release}${shared_ext}$major' 12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12659 case $host_os in 12660 irix5* | nonstopux*) 12661 libsuff= shlibsuff= 12662 ;; 12663 *) 12664 case $LD in # libtool.m4 will add one of these switches to LD 12665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12666 libsuff= shlibsuff= libmagic=32-bit;; 12667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12668 libsuff=32 shlibsuff=N32 libmagic=N32;; 12669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12671 *) libsuff= shlibsuff= libmagic=never-match;; 12672 esac 12673 ;; 12674 esac 12675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12676 shlibpath_overrides_runpath=no 12677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12679 hardcode_into_libs=yes 12680 ;; 12681 12682 # No shared lib support for Linux oldld, aout, or coff. 12683 linux*oldld* | linux*aout* | linux*coff*) 12684 dynamic_linker=no 12685 ;; 12686 12687 # This must be Linux ELF. 12688 linux* | k*bsd*-gnu) 12689 version_type=linux 12690 need_lib_prefix=no 12691 need_version=no 12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12693 soname_spec='${libname}${release}${shared_ext}$major' 12694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12695 shlibpath_var=LD_LIBRARY_PATH 12696 shlibpath_overrides_runpath=no 12697 # This implies no fast_install, which is unacceptable. 12698 # Some rework will be needed to allow for fast_install 12699 # before this can be enabled. 12700 hardcode_into_libs=yes 12701 12702 # Append ld.so.conf contents to the search path 12703 if test -f /etc/ld.so.conf; then 12704 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;/^$/d' | tr '\n' ' '` 12705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12706 fi 12707 12708 # We used to test for /lib/ld.so.1 and disable shared libraries on 12709 # powerpc, because MkLinux only supported shared libraries with the 12710 # GNU dynamic linker. Since this was broken with cross compilers, 12711 # most powerpc-linux boxes support dynamic linking these days and 12712 # people can always --disable-shared, the test was removed, and we 12713 # assume the GNU/Linux dynamic linker is in use. 12714 dynamic_linker='GNU/Linux ld.so' 12715 ;; 12716 12717 netbsd*) 12718 version_type=sunos 12719 need_lib_prefix=no 12720 need_version=no 12721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12724 dynamic_linker='NetBSD (a.out) ld.so' 12725 else 12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12727 soname_spec='${libname}${release}${shared_ext}$major' 12728 dynamic_linker='NetBSD ld.elf_so' 12729 fi 12730 shlibpath_var=LD_LIBRARY_PATH 12731 shlibpath_overrides_runpath=yes 12732 hardcode_into_libs=yes 12733 ;; 12734 12735 newsos6) 12736 version_type=linux 12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12738 shlibpath_var=LD_LIBRARY_PATH 12739 shlibpath_overrides_runpath=yes 12740 ;; 12741 12742 nto-qnx*) 12743 version_type=linux 12744 need_lib_prefix=no 12745 need_version=no 12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12747 soname_spec='${libname}${release}${shared_ext}$major' 12748 shlibpath_var=LD_LIBRARY_PATH 12749 shlibpath_overrides_runpath=yes 12750 ;; 12751 12752 openbsd*) 12753 version_type=sunos 12754 sys_lib_dlsearch_path_spec="/usr/lib" 12755 need_lib_prefix=no 12756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12757 case $host_os in 12758 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12759 *) need_version=no ;; 12760 esac 12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12763 shlibpath_var=LD_LIBRARY_PATH 12764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12765 case $host_os in 12766 openbsd2.[89] | openbsd2.[89].*) 12767 shlibpath_overrides_runpath=no 12768 ;; 12769 *) 12770 shlibpath_overrides_runpath=yes 12771 ;; 12772 esac 12773 else 12774 shlibpath_overrides_runpath=yes 12775 fi 12776 ;; 12777 12778 os2*) 12779 libname_spec='$name' 12780 shrext_cmds=".dll" 12781 need_lib_prefix=no 12782 library_names_spec='$libname${shared_ext} $libname.a' 12783 dynamic_linker='OS/2 ld.exe' 12784 shlibpath_var=LIBPATH 12785 ;; 12786 12787 osf3* | osf4* | osf5*) 12788 version_type=osf 12789 need_lib_prefix=no 12790 need_version=no 12791 soname_spec='${libname}${release}${shared_ext}$major' 12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12793 shlibpath_var=LD_LIBRARY_PATH 12794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12796 ;; 12797 12798 rdos*) 12799 dynamic_linker=no 12800 ;; 12801 12802 solaris*) 12803 version_type=linux 12804 need_lib_prefix=no 12805 need_version=no 12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12807 soname_spec='${libname}${release}${shared_ext}$major' 12808 shlibpath_var=LD_LIBRARY_PATH 12809 shlibpath_overrides_runpath=yes 12810 hardcode_into_libs=yes 12811 # ldd complains unless libraries are executable 12812 postinstall_cmds='chmod +x $lib' 12813 ;; 12814 12815 sunos4*) 12816 version_type=sunos 12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12819 shlibpath_var=LD_LIBRARY_PATH 12820 shlibpath_overrides_runpath=yes 12821 if test "$with_gnu_ld" = yes; then 12822 need_lib_prefix=no 12823 fi 12824 need_version=yes 12825 ;; 12826 12827 sysv4 | sysv4.3*) 12828 version_type=linux 12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12830 soname_spec='${libname}${release}${shared_ext}$major' 12831 shlibpath_var=LD_LIBRARY_PATH 12832 case $host_vendor in 12833 sni) 12834 shlibpath_overrides_runpath=no 12835 need_lib_prefix=no 12836 export_dynamic_flag_spec='${wl}-Blargedynsym' 12837 runpath_var=LD_RUN_PATH 12838 ;; 12839 siemens) 12840 need_lib_prefix=no 12841 ;; 12842 motorola) 12843 need_lib_prefix=no 12844 need_version=no 12845 shlibpath_overrides_runpath=no 12846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12847 ;; 12848 esac 12849 ;; 12850 12851 sysv4*MP*) 12852 if test -d /usr/nec ;then 12853 version_type=linux 12854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12855 soname_spec='$libname${shared_ext}.$major' 12856 shlibpath_var=LD_LIBRARY_PATH 12857 fi 12858 ;; 12859 12860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12861 version_type=freebsd-elf 12862 need_lib_prefix=no 12863 need_version=no 12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12865 soname_spec='${libname}${release}${shared_ext}$major' 12866 shlibpath_var=LD_LIBRARY_PATH 12867 hardcode_into_libs=yes 12868 if test "$with_gnu_ld" = yes; then 12869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12870 shlibpath_overrides_runpath=no 12871 else 12872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12873 shlibpath_overrides_runpath=yes 12874 case $host_os in 12875 sco3.2v5*) 12876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12877 ;; 12878 esac 12879 fi 12880 sys_lib_dlsearch_path_spec='/usr/lib' 12881 ;; 12882 12883 uts4*) 12884 version_type=linux 12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12886 soname_spec='${libname}${release}${shared_ext}$major' 12887 shlibpath_var=LD_LIBRARY_PATH 12888 ;; 12889 12890 *) 12891 dynamic_linker=no 12892 ;; 12893 esac 12894 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12895 echo "${ECHO_T}$dynamic_linker" >&6; } 12896 test "$dynamic_linker" = no && can_build_shared=no 12897 12898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12899 echo $ECHO_N "(cached) $ECHO_C" >&6 12900 else 12901 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 12902 fi 12903 12904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12905 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12906 echo $ECHO_N "(cached) $ECHO_C" >&6 12907 else 12908 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 12909 fi 12910 12911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12912 12913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12914 if test "$GCC" = yes; then 12915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12916 fi 12917 12918 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12919 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12920 hardcode_action_CXX= 12921 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12922 test -n "$runpath_var_CXX" || \ 12923 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12924 12925 # We can hardcode non-existant directories. 12926 if test "$hardcode_direct_CXX" != no && 12927 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12928 # have to relink, otherwise we might link with an installed library 12929 # when we should be linking with a yet-to-be-installed one 12930 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12931 test "$hardcode_minus_L_CXX" != no; then 12932 # Linking always hardcodes the temporary library directory. 12933 hardcode_action_CXX=relink 12934 else 12935 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12936 hardcode_action_CXX=immediate 12937 fi 12938 else 12939 # We cannot hardcode anything, or else we can only hardcode existing 12940 # directories. 12941 hardcode_action_CXX=unsupported 12942 fi 12943 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12944 echo "${ECHO_T}$hardcode_action_CXX" >&6; } 12945 12946 if test "$hardcode_action_CXX" = relink; then 12947 # Fast installation is not supported 12948 enable_fast_install=no 12949 elif test "$shlibpath_overrides_runpath" = yes || 12950 test "$enable_shared" = no; then 12951 # Fast installation is not necessary 12952 enable_fast_install=needless 12953 fi 12954 12955 12956 # The else clause should only fire when bootstrapping the 12957 # libtool distribution, otherwise you forgot to ship ltmain.sh 12958 # with your package, and you will get complaints that there are 12959 # no rules to generate ltmain.sh. 12960 if test -f "$ltmain"; then 12961 # See if we are running on zsh, and set the options which allow our commands through 12962 # without removal of \ escapes. 12963 if test -n "${ZSH_VERSION+set}" ; then 12964 setopt NO_GLOB_SUBST 12965 fi 12966 # Now quote all the things that may contain metacharacters while being 12967 # careful not to overquote the AC_SUBSTed values. We take copies of the 12968 # variables and quote the copies for generation of the libtool script. 12969 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12970 SED SHELL STRIP \ 12971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12973 deplibs_check_method reload_flag reload_cmds need_locks \ 12974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12975 lt_cv_sys_global_symbol_to_c_name_address \ 12976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12977 old_postinstall_cmds old_postuninstall_cmds \ 12978 compiler_CXX \ 12979 CC_CXX \ 12980 LD_CXX \ 12981 lt_prog_compiler_wl_CXX \ 12982 lt_prog_compiler_pic_CXX \ 12983 lt_prog_compiler_static_CXX \ 12984 lt_prog_compiler_no_builtin_flag_CXX \ 12985 export_dynamic_flag_spec_CXX \ 12986 thread_safe_flag_spec_CXX \ 12987 whole_archive_flag_spec_CXX \ 12988 enable_shared_with_static_runtimes_CXX \ 12989 old_archive_cmds_CXX \ 12990 old_archive_from_new_cmds_CXX \ 12991 predep_objects_CXX \ 12992 postdep_objects_CXX \ 12993 predeps_CXX \ 12994 postdeps_CXX \ 12995 compiler_lib_search_path_CXX \ 12996 compiler_lib_search_dirs_CXX \ 12997 archive_cmds_CXX \ 12998 archive_expsym_cmds_CXX \ 12999 postinstall_cmds_CXX \ 13000 postuninstall_cmds_CXX \ 13001 old_archive_from_expsyms_cmds_CXX \ 13002 allow_undefined_flag_CXX \ 13003 no_undefined_flag_CXX \ 13004 export_symbols_cmds_CXX \ 13005 hardcode_libdir_flag_spec_CXX \ 13006 hardcode_libdir_flag_spec_ld_CXX \ 13007 hardcode_libdir_separator_CXX \ 13008 hardcode_automatic_CXX \ 13009 module_cmds_CXX \ 13010 module_expsym_cmds_CXX \ 13011 lt_cv_prog_compiler_c_o_CXX \ 13012 fix_srcfile_path_CXX \ 13013 exclude_expsyms_CXX \ 13014 include_expsyms_CXX; do 13015 13016 case $var in 13017 old_archive_cmds_CXX | \ 13018 old_archive_from_new_cmds_CXX | \ 13019 archive_cmds_CXX | \ 13020 archive_expsym_cmds_CXX | \ 13021 module_cmds_CXX | \ 13022 module_expsym_cmds_CXX | \ 13023 old_archive_from_expsyms_cmds_CXX | \ 13024 export_symbols_cmds_CXX | \ 13025 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13026 postinstall_cmds | postuninstall_cmds | \ 13027 old_postinstall_cmds | old_postuninstall_cmds | \ 13028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13029 # Double-quote double-evaled strings. 13030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13031 ;; 13032 *) 13033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13034 ;; 13035 esac 13036 done 13037 13038 case $lt_echo in 13039 *'\$0 --fallback-echo"') 13040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13041 ;; 13042 esac 13043 13044 cfgfile="$ofile" 13045 13046 cat <<__EOF__ >> "$cfgfile" 13047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 13048 13049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13050 13051 # Shell to use when invoking shell scripts. 13052 SHELL=$lt_SHELL 13053 13054 # Whether or not to build shared libraries. 13055 build_libtool_libs=$enable_shared 13056 13057 # Whether or not to build static libraries. 13058 build_old_libs=$enable_static 13059 13060 # Whether or not to add -lc for building shared libraries. 13061 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13062 13063 # Whether or not to disallow shared libs when runtime libs are static 13064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13065 13066 # Whether or not to optimize for fast installation. 13067 fast_install=$enable_fast_install 13068 13069 # The host system. 13070 host_alias=$host_alias 13071 host=$host 13072 host_os=$host_os 13073 13074 # The build system. 13075 build_alias=$build_alias 13076 build=$build 13077 build_os=$build_os 13078 13079 # An echo program that does not interpret backslashes. 13080 echo=$lt_echo 13081 13082 # The archiver. 13083 AR=$lt_AR 13084 AR_FLAGS=$lt_AR_FLAGS 13085 13086 # A C compiler. 13087 LTCC=$lt_LTCC 13088 13089 # LTCC compiler flags. 13090 LTCFLAGS=$lt_LTCFLAGS 13091 13092 # A language-specific compiler. 13093 CC=$lt_compiler_CXX 13094 13095 # Is the compiler the GNU C compiler? 13096 with_gcc=$GCC_CXX 13097 13098 # An ERE matcher. 13099 EGREP=$lt_EGREP 13100 13101 # The linker used to build libraries. 13102 LD=$lt_LD_CXX 13103 13104 # Whether we need hard or soft links. 13105 LN_S=$lt_LN_S 13106 13107 # A BSD-compatible nm program. 13108 NM=$lt_NM 13109 13110 # A symbol stripping program 13111 STRIP=$lt_STRIP 13112 13113 # Used to examine libraries when file_magic_cmd begins "file" 13114 MAGIC_CMD=$MAGIC_CMD 13115 13116 # Used on cygwin: DLL creation program. 13117 DLLTOOL="$DLLTOOL" 13118 13119 # Used on cygwin: object dumper. 13120 OBJDUMP="$OBJDUMP" 13121 13122 # Used on cygwin: assembler. 13123 AS="$AS" 13124 13125 # The name of the directory that contains temporary libtool files. 13126 objdir=$objdir 13127 13128 # How to create reloadable object files. 13129 reload_flag=$lt_reload_flag 13130 reload_cmds=$lt_reload_cmds 13131 13132 # How to pass a linker flag through the compiler. 13133 wl=$lt_lt_prog_compiler_wl_CXX 13134 13135 # Object file suffix (normally "o"). 13136 objext="$ac_objext" 13137 13138 # Old archive suffix (normally "a"). 13139 libext="$libext" 13140 13141 # Shared library suffix (normally ".so"). 13142 shrext_cmds='$shrext_cmds' 13143 13144 # Executable file suffix (normally ""). 13145 exeext="$exeext" 13146 13147 # Additional compiler flags for building library objects. 13148 pic_flag=$lt_lt_prog_compiler_pic_CXX 13149 pic_mode=$pic_mode 13150 13151 # What is the maximum length of a command? 13152 max_cmd_len=$lt_cv_sys_max_cmd_len 13153 13154 # Does compiler simultaneously support -c and -o options? 13155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13156 13157 # Must we lock files when doing compilation? 13158 need_locks=$lt_need_locks 13159 13160 # Do we need the lib prefix for modules? 13161 need_lib_prefix=$need_lib_prefix 13162 13163 # Do we need a version for libraries? 13164 need_version=$need_version 13165 13166 # Whether dlopen is supported. 13167 dlopen_support=$enable_dlopen 13168 13169 # Whether dlopen of programs is supported. 13170 dlopen_self=$enable_dlopen_self 13171 13172 # Whether dlopen of statically linked programs is supported. 13173 dlopen_self_static=$enable_dlopen_self_static 13174 13175 # Compiler flag to prevent dynamic linking. 13176 link_static_flag=$lt_lt_prog_compiler_static_CXX 13177 13178 # Compiler flag to turn off builtin functions. 13179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13180 13181 # Compiler flag to allow reflexive dlopens. 13182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13183 13184 # Compiler flag to generate shared objects directly from archives. 13185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13186 13187 # Compiler flag to generate thread-safe objects. 13188 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13189 13190 # Library versioning type. 13191 version_type=$version_type 13192 13193 # Format of library name prefix. 13194 libname_spec=$lt_libname_spec 13195 13196 # List of archive names. First name is the real one, the rest are links. 13197 # The last name is the one that the linker finds with -lNAME. 13198 library_names_spec=$lt_library_names_spec 13199 13200 # The coded name of the library, if different from the real name. 13201 soname_spec=$lt_soname_spec 13202 13203 # Commands used to build and install an old-style archive. 13204 RANLIB=$lt_RANLIB 13205 old_archive_cmds=$lt_old_archive_cmds_CXX 13206 old_postinstall_cmds=$lt_old_postinstall_cmds 13207 old_postuninstall_cmds=$lt_old_postuninstall_cmds 13208 13209 # Create an old-style archive from a shared archive. 13210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13211 13212 # Create a temporary old-style archive to link instead of a shared archive. 13213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13214 13215 # Commands used to build and install a shared archive. 13216 archive_cmds=$lt_archive_cmds_CXX 13217 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13218 postinstall_cmds=$lt_postinstall_cmds 13219 postuninstall_cmds=$lt_postuninstall_cmds 13220 13221 # Commands used to build a loadable module (assumed same as above if empty) 13222 module_cmds=$lt_module_cmds_CXX 13223 module_expsym_cmds=$lt_module_expsym_cmds_CXX 13224 13225 # Commands to strip libraries. 13226 old_striplib=$lt_old_striplib 13227 striplib=$lt_striplib 13228 13229 # Dependencies to place before the objects being linked to create a 13230 # shared library. 13231 predep_objects=$lt_predep_objects_CXX 13232 13233 # Dependencies to place after the objects being linked to create a 13234 # shared library. 13235 postdep_objects=$lt_postdep_objects_CXX 13236 13237 # Dependencies to place before the objects being linked to create a 13238 # shared library. 13239 predeps=$lt_predeps_CXX 13240 13241 # Dependencies to place after the objects being linked to create a 13242 # shared library. 13243 postdeps=$lt_postdeps_CXX 13244 13245 # The directories searched by this compiler when creating a shared 13246 # library 13247 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13248 13249 # The library search path used internally by the compiler when linking 13250 # a shared library. 13251 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13252 13253 # Method to check whether dependent libraries are shared objects. 13254 deplibs_check_method=$lt_deplibs_check_method 13255 13256 # Command to use when deplibs_check_method == file_magic. 13257 file_magic_cmd=$lt_file_magic_cmd 13258 13259 # Flag that allows shared libraries with undefined symbols to be built. 13260 allow_undefined_flag=$lt_allow_undefined_flag_CXX 13261 13262 # Flag that forces no undefined symbols. 13263 no_undefined_flag=$lt_no_undefined_flag_CXX 13264 13265 # Commands used to finish a libtool library installation in a directory. 13266 finish_cmds=$lt_finish_cmds 13267 13268 # Same as above, but a single script fragment to be evaled but not shown. 13269 finish_eval=$lt_finish_eval 13270 13271 # Take the output of nm and produce a listing of raw symbols and C names. 13272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13273 13274 # Transform the output of nm in a proper C declaration 13275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13276 13277 # Transform the output of nm in a C name address pair 13278 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13279 13280 # This is the shared library runtime path variable. 13281 runpath_var=$runpath_var 13282 13283 # This is the shared library path variable. 13284 shlibpath_var=$shlibpath_var 13285 13286 # Is shlibpath searched before the hard-coded library search path? 13287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13288 13289 # How to hardcode a shared library path into an executable. 13290 hardcode_action=$hardcode_action_CXX 13291 13292 # Whether we should hardcode library paths into libraries. 13293 hardcode_into_libs=$hardcode_into_libs 13294 13295 # Flag to hardcode \$libdir into a binary during linking. 13296 # This must work even if \$libdir does not exist. 13297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13298 13299 # If ld is used when linking, flag to hardcode \$libdir into 13300 # a binary during linking. This must work even if \$libdir does 13301 # not exist. 13302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13303 13304 # Whether we need a single -rpath flag with a separated argument. 13305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13306 13307 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13308 # resulting binary. 13309 hardcode_direct=$hardcode_direct_CXX 13310 13311 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13312 # resulting binary. 13313 hardcode_minus_L=$hardcode_minus_L_CXX 13314 13315 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13316 # the resulting binary. 13317 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13318 13319 # Set to yes if building a shared library automatically hardcodes DIR into the library 13320 # and all subsequent libraries and executables linked against it. 13321 hardcode_automatic=$hardcode_automatic_CXX 13322 13323 # Variables whose values should be saved in libtool wrapper scripts and 13324 # restored at relink time. 13325 variables_saved_for_relink="$variables_saved_for_relink" 13326 13327 # Whether libtool must link a program against all its dependency libraries. 13328 link_all_deplibs=$link_all_deplibs_CXX 13329 13330 # Compile-time system search path for libraries 13331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13332 13333 # Run-time system search path for libraries 13334 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13335 13336 # Fix the shell variable \$srcfile for the compiler. 13337 fix_srcfile_path=$lt_fix_srcfile_path 13338 13339 # Set to yes if exported symbols are required. 13340 always_export_symbols=$always_export_symbols_CXX 13341 13342 # The commands to list exported symbols. 13343 export_symbols_cmds=$lt_export_symbols_cmds_CXX 13344 13345 # The commands to extract the exported symbol list from a shared archive. 13346 extract_expsyms_cmds=$lt_extract_expsyms_cmds 13347 13348 # Symbols that should not be listed in the preloaded symbols. 13349 exclude_expsyms=$lt_exclude_expsyms_CXX 13350 13351 # Symbols that must always be exported. 13352 include_expsyms=$lt_include_expsyms_CXX 13353 13354 # ### END LIBTOOL TAG CONFIG: $tagname 13355 13356 __EOF__ 13357 13358 13359 else 13360 # If there is no Makefile yet, we rely on a make rule to execute 13361 # `config.status --recheck' to rerun these tests and create the 13362 # libtool script then. 13363 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13364 if test -f "$ltmain_in"; then 13365 test -f Makefile && make "$ltmain" 13366 fi 13367 fi 13368 13369 13370 ac_ext=c 13371 ac_cpp='$CPP $CPPFLAGS' 13372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13374 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13375 13376 CC=$lt_save_CC 13377 LDCXX=$LD 13378 LD=$lt_save_LD 13379 GCC=$lt_save_GCC 13380 with_gnu_ldcxx=$with_gnu_ld 13381 with_gnu_ld=$lt_save_with_gnu_ld 13382 lt_cv_path_LDCXX=$lt_cv_path_LD 13383 lt_cv_path_LD=$lt_save_path_LD 13384 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13385 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13386 13387 else 13388 tagname="" 13389 fi 13390 ;; 13391 13392 F77) 13393 if test -n "$F77" && test "X$F77" != "Xno"; then 13394 13395 ac_ext=f 13396 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13397 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13398 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13399 13400 13401 archive_cmds_need_lc_F77=no 13402 allow_undefined_flag_F77= 13403 always_export_symbols_F77=no 13404 archive_expsym_cmds_F77= 13405 export_dynamic_flag_spec_F77= 13406 hardcode_direct_F77=no 13407 hardcode_libdir_flag_spec_F77= 13408 hardcode_libdir_flag_spec_ld_F77= 13409 hardcode_libdir_separator_F77= 13410 hardcode_minus_L_F77=no 13411 hardcode_automatic_F77=no 13412 module_cmds_F77= 13413 module_expsym_cmds_F77= 13414 link_all_deplibs_F77=unknown 13415 old_archive_cmds_F77=$old_archive_cmds 13416 no_undefined_flag_F77= 13417 whole_archive_flag_spec_F77= 13418 enable_shared_with_static_runtimes_F77=no 13419 13420 # Source file extension for f77 test sources. 13421 ac_ext=f 13422 13423 # Object file extension for compiled f77 test sources. 13424 objext=o 13425 objext_F77=$objext 13426 13427 # Code to be used in simple compile tests 13428 lt_simple_compile_test_code="\ 13429 subroutine t 13430 return 13431 end 13432 " 13433 13434 # Code to be used in simple link tests 13435 lt_simple_link_test_code="\ 13436 program t 13437 end 13438 " 13439 13440 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13441 13442 # If no C compiler was specified, use CC. 13443 LTCC=${LTCC-"$CC"} 13444 13445 # If no C compiler flags were specified, use CFLAGS. 13446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13447 13448 # Allow CC to be a program name with arguments. 13449 compiler=$CC 13450 13451 13452 # save warnings/boilerplate of simple test code 13453 ac_outfile=conftest.$ac_objext 13454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13456 _lt_compiler_boilerplate=`cat conftest.err` 13457 $rm conftest* 13458 13459 ac_outfile=conftest.$ac_objext 13460 echo "$lt_simple_link_test_code" >conftest.$ac_ext 13461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13462 _lt_linker_boilerplate=`cat conftest.err` 13463 $rm -r conftest* 13464 13465 13466 # Allow CC to be a program name with arguments. 13467 lt_save_CC="$CC" 13468 CC=${F77-"f77"} 13469 compiler=$CC 13470 compiler_F77=$CC 13471 for cc_temp in $compiler""; do 13472 case $cc_temp in 13473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13475 \-*) ;; 13476 *) break;; 13477 esac 13478 done 13479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13480 13481 13482 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13483 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13484 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 13485 echo "${ECHO_T}$can_build_shared" >&6; } 13486 13487 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13488 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13489 test "$can_build_shared" = "no" && enable_shared=no 13490 13491 # On AIX, shared libraries and static libraries use the same namespace, and 13492 # are all built from PIC. 13493 case $host_os in 13494 aix3*) 13495 test "$enable_shared" = yes && enable_static=no 13496 if test -n "$RANLIB"; then 13497 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13498 postinstall_cmds='$RANLIB $lib' 13499 fi 13500 ;; 13501 aix[4-9]*) 13502 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13503 test "$enable_shared" = yes && enable_static=no 13504 fi 13505 ;; 13506 esac 13507 { echo "$as_me:$LINENO: result: $enable_shared" >&5 13508 echo "${ECHO_T}$enable_shared" >&6; } 13509 13510 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13511 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13512 # Make sure either enable_shared or enable_static is yes. 13513 test "$enable_shared" = yes || enable_static=yes 13514 { echo "$as_me:$LINENO: result: $enable_static" >&5 13515 echo "${ECHO_T}$enable_static" >&6; } 13516 13517 GCC_F77="$G77" 13518 LD_F77="$LD" 13519 13520 lt_prog_compiler_wl_F77= 13521 lt_prog_compiler_pic_F77= 13522 lt_prog_compiler_static_F77= 13523 13524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13526 13527 if test "$GCC" = yes; then 13528 lt_prog_compiler_wl_F77='-Wl,' 13529 lt_prog_compiler_static_F77='-static' 13530 13531 case $host_os in 13532 aix*) 13533 # All AIX code is PIC. 13534 if test "$host_cpu" = ia64; then 13535 # AIX 5 now supports IA64 processor 13536 lt_prog_compiler_static_F77='-Bstatic' 13537 fi 13538 ;; 13539 13540 amigaos*) 13541 # FIXME: we need at least 68020 code to build shared libraries, but 13542 # adding the `-m68020' flag to GCC prevents building anything better, 13543 # like `-m68040'. 13544 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13545 ;; 13546 13547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13548 # PIC is the default for these OSes. 13549 ;; 13550 13551 mingw* | cygwin* | pw32* | os2*) 13552 # This hack is so that the source file can tell whether it is being 13553 # built for inclusion in a dll (and should export symbols for example). 13554 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13555 # (--disable-auto-import) libraries 13556 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13557 ;; 13558 13559 darwin* | rhapsody*) 13560 # PIC is the default on this platform 13561 # Common symbols not allowed in MH_DYLIB files 13562 lt_prog_compiler_pic_F77='-fno-common' 13563 ;; 13564 13565 interix[3-9]*) 13566 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13567 # Instead, we relocate shared libraries at runtime. 13568 ;; 13569 13570 msdosdjgpp*) 13571 # Just because we use GCC doesn't mean we suddenly get shared libraries 13572 # on systems that don't support them. 13573 lt_prog_compiler_can_build_shared_F77=no 13574 enable_shared=no 13575 ;; 13576 13577 sysv4*MP*) 13578 if test -d /usr/nec; then 13579 lt_prog_compiler_pic_F77=-Kconform_pic 13580 fi 13581 ;; 13582 13583 hpux*) 13584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13585 # not for PA HP-UX. 13586 case $host_cpu in 13587 hppa*64*|ia64*) 13588 # +Z the default 13589 ;; 13590 *) 13591 lt_prog_compiler_pic_F77='-fPIC' 13592 ;; 13593 esac 13594 ;; 13595 13596 *) 13597 lt_prog_compiler_pic_F77='-fPIC' 13598 ;; 13599 esac 13600 else 13601 # PORTME Check for flag to pass linker flags through the system compiler. 13602 case $host_os in 13603 aix*) 13604 lt_prog_compiler_wl_F77='-Wl,' 13605 if test "$host_cpu" = ia64; then 13606 # AIX 5 now supports IA64 processor 13607 lt_prog_compiler_static_F77='-Bstatic' 13608 else 13609 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13610 fi 13611 ;; 13612 darwin*) 13613 # PIC is the default on this platform 13614 # Common symbols not allowed in MH_DYLIB files 13615 case $cc_basename in 13616 xlc*) 13617 lt_prog_compiler_pic_F77='-qnocommon' 13618 lt_prog_compiler_wl_F77='-Wl,' 13619 ;; 13620 esac 13621 ;; 13622 13623 mingw* | cygwin* | pw32* | os2*) 13624 # This hack is so that the source file can tell whether it is being 13625 # built for inclusion in a dll (and should export symbols for example). 13626 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13627 ;; 13628 13629 hpux9* | hpux10* | hpux11*) 13630 lt_prog_compiler_wl_F77='-Wl,' 13631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13632 # not for PA HP-UX. 13633 case $host_cpu in 13634 hppa*64*|ia64*) 13635 # +Z the default 13636 ;; 13637 *) 13638 lt_prog_compiler_pic_F77='+Z' 13639 ;; 13640 esac 13641 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13642 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13643 ;; 13644 13645 irix5* | irix6* | nonstopux*) 13646 lt_prog_compiler_wl_F77='-Wl,' 13647 # PIC (with -KPIC) is the default. 13648 lt_prog_compiler_static_F77='-non_shared' 13649 ;; 13650 13651 newsos6) 13652 lt_prog_compiler_pic_F77='-KPIC' 13653 lt_prog_compiler_static_F77='-Bstatic' 13654 ;; 13655 13656 linux* | k*bsd*-gnu) 13657 case $cc_basename in 13658 icc* | ecc*) 13659 lt_prog_compiler_wl_F77='-Wl,' 13660 lt_prog_compiler_pic_F77='-KPIC' 13661 lt_prog_compiler_static_F77='-static' 13662 ;; 13663 pgcc* | pgf77* | pgf90* | pgf95*) 13664 # Portland Group compilers (*not* the Pentium gcc compiler, 13665 # which looks to be a dead project) 13666 lt_prog_compiler_wl_F77='-Wl,' 13667 lt_prog_compiler_pic_F77='-fpic' 13668 lt_prog_compiler_static_F77='-Bstatic' 13669 ;; 13670 ccc*) 13671 lt_prog_compiler_wl_F77='-Wl,' 13672 # All Alpha code is PIC. 13673 lt_prog_compiler_static_F77='-non_shared' 13674 ;; 13675 *) 13676 case `$CC -V 2>&1 | sed 5q` in 13677 *Sun\ C*) 13678 # Sun C 5.9 13679 lt_prog_compiler_pic_F77='-KPIC' 13680 lt_prog_compiler_static_F77='-Bstatic' 13681 lt_prog_compiler_wl_F77='-Wl,' 13682 ;; 13683 *Sun\ F*) 13684 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13685 lt_prog_compiler_pic_F77='-KPIC' 13686 lt_prog_compiler_static_F77='-Bstatic' 13687 lt_prog_compiler_wl_F77='' 13688 ;; 13689 esac 13690 ;; 13691 esac 13692 ;; 13693 13694 osf3* | osf4* | osf5*) 13695 lt_prog_compiler_wl_F77='-Wl,' 13696 # All OSF/1 code is PIC. 13697 lt_prog_compiler_static_F77='-non_shared' 13698 ;; 13699 13700 rdos*) 13701 lt_prog_compiler_static_F77='-non_shared' 13702 ;; 13703 13704 solaris*) 13705 lt_prog_compiler_pic_F77='-KPIC' 13706 lt_prog_compiler_static_F77='-Bstatic' 13707 case $cc_basename in 13708 f77* | f90* | f95*) 13709 lt_prog_compiler_wl_F77='-Qoption ld ';; 13710 *) 13711 lt_prog_compiler_wl_F77='-Wl,';; 13712 esac 13713 ;; 13714 13715 sunos4*) 13716 lt_prog_compiler_wl_F77='-Qoption ld ' 13717 lt_prog_compiler_pic_F77='-PIC' 13718 lt_prog_compiler_static_F77='-Bstatic' 13719 ;; 13720 13721 sysv4 | sysv4.2uw2* | sysv4.3*) 13722 lt_prog_compiler_wl_F77='-Wl,' 13723 lt_prog_compiler_pic_F77='-KPIC' 13724 lt_prog_compiler_static_F77='-Bstatic' 13725 ;; 13726 13727 sysv4*MP*) 13728 if test -d /usr/nec ;then 13729 lt_prog_compiler_pic_F77='-Kconform_pic' 13730 lt_prog_compiler_static_F77='-Bstatic' 13731 fi 13732 ;; 13733 13734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13735 lt_prog_compiler_wl_F77='-Wl,' 13736 lt_prog_compiler_pic_F77='-KPIC' 13737 lt_prog_compiler_static_F77='-Bstatic' 13738 ;; 13739 13740 unicos*) 13741 lt_prog_compiler_wl_F77='-Wl,' 13742 lt_prog_compiler_can_build_shared_F77=no 13743 ;; 13744 13745 uts4*) 13746 lt_prog_compiler_pic_F77='-pic' 13747 lt_prog_compiler_static_F77='-Bstatic' 13748 ;; 13749 13750 *) 13751 lt_prog_compiler_can_build_shared_F77=no 13752 ;; 13753 esac 13754 fi 13755 13756 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13757 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13758 13759 # 13760 # Check to make sure the PIC flag actually works. 13761 # 13762 if test -n "$lt_prog_compiler_pic_F77"; then 13763 13764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13766 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 13767 echo $ECHO_N "(cached) $ECHO_C" >&6 13768 else 13769 lt_cv_prog_compiler_pic_works_F77=no 13770 ac_outfile=conftest.$ac_objext 13771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13772 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13773 # Insert the option either (1) after the last *FLAGS variable, or 13774 # (2) before a word containing "conftest.", or (3) at the end. 13775 # Note that $ac_compile itself does not contain backslashes and begins 13776 # with a dollar sign (not a hyphen), so the echo should work correctly. 13777 # The option is referenced via a variable to avoid confusing sed. 13778 lt_compile=`echo "$ac_compile" | $SED \ 13779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13781 -e 's:$: $lt_compiler_flag:'` 13782 (eval echo "\"\$as_me:13782: $lt_compile\"" >&5) 13783 (eval "$lt_compile" 2>conftest.err) 13784 ac_status=$? 13785 cat conftest.err >&5 13786 echo "$as_me:13786: \$? = $ac_status" >&5 13787 if (exit $ac_status) && test -s "$ac_outfile"; then 13788 # The compiler can only warn and ignore the option if not recognized 13789 # So say no if there are warnings other than the usual output. 13790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13793 lt_cv_prog_compiler_pic_works_F77=yes 13794 fi 13795 fi 13796 $rm conftest* 13797 13798 fi 13799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 13800 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 13801 13802 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 13803 case $lt_prog_compiler_pic_F77 in 13804 "" | " "*) ;; 13805 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13806 esac 13807 else 13808 lt_prog_compiler_pic_F77= 13809 lt_prog_compiler_can_build_shared_F77=no 13810 fi 13811 13812 fi 13813 case $host_os in 13814 # For platforms which do not support PIC, -DPIC is meaningless: 13815 *djgpp*) 13816 lt_prog_compiler_pic_F77= 13817 ;; 13818 *) 13819 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13820 ;; 13821 esac 13822 13823 # 13824 # Check to make sure the static flag actually works. 13825 # 13826 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13827 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13829 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 13830 echo $ECHO_N "(cached) $ECHO_C" >&6 13831 else 13832 lt_cv_prog_compiler_static_works_F77=no 13833 save_LDFLAGS="$LDFLAGS" 13834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13835 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13837 # The linker can only warn and ignore the option if not recognized 13838 # So say no if there are warnings 13839 if test -s conftest.err; then 13840 # Append any errors to the config.log. 13841 cat conftest.err 1>&5 13842 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13844 if diff conftest.exp conftest.er2 >/dev/null; then 13845 lt_cv_prog_compiler_static_works_F77=yes 13846 fi 13847 else 13848 lt_cv_prog_compiler_static_works_F77=yes 13849 fi 13850 fi 13851 $rm -r conftest* 13852 LDFLAGS="$save_LDFLAGS" 13853 13854 fi 13855 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 13856 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 13857 13858 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 13859 : 13860 else 13861 lt_prog_compiler_static_F77= 13862 fi 13863 13864 13865 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13867 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13868 echo $ECHO_N "(cached) $ECHO_C" >&6 13869 else 13870 lt_cv_prog_compiler_c_o_F77=no 13871 $rm -r conftest 2>/dev/null 13872 mkdir conftest 13873 cd conftest 13874 mkdir out 13875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13876 13877 lt_compiler_flag="-o out/conftest2.$ac_objext" 13878 # Insert the option either (1) after the last *FLAGS variable, or 13879 # (2) before a word containing "conftest.", or (3) at the end. 13880 # Note that $ac_compile itself does not contain backslashes and begins 13881 # with a dollar sign (not a hyphen), so the echo should work correctly. 13882 lt_compile=`echo "$ac_compile" | $SED \ 13883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13885 -e 's:$: $lt_compiler_flag:'` 13886 (eval echo "\"\$as_me:13886: $lt_compile\"" >&5) 13887 (eval "$lt_compile" 2>out/conftest.err) 13888 ac_status=$? 13889 cat out/conftest.err >&5 13890 echo "$as_me:13890: \$? = $ac_status" >&5 13891 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13892 then 13893 # The compiler can only warn and ignore the option if not recognized 13894 # So say no if there are warnings 13895 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13898 lt_cv_prog_compiler_c_o_F77=yes 13899 fi 13900 fi 13901 chmod u+w . 2>&5 13902 $rm conftest* 13903 # SGI C++ compiler will create directory out/ii_files/ for 13904 # template instantiation 13905 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13906 $rm out/* && rmdir out 13907 cd .. 13908 rmdir conftest 13909 $rm conftest* 13910 13911 fi 13912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13914 13915 13916 hard_links="nottested" 13917 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13918 # do not overwrite the value of need_locks provided by the user 13919 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13921 hard_links=yes 13922 $rm conftest* 13923 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13924 touch conftest.a 13925 ln conftest.a conftest.b 2>&5 || hard_links=no 13926 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13927 { echo "$as_me:$LINENO: result: $hard_links" >&5 13928 echo "${ECHO_T}$hard_links" >&6; } 13929 if test "$hard_links" = no; then 13930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13932 need_locks=warn 13933 fi 13934 else 13935 need_locks=no 13936 fi 13937 13938 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13940 13941 runpath_var= 13942 allow_undefined_flag_F77= 13943 enable_shared_with_static_runtimes_F77=no 13944 archive_cmds_F77= 13945 archive_expsym_cmds_F77= 13946 old_archive_From_new_cmds_F77= 13947 old_archive_from_expsyms_cmds_F77= 13948 export_dynamic_flag_spec_F77= 13949 whole_archive_flag_spec_F77= 13950 thread_safe_flag_spec_F77= 13951 hardcode_libdir_flag_spec_F77= 13952 hardcode_libdir_flag_spec_ld_F77= 13953 hardcode_libdir_separator_F77= 13954 hardcode_direct_F77=no 13955 hardcode_minus_L_F77=no 13956 hardcode_shlibpath_var_F77=unsupported 13957 link_all_deplibs_F77=unknown 13958 hardcode_automatic_F77=no 13959 module_cmds_F77= 13960 module_expsym_cmds_F77= 13961 always_export_symbols_F77=no 13962 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13963 # include_expsyms should be a list of space-separated symbols to be *always* 13964 # included in the symbol list 13965 include_expsyms_F77= 13966 # exclude_expsyms can be an extended regexp of symbols to exclude 13967 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13969 # as well as any symbol that contains `d'. 13970 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13972 # platforms (ab)use it in PIC code, but their linkers get confused if 13973 # the symbol is explicitly referenced. Since portable code cannot 13974 # rely on this symbol name, it's probably fine to never include it in 13975 # preloaded symbol tables. 13976 # Exclude shared library initialization/finalization symbols. 13977 extract_expsyms_cmds= 13978 # Just being paranoid about ensuring that cc_basename is set. 13979 for cc_temp in $compiler""; do 13980 case $cc_temp in 13981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13983 \-*) ;; 13984 *) break;; 13985 esac 13986 done 13987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13988 13989 case $host_os in 13990 cygwin* | mingw* | pw32*) 13991 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13992 # When not using gcc, we currently assume that we are using 13993 # Microsoft Visual C++. 13994 if test "$GCC" != yes; then 13995 with_gnu_ld=no 13996 fi 13997 ;; 13998 interix*) 13999 # we just hope/assume this is gcc and not c89 (= MSVC++) 14000 with_gnu_ld=yes 14001 ;; 14002 openbsd*) 14003 with_gnu_ld=no 14004 ;; 14005 esac 14006 14007 ld_shlibs_F77=yes 14008 if test "$with_gnu_ld" = yes; then 14009 # If archive_cmds runs LD, not CC, wlarc should be empty 14010 wlarc='${wl}' 14011 14012 # Set some defaults for GNU ld with shared library support. These 14013 # are reset later if shared libraries are not supported. Putting them 14014 # here allows them to be overridden if necessary. 14015 runpath_var=LD_RUN_PATH 14016 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14017 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14018 # ancient GNU ld didn't support --whole-archive et. al. 14019 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14020 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14021 else 14022 whole_archive_flag_spec_F77= 14023 fi 14024 supports_anon_versioning=no 14025 case `$LD -v 2>/dev/null` in 14026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14029 *\ 2.11.*) ;; # other 2.11 versions 14030 *) supports_anon_versioning=yes ;; 14031 esac 14032 14033 # See if GNU ld supports shared libraries. 14034 case $host_os in 14035 aix[3-9]*) 14036 # On AIX/PPC, the GNU linker is very broken 14037 if test "$host_cpu" != ia64; then 14038 ld_shlibs_F77=no 14039 cat <<EOF 1>&2 14040 14041 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 14042 *** to be unable to reliably create shared libraries on AIX. 14043 *** Therefore, libtool is disabling shared libraries support. If you 14044 *** really care for shared libraries, you may want to modify your PATH 14045 *** so that a non-GNU linker is found, and then restart. 14046 14047 EOF 14048 fi 14049 ;; 14050 14051 amigaos*) 14052 archive_cmds_F77='$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)' 14053 hardcode_libdir_flag_spec_F77='-L$libdir' 14054 hardcode_minus_L_F77=yes 14055 14056 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 14057 # that the semantics of dynamic libraries on AmigaOS, at least up 14058 # to version 4, is to share data among multiple programs linked 14059 # with the same dynamic library. Since this doesn't match the 14060 # behavior of shared libraries on other platforms, we can't use 14061 # them. 14062 ld_shlibs_F77=no 14063 ;; 14064 14065 beos*) 14066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14067 allow_undefined_flag_F77=unsupported 14068 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14069 # support --undefined. This deserves some investigation. FIXME 14070 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14071 else 14072 ld_shlibs_F77=no 14073 fi 14074 ;; 14075 14076 cygwin* | mingw* | pw32*) 14077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14078 # as there is no search path for DLLs. 14079 hardcode_libdir_flag_spec_F77='-L$libdir' 14080 allow_undefined_flag_F77=unsupported 14081 always_export_symbols_F77=no 14082 enable_shared_with_static_runtimes_F77=yes 14083 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14084 14085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14086 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14087 # If the export-symbols file already is a .def file (1st line 14088 # is EXPORTS), use it as is; otherwise, prepend... 14089 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14090 cp $export_symbols $output_objdir/$soname.def; 14091 else 14092 echo EXPORTS > $output_objdir/$soname.def; 14093 cat $export_symbols >> $output_objdir/$soname.def; 14094 fi~ 14095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14096 else 14097 ld_shlibs_F77=no 14098 fi 14099 ;; 14100 14101 interix[3-9]*) 14102 hardcode_direct_F77=no 14103 hardcode_shlibpath_var_F77=no 14104 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14105 export_dynamic_flag_spec_F77='${wl}-E' 14106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14107 # Instead, shared libraries are loaded at an image base (0x10000000 by 14108 # default) and relocated if they conflict, which is a slow very memory 14109 # consuming and fragmenting process. To avoid this, we pick a random, 14110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14111 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14112 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14113 archive_expsym_cmds_F77='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' 14114 ;; 14115 14116 gnu* | linux* | k*bsd*-gnu) 14117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14118 tmp_addflag= 14119 case $cc_basename,$host_cpu in 14120 pgcc*) # Portland Group C compiler 14121 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14122 tmp_addflag=' $pic_flag' 14123 ;; 14124 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14125 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14126 tmp_addflag=' $pic_flag -Mnomain' ;; 14127 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14128 tmp_addflag=' -i_dynamic' ;; 14129 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14130 tmp_addflag=' -i_dynamic -nofor_main' ;; 14131 ifc* | ifort*) # Intel Fortran compiler 14132 tmp_addflag=' -nofor_main' ;; 14133 esac 14134 case `$CC -V 2>&1 | sed 5q` in 14135 *Sun\ C*) # Sun C 5.9 14136 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14137 tmp_sharedflag='-G' ;; 14138 *Sun\ F*) # Sun Fortran 8.3 14139 tmp_sharedflag='-G' ;; 14140 *) 14141 tmp_sharedflag='-shared' ;; 14142 esac 14143 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14144 14145 if test $supports_anon_versioning = yes; then 14146 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14148 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14149 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14150 fi 14151 else 14152 ld_shlibs_F77=no 14153 fi 14154 ;; 14155 14156 netbsd*) 14157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14158 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14159 wlarc= 14160 else 14161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14163 fi 14164 ;; 14165 14166 solaris*) 14167 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14168 ld_shlibs_F77=no 14169 cat <<EOF 1>&2 14170 14171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 14172 *** create shared libraries on Solaris systems. Therefore, libtool 14173 *** is disabling shared libraries support. We urge you to upgrade GNU 14174 *** binutils to release 2.9.1 or newer. Another option is to modify 14175 *** your PATH or compiler configuration so that the native linker is 14176 *** used, and then restart. 14177 14178 EOF 14179 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14180 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14181 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14182 else 14183 ld_shlibs_F77=no 14184 fi 14185 ;; 14186 14187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14188 case `$LD -v 2>&1` in 14189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14190 ld_shlibs_F77=no 14191 cat <<_LT_EOF 1>&2 14192 14193 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14194 *** reliably create shared libraries on SCO systems. Therefore, libtool 14195 *** is disabling shared libraries support. We urge you to upgrade GNU 14196 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14197 *** your PATH or compiler configuration so that the native linker is 14198 *** used, and then restart. 14199 14200 _LT_EOF 14201 ;; 14202 *) 14203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14204 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14205 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14206 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14207 else 14208 ld_shlibs_F77=no 14209 fi 14210 ;; 14211 esac 14212 ;; 14213 14214 sunos4*) 14215 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14216 wlarc= 14217 hardcode_direct_F77=yes 14218 hardcode_shlibpath_var_F77=no 14219 ;; 14220 14221 *) 14222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14223 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14224 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14225 else 14226 ld_shlibs_F77=no 14227 fi 14228 ;; 14229 esac 14230 14231 if test "$ld_shlibs_F77" = no; then 14232 runpath_var= 14233 hardcode_libdir_flag_spec_F77= 14234 export_dynamic_flag_spec_F77= 14235 whole_archive_flag_spec_F77= 14236 fi 14237 else 14238 # PORTME fill in a description of your system's linker (not GNU ld) 14239 case $host_os in 14240 aix3*) 14241 allow_undefined_flag_F77=unsupported 14242 always_export_symbols_F77=yes 14243 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14244 # Note: this linker hardcodes the directories in LIBPATH if there 14245 # are no directories specified by -L. 14246 hardcode_minus_L_F77=yes 14247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14248 # Neither direct hardcoding nor static linking is supported with a 14249 # broken collect2. 14250 hardcode_direct_F77=unsupported 14251 fi 14252 ;; 14253 14254 aix[4-9]*) 14255 if test "$host_cpu" = ia64; then 14256 # On IA64, the linker does run time linking by default, so we don't 14257 # have to do anything special. 14258 aix_use_runtimelinking=no 14259 exp_sym_flag='-Bexport' 14260 no_entry_flag="" 14261 else 14262 # If we're using GNU nm, then we don't want the "-C" option. 14263 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14265 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14266 else 14267 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14268 fi 14269 aix_use_runtimelinking=no 14270 14271 # Test if we are trying to use run time linking or normal 14272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14273 # need to do runtime linking. 14274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14275 for ld_flag in $LDFLAGS; do 14276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14277 aix_use_runtimelinking=yes 14278 break 14279 fi 14280 done 14281 ;; 14282 esac 14283 14284 exp_sym_flag='-bexport' 14285 no_entry_flag='-bnoentry' 14286 fi 14287 14288 # When large executables or shared objects are built, AIX ld can 14289 # have problems creating the table of contents. If linking a library 14290 # or program results in "error TOC overflow" add -mminimal-toc to 14291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14293 14294 archive_cmds_F77='' 14295 hardcode_direct_F77=yes 14296 hardcode_libdir_separator_F77=':' 14297 link_all_deplibs_F77=yes 14298 14299 if test "$GCC" = yes; then 14300 case $host_os in aix4.[012]|aix4.[012].*) 14301 # We only want to do this on AIX 4.2 and lower, the check 14302 # below for broken collect2 doesn't work under 4.3+ 14303 collect2name=`${CC} -print-prog-name=collect2` 14304 if test -f "$collect2name" && \ 14305 strings "$collect2name" | grep resolve_lib_name >/dev/null 14306 then 14307 # We have reworked collect2 14308 : 14309 else 14310 # We have old collect2 14311 hardcode_direct_F77=unsupported 14312 # It fails to find uninstalled libraries when the uninstalled 14313 # path is not listed in the libpath. Setting hardcode_minus_L 14314 # to unsupported forces relinking 14315 hardcode_minus_L_F77=yes 14316 hardcode_libdir_flag_spec_F77='-L$libdir' 14317 hardcode_libdir_separator_F77= 14318 fi 14319 ;; 14320 esac 14321 shared_flag='-shared' 14322 if test "$aix_use_runtimelinking" = yes; then 14323 shared_flag="$shared_flag "'${wl}-G' 14324 fi 14325 else 14326 # not using gcc 14327 if test "$host_cpu" = ia64; then 14328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14329 # chokes on -Wl,-G. The following line is correct: 14330 shared_flag='-G' 14331 else 14332 if test "$aix_use_runtimelinking" = yes; then 14333 shared_flag='${wl}-G' 14334 else 14335 shared_flag='${wl}-bM:SRE' 14336 fi 14337 fi 14338 fi 14339 14340 # It seems that -bexpall does not export symbols beginning with 14341 # underscore (_), so it is better to generate a list of symbols to export. 14342 always_export_symbols_F77=yes 14343 if test "$aix_use_runtimelinking" = yes; then 14344 # Warning - without using the other runtime loading flags (-brtl), 14345 # -berok will link without error, but may produce a broken library. 14346 allow_undefined_flag_F77='-berok' 14347 # Determine the default libpath from the value encoded in an empty executable. 14348 cat >conftest.$ac_ext <<_ACEOF 14349 program main 14350 14351 end 14352 _ACEOF 14353 rm -f conftest.$ac_objext conftest$ac_exeext 14354 if { (ac_try="$ac_link" 14355 case "(($ac_try" in 14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14357 *) ac_try_echo=$ac_try;; 14358 esac 14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14360 (eval "$ac_link") 2>conftest.er1 14361 ac_status=$? 14362 grep -v '^ *+' conftest.er1 >conftest.err 14363 rm -f conftest.er1 14364 cat conftest.err >&5 14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14366 (exit $ac_status); } && { 14367 test -z "$ac_f77_werror_flag" || 14368 test ! -s conftest.err 14369 } && test -s conftest$ac_exeext && 14370 $as_test_x conftest$ac_exeext; then 14371 14372 lt_aix_libpath_sed=' 14373 /Import File Strings/,/^$/ { 14374 /^0/ { 14375 s/^0 *\(.*\)$/\1/ 14376 p 14377 } 14378 }' 14379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14380 # Check for a 64-bit object if we didn't find anything. 14381 if test -z "$aix_libpath"; then 14382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14383 fi 14384 else 14385 echo "$as_me: failed program was:" >&5 14386 sed 's/^/| /' conftest.$ac_ext >&5 14387 14388 14389 fi 14390 14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14392 conftest$ac_exeext conftest.$ac_ext 14393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14394 14395 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14396 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14397 else 14398 if test "$host_cpu" = ia64; then 14399 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14400 allow_undefined_flag_F77="-z nodefs" 14401 archive_expsym_cmds_F77="\$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" 14402 else 14403 # Determine the default libpath from the value encoded in an empty executable. 14404 cat >conftest.$ac_ext <<_ACEOF 14405 program main 14406 14407 end 14408 _ACEOF 14409 rm -f conftest.$ac_objext conftest$ac_exeext 14410 if { (ac_try="$ac_link" 14411 case "(($ac_try" in 14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14413 *) ac_try_echo=$ac_try;; 14414 esac 14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14416 (eval "$ac_link") 2>conftest.er1 14417 ac_status=$? 14418 grep -v '^ *+' conftest.er1 >conftest.err 14419 rm -f conftest.er1 14420 cat conftest.err >&5 14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14422 (exit $ac_status); } && { 14423 test -z "$ac_f77_werror_flag" || 14424 test ! -s conftest.err 14425 } && test -s conftest$ac_exeext && 14426 $as_test_x conftest$ac_exeext; then 14427 14428 lt_aix_libpath_sed=' 14429 /Import File Strings/,/^$/ { 14430 /^0/ { 14431 s/^0 *\(.*\)$/\1/ 14432 p 14433 } 14434 }' 14435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14436 # Check for a 64-bit object if we didn't find anything. 14437 if test -z "$aix_libpath"; then 14438 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14439 fi 14440 else 14441 echo "$as_me: failed program was:" >&5 14442 sed 's/^/| /' conftest.$ac_ext >&5 14443 14444 14445 fi 14446 14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14448 conftest$ac_exeext conftest.$ac_ext 14449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14450 14451 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14452 # Warning - without using the other run time loading flags, 14453 # -berok will link without error, but may produce a broken library. 14454 no_undefined_flag_F77=' ${wl}-bernotok' 14455 allow_undefined_flag_F77=' ${wl}-berok' 14456 # Exported symbols can be pulled into shared objects from archives 14457 whole_archive_flag_spec_F77='$convenience' 14458 archive_cmds_need_lc_F77=yes 14459 # This is similar to how AIX traditionally builds its shared libraries. 14460 archive_expsym_cmds_F77="\$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' 14461 fi 14462 fi 14463 ;; 14464 14465 amigaos*) 14466 archive_cmds_F77='$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)' 14467 hardcode_libdir_flag_spec_F77='-L$libdir' 14468 hardcode_minus_L_F77=yes 14469 # see comment about different semantics on the GNU ld section 14470 ld_shlibs_F77=no 14471 ;; 14472 14473 bsdi[45]*) 14474 export_dynamic_flag_spec_F77=-rdynamic 14475 ;; 14476 14477 cygwin* | mingw* | pw32*) 14478 # When not using gcc, we currently assume that we are using 14479 # Microsoft Visual C++. 14480 # hardcode_libdir_flag_spec is actually meaningless, as there is 14481 # no search path for DLLs. 14482 hardcode_libdir_flag_spec_F77=' ' 14483 allow_undefined_flag_F77=unsupported 14484 # Tell ltmain to make .lib files, not .a files. 14485 libext=lib 14486 # Tell ltmain to make .dll files, not .so files. 14487 shrext_cmds=".dll" 14488 # FIXME: Setting linknames here is a bad hack. 14489 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14490 # The linker will automatically build a .lib file if we build a DLL. 14491 old_archive_From_new_cmds_F77='true' 14492 # FIXME: Should let the user specify the lib program. 14493 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14494 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14495 enable_shared_with_static_runtimes_F77=yes 14496 ;; 14497 14498 darwin* | rhapsody*) 14499 case $host_os in 14500 rhapsody* | darwin1.[012]) 14501 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14502 ;; 14503 *) # Darwin 1.3 on 14504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14505 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14506 else 14507 case ${MACOSX_DEPLOYMENT_TARGET} in 14508 10.[012]) 14509 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14510 ;; 14511 10.*) 14512 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14513 ;; 14514 esac 14515 fi 14516 ;; 14517 esac 14518 archive_cmds_need_lc_F77=no 14519 hardcode_direct_F77=no 14520 hardcode_automatic_F77=yes 14521 hardcode_shlibpath_var_F77=unsupported 14522 whole_archive_flag_spec_F77='' 14523 link_all_deplibs_F77=yes 14524 if test "$GCC" = yes ; then 14525 output_verbose_link_cmd='echo' 14526 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14527 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14528 archive_expsym_cmds_F77="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}" 14529 module_expsym_cmds_F77="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}" 14530 else 14531 case $cc_basename in 14532 xlc*) 14533 output_verbose_link_cmd='echo' 14534 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14535 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14537 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14538 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14539 ;; 14540 *) 14541 ld_shlibs_F77=no 14542 ;; 14543 esac 14544 fi 14545 ;; 14546 14547 dgux*) 14548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14549 hardcode_libdir_flag_spec_F77='-L$libdir' 14550 hardcode_shlibpath_var_F77=no 14551 ;; 14552 14553 freebsd1*) 14554 ld_shlibs_F77=no 14555 ;; 14556 14557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14558 # support. Future versions do this automatically, but an explicit c++rt0.o 14559 # does not break anything, and helps significantly (at the cost of a little 14560 # extra space). 14561 freebsd2.2*) 14562 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14563 hardcode_libdir_flag_spec_F77='-R$libdir' 14564 hardcode_direct_F77=yes 14565 hardcode_shlibpath_var_F77=no 14566 ;; 14567 14568 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14569 freebsd2*) 14570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14571 hardcode_direct_F77=yes 14572 hardcode_minus_L_F77=yes 14573 hardcode_shlibpath_var_F77=no 14574 ;; 14575 14576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14577 freebsd* | dragonfly*) 14578 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14579 hardcode_libdir_flag_spec_F77='-R$libdir' 14580 hardcode_direct_F77=yes 14581 hardcode_shlibpath_var_F77=no 14582 ;; 14583 14584 hpux9*) 14585 if test "$GCC" = yes; then 14586 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14587 else 14588 archive_cmds_F77='$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' 14589 fi 14590 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14591 hardcode_libdir_separator_F77=: 14592 hardcode_direct_F77=yes 14593 14594 # hardcode_minus_L: Not really in the search PATH, 14595 # but as the default location of the library. 14596 hardcode_minus_L_F77=yes 14597 export_dynamic_flag_spec_F77='${wl}-E' 14598 ;; 14599 14600 hpux10*) 14601 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14602 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14603 else 14604 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14605 fi 14606 if test "$with_gnu_ld" = no; then 14607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14608 hardcode_libdir_separator_F77=: 14609 14610 hardcode_direct_F77=yes 14611 export_dynamic_flag_spec_F77='${wl}-E' 14612 14613 # hardcode_minus_L: Not really in the search PATH, 14614 # but as the default location of the library. 14615 hardcode_minus_L_F77=yes 14616 fi 14617 ;; 14618 14619 hpux11*) 14620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14621 case $host_cpu in 14622 hppa*64*) 14623 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14624 ;; 14625 ia64*) 14626 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14627 ;; 14628 *) 14629 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14630 ;; 14631 esac 14632 else 14633 case $host_cpu in 14634 hppa*64*) 14635 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14636 ;; 14637 ia64*) 14638 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14639 ;; 14640 *) 14641 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14642 ;; 14643 esac 14644 fi 14645 if test "$with_gnu_ld" = no; then 14646 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14647 hardcode_libdir_separator_F77=: 14648 14649 case $host_cpu in 14650 hppa*64*|ia64*) 14651 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14652 hardcode_direct_F77=no 14653 hardcode_shlibpath_var_F77=no 14654 ;; 14655 *) 14656 hardcode_direct_F77=yes 14657 export_dynamic_flag_spec_F77='${wl}-E' 14658 14659 # hardcode_minus_L: Not really in the search PATH, 14660 # but as the default location of the library. 14661 hardcode_minus_L_F77=yes 14662 ;; 14663 esac 14664 fi 14665 ;; 14666 14667 irix5* | irix6* | nonstopux*) 14668 if test "$GCC" = yes; then 14669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14670 else 14671 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14672 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14673 fi 14674 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14675 hardcode_libdir_separator_F77=: 14676 link_all_deplibs_F77=yes 14677 ;; 14678 14679 netbsd*) 14680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14682 else 14683 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14684 fi 14685 hardcode_libdir_flag_spec_F77='-R$libdir' 14686 hardcode_direct_F77=yes 14687 hardcode_shlibpath_var_F77=no 14688 ;; 14689 14690 newsos6) 14691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14692 hardcode_direct_F77=yes 14693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14694 hardcode_libdir_separator_F77=: 14695 hardcode_shlibpath_var_F77=no 14696 ;; 14697 14698 openbsd*) 14699 if test -f /usr/libexec/ld.so; then 14700 hardcode_direct_F77=yes 14701 hardcode_shlibpath_var_F77=no 14702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14703 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14704 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14705 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14706 export_dynamic_flag_spec_F77='${wl}-E' 14707 else 14708 case $host_os in 14709 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14710 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14711 hardcode_libdir_flag_spec_F77='-R$libdir' 14712 ;; 14713 *) 14714 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14715 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14716 ;; 14717 esac 14718 fi 14719 else 14720 ld_shlibs_F77=no 14721 fi 14722 ;; 14723 14724 os2*) 14725 hardcode_libdir_flag_spec_F77='-L$libdir' 14726 hardcode_minus_L_F77=yes 14727 allow_undefined_flag_F77=unsupported 14728 archive_cmds_F77='$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' 14729 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14730 ;; 14731 14732 osf3*) 14733 if test "$GCC" = yes; then 14734 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14735 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14736 else 14737 allow_undefined_flag_F77=' -expect_unresolved \*' 14738 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14739 fi 14740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14741 hardcode_libdir_separator_F77=: 14742 ;; 14743 14744 osf4* | osf5*) # as osf3* with the addition of -msym flag 14745 if test "$GCC" = yes; then 14746 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14747 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14749 else 14750 allow_undefined_flag_F77=' -expect_unresolved \*' 14751 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14752 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14753 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14754 14755 # Both c and cxx compiler support -rpath directly 14756 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14757 fi 14758 hardcode_libdir_separator_F77=: 14759 ;; 14760 14761 solaris*) 14762 no_undefined_flag_F77=' -z text' 14763 if test "$GCC" = yes; then 14764 wlarc='${wl}' 14765 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14766 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14767 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14768 else 14769 wlarc='' 14770 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14771 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14773 fi 14774 hardcode_libdir_flag_spec_F77='-R$libdir' 14775 hardcode_shlibpath_var_F77=no 14776 case $host_os in 14777 solaris2.[0-5] | solaris2.[0-5].*) ;; 14778 *) 14779 # The compiler driver will combine and reorder linker options, 14780 # but understands `-z linker_flag'. GCC discards it without `$wl', 14781 # but is careful enough not to reorder. 14782 # Supported since Solaris 2.6 (maybe 2.5.1?) 14783 if test "$GCC" = yes; then 14784 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14785 else 14786 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 14787 fi 14788 ;; 14789 esac 14790 link_all_deplibs_F77=yes 14791 ;; 14792 14793 sunos4*) 14794 if test "x$host_vendor" = xsequent; then 14795 # Use $CC to link under sequent, because it throws in some extra .o 14796 # files that make .init and .fini sections work. 14797 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14798 else 14799 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14800 fi 14801 hardcode_libdir_flag_spec_F77='-L$libdir' 14802 hardcode_direct_F77=yes 14803 hardcode_minus_L_F77=yes 14804 hardcode_shlibpath_var_F77=no 14805 ;; 14806 14807 sysv4) 14808 case $host_vendor in 14809 sni) 14810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14811 hardcode_direct_F77=yes # is this really true??? 14812 ;; 14813 siemens) 14814 ## LD is ld it makes a PLAMLIB 14815 ## CC just makes a GrossModule. 14816 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14817 reload_cmds_F77='$CC -r -o $output$reload_objs' 14818 hardcode_direct_F77=no 14819 ;; 14820 motorola) 14821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14822 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14823 ;; 14824 esac 14825 runpath_var='LD_RUN_PATH' 14826 hardcode_shlibpath_var_F77=no 14827 ;; 14828 14829 sysv4.3*) 14830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14831 hardcode_shlibpath_var_F77=no 14832 export_dynamic_flag_spec_F77='-Bexport' 14833 ;; 14834 14835 sysv4*MP*) 14836 if test -d /usr/nec; then 14837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14838 hardcode_shlibpath_var_F77=no 14839 runpath_var=LD_RUN_PATH 14840 hardcode_runpath_var=yes 14841 ld_shlibs_F77=yes 14842 fi 14843 ;; 14844 14845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14846 no_undefined_flag_F77='${wl}-z,text' 14847 archive_cmds_need_lc_F77=no 14848 hardcode_shlibpath_var_F77=no 14849 runpath_var='LD_RUN_PATH' 14850 14851 if test "$GCC" = yes; then 14852 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14853 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14854 else 14855 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14856 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 fi 14858 ;; 14859 14860 sysv5* | sco3.2v5* | sco5v6*) 14861 # Note: We can NOT use -z defs as we might desire, because we do not 14862 # link with -lc, and that would cause any symbols used from libc to 14863 # always be unresolved, which means just about no library would 14864 # ever link correctly. If we're not using GNU ld we use -z text 14865 # though, which does catch some bad symbols but isn't as heavy-handed 14866 # as -z defs. 14867 no_undefined_flag_F77='${wl}-z,text' 14868 allow_undefined_flag_F77='${wl}-z,nodefs' 14869 archive_cmds_need_lc_F77=no 14870 hardcode_shlibpath_var_F77=no 14871 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14872 hardcode_libdir_separator_F77=':' 14873 link_all_deplibs_F77=yes 14874 export_dynamic_flag_spec_F77='${wl}-Bexport' 14875 runpath_var='LD_RUN_PATH' 14876 14877 if test "$GCC" = yes; then 14878 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14879 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14880 else 14881 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14882 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14883 fi 14884 ;; 14885 14886 uts4*) 14887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14888 hardcode_libdir_flag_spec_F77='-L$libdir' 14889 hardcode_shlibpath_var_F77=no 14890 ;; 14891 14892 *) 14893 ld_shlibs_F77=no 14894 ;; 14895 esac 14896 fi 14897 14898 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14899 echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14900 test "$ld_shlibs_F77" = no && can_build_shared=no 14901 14902 # 14903 # Do we need to explicitly link libc? 14904 # 14905 case "x$archive_cmds_need_lc_F77" in 14906 x|xyes) 14907 # Assume -lc should be added 14908 archive_cmds_need_lc_F77=yes 14909 14910 if test "$enable_shared" = yes && test "$GCC" = yes; then 14911 case $archive_cmds_F77 in 14912 *'~'*) 14913 # FIXME: we may have to deal with multi-command sequences. 14914 ;; 14915 '$CC '*) 14916 # Test whether the compiler implicitly links with -lc since on some 14917 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14918 # to ld, don't add -lc before -lgcc. 14919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14921 $rm conftest* 14922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14923 14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14925 (eval $ac_compile) 2>&5 14926 ac_status=$? 14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14928 (exit $ac_status); } 2>conftest.err; then 14929 soname=conftest 14930 lib=conftest 14931 libobjs=conftest.$ac_objext 14932 deplibs= 14933 wl=$lt_prog_compiler_wl_F77 14934 pic_flag=$lt_prog_compiler_pic_F77 14935 compiler_flags=-v 14936 linker_flags=-v 14937 verstring= 14938 output_objdir=. 14939 libname=conftest 14940 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14941 allow_undefined_flag_F77= 14942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14943 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14944 ac_status=$? 14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14946 (exit $ac_status); } 14947 then 14948 archive_cmds_need_lc_F77=no 14949 else 14950 archive_cmds_need_lc_F77=yes 14951 fi 14952 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14953 else 14954 cat conftest.err 1>&5 14955 fi 14956 $rm conftest* 14957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14958 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14959 ;; 14960 esac 14961 fi 14962 ;; 14963 esac 14964 14965 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14967 library_names_spec= 14968 libname_spec='lib$name' 14969 soname_spec= 14970 shrext_cmds=".so" 14971 postinstall_cmds= 14972 postuninstall_cmds= 14973 finish_cmds= 14974 finish_eval= 14975 shlibpath_var= 14976 shlibpath_overrides_runpath=unknown 14977 version_type=none 14978 dynamic_linker="$host_os ld.so" 14979 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14980 14981 need_lib_prefix=unknown 14982 hardcode_into_libs=no 14983 14984 # when you set need_version to no, make sure it does not cause -set_version 14985 # flags to be left without arguments 14986 need_version=unknown 14987 14988 case $host_os in 14989 aix3*) 14990 version_type=linux 14991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14992 shlibpath_var=LIBPATH 14993 14994 # AIX 3 has no versioning support, so we append a major version to the name. 14995 soname_spec='${libname}${release}${shared_ext}$major' 14996 ;; 14997 14998 aix[4-9]*) 14999 version_type=linux 15000 need_lib_prefix=no 15001 need_version=no 15002 hardcode_into_libs=yes 15003 if test "$host_cpu" = ia64; then 15004 # AIX 5 supports IA64 15005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15006 shlibpath_var=LD_LIBRARY_PATH 15007 else 15008 # With GCC up to 2.95.x, collect2 would create an import file 15009 # for dependence libraries. The import file would start with 15010 # the line `#! .'. This would cause the generated library to 15011 # depend on `.', always an invalid library. This was fixed in 15012 # development snapshots of GCC prior to 3.0. 15013 case $host_os in 15014 aix4 | aix4.[01] | aix4.[01].*) 15015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15016 echo ' yes ' 15017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15018 : 15019 else 15020 can_build_shared=no 15021 fi 15022 ;; 15023 esac 15024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15025 # soname into executable. Probably we can add versioning support to 15026 # collect2, so additional links can be useful in future. 15027 if test "$aix_use_runtimelinking" = yes; then 15028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15029 # instead of lib<name>.a to let people know that these are not 15030 # typical AIX shared libraries. 15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15032 else 15033 # We preserve .a as extension for shared libraries through AIX4.2 15034 # and later when we are not doing run time linking. 15035 library_names_spec='${libname}${release}.a $libname.a' 15036 soname_spec='${libname}${release}${shared_ext}$major' 15037 fi 15038 shlibpath_var=LIBPATH 15039 fi 15040 ;; 15041 15042 amigaos*) 15043 library_names_spec='$libname.ixlibrary $libname.a' 15044 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15045 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 15046 ;; 15047 15048 beos*) 15049 library_names_spec='${libname}${shared_ext}' 15050 dynamic_linker="$host_os ld.so" 15051 shlibpath_var=LIBRARY_PATH 15052 ;; 15053 15054 bsdi[45]*) 15055 version_type=linux 15056 need_version=no 15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15058 soname_spec='${libname}${release}${shared_ext}$major' 15059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15060 shlibpath_var=LD_LIBRARY_PATH 15061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15063 # the default ld.so.conf also contains /usr/contrib/lib and 15064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15065 # libtool to hard-code these into programs 15066 ;; 15067 15068 cygwin* | mingw* | pw32*) 15069 version_type=windows 15070 shrext_cmds=".dll" 15071 need_version=no 15072 need_lib_prefix=no 15073 15074 case $GCC,$host_os in 15075 yes,cygwin* | yes,mingw* | yes,pw32*) 15076 library_names_spec='$libname.dll.a' 15077 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15078 postinstall_cmds='base_file=`basename \${file}`~ 15079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15080 dldir=$destdir/`dirname \$dlpath`~ 15081 test -d \$dldir || mkdir -p \$dldir~ 15082 $install_prog $dir/$dlname \$dldir/$dlname~ 15083 chmod a+x \$dldir/$dlname' 15084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15085 dlpath=$dir/\$dldll~ 15086 $rm \$dlpath' 15087 shlibpath_overrides_runpath=yes 15088 15089 case $host_os in 15090 cygwin*) 15091 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15094 ;; 15095 mingw*) 15096 # MinGW DLLs use traditional 'lib' prefix 15097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15100 # It is most probably a Windows format PATH printed by 15101 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15102 # path with ; separators, and with drive letters. We can handle the 15103 # drive letters (cygwin fileutils understands them), so leave them, 15104 # especially as we might pass files found there to a mingw objdump, 15105 # which wouldn't understand a cygwinified path. Ahh. 15106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15107 else 15108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15109 fi 15110 ;; 15111 pw32*) 15112 # pw32 DLLs use 'pw' prefix rather than 'lib' 15113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15114 ;; 15115 esac 15116 ;; 15117 15118 *) 15119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15120 ;; 15121 esac 15122 dynamic_linker='Win32 ld.exe' 15123 # FIXME: first we should search . and the directory the executable is in 15124 shlibpath_var=PATH 15125 ;; 15126 15127 darwin* | rhapsody*) 15128 dynamic_linker="$host_os dyld" 15129 version_type=darwin 15130 need_lib_prefix=no 15131 need_version=no 15132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15133 soname_spec='${libname}${release}${major}$shared_ext' 15134 shlibpath_overrides_runpath=yes 15135 shlibpath_var=DYLD_LIBRARY_PATH 15136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15137 15138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15139 ;; 15140 15141 dgux*) 15142 version_type=linux 15143 need_lib_prefix=no 15144 need_version=no 15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15146 soname_spec='${libname}${release}${shared_ext}$major' 15147 shlibpath_var=LD_LIBRARY_PATH 15148 ;; 15149 15150 freebsd1*) 15151 dynamic_linker=no 15152 ;; 15153 15154 freebsd* | dragonfly*) 15155 # DragonFly does not have aout. When/if they implement a new 15156 # versioning mechanism, adjust this. 15157 if test -x /usr/bin/objformat; then 15158 objformat=`/usr/bin/objformat` 15159 else 15160 case $host_os in 15161 freebsd[123]*) objformat=aout ;; 15162 *) objformat=elf ;; 15163 esac 15164 fi 15165 version_type=freebsd-$objformat 15166 case $version_type in 15167 freebsd-elf*) 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15169 need_version=no 15170 need_lib_prefix=no 15171 ;; 15172 freebsd-*) 15173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15174 need_version=yes 15175 ;; 15176 esac 15177 shlibpath_var=LD_LIBRARY_PATH 15178 case $host_os in 15179 freebsd2*) 15180 shlibpath_overrides_runpath=yes 15181 ;; 15182 freebsd3.[01]* | freebsdelf3.[01]*) 15183 shlibpath_overrides_runpath=yes 15184 hardcode_into_libs=yes 15185 ;; 15186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15188 shlibpath_overrides_runpath=no 15189 hardcode_into_libs=yes 15190 ;; 15191 *) # from 4.6 on, and DragonFly 15192 shlibpath_overrides_runpath=yes 15193 hardcode_into_libs=yes 15194 ;; 15195 esac 15196 ;; 15197 15198 gnu*) 15199 version_type=linux 15200 need_lib_prefix=no 15201 need_version=no 15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15203 soname_spec='${libname}${release}${shared_ext}$major' 15204 shlibpath_var=LD_LIBRARY_PATH 15205 hardcode_into_libs=yes 15206 ;; 15207 15208 hpux9* | hpux10* | hpux11*) 15209 # Give a soname corresponding to the major version so that dld.sl refuses to 15210 # link against other versions. 15211 version_type=sunos 15212 need_lib_prefix=no 15213 need_version=no 15214 case $host_cpu in 15215 ia64*) 15216 shrext_cmds='.so' 15217 hardcode_into_libs=yes 15218 dynamic_linker="$host_os dld.so" 15219 shlibpath_var=LD_LIBRARY_PATH 15220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15222 soname_spec='${libname}${release}${shared_ext}$major' 15223 if test "X$HPUX_IA64_MODE" = X32; then 15224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15225 else 15226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15227 fi 15228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15229 ;; 15230 hppa*64*) 15231 shrext_cmds='.sl' 15232 hardcode_into_libs=yes 15233 dynamic_linker="$host_os dld.sl" 15234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15237 soname_spec='${libname}${release}${shared_ext}$major' 15238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15240 ;; 15241 *) 15242 shrext_cmds='.sl' 15243 dynamic_linker="$host_os dld.sl" 15244 shlibpath_var=SHLIB_PATH 15245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15247 soname_spec='${libname}${release}${shared_ext}$major' 15248 ;; 15249 esac 15250 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15251 postinstall_cmds='chmod 555 $lib' 15252 ;; 15253 15254 interix[3-9]*) 15255 version_type=linux 15256 need_lib_prefix=no 15257 need_version=no 15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15259 soname_spec='${libname}${release}${shared_ext}$major' 15260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15261 shlibpath_var=LD_LIBRARY_PATH 15262 shlibpath_overrides_runpath=no 15263 hardcode_into_libs=yes 15264 ;; 15265 15266 irix5* | irix6* | nonstopux*) 15267 case $host_os in 15268 nonstopux*) version_type=nonstopux ;; 15269 *) 15270 if test "$lt_cv_prog_gnu_ld" = yes; then 15271 version_type=linux 15272 else 15273 version_type=irix 15274 fi ;; 15275 esac 15276 need_lib_prefix=no 15277 need_version=no 15278 soname_spec='${libname}${release}${shared_ext}$major' 15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15280 case $host_os in 15281 irix5* | nonstopux*) 15282 libsuff= shlibsuff= 15283 ;; 15284 *) 15285 case $LD in # libtool.m4 will add one of these switches to LD 15286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15287 libsuff= shlibsuff= libmagic=32-bit;; 15288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15289 libsuff=32 shlibsuff=N32 libmagic=N32;; 15290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15291 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15292 *) libsuff= shlibsuff= libmagic=never-match;; 15293 esac 15294 ;; 15295 esac 15296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15297 shlibpath_overrides_runpath=no 15298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15300 hardcode_into_libs=yes 15301 ;; 15302 15303 # No shared lib support for Linux oldld, aout, or coff. 15304 linux*oldld* | linux*aout* | linux*coff*) 15305 dynamic_linker=no 15306 ;; 15307 15308 # This must be Linux ELF. 15309 linux* | k*bsd*-gnu) 15310 version_type=linux 15311 need_lib_prefix=no 15312 need_version=no 15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15314 soname_spec='${libname}${release}${shared_ext}$major' 15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15316 shlibpath_var=LD_LIBRARY_PATH 15317 shlibpath_overrides_runpath=no 15318 # This implies no fast_install, which is unacceptable. 15319 # Some rework will be needed to allow for fast_install 15320 # before this can be enabled. 15321 hardcode_into_libs=yes 15322 15323 # Append ld.so.conf contents to the search path 15324 if test -f /etc/ld.so.conf; then 15325 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;/^$/d' | tr '\n' ' '` 15326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15327 fi 15328 15329 # We used to test for /lib/ld.so.1 and disable shared libraries on 15330 # powerpc, because MkLinux only supported shared libraries with the 15331 # GNU dynamic linker. Since this was broken with cross compilers, 15332 # most powerpc-linux boxes support dynamic linking these days and 15333 # people can always --disable-shared, the test was removed, and we 15334 # assume the GNU/Linux dynamic linker is in use. 15335 dynamic_linker='GNU/Linux ld.so' 15336 ;; 15337 15338 netbsd*) 15339 version_type=sunos 15340 need_lib_prefix=no 15341 need_version=no 15342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15345 dynamic_linker='NetBSD (a.out) ld.so' 15346 else 15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15348 soname_spec='${libname}${release}${shared_ext}$major' 15349 dynamic_linker='NetBSD ld.elf_so' 15350 fi 15351 shlibpath_var=LD_LIBRARY_PATH 15352 shlibpath_overrides_runpath=yes 15353 hardcode_into_libs=yes 15354 ;; 15355 15356 newsos6) 15357 version_type=linux 15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15359 shlibpath_var=LD_LIBRARY_PATH 15360 shlibpath_overrides_runpath=yes 15361 ;; 15362 15363 nto-qnx*) 15364 version_type=linux 15365 need_lib_prefix=no 15366 need_version=no 15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15368 soname_spec='${libname}${release}${shared_ext}$major' 15369 shlibpath_var=LD_LIBRARY_PATH 15370 shlibpath_overrides_runpath=yes 15371 ;; 15372 15373 openbsd*) 15374 version_type=sunos 15375 sys_lib_dlsearch_path_spec="/usr/lib" 15376 need_lib_prefix=no 15377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15378 case $host_os in 15379 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15380 *) need_version=no ;; 15381 esac 15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15384 shlibpath_var=LD_LIBRARY_PATH 15385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15386 case $host_os in 15387 openbsd2.[89] | openbsd2.[89].*) 15388 shlibpath_overrides_runpath=no 15389 ;; 15390 *) 15391 shlibpath_overrides_runpath=yes 15392 ;; 15393 esac 15394 else 15395 shlibpath_overrides_runpath=yes 15396 fi 15397 ;; 15398 15399 os2*) 15400 libname_spec='$name' 15401 shrext_cmds=".dll" 15402 need_lib_prefix=no 15403 library_names_spec='$libname${shared_ext} $libname.a' 15404 dynamic_linker='OS/2 ld.exe' 15405 shlibpath_var=LIBPATH 15406 ;; 15407 15408 osf3* | osf4* | osf5*) 15409 version_type=osf 15410 need_lib_prefix=no 15411 need_version=no 15412 soname_spec='${libname}${release}${shared_ext}$major' 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15414 shlibpath_var=LD_LIBRARY_PATH 15415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15417 ;; 15418 15419 rdos*) 15420 dynamic_linker=no 15421 ;; 15422 15423 solaris*) 15424 version_type=linux 15425 need_lib_prefix=no 15426 need_version=no 15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15428 soname_spec='${libname}${release}${shared_ext}$major' 15429 shlibpath_var=LD_LIBRARY_PATH 15430 shlibpath_overrides_runpath=yes 15431 hardcode_into_libs=yes 15432 # ldd complains unless libraries are executable 15433 postinstall_cmds='chmod +x $lib' 15434 ;; 15435 15436 sunos4*) 15437 version_type=sunos 15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15440 shlibpath_var=LD_LIBRARY_PATH 15441 shlibpath_overrides_runpath=yes 15442 if test "$with_gnu_ld" = yes; then 15443 need_lib_prefix=no 15444 fi 15445 need_version=yes 15446 ;; 15447 15448 sysv4 | sysv4.3*) 15449 version_type=linux 15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15451 soname_spec='${libname}${release}${shared_ext}$major' 15452 shlibpath_var=LD_LIBRARY_PATH 15453 case $host_vendor in 15454 sni) 15455 shlibpath_overrides_runpath=no 15456 need_lib_prefix=no 15457 export_dynamic_flag_spec='${wl}-Blargedynsym' 15458 runpath_var=LD_RUN_PATH 15459 ;; 15460 siemens) 15461 need_lib_prefix=no 15462 ;; 15463 motorola) 15464 need_lib_prefix=no 15465 need_version=no 15466 shlibpath_overrides_runpath=no 15467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15468 ;; 15469 esac 15470 ;; 15471 15472 sysv4*MP*) 15473 if test -d /usr/nec ;then 15474 version_type=linux 15475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15476 soname_spec='$libname${shared_ext}.$major' 15477 shlibpath_var=LD_LIBRARY_PATH 15478 fi 15479 ;; 15480 15481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15482 version_type=freebsd-elf 15483 need_lib_prefix=no 15484 need_version=no 15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15486 soname_spec='${libname}${release}${shared_ext}$major' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 hardcode_into_libs=yes 15489 if test "$with_gnu_ld" = yes; then 15490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15491 shlibpath_overrides_runpath=no 15492 else 15493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15494 shlibpath_overrides_runpath=yes 15495 case $host_os in 15496 sco3.2v5*) 15497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15498 ;; 15499 esac 15500 fi 15501 sys_lib_dlsearch_path_spec='/usr/lib' 15502 ;; 15503 15504 uts4*) 15505 version_type=linux 15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15507 soname_spec='${libname}${release}${shared_ext}$major' 15508 shlibpath_var=LD_LIBRARY_PATH 15509 ;; 15510 15511 *) 15512 dynamic_linker=no 15513 ;; 15514 esac 15515 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15516 echo "${ECHO_T}$dynamic_linker" >&6; } 15517 test "$dynamic_linker" = no && can_build_shared=no 15518 15519 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15520 echo $ECHO_N "(cached) $ECHO_C" >&6 15521 else 15522 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 15523 fi 15524 15525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15527 echo $ECHO_N "(cached) $ECHO_C" >&6 15528 else 15529 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 15530 fi 15531 15532 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15533 15534 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15535 if test "$GCC" = yes; then 15536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15537 fi 15538 15539 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15540 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15541 hardcode_action_F77= 15542 if test -n "$hardcode_libdir_flag_spec_F77" || \ 15543 test -n "$runpath_var_F77" || \ 15544 test "X$hardcode_automatic_F77" = "Xyes" ; then 15545 15546 # We can hardcode non-existant directories. 15547 if test "$hardcode_direct_F77" != no && 15548 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15549 # have to relink, otherwise we might link with an installed library 15550 # when we should be linking with a yet-to-be-installed one 15551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15552 test "$hardcode_minus_L_F77" != no; then 15553 # Linking always hardcodes the temporary library directory. 15554 hardcode_action_F77=relink 15555 else 15556 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15557 hardcode_action_F77=immediate 15558 fi 15559 else 15560 # We cannot hardcode anything, or else we can only hardcode existing 15561 # directories. 15562 hardcode_action_F77=unsupported 15563 fi 15564 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15565 echo "${ECHO_T}$hardcode_action_F77" >&6; } 15566 15567 if test "$hardcode_action_F77" = relink; then 15568 # Fast installation is not supported 15569 enable_fast_install=no 15570 elif test "$shlibpath_overrides_runpath" = yes || 15571 test "$enable_shared" = no; then 15572 # Fast installation is not necessary 15573 enable_fast_install=needless 15574 fi 15575 15576 15577 # The else clause should only fire when bootstrapping the 15578 # libtool distribution, otherwise you forgot to ship ltmain.sh 15579 # with your package, and you will get complaints that there are 15580 # no rules to generate ltmain.sh. 15581 if test -f "$ltmain"; then 15582 # See if we are running on zsh, and set the options which allow our commands through 15583 # without removal of \ escapes. 15584 if test -n "${ZSH_VERSION+set}" ; then 15585 setopt NO_GLOB_SUBST 15586 fi 15587 # Now quote all the things that may contain metacharacters while being 15588 # careful not to overquote the AC_SUBSTed values. We take copies of the 15589 # variables and quote the copies for generation of the libtool script. 15590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15591 SED SHELL STRIP \ 15592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15594 deplibs_check_method reload_flag reload_cmds need_locks \ 15595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15596 lt_cv_sys_global_symbol_to_c_name_address \ 15597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15598 old_postinstall_cmds old_postuninstall_cmds \ 15599 compiler_F77 \ 15600 CC_F77 \ 15601 LD_F77 \ 15602 lt_prog_compiler_wl_F77 \ 15603 lt_prog_compiler_pic_F77 \ 15604 lt_prog_compiler_static_F77 \ 15605 lt_prog_compiler_no_builtin_flag_F77 \ 15606 export_dynamic_flag_spec_F77 \ 15607 thread_safe_flag_spec_F77 \ 15608 whole_archive_flag_spec_F77 \ 15609 enable_shared_with_static_runtimes_F77 \ 15610 old_archive_cmds_F77 \ 15611 old_archive_from_new_cmds_F77 \ 15612 predep_objects_F77 \ 15613 postdep_objects_F77 \ 15614 predeps_F77 \ 15615 postdeps_F77 \ 15616 compiler_lib_search_path_F77 \ 15617 compiler_lib_search_dirs_F77 \ 15618 archive_cmds_F77 \ 15619 archive_expsym_cmds_F77 \ 15620 postinstall_cmds_F77 \ 15621 postuninstall_cmds_F77 \ 15622 old_archive_from_expsyms_cmds_F77 \ 15623 allow_undefined_flag_F77 \ 15624 no_undefined_flag_F77 \ 15625 export_symbols_cmds_F77 \ 15626 hardcode_libdir_flag_spec_F77 \ 15627 hardcode_libdir_flag_spec_ld_F77 \ 15628 hardcode_libdir_separator_F77 \ 15629 hardcode_automatic_F77 \ 15630 module_cmds_F77 \ 15631 module_expsym_cmds_F77 \ 15632 lt_cv_prog_compiler_c_o_F77 \ 15633 fix_srcfile_path_F77 \ 15634 exclude_expsyms_F77 \ 15635 include_expsyms_F77; do 15636 15637 case $var in 15638 old_archive_cmds_F77 | \ 15639 old_archive_from_new_cmds_F77 | \ 15640 archive_cmds_F77 | \ 15641 archive_expsym_cmds_F77 | \ 15642 module_cmds_F77 | \ 15643 module_expsym_cmds_F77 | \ 15644 old_archive_from_expsyms_cmds_F77 | \ 15645 export_symbols_cmds_F77 | \ 15646 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15647 postinstall_cmds | postuninstall_cmds | \ 15648 old_postinstall_cmds | old_postuninstall_cmds | \ 15649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15650 # Double-quote double-evaled strings. 15651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15652 ;; 15653 *) 15654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15655 ;; 15656 esac 15657 done 15658 15659 case $lt_echo in 15660 *'\$0 --fallback-echo"') 15661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15662 ;; 15663 esac 15664 15665 cfgfile="$ofile" 15666 15667 cat <<__EOF__ >> "$cfgfile" 15668 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 15669 15670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15671 15672 # Shell to use when invoking shell scripts. 15673 SHELL=$lt_SHELL 15674 15675 # Whether or not to build shared libraries. 15676 build_libtool_libs=$enable_shared 15677 15678 # Whether or not to build static libraries. 15679 build_old_libs=$enable_static 15680 15681 # Whether or not to add -lc for building shared libraries. 15682 build_libtool_need_lc=$archive_cmds_need_lc_F77 15683 15684 # Whether or not to disallow shared libs when runtime libs are static 15685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15686 15687 # Whether or not to optimize for fast installation. 15688 fast_install=$enable_fast_install 15689 15690 # The host system. 15691 host_alias=$host_alias 15692 host=$host 15693 host_os=$host_os 15694 15695 # The build system. 15696 build_alias=$build_alias 15697 build=$build 15698 build_os=$build_os 15699 15700 # An echo program that does not interpret backslashes. 15701 echo=$lt_echo 15702 15703 # The archiver. 15704 AR=$lt_AR 15705 AR_FLAGS=$lt_AR_FLAGS 15706 15707 # A C compiler. 15708 LTCC=$lt_LTCC 15709 15710 # LTCC compiler flags. 15711 LTCFLAGS=$lt_LTCFLAGS 15712 15713 # A language-specific compiler. 15714 CC=$lt_compiler_F77 15715 15716 # Is the compiler the GNU C compiler? 15717 with_gcc=$GCC_F77 15718 15719 # An ERE matcher. 15720 EGREP=$lt_EGREP 15721 15722 # The linker used to build libraries. 15723 LD=$lt_LD_F77 15724 15725 # Whether we need hard or soft links. 15726 LN_S=$lt_LN_S 15727 15728 # A BSD-compatible nm program. 15729 NM=$lt_NM 15730 15731 # A symbol stripping program 15732 STRIP=$lt_STRIP 15733 15734 # Used to examine libraries when file_magic_cmd begins "file" 15735 MAGIC_CMD=$MAGIC_CMD 15736 15737 # Used on cygwin: DLL creation program. 15738 DLLTOOL="$DLLTOOL" 15739 15740 # Used on cygwin: object dumper. 15741 OBJDUMP="$OBJDUMP" 15742 15743 # Used on cygwin: assembler. 15744 AS="$AS" 15745 15746 # The name of the directory that contains temporary libtool files. 15747 objdir=$objdir 15748 15749 # How to create reloadable object files. 15750 reload_flag=$lt_reload_flag 15751 reload_cmds=$lt_reload_cmds 15752 15753 # How to pass a linker flag through the compiler. 15754 wl=$lt_lt_prog_compiler_wl_F77 15755 15756 # Object file suffix (normally "o"). 15757 objext="$ac_objext" 15758 15759 # Old archive suffix (normally "a"). 15760 libext="$libext" 15761 15762 # Shared library suffix (normally ".so"). 15763 shrext_cmds='$shrext_cmds' 15764 15765 # Executable file suffix (normally ""). 15766 exeext="$exeext" 15767 15768 # Additional compiler flags for building library objects. 15769 pic_flag=$lt_lt_prog_compiler_pic_F77 15770 pic_mode=$pic_mode 15771 15772 # What is the maximum length of a command? 15773 max_cmd_len=$lt_cv_sys_max_cmd_len 15774 15775 # Does compiler simultaneously support -c and -o options? 15776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15777 15778 # Must we lock files when doing compilation? 15779 need_locks=$lt_need_locks 15780 15781 # Do we need the lib prefix for modules? 15782 need_lib_prefix=$need_lib_prefix 15783 15784 # Do we need a version for libraries? 15785 need_version=$need_version 15786 15787 # Whether dlopen is supported. 15788 dlopen_support=$enable_dlopen 15789 15790 # Whether dlopen of programs is supported. 15791 dlopen_self=$enable_dlopen_self 15792 15793 # Whether dlopen of statically linked programs is supported. 15794 dlopen_self_static=$enable_dlopen_self_static 15795 15796 # Compiler flag to prevent dynamic linking. 15797 link_static_flag=$lt_lt_prog_compiler_static_F77 15798 15799 # Compiler flag to turn off builtin functions. 15800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15801 15802 # Compiler flag to allow reflexive dlopens. 15803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15804 15805 # Compiler flag to generate shared objects directly from archives. 15806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15807 15808 # Compiler flag to generate thread-safe objects. 15809 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15810 15811 # Library versioning type. 15812 version_type=$version_type 15813 15814 # Format of library name prefix. 15815 libname_spec=$lt_libname_spec 15816 15817 # List of archive names. First name is the real one, the rest are links. 15818 # The last name is the one that the linker finds with -lNAME. 15819 library_names_spec=$lt_library_names_spec 15820 15821 # The coded name of the library, if different from the real name. 15822 soname_spec=$lt_soname_spec 15823 15824 # Commands used to build and install an old-style archive. 15825 RANLIB=$lt_RANLIB 15826 old_archive_cmds=$lt_old_archive_cmds_F77 15827 old_postinstall_cmds=$lt_old_postinstall_cmds 15828 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15829 15830 # Create an old-style archive from a shared archive. 15831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15832 15833 # Create a temporary old-style archive to link instead of a shared archive. 15834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15835 15836 # Commands used to build and install a shared archive. 15837 archive_cmds=$lt_archive_cmds_F77 15838 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15839 postinstall_cmds=$lt_postinstall_cmds 15840 postuninstall_cmds=$lt_postuninstall_cmds 15841 15842 # Commands used to build a loadable module (assumed same as above if empty) 15843 module_cmds=$lt_module_cmds_F77 15844 module_expsym_cmds=$lt_module_expsym_cmds_F77 15845 15846 # Commands to strip libraries. 15847 old_striplib=$lt_old_striplib 15848 striplib=$lt_striplib 15849 15850 # Dependencies to place before the objects being linked to create a 15851 # shared library. 15852 predep_objects=$lt_predep_objects_F77 15853 15854 # Dependencies to place after the objects being linked to create a 15855 # shared library. 15856 postdep_objects=$lt_postdep_objects_F77 15857 15858 # Dependencies to place before the objects being linked to create a 15859 # shared library. 15860 predeps=$lt_predeps_F77 15861 15862 # Dependencies to place after the objects being linked to create a 15863 # shared library. 15864 postdeps=$lt_postdeps_F77 15865 15866 # The directories searched by this compiler when creating a shared 15867 # library 15868 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 15869 15870 # The library search path used internally by the compiler when linking 15871 # a shared library. 15872 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15873 15874 # Method to check whether dependent libraries are shared objects. 15875 deplibs_check_method=$lt_deplibs_check_method 15876 15877 # Command to use when deplibs_check_method == file_magic. 15878 file_magic_cmd=$lt_file_magic_cmd 15879 15880 # Flag that allows shared libraries with undefined symbols to be built. 15881 allow_undefined_flag=$lt_allow_undefined_flag_F77 15882 15883 # Flag that forces no undefined symbols. 15884 no_undefined_flag=$lt_no_undefined_flag_F77 15885 15886 # Commands used to finish a libtool library installation in a directory. 15887 finish_cmds=$lt_finish_cmds 15888 15889 # Same as above, but a single script fragment to be evaled but not shown. 15890 finish_eval=$lt_finish_eval 15891 15892 # Take the output of nm and produce a listing of raw symbols and C names. 15893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15894 15895 # Transform the output of nm in a proper C declaration 15896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15897 15898 # Transform the output of nm in a C name address pair 15899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15900 15901 # This is the shared library runtime path variable. 15902 runpath_var=$runpath_var 15903 15904 # This is the shared library path variable. 15905 shlibpath_var=$shlibpath_var 15906 15907 # Is shlibpath searched before the hard-coded library search path? 15908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15909 15910 # How to hardcode a shared library path into an executable. 15911 hardcode_action=$hardcode_action_F77 15912 15913 # Whether we should hardcode library paths into libraries. 15914 hardcode_into_libs=$hardcode_into_libs 15915 15916 # Flag to hardcode \$libdir into a binary during linking. 15917 # This must work even if \$libdir does not exist. 15918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15919 15920 # If ld is used when linking, flag to hardcode \$libdir into 15921 # a binary during linking. This must work even if \$libdir does 15922 # not exist. 15923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15924 15925 # Whether we need a single -rpath flag with a separated argument. 15926 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15927 15928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15929 # resulting binary. 15930 hardcode_direct=$hardcode_direct_F77 15931 15932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15933 # resulting binary. 15934 hardcode_minus_L=$hardcode_minus_L_F77 15935 15936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15937 # the resulting binary. 15938 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15939 15940 # Set to yes if building a shared library automatically hardcodes DIR into the library 15941 # and all subsequent libraries and executables linked against it. 15942 hardcode_automatic=$hardcode_automatic_F77 15943 15944 # Variables whose values should be saved in libtool wrapper scripts and 15945 # restored at relink time. 15946 variables_saved_for_relink="$variables_saved_for_relink" 15947 15948 # Whether libtool must link a program against all its dependency libraries. 15949 link_all_deplibs=$link_all_deplibs_F77 15950 15951 # Compile-time system search path for libraries 15952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15953 15954 # Run-time system search path for libraries 15955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15956 15957 # Fix the shell variable \$srcfile for the compiler. 15958 fix_srcfile_path=$lt_fix_srcfile_path 15959 15960 # Set to yes if exported symbols are required. 15961 always_export_symbols=$always_export_symbols_F77 15962 15963 # The commands to list exported symbols. 15964 export_symbols_cmds=$lt_export_symbols_cmds_F77 15965 15966 # The commands to extract the exported symbol list from a shared archive. 15967 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15968 15969 # Symbols that should not be listed in the preloaded symbols. 15970 exclude_expsyms=$lt_exclude_expsyms_F77 15971 15972 # Symbols that must always be exported. 15973 include_expsyms=$lt_include_expsyms_F77 15974 15975 # ### END LIBTOOL TAG CONFIG: $tagname 15976 15977 __EOF__ 15978 15979 15980 else 15981 # If there is no Makefile yet, we rely on a make rule to execute 15982 # `config.status --recheck' to rerun these tests and create the 15983 # libtool script then. 15984 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15985 if test -f "$ltmain_in"; then 15986 test -f Makefile && make "$ltmain" 15987 fi 15988 fi 15989 15990 15991 ac_ext=c 15992 ac_cpp='$CPP $CPPFLAGS' 15993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15995 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15996 15997 CC="$lt_save_CC" 15998 15999 else 16000 tagname="" 16001 fi 16002 ;; 16003 16004 GCJ) 16005 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16006 16007 16008 # Source file extension for Java test sources. 16009 ac_ext=java 16010 16011 # Object file extension for compiled Java test sources. 16012 objext=o 16013 objext_GCJ=$objext 16014 16015 # Code to be used in simple compile tests 16016 lt_simple_compile_test_code="class foo {}" 16017 16018 # Code to be used in simple link tests 16019 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16020 16021 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16022 16023 # If no C compiler was specified, use CC. 16024 LTCC=${LTCC-"$CC"} 16025 16026 # If no C compiler flags were specified, use CFLAGS. 16027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16028 16029 # Allow CC to be a program name with arguments. 16030 compiler=$CC 16031 16032 16033 # save warnings/boilerplate of simple test code 16034 ac_outfile=conftest.$ac_objext 16035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16037 _lt_compiler_boilerplate=`cat conftest.err` 16038 $rm conftest* 16039 16040 ac_outfile=conftest.$ac_objext 16041 echo "$lt_simple_link_test_code" >conftest.$ac_ext 16042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16043 _lt_linker_boilerplate=`cat conftest.err` 16044 $rm -r conftest* 16045 16046 16047 # Allow CC to be a program name with arguments. 16048 lt_save_CC="$CC" 16049 CC=${GCJ-"gcj"} 16050 compiler=$CC 16051 compiler_GCJ=$CC 16052 for cc_temp in $compiler""; do 16053 case $cc_temp in 16054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16056 \-*) ;; 16057 *) break;; 16058 esac 16059 done 16060 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16061 16062 16063 # GCJ did not exist at the time GCC didn't implicitly link libc in. 16064 archive_cmds_need_lc_GCJ=no 16065 16066 old_archive_cmds_GCJ=$old_archive_cmds 16067 16068 ## CAVEAT EMPTOR: 16069 ## There is no encapsulation within the following macros, do not change 16070 ## the running order or otherwise move them around unless you know exactly 16071 ## what you are doing... 16072 16073 lt_prog_compiler_no_builtin_flag_GCJ= 16074 16075 if test "$GCC" = yes; then 16076 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16077 16078 16079 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16080 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16081 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16082 echo $ECHO_N "(cached) $ECHO_C" >&6 16083 else 16084 lt_cv_prog_compiler_rtti_exceptions=no 16085 ac_outfile=conftest.$ac_objext 16086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16087 lt_compiler_flag="-fno-rtti -fno-exceptions" 16088 # Insert the option either (1) after the last *FLAGS variable, or 16089 # (2) before a word containing "conftest.", or (3) at the end. 16090 # Note that $ac_compile itself does not contain backslashes and begins 16091 # with a dollar sign (not a hyphen), so the echo should work correctly. 16092 # The option is referenced via a variable to avoid confusing sed. 16093 lt_compile=`echo "$ac_compile" | $SED \ 16094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16096 -e 's:$: $lt_compiler_flag:'` 16097 (eval echo "\"\$as_me:16097: $lt_compile\"" >&5) 16098 (eval "$lt_compile" 2>conftest.err) 16099 ac_status=$? 16100 cat conftest.err >&5 16101 echo "$as_me:16101: \$? = $ac_status" >&5 16102 if (exit $ac_status) && test -s "$ac_outfile"; then 16103 # The compiler can only warn and ignore the option if not recognized 16104 # So say no if there are warnings other than the usual output. 16105 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16107 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16108 lt_cv_prog_compiler_rtti_exceptions=yes 16109 fi 16110 fi 16111 $rm conftest* 16112 16113 fi 16114 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16115 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16116 16117 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16118 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16119 else 16120 : 16121 fi 16122 16123 fi 16124 16125 lt_prog_compiler_wl_GCJ= 16126 lt_prog_compiler_pic_GCJ= 16127 lt_prog_compiler_static_GCJ= 16128 16129 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16130 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16131 16132 if test "$GCC" = yes; then 16133 lt_prog_compiler_wl_GCJ='-Wl,' 16134 lt_prog_compiler_static_GCJ='-static' 16135 16136 case $host_os in 16137 aix*) 16138 # All AIX code is PIC. 16139 if test "$host_cpu" = ia64; then 16140 # AIX 5 now supports IA64 processor 16141 lt_prog_compiler_static_GCJ='-Bstatic' 16142 fi 16143 ;; 16144 16145 amigaos*) 16146 # FIXME: we need at least 68020 code to build shared libraries, but 16147 # adding the `-m68020' flag to GCC prevents building anything better, 16148 # like `-m68040'. 16149 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16150 ;; 16151 16152 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16153 # PIC is the default for these OSes. 16154 ;; 16155 16156 mingw* | cygwin* | pw32* | os2*) 16157 # This hack is so that the source file can tell whether it is being 16158 # built for inclusion in a dll (and should export symbols for example). 16159 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16160 # (--disable-auto-import) libraries 16161 16162 ;; 16163 16164 darwin* | rhapsody*) 16165 # PIC is the default on this platform 16166 # Common symbols not allowed in MH_DYLIB files 16167 lt_prog_compiler_pic_GCJ='-fno-common' 16168 ;; 16169 16170 interix[3-9]*) 16171 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16172 # Instead, we relocate shared libraries at runtime. 16173 ;; 16174 16175 msdosdjgpp*) 16176 # Just because we use GCC doesn't mean we suddenly get shared libraries 16177 # on systems that don't support them. 16178 lt_prog_compiler_can_build_shared_GCJ=no 16179 enable_shared=no 16180 ;; 16181 16182 sysv4*MP*) 16183 if test -d /usr/nec; then 16184 lt_prog_compiler_pic_GCJ=-Kconform_pic 16185 fi 16186 ;; 16187 16188 hpux*) 16189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16190 # not for PA HP-UX. 16191 case $host_cpu in 16192 hppa*64*|ia64*) 16193 # +Z the default 16194 ;; 16195 *) 16196 lt_prog_compiler_pic_GCJ='-fPIC' 16197 ;; 16198 esac 16199 ;; 16200 16201 *) 16202 lt_prog_compiler_pic_GCJ='-fPIC' 16203 ;; 16204 esac 16205 else 16206 # PORTME Check for flag to pass linker flags through the system compiler. 16207 case $host_os in 16208 aix*) 16209 lt_prog_compiler_wl_GCJ='-Wl,' 16210 if test "$host_cpu" = ia64; then 16211 # AIX 5 now supports IA64 processor 16212 lt_prog_compiler_static_GCJ='-Bstatic' 16213 else 16214 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16215 fi 16216 ;; 16217 darwin*) 16218 # PIC is the default on this platform 16219 # Common symbols not allowed in MH_DYLIB files 16220 case $cc_basename in 16221 xlc*) 16222 lt_prog_compiler_pic_GCJ='-qnocommon' 16223 lt_prog_compiler_wl_GCJ='-Wl,' 16224 ;; 16225 esac 16226 ;; 16227 16228 mingw* | cygwin* | pw32* | os2*) 16229 # This hack is so that the source file can tell whether it is being 16230 # built for inclusion in a dll (and should export symbols for example). 16231 16232 ;; 16233 16234 hpux9* | hpux10* | hpux11*) 16235 lt_prog_compiler_wl_GCJ='-Wl,' 16236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16237 # not for PA HP-UX. 16238 case $host_cpu in 16239 hppa*64*|ia64*) 16240 # +Z the default 16241 ;; 16242 *) 16243 lt_prog_compiler_pic_GCJ='+Z' 16244 ;; 16245 esac 16246 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16247 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16248 ;; 16249 16250 irix5* | irix6* | nonstopux*) 16251 lt_prog_compiler_wl_GCJ='-Wl,' 16252 # PIC (with -KPIC) is the default. 16253 lt_prog_compiler_static_GCJ='-non_shared' 16254 ;; 16255 16256 newsos6) 16257 lt_prog_compiler_pic_GCJ='-KPIC' 16258 lt_prog_compiler_static_GCJ='-Bstatic' 16259 ;; 16260 16261 linux* | k*bsd*-gnu) 16262 case $cc_basename in 16263 icc* | ecc*) 16264 lt_prog_compiler_wl_GCJ='-Wl,' 16265 lt_prog_compiler_pic_GCJ='-KPIC' 16266 lt_prog_compiler_static_GCJ='-static' 16267 ;; 16268 pgcc* | pgf77* | pgf90* | pgf95*) 16269 # Portland Group compilers (*not* the Pentium gcc compiler, 16270 # which looks to be a dead project) 16271 lt_prog_compiler_wl_GCJ='-Wl,' 16272 lt_prog_compiler_pic_GCJ='-fpic' 16273 lt_prog_compiler_static_GCJ='-Bstatic' 16274 ;; 16275 ccc*) 16276 lt_prog_compiler_wl_GCJ='-Wl,' 16277 # All Alpha code is PIC. 16278 lt_prog_compiler_static_GCJ='-non_shared' 16279 ;; 16280 *) 16281 case `$CC -V 2>&1 | sed 5q` in 16282 *Sun\ C*) 16283 # Sun C 5.9 16284 lt_prog_compiler_pic_GCJ='-KPIC' 16285 lt_prog_compiler_static_GCJ='-Bstatic' 16286 lt_prog_compiler_wl_GCJ='-Wl,' 16287 ;; 16288 *Sun\ F*) 16289 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16290 lt_prog_compiler_pic_GCJ='-KPIC' 16291 lt_prog_compiler_static_GCJ='-Bstatic' 16292 lt_prog_compiler_wl_GCJ='' 16293 ;; 16294 esac 16295 ;; 16296 esac 16297 ;; 16298 16299 osf3* | osf4* | osf5*) 16300 lt_prog_compiler_wl_GCJ='-Wl,' 16301 # All OSF/1 code is PIC. 16302 lt_prog_compiler_static_GCJ='-non_shared' 16303 ;; 16304 16305 rdos*) 16306 lt_prog_compiler_static_GCJ='-non_shared' 16307 ;; 16308 16309 solaris*) 16310 lt_prog_compiler_pic_GCJ='-KPIC' 16311 lt_prog_compiler_static_GCJ='-Bstatic' 16312 case $cc_basename in 16313 f77* | f90* | f95*) 16314 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16315 *) 16316 lt_prog_compiler_wl_GCJ='-Wl,';; 16317 esac 16318 ;; 16319 16320 sunos4*) 16321 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16322 lt_prog_compiler_pic_GCJ='-PIC' 16323 lt_prog_compiler_static_GCJ='-Bstatic' 16324 ;; 16325 16326 sysv4 | sysv4.2uw2* | sysv4.3*) 16327 lt_prog_compiler_wl_GCJ='-Wl,' 16328 lt_prog_compiler_pic_GCJ='-KPIC' 16329 lt_prog_compiler_static_GCJ='-Bstatic' 16330 ;; 16331 16332 sysv4*MP*) 16333 if test -d /usr/nec ;then 16334 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16335 lt_prog_compiler_static_GCJ='-Bstatic' 16336 fi 16337 ;; 16338 16339 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16340 lt_prog_compiler_wl_GCJ='-Wl,' 16341 lt_prog_compiler_pic_GCJ='-KPIC' 16342 lt_prog_compiler_static_GCJ='-Bstatic' 16343 ;; 16344 16345 unicos*) 16346 lt_prog_compiler_wl_GCJ='-Wl,' 16347 lt_prog_compiler_can_build_shared_GCJ=no 16348 ;; 16349 16350 uts4*) 16351 lt_prog_compiler_pic_GCJ='-pic' 16352 lt_prog_compiler_static_GCJ='-Bstatic' 16353 ;; 16354 16355 *) 16356 lt_prog_compiler_can_build_shared_GCJ=no 16357 ;; 16358 esac 16359 fi 16360 16361 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16362 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16363 16364 # 16365 # Check to make sure the PIC flag actually works. 16366 # 16367 if test -n "$lt_prog_compiler_pic_GCJ"; then 16368 16369 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16370 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16371 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 16372 echo $ECHO_N "(cached) $ECHO_C" >&6 16373 else 16374 lt_cv_prog_compiler_pic_works_GCJ=no 16375 ac_outfile=conftest.$ac_objext 16376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16377 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16378 # Insert the option either (1) after the last *FLAGS variable, or 16379 # (2) before a word containing "conftest.", or (3) at the end. 16380 # Note that $ac_compile itself does not contain backslashes and begins 16381 # with a dollar sign (not a hyphen), so the echo should work correctly. 16382 # The option is referenced via a variable to avoid confusing sed. 16383 lt_compile=`echo "$ac_compile" | $SED \ 16384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16386 -e 's:$: $lt_compiler_flag:'` 16387 (eval echo "\"\$as_me:16387: $lt_compile\"" >&5) 16388 (eval "$lt_compile" 2>conftest.err) 16389 ac_status=$? 16390 cat conftest.err >&5 16391 echo "$as_me:16391: \$? = $ac_status" >&5 16392 if (exit $ac_status) && test -s "$ac_outfile"; then 16393 # The compiler can only warn and ignore the option if not recognized 16394 # So say no if there are warnings other than the usual output. 16395 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16398 lt_cv_prog_compiler_pic_works_GCJ=yes 16399 fi 16400 fi 16401 $rm conftest* 16402 16403 fi 16404 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 16405 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 16406 16407 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 16408 case $lt_prog_compiler_pic_GCJ in 16409 "" | " "*) ;; 16410 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16411 esac 16412 else 16413 lt_prog_compiler_pic_GCJ= 16414 lt_prog_compiler_can_build_shared_GCJ=no 16415 fi 16416 16417 fi 16418 case $host_os in 16419 # For platforms which do not support PIC, -DPIC is meaningless: 16420 *djgpp*) 16421 lt_prog_compiler_pic_GCJ= 16422 ;; 16423 *) 16424 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16425 ;; 16426 esac 16427 16428 # 16429 # Check to make sure the static flag actually works. 16430 # 16431 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16432 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16433 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16434 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 16435 echo $ECHO_N "(cached) $ECHO_C" >&6 16436 else 16437 lt_cv_prog_compiler_static_works_GCJ=no 16438 save_LDFLAGS="$LDFLAGS" 16439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16440 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16442 # The linker can only warn and ignore the option if not recognized 16443 # So say no if there are warnings 16444 if test -s conftest.err; then 16445 # Append any errors to the config.log. 16446 cat conftest.err 1>&5 16447 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16449 if diff conftest.exp conftest.er2 >/dev/null; then 16450 lt_cv_prog_compiler_static_works_GCJ=yes 16451 fi 16452 else 16453 lt_cv_prog_compiler_static_works_GCJ=yes 16454 fi 16455 fi 16456 $rm -r conftest* 16457 LDFLAGS="$save_LDFLAGS" 16458 16459 fi 16460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 16461 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 16462 16463 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 16464 : 16465 else 16466 lt_prog_compiler_static_GCJ= 16467 fi 16468 16469 16470 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16471 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16472 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16473 echo $ECHO_N "(cached) $ECHO_C" >&6 16474 else 16475 lt_cv_prog_compiler_c_o_GCJ=no 16476 $rm -r conftest 2>/dev/null 16477 mkdir conftest 16478 cd conftest 16479 mkdir out 16480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16481 16482 lt_compiler_flag="-o out/conftest2.$ac_objext" 16483 # Insert the option either (1) after the last *FLAGS variable, or 16484 # (2) before a word containing "conftest.", or (3) at the end. 16485 # Note that $ac_compile itself does not contain backslashes and begins 16486 # with a dollar sign (not a hyphen), so the echo should work correctly. 16487 lt_compile=`echo "$ac_compile" | $SED \ 16488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16490 -e 's:$: $lt_compiler_flag:'` 16491 (eval echo "\"\$as_me:16491: $lt_compile\"" >&5) 16492 (eval "$lt_compile" 2>out/conftest.err) 16493 ac_status=$? 16494 cat out/conftest.err >&5 16495 echo "$as_me:16495: \$? = $ac_status" >&5 16496 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16497 then 16498 # The compiler can only warn and ignore the option if not recognized 16499 # So say no if there are warnings 16500 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16503 lt_cv_prog_compiler_c_o_GCJ=yes 16504 fi 16505 fi 16506 chmod u+w . 2>&5 16507 $rm conftest* 16508 # SGI C++ compiler will create directory out/ii_files/ for 16509 # template instantiation 16510 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16511 $rm out/* && rmdir out 16512 cd .. 16513 rmdir conftest 16514 $rm conftest* 16515 16516 fi 16517 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16518 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16519 16520 16521 hard_links="nottested" 16522 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16523 # do not overwrite the value of need_locks provided by the user 16524 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16525 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16526 hard_links=yes 16527 $rm conftest* 16528 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16529 touch conftest.a 16530 ln conftest.a conftest.b 2>&5 || hard_links=no 16531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16532 { echo "$as_me:$LINENO: result: $hard_links" >&5 16533 echo "${ECHO_T}$hard_links" >&6; } 16534 if test "$hard_links" = no; then 16535 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16536 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16537 need_locks=warn 16538 fi 16539 else 16540 need_locks=no 16541 fi 16542 16543 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16544 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16545 16546 runpath_var= 16547 allow_undefined_flag_GCJ= 16548 enable_shared_with_static_runtimes_GCJ=no 16549 archive_cmds_GCJ= 16550 archive_expsym_cmds_GCJ= 16551 old_archive_From_new_cmds_GCJ= 16552 old_archive_from_expsyms_cmds_GCJ= 16553 export_dynamic_flag_spec_GCJ= 16554 whole_archive_flag_spec_GCJ= 16555 thread_safe_flag_spec_GCJ= 16556 hardcode_libdir_flag_spec_GCJ= 16557 hardcode_libdir_flag_spec_ld_GCJ= 16558 hardcode_libdir_separator_GCJ= 16559 hardcode_direct_GCJ=no 16560 hardcode_minus_L_GCJ=no 16561 hardcode_shlibpath_var_GCJ=unsupported 16562 link_all_deplibs_GCJ=unknown 16563 hardcode_automatic_GCJ=no 16564 module_cmds_GCJ= 16565 module_expsym_cmds_GCJ= 16566 always_export_symbols_GCJ=no 16567 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16568 # include_expsyms should be a list of space-separated symbols to be *always* 16569 # included in the symbol list 16570 include_expsyms_GCJ= 16571 # exclude_expsyms can be an extended regexp of symbols to exclude 16572 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16574 # as well as any symbol that contains `d'. 16575 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16577 # platforms (ab)use it in PIC code, but their linkers get confused if 16578 # the symbol is explicitly referenced. Since portable code cannot 16579 # rely on this symbol name, it's probably fine to never include it in 16580 # preloaded symbol tables. 16581 # Exclude shared library initialization/finalization symbols. 16582 extract_expsyms_cmds= 16583 # Just being paranoid about ensuring that cc_basename is set. 16584 for cc_temp in $compiler""; do 16585 case $cc_temp in 16586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16588 \-*) ;; 16589 *) break;; 16590 esac 16591 done 16592 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16593 16594 case $host_os in 16595 cygwin* | mingw* | pw32*) 16596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16597 # When not using gcc, we currently assume that we are using 16598 # Microsoft Visual C++. 16599 if test "$GCC" != yes; then 16600 with_gnu_ld=no 16601 fi 16602 ;; 16603 interix*) 16604 # we just hope/assume this is gcc and not c89 (= MSVC++) 16605 with_gnu_ld=yes 16606 ;; 16607 openbsd*) 16608 with_gnu_ld=no 16609 ;; 16610 esac 16611 16612 ld_shlibs_GCJ=yes 16613 if test "$with_gnu_ld" = yes; then 16614 # If archive_cmds runs LD, not CC, wlarc should be empty 16615 wlarc='${wl}' 16616 16617 # Set some defaults for GNU ld with shared library support. These 16618 # are reset later if shared libraries are not supported. Putting them 16619 # here allows them to be overridden if necessary. 16620 runpath_var=LD_RUN_PATH 16621 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16622 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16623 # ancient GNU ld didn't support --whole-archive et. al. 16624 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16625 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16626 else 16627 whole_archive_flag_spec_GCJ= 16628 fi 16629 supports_anon_versioning=no 16630 case `$LD -v 2>/dev/null` in 16631 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16634 *\ 2.11.*) ;; # other 2.11 versions 16635 *) supports_anon_versioning=yes ;; 16636 esac 16637 16638 # See if GNU ld supports shared libraries. 16639 case $host_os in 16640 aix[3-9]*) 16641 # On AIX/PPC, the GNU linker is very broken 16642 if test "$host_cpu" != ia64; then 16643 ld_shlibs_GCJ=no 16644 cat <<EOF 1>&2 16645 16646 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 16647 *** to be unable to reliably create shared libraries on AIX. 16648 *** Therefore, libtool is disabling shared libraries support. If you 16649 *** really care for shared libraries, you may want to modify your PATH 16650 *** so that a non-GNU linker is found, and then restart. 16651 16652 EOF 16653 fi 16654 ;; 16655 16656 amigaos*) 16657 archive_cmds_GCJ='$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)' 16658 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16659 hardcode_minus_L_GCJ=yes 16660 16661 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 16662 # that the semantics of dynamic libraries on AmigaOS, at least up 16663 # to version 4, is to share data among multiple programs linked 16664 # with the same dynamic library. Since this doesn't match the 16665 # behavior of shared libraries on other platforms, we can't use 16666 # them. 16667 ld_shlibs_GCJ=no 16668 ;; 16669 16670 beos*) 16671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16672 allow_undefined_flag_GCJ=unsupported 16673 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16674 # support --undefined. This deserves some investigation. FIXME 16675 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16676 else 16677 ld_shlibs_GCJ=no 16678 fi 16679 ;; 16680 16681 cygwin* | mingw* | pw32*) 16682 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16683 # as there is no search path for DLLs. 16684 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16685 allow_undefined_flag_GCJ=unsupported 16686 always_export_symbols_GCJ=no 16687 enable_shared_with_static_runtimes_GCJ=yes 16688 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16689 16690 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16692 # If the export-symbols file already is a .def file (1st line 16693 # is EXPORTS), use it as is; otherwise, prepend... 16694 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16695 cp $export_symbols $output_objdir/$soname.def; 16696 else 16697 echo EXPORTS > $output_objdir/$soname.def; 16698 cat $export_symbols >> $output_objdir/$soname.def; 16699 fi~ 16700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16701 else 16702 ld_shlibs_GCJ=no 16703 fi 16704 ;; 16705 16706 interix[3-9]*) 16707 hardcode_direct_GCJ=no 16708 hardcode_shlibpath_var_GCJ=no 16709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16710 export_dynamic_flag_spec_GCJ='${wl}-E' 16711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16712 # Instead, shared libraries are loaded at an image base (0x10000000 by 16713 # default) and relocated if they conflict, which is a slow very memory 16714 # consuming and fragmenting process. To avoid this, we pick a random, 16715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16716 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16717 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16718 archive_expsym_cmds_GCJ='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' 16719 ;; 16720 16721 gnu* | linux* | k*bsd*-gnu) 16722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16723 tmp_addflag= 16724 case $cc_basename,$host_cpu in 16725 pgcc*) # Portland Group C compiler 16726 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16727 tmp_addflag=' $pic_flag' 16728 ;; 16729 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16730 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16731 tmp_addflag=' $pic_flag -Mnomain' ;; 16732 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16733 tmp_addflag=' -i_dynamic' ;; 16734 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16735 tmp_addflag=' -i_dynamic -nofor_main' ;; 16736 ifc* | ifort*) # Intel Fortran compiler 16737 tmp_addflag=' -nofor_main' ;; 16738 esac 16739 case `$CC -V 2>&1 | sed 5q` in 16740 *Sun\ C*) # Sun C 5.9 16741 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16742 tmp_sharedflag='-G' ;; 16743 *Sun\ F*) # Sun Fortran 8.3 16744 tmp_sharedflag='-G' ;; 16745 *) 16746 tmp_sharedflag='-shared' ;; 16747 esac 16748 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16749 16750 if test $supports_anon_versioning = yes; then 16751 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16753 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16755 fi 16756 else 16757 ld_shlibs_GCJ=no 16758 fi 16759 ;; 16760 16761 netbsd*) 16762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16763 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16764 wlarc= 16765 else 16766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16767 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16768 fi 16769 ;; 16770 16771 solaris*) 16772 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16773 ld_shlibs_GCJ=no 16774 cat <<EOF 1>&2 16775 16776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16777 *** create shared libraries on Solaris systems. Therefore, libtool 16778 *** is disabling shared libraries support. We urge you to upgrade GNU 16779 *** binutils to release 2.9.1 or newer. Another option is to modify 16780 *** your PATH or compiler configuration so that the native linker is 16781 *** used, and then restart. 16782 16783 EOF 16784 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16786 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16787 else 16788 ld_shlibs_GCJ=no 16789 fi 16790 ;; 16791 16792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16793 case `$LD -v 2>&1` in 16794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16795 ld_shlibs_GCJ=no 16796 cat <<_LT_EOF 1>&2 16797 16798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16799 *** reliably create shared libraries on SCO systems. Therefore, libtool 16800 *** is disabling shared libraries support. We urge you to upgrade GNU 16801 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16802 *** your PATH or compiler configuration so that the native linker is 16803 *** used, and then restart. 16804 16805 _LT_EOF 16806 ;; 16807 *) 16808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16809 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16810 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16811 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16812 else 16813 ld_shlibs_GCJ=no 16814 fi 16815 ;; 16816 esac 16817 ;; 16818 16819 sunos4*) 16820 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16821 wlarc= 16822 hardcode_direct_GCJ=yes 16823 hardcode_shlibpath_var_GCJ=no 16824 ;; 16825 16826 *) 16827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16828 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16829 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16830 else 16831 ld_shlibs_GCJ=no 16832 fi 16833 ;; 16834 esac 16835 16836 if test "$ld_shlibs_GCJ" = no; then 16837 runpath_var= 16838 hardcode_libdir_flag_spec_GCJ= 16839 export_dynamic_flag_spec_GCJ= 16840 whole_archive_flag_spec_GCJ= 16841 fi 16842 else 16843 # PORTME fill in a description of your system's linker (not GNU ld) 16844 case $host_os in 16845 aix3*) 16846 allow_undefined_flag_GCJ=unsupported 16847 always_export_symbols_GCJ=yes 16848 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16849 # Note: this linker hardcodes the directories in LIBPATH if there 16850 # are no directories specified by -L. 16851 hardcode_minus_L_GCJ=yes 16852 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16853 # Neither direct hardcoding nor static linking is supported with a 16854 # broken collect2. 16855 hardcode_direct_GCJ=unsupported 16856 fi 16857 ;; 16858 16859 aix[4-9]*) 16860 if test "$host_cpu" = ia64; then 16861 # On IA64, the linker does run time linking by default, so we don't 16862 # have to do anything special. 16863 aix_use_runtimelinking=no 16864 exp_sym_flag='-Bexport' 16865 no_entry_flag="" 16866 else 16867 # If we're using GNU nm, then we don't want the "-C" option. 16868 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16870 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16871 else 16872 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16873 fi 16874 aix_use_runtimelinking=no 16875 16876 # Test if we are trying to use run time linking or normal 16877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16878 # need to do runtime linking. 16879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16880 for ld_flag in $LDFLAGS; do 16881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16882 aix_use_runtimelinking=yes 16883 break 16884 fi 16885 done 16886 ;; 16887 esac 16888 16889 exp_sym_flag='-bexport' 16890 no_entry_flag='-bnoentry' 16891 fi 16892 16893 # When large executables or shared objects are built, AIX ld can 16894 # have problems creating the table of contents. If linking a library 16895 # or program results in "error TOC overflow" add -mminimal-toc to 16896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16898 16899 archive_cmds_GCJ='' 16900 hardcode_direct_GCJ=yes 16901 hardcode_libdir_separator_GCJ=':' 16902 link_all_deplibs_GCJ=yes 16903 16904 if test "$GCC" = yes; then 16905 case $host_os in aix4.[012]|aix4.[012].*) 16906 # We only want to do this on AIX 4.2 and lower, the check 16907 # below for broken collect2 doesn't work under 4.3+ 16908 collect2name=`${CC} -print-prog-name=collect2` 16909 if test -f "$collect2name" && \ 16910 strings "$collect2name" | grep resolve_lib_name >/dev/null 16911 then 16912 # We have reworked collect2 16913 : 16914 else 16915 # We have old collect2 16916 hardcode_direct_GCJ=unsupported 16917 # It fails to find uninstalled libraries when the uninstalled 16918 # path is not listed in the libpath. Setting hardcode_minus_L 16919 # to unsupported forces relinking 16920 hardcode_minus_L_GCJ=yes 16921 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16922 hardcode_libdir_separator_GCJ= 16923 fi 16924 ;; 16925 esac 16926 shared_flag='-shared' 16927 if test "$aix_use_runtimelinking" = yes; then 16928 shared_flag="$shared_flag "'${wl}-G' 16929 fi 16930 else 16931 # not using gcc 16932 if test "$host_cpu" = ia64; then 16933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16934 # chokes on -Wl,-G. The following line is correct: 16935 shared_flag='-G' 16936 else 16937 if test "$aix_use_runtimelinking" = yes; then 16938 shared_flag='${wl}-G' 16939 else 16940 shared_flag='${wl}-bM:SRE' 16941 fi 16942 fi 16943 fi 16944 16945 # It seems that -bexpall does not export symbols beginning with 16946 # underscore (_), so it is better to generate a list of symbols to export. 16947 always_export_symbols_GCJ=yes 16948 if test "$aix_use_runtimelinking" = yes; then 16949 # Warning - without using the other runtime loading flags (-brtl), 16950 # -berok will link without error, but may produce a broken library. 16951 allow_undefined_flag_GCJ='-berok' 16952 # Determine the default libpath from the value encoded in an empty executable. 16953 cat >conftest.$ac_ext <<_ACEOF 16954 /* confdefs.h. */ 16955 _ACEOF 16956 cat confdefs.h >>conftest.$ac_ext 16957 cat >>conftest.$ac_ext <<_ACEOF 16958 /* end confdefs.h. */ 16959 16960 int 16961 main () 16962 { 16963 16964 ; 16965 return 0; 16966 } 16967 _ACEOF 16968 rm -f conftest.$ac_objext conftest$ac_exeext 16969 if { (ac_try="$ac_link" 16970 case "(($ac_try" in 16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16972 *) ac_try_echo=$ac_try;; 16973 esac 16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16975 (eval "$ac_link") 2>conftest.er1 16976 ac_status=$? 16977 grep -v '^ *+' conftest.er1 >conftest.err 16978 rm -f conftest.er1 16979 cat conftest.err >&5 16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16981 (exit $ac_status); } && { 16982 test -z "$ac_c_werror_flag" || 16983 test ! -s conftest.err 16984 } && test -s conftest$ac_exeext && 16985 $as_test_x conftest$ac_exeext; then 16986 16987 lt_aix_libpath_sed=' 16988 /Import File Strings/,/^$/ { 16989 /^0/ { 16990 s/^0 *\(.*\)$/\1/ 16991 p 16992 } 16993 }' 16994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16995 # Check for a 64-bit object if we didn't find anything. 16996 if test -z "$aix_libpath"; then 16997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16998 fi 16999 else 17000 echo "$as_me: failed program was:" >&5 17001 sed 's/^/| /' conftest.$ac_ext >&5 17002 17003 17004 fi 17005 17006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17007 conftest$ac_exeext conftest.$ac_ext 17008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17009 17010 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17011 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17012 else 17013 if test "$host_cpu" = ia64; then 17014 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17015 allow_undefined_flag_GCJ="-z nodefs" 17016 archive_expsym_cmds_GCJ="\$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" 17017 else 17018 # Determine the default libpath from the value encoded in an empty executable. 17019 cat >conftest.$ac_ext <<_ACEOF 17020 /* confdefs.h. */ 17021 _ACEOF 17022 cat confdefs.h >>conftest.$ac_ext 17023 cat >>conftest.$ac_ext <<_ACEOF 17024 /* end confdefs.h. */ 17025 17026 int 17027 main () 17028 { 17029 17030 ; 17031 return 0; 17032 } 17033 _ACEOF 17034 rm -f conftest.$ac_objext conftest$ac_exeext 17035 if { (ac_try="$ac_link" 17036 case "(($ac_try" in 17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17038 *) ac_try_echo=$ac_try;; 17039 esac 17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17041 (eval "$ac_link") 2>conftest.er1 17042 ac_status=$? 17043 grep -v '^ *+' conftest.er1 >conftest.err 17044 rm -f conftest.er1 17045 cat conftest.err >&5 17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17047 (exit $ac_status); } && { 17048 test -z "$ac_c_werror_flag" || 17049 test ! -s conftest.err 17050 } && test -s conftest$ac_exeext && 17051 $as_test_x conftest$ac_exeext; then 17052 17053 lt_aix_libpath_sed=' 17054 /Import File Strings/,/^$/ { 17055 /^0/ { 17056 s/^0 *\(.*\)$/\1/ 17057 p 17058 } 17059 }' 17060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17061 # Check for a 64-bit object if we didn't find anything. 17062 if test -z "$aix_libpath"; then 17063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17064 fi 17065 else 17066 echo "$as_me: failed program was:" >&5 17067 sed 's/^/| /' conftest.$ac_ext >&5 17068 17069 17070 fi 17071 17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17073 conftest$ac_exeext conftest.$ac_ext 17074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17075 17076 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17077 # Warning - without using the other run time loading flags, 17078 # -berok will link without error, but may produce a broken library. 17079 no_undefined_flag_GCJ=' ${wl}-bernotok' 17080 allow_undefined_flag_GCJ=' ${wl}-berok' 17081 # Exported symbols can be pulled into shared objects from archives 17082 whole_archive_flag_spec_GCJ='$convenience' 17083 archive_cmds_need_lc_GCJ=yes 17084 # This is similar to how AIX traditionally builds its shared libraries. 17085 archive_expsym_cmds_GCJ="\$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' 17086 fi 17087 fi 17088 ;; 17089 17090 amigaos*) 17091 archive_cmds_GCJ='$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)' 17092 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17093 hardcode_minus_L_GCJ=yes 17094 # see comment about different semantics on the GNU ld section 17095 ld_shlibs_GCJ=no 17096 ;; 17097 17098 bsdi[45]*) 17099 export_dynamic_flag_spec_GCJ=-rdynamic 17100 ;; 17101 17102 cygwin* | mingw* | pw32*) 17103 # When not using gcc, we currently assume that we are using 17104 # Microsoft Visual C++. 17105 # hardcode_libdir_flag_spec is actually meaningless, as there is 17106 # no search path for DLLs. 17107 hardcode_libdir_flag_spec_GCJ=' ' 17108 allow_undefined_flag_GCJ=unsupported 17109 # Tell ltmain to make .lib files, not .a files. 17110 libext=lib 17111 # Tell ltmain to make .dll files, not .so files. 17112 shrext_cmds=".dll" 17113 # FIXME: Setting linknames here is a bad hack. 17114 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17115 # The linker will automatically build a .lib file if we build a DLL. 17116 old_archive_From_new_cmds_GCJ='true' 17117 # FIXME: Should let the user specify the lib program. 17118 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17119 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17120 enable_shared_with_static_runtimes_GCJ=yes 17121 ;; 17122 17123 darwin* | rhapsody*) 17124 case $host_os in 17125 rhapsody* | darwin1.[012]) 17126 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17127 ;; 17128 *) # Darwin 1.3 on 17129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17130 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17131 else 17132 case ${MACOSX_DEPLOYMENT_TARGET} in 17133 10.[012]) 17134 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17135 ;; 17136 10.*) 17137 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17138 ;; 17139 esac 17140 fi 17141 ;; 17142 esac 17143 archive_cmds_need_lc_GCJ=no 17144 hardcode_direct_GCJ=no 17145 hardcode_automatic_GCJ=yes 17146 hardcode_shlibpath_var_GCJ=unsupported 17147 whole_archive_flag_spec_GCJ='' 17148 link_all_deplibs_GCJ=yes 17149 if test "$GCC" = yes ; then 17150 output_verbose_link_cmd='echo' 17151 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17152 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17153 archive_expsym_cmds_GCJ="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}" 17154 module_expsym_cmds_GCJ="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}" 17155 else 17156 case $cc_basename in 17157 xlc*) 17158 output_verbose_link_cmd='echo' 17159 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17160 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17162 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17163 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17164 ;; 17165 *) 17166 ld_shlibs_GCJ=no 17167 ;; 17168 esac 17169 fi 17170 ;; 17171 17172 dgux*) 17173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17174 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17175 hardcode_shlibpath_var_GCJ=no 17176 ;; 17177 17178 freebsd1*) 17179 ld_shlibs_GCJ=no 17180 ;; 17181 17182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17183 # support. Future versions do this automatically, but an explicit c++rt0.o 17184 # does not break anything, and helps significantly (at the cost of a little 17185 # extra space). 17186 freebsd2.2*) 17187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17188 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17189 hardcode_direct_GCJ=yes 17190 hardcode_shlibpath_var_GCJ=no 17191 ;; 17192 17193 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17194 freebsd2*) 17195 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17196 hardcode_direct_GCJ=yes 17197 hardcode_minus_L_GCJ=yes 17198 hardcode_shlibpath_var_GCJ=no 17199 ;; 17200 17201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17202 freebsd* | dragonfly*) 17203 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17204 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17205 hardcode_direct_GCJ=yes 17206 hardcode_shlibpath_var_GCJ=no 17207 ;; 17208 17209 hpux9*) 17210 if test "$GCC" = yes; then 17211 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17212 else 17213 archive_cmds_GCJ='$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' 17214 fi 17215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17216 hardcode_libdir_separator_GCJ=: 17217 hardcode_direct_GCJ=yes 17218 17219 # hardcode_minus_L: Not really in the search PATH, 17220 # but as the default location of the library. 17221 hardcode_minus_L_GCJ=yes 17222 export_dynamic_flag_spec_GCJ='${wl}-E' 17223 ;; 17224 17225 hpux10*) 17226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17227 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17228 else 17229 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17230 fi 17231 if test "$with_gnu_ld" = no; then 17232 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17233 hardcode_libdir_separator_GCJ=: 17234 17235 hardcode_direct_GCJ=yes 17236 export_dynamic_flag_spec_GCJ='${wl}-E' 17237 17238 # hardcode_minus_L: Not really in the search PATH, 17239 # but as the default location of the library. 17240 hardcode_minus_L_GCJ=yes 17241 fi 17242 ;; 17243 17244 hpux11*) 17245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17246 case $host_cpu in 17247 hppa*64*) 17248 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17249 ;; 17250 ia64*) 17251 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17252 ;; 17253 *) 17254 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17255 ;; 17256 esac 17257 else 17258 case $host_cpu in 17259 hppa*64*) 17260 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17261 ;; 17262 ia64*) 17263 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17264 ;; 17265 *) 17266 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17267 ;; 17268 esac 17269 fi 17270 if test "$with_gnu_ld" = no; then 17271 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17272 hardcode_libdir_separator_GCJ=: 17273 17274 case $host_cpu in 17275 hppa*64*|ia64*) 17276 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17277 hardcode_direct_GCJ=no 17278 hardcode_shlibpath_var_GCJ=no 17279 ;; 17280 *) 17281 hardcode_direct_GCJ=yes 17282 export_dynamic_flag_spec_GCJ='${wl}-E' 17283 17284 # hardcode_minus_L: Not really in the search PATH, 17285 # but as the default location of the library. 17286 hardcode_minus_L_GCJ=yes 17287 ;; 17288 esac 17289 fi 17290 ;; 17291 17292 irix5* | irix6* | nonstopux*) 17293 if test "$GCC" = yes; then 17294 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17295 else 17296 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17297 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17298 fi 17299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17300 hardcode_libdir_separator_GCJ=: 17301 link_all_deplibs_GCJ=yes 17302 ;; 17303 17304 netbsd*) 17305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17306 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17307 else 17308 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17309 fi 17310 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17311 hardcode_direct_GCJ=yes 17312 hardcode_shlibpath_var_GCJ=no 17313 ;; 17314 17315 newsos6) 17316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17317 hardcode_direct_GCJ=yes 17318 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17319 hardcode_libdir_separator_GCJ=: 17320 hardcode_shlibpath_var_GCJ=no 17321 ;; 17322 17323 openbsd*) 17324 if test -f /usr/libexec/ld.so; then 17325 hardcode_direct_GCJ=yes 17326 hardcode_shlibpath_var_GCJ=no 17327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17328 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17329 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17330 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17331 export_dynamic_flag_spec_GCJ='${wl}-E' 17332 else 17333 case $host_os in 17334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17336 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17337 ;; 17338 *) 17339 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17341 ;; 17342 esac 17343 fi 17344 else 17345 ld_shlibs_GCJ=no 17346 fi 17347 ;; 17348 17349 os2*) 17350 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17351 hardcode_minus_L_GCJ=yes 17352 allow_undefined_flag_GCJ=unsupported 17353 archive_cmds_GCJ='$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' 17354 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17355 ;; 17356 17357 osf3*) 17358 if test "$GCC" = yes; then 17359 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17360 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17361 else 17362 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17363 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17364 fi 17365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17366 hardcode_libdir_separator_GCJ=: 17367 ;; 17368 17369 osf4* | osf5*) # as osf3* with the addition of -msym flag 17370 if test "$GCC" = yes; then 17371 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17372 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17373 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17374 else 17375 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17376 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17377 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17378 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17379 17380 # Both c and cxx compiler support -rpath directly 17381 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17382 fi 17383 hardcode_libdir_separator_GCJ=: 17384 ;; 17385 17386 solaris*) 17387 no_undefined_flag_GCJ=' -z text' 17388 if test "$GCC" = yes; then 17389 wlarc='${wl}' 17390 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17391 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17393 else 17394 wlarc='' 17395 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17396 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17398 fi 17399 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17400 hardcode_shlibpath_var_GCJ=no 17401 case $host_os in 17402 solaris2.[0-5] | solaris2.[0-5].*) ;; 17403 *) 17404 # The compiler driver will combine and reorder linker options, 17405 # but understands `-z linker_flag'. GCC discards it without `$wl', 17406 # but is careful enough not to reorder. 17407 # Supported since Solaris 2.6 (maybe 2.5.1?) 17408 if test "$GCC" = yes; then 17409 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17410 else 17411 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17412 fi 17413 ;; 17414 esac 17415 link_all_deplibs_GCJ=yes 17416 ;; 17417 17418 sunos4*) 17419 if test "x$host_vendor" = xsequent; then 17420 # Use $CC to link under sequent, because it throws in some extra .o 17421 # files that make .init and .fini sections work. 17422 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17423 else 17424 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17425 fi 17426 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17427 hardcode_direct_GCJ=yes 17428 hardcode_minus_L_GCJ=yes 17429 hardcode_shlibpath_var_GCJ=no 17430 ;; 17431 17432 sysv4) 17433 case $host_vendor in 17434 sni) 17435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17436 hardcode_direct_GCJ=yes # is this really true??? 17437 ;; 17438 siemens) 17439 ## LD is ld it makes a PLAMLIB 17440 ## CC just makes a GrossModule. 17441 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17442 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17443 hardcode_direct_GCJ=no 17444 ;; 17445 motorola) 17446 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17447 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17448 ;; 17449 esac 17450 runpath_var='LD_RUN_PATH' 17451 hardcode_shlibpath_var_GCJ=no 17452 ;; 17453 17454 sysv4.3*) 17455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17456 hardcode_shlibpath_var_GCJ=no 17457 export_dynamic_flag_spec_GCJ='-Bexport' 17458 ;; 17459 17460 sysv4*MP*) 17461 if test -d /usr/nec; then 17462 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17463 hardcode_shlibpath_var_GCJ=no 17464 runpath_var=LD_RUN_PATH 17465 hardcode_runpath_var=yes 17466 ld_shlibs_GCJ=yes 17467 fi 17468 ;; 17469 17470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17471 no_undefined_flag_GCJ='${wl}-z,text' 17472 archive_cmds_need_lc_GCJ=no 17473 hardcode_shlibpath_var_GCJ=no 17474 runpath_var='LD_RUN_PATH' 17475 17476 if test "$GCC" = yes; then 17477 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17478 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17479 else 17480 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17481 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17482 fi 17483 ;; 17484 17485 sysv5* | sco3.2v5* | sco5v6*) 17486 # Note: We can NOT use -z defs as we might desire, because we do not 17487 # link with -lc, and that would cause any symbols used from libc to 17488 # always be unresolved, which means just about no library would 17489 # ever link correctly. If we're not using GNU ld we use -z text 17490 # though, which does catch some bad symbols but isn't as heavy-handed 17491 # as -z defs. 17492 no_undefined_flag_GCJ='${wl}-z,text' 17493 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17494 archive_cmds_need_lc_GCJ=no 17495 hardcode_shlibpath_var_GCJ=no 17496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17497 hardcode_libdir_separator_GCJ=':' 17498 link_all_deplibs_GCJ=yes 17499 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17500 runpath_var='LD_RUN_PATH' 17501 17502 if test "$GCC" = yes; then 17503 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17504 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17505 else 17506 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17507 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17508 fi 17509 ;; 17510 17511 uts4*) 17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17513 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17514 hardcode_shlibpath_var_GCJ=no 17515 ;; 17516 17517 *) 17518 ld_shlibs_GCJ=no 17519 ;; 17520 esac 17521 fi 17522 17523 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17524 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17525 test "$ld_shlibs_GCJ" = no && can_build_shared=no 17526 17527 # 17528 # Do we need to explicitly link libc? 17529 # 17530 case "x$archive_cmds_need_lc_GCJ" in 17531 x|xyes) 17532 # Assume -lc should be added 17533 archive_cmds_need_lc_GCJ=yes 17534 17535 if test "$enable_shared" = yes && test "$GCC" = yes; then 17536 case $archive_cmds_GCJ in 17537 *'~'*) 17538 # FIXME: we may have to deal with multi-command sequences. 17539 ;; 17540 '$CC '*) 17541 # Test whether the compiler implicitly links with -lc since on some 17542 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17543 # to ld, don't add -lc before -lgcc. 17544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17546 $rm conftest* 17547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17548 17549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17550 (eval $ac_compile) 2>&5 17551 ac_status=$? 17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17553 (exit $ac_status); } 2>conftest.err; then 17554 soname=conftest 17555 lib=conftest 17556 libobjs=conftest.$ac_objext 17557 deplibs= 17558 wl=$lt_prog_compiler_wl_GCJ 17559 pic_flag=$lt_prog_compiler_pic_GCJ 17560 compiler_flags=-v 17561 linker_flags=-v 17562 verstring= 17563 output_objdir=. 17564 libname=conftest 17565 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17566 allow_undefined_flag_GCJ= 17567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17568 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17569 ac_status=$? 17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17571 (exit $ac_status); } 17572 then 17573 archive_cmds_need_lc_GCJ=no 17574 else 17575 archive_cmds_need_lc_GCJ=yes 17576 fi 17577 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17578 else 17579 cat conftest.err 1>&5 17580 fi 17581 $rm conftest* 17582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17583 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17584 ;; 17585 esac 17586 fi 17587 ;; 17588 esac 17589 17590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17592 library_names_spec= 17593 libname_spec='lib$name' 17594 soname_spec= 17595 shrext_cmds=".so" 17596 postinstall_cmds= 17597 postuninstall_cmds= 17598 finish_cmds= 17599 finish_eval= 17600 shlibpath_var= 17601 shlibpath_overrides_runpath=unknown 17602 version_type=none 17603 dynamic_linker="$host_os ld.so" 17604 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17605 17606 need_lib_prefix=unknown 17607 hardcode_into_libs=no 17608 17609 # when you set need_version to no, make sure it does not cause -set_version 17610 # flags to be left without arguments 17611 need_version=unknown 17612 17613 case $host_os in 17614 aix3*) 17615 version_type=linux 17616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17617 shlibpath_var=LIBPATH 17618 17619 # AIX 3 has no versioning support, so we append a major version to the name. 17620 soname_spec='${libname}${release}${shared_ext}$major' 17621 ;; 17622 17623 aix[4-9]*) 17624 version_type=linux 17625 need_lib_prefix=no 17626 need_version=no 17627 hardcode_into_libs=yes 17628 if test "$host_cpu" = ia64; then 17629 # AIX 5 supports IA64 17630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17631 shlibpath_var=LD_LIBRARY_PATH 17632 else 17633 # With GCC up to 2.95.x, collect2 would create an import file 17634 # for dependence libraries. The import file would start with 17635 # the line `#! .'. This would cause the generated library to 17636 # depend on `.', always an invalid library. This was fixed in 17637 # development snapshots of GCC prior to 3.0. 17638 case $host_os in 17639 aix4 | aix4.[01] | aix4.[01].*) 17640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17641 echo ' yes ' 17642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17643 : 17644 else 17645 can_build_shared=no 17646 fi 17647 ;; 17648 esac 17649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17650 # soname into executable. Probably we can add versioning support to 17651 # collect2, so additional links can be useful in future. 17652 if test "$aix_use_runtimelinking" = yes; then 17653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17654 # instead of lib<name>.a to let people know that these are not 17655 # typical AIX shared libraries. 17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17657 else 17658 # We preserve .a as extension for shared libraries through AIX4.2 17659 # and later when we are not doing run time linking. 17660 library_names_spec='${libname}${release}.a $libname.a' 17661 soname_spec='${libname}${release}${shared_ext}$major' 17662 fi 17663 shlibpath_var=LIBPATH 17664 fi 17665 ;; 17666 17667 amigaos*) 17668 library_names_spec='$libname.ixlibrary $libname.a' 17669 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17670 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 17671 ;; 17672 17673 beos*) 17674 library_names_spec='${libname}${shared_ext}' 17675 dynamic_linker="$host_os ld.so" 17676 shlibpath_var=LIBRARY_PATH 17677 ;; 17678 17679 bsdi[45]*) 17680 version_type=linux 17681 need_version=no 17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17683 soname_spec='${libname}${release}${shared_ext}$major' 17684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17685 shlibpath_var=LD_LIBRARY_PATH 17686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17688 # the default ld.so.conf also contains /usr/contrib/lib and 17689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17690 # libtool to hard-code these into programs 17691 ;; 17692 17693 cygwin* | mingw* | pw32*) 17694 version_type=windows 17695 shrext_cmds=".dll" 17696 need_version=no 17697 need_lib_prefix=no 17698 17699 case $GCC,$host_os in 17700 yes,cygwin* | yes,mingw* | yes,pw32*) 17701 library_names_spec='$libname.dll.a' 17702 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17703 postinstall_cmds='base_file=`basename \${file}`~ 17704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17705 dldir=$destdir/`dirname \$dlpath`~ 17706 test -d \$dldir || mkdir -p \$dldir~ 17707 $install_prog $dir/$dlname \$dldir/$dlname~ 17708 chmod a+x \$dldir/$dlname' 17709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17710 dlpath=$dir/\$dldll~ 17711 $rm \$dlpath' 17712 shlibpath_overrides_runpath=yes 17713 17714 case $host_os in 17715 cygwin*) 17716 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17719 ;; 17720 mingw*) 17721 # MinGW DLLs use traditional 'lib' prefix 17722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17725 # It is most probably a Windows format PATH printed by 17726 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17727 # path with ; separators, and with drive letters. We can handle the 17728 # drive letters (cygwin fileutils understands them), so leave them, 17729 # especially as we might pass files found there to a mingw objdump, 17730 # which wouldn't understand a cygwinified path. Ahh. 17731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17732 else 17733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17734 fi 17735 ;; 17736 pw32*) 17737 # pw32 DLLs use 'pw' prefix rather than 'lib' 17738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17739 ;; 17740 esac 17741 ;; 17742 17743 *) 17744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17745 ;; 17746 esac 17747 dynamic_linker='Win32 ld.exe' 17748 # FIXME: first we should search . and the directory the executable is in 17749 shlibpath_var=PATH 17750 ;; 17751 17752 darwin* | rhapsody*) 17753 dynamic_linker="$host_os dyld" 17754 version_type=darwin 17755 need_lib_prefix=no 17756 need_version=no 17757 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17758 soname_spec='${libname}${release}${major}$shared_ext' 17759 shlibpath_overrides_runpath=yes 17760 shlibpath_var=DYLD_LIBRARY_PATH 17761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17762 17763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17764 ;; 17765 17766 dgux*) 17767 version_type=linux 17768 need_lib_prefix=no 17769 need_version=no 17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17771 soname_spec='${libname}${release}${shared_ext}$major' 17772 shlibpath_var=LD_LIBRARY_PATH 17773 ;; 17774 17775 freebsd1*) 17776 dynamic_linker=no 17777 ;; 17778 17779 freebsd* | dragonfly*) 17780 # DragonFly does not have aout. When/if they implement a new 17781 # versioning mechanism, adjust this. 17782 if test -x /usr/bin/objformat; then 17783 objformat=`/usr/bin/objformat` 17784 else 17785 case $host_os in 17786 freebsd[123]*) objformat=aout ;; 17787 *) objformat=elf ;; 17788 esac 17789 fi 17790 version_type=freebsd-$objformat 17791 case $version_type in 17792 freebsd-elf*) 17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17794 need_version=no 17795 need_lib_prefix=no 17796 ;; 17797 freebsd-*) 17798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17799 need_version=yes 17800 ;; 17801 esac 17802 shlibpath_var=LD_LIBRARY_PATH 17803 case $host_os in 17804 freebsd2*) 17805 shlibpath_overrides_runpath=yes 17806 ;; 17807 freebsd3.[01]* | freebsdelf3.[01]*) 17808 shlibpath_overrides_runpath=yes 17809 hardcode_into_libs=yes 17810 ;; 17811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17813 shlibpath_overrides_runpath=no 17814 hardcode_into_libs=yes 17815 ;; 17816 *) # from 4.6 on, and DragonFly 17817 shlibpath_overrides_runpath=yes 17818 hardcode_into_libs=yes 17819 ;; 17820 esac 17821 ;; 17822 17823 gnu*) 17824 version_type=linux 17825 need_lib_prefix=no 17826 need_version=no 17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17828 soname_spec='${libname}${release}${shared_ext}$major' 17829 shlibpath_var=LD_LIBRARY_PATH 17830 hardcode_into_libs=yes 17831 ;; 17832 17833 hpux9* | hpux10* | hpux11*) 17834 # Give a soname corresponding to the major version so that dld.sl refuses to 17835 # link against other versions. 17836 version_type=sunos 17837 need_lib_prefix=no 17838 need_version=no 17839 case $host_cpu in 17840 ia64*) 17841 shrext_cmds='.so' 17842 hardcode_into_libs=yes 17843 dynamic_linker="$host_os dld.so" 17844 shlibpath_var=LD_LIBRARY_PATH 17845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17847 soname_spec='${libname}${release}${shared_ext}$major' 17848 if test "X$HPUX_IA64_MODE" = X32; then 17849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17850 else 17851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17852 fi 17853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17854 ;; 17855 hppa*64*) 17856 shrext_cmds='.sl' 17857 hardcode_into_libs=yes 17858 dynamic_linker="$host_os dld.sl" 17859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17862 soname_spec='${libname}${release}${shared_ext}$major' 17863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17865 ;; 17866 *) 17867 shrext_cmds='.sl' 17868 dynamic_linker="$host_os dld.sl" 17869 shlibpath_var=SHLIB_PATH 17870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17872 soname_spec='${libname}${release}${shared_ext}$major' 17873 ;; 17874 esac 17875 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17876 postinstall_cmds='chmod 555 $lib' 17877 ;; 17878 17879 interix[3-9]*) 17880 version_type=linux 17881 need_lib_prefix=no 17882 need_version=no 17883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17884 soname_spec='${libname}${release}${shared_ext}$major' 17885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17886 shlibpath_var=LD_LIBRARY_PATH 17887 shlibpath_overrides_runpath=no 17888 hardcode_into_libs=yes 17889 ;; 17890 17891 irix5* | irix6* | nonstopux*) 17892 case $host_os in 17893 nonstopux*) version_type=nonstopux ;; 17894 *) 17895 if test "$lt_cv_prog_gnu_ld" = yes; then 17896 version_type=linux 17897 else 17898 version_type=irix 17899 fi ;; 17900 esac 17901 need_lib_prefix=no 17902 need_version=no 17903 soname_spec='${libname}${release}${shared_ext}$major' 17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17905 case $host_os in 17906 irix5* | nonstopux*) 17907 libsuff= shlibsuff= 17908 ;; 17909 *) 17910 case $LD in # libtool.m4 will add one of these switches to LD 17911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17912 libsuff= shlibsuff= libmagic=32-bit;; 17913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17914 libsuff=32 shlibsuff=N32 libmagic=N32;; 17915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17916 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17917 *) libsuff= shlibsuff= libmagic=never-match;; 17918 esac 17919 ;; 17920 esac 17921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17922 shlibpath_overrides_runpath=no 17923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17925 hardcode_into_libs=yes 17926 ;; 17927 17928 # No shared lib support for Linux oldld, aout, or coff. 17929 linux*oldld* | linux*aout* | linux*coff*) 17930 dynamic_linker=no 17931 ;; 17932 17933 # This must be Linux ELF. 17934 linux* | k*bsd*-gnu) 17935 version_type=linux 17936 need_lib_prefix=no 17937 need_version=no 17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17939 soname_spec='${libname}${release}${shared_ext}$major' 17940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17941 shlibpath_var=LD_LIBRARY_PATH 17942 shlibpath_overrides_runpath=no 17943 # This implies no fast_install, which is unacceptable. 17944 # Some rework will be needed to allow for fast_install 17945 # before this can be enabled. 17946 hardcode_into_libs=yes 17947 17948 # Append ld.so.conf contents to the search path 17949 if test -f /etc/ld.so.conf; then 17950 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;/^$/d' | tr '\n' ' '` 17951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17952 fi 17953 17954 # We used to test for /lib/ld.so.1 and disable shared libraries on 17955 # powerpc, because MkLinux only supported shared libraries with the 17956 # GNU dynamic linker. Since this was broken with cross compilers, 17957 # most powerpc-linux boxes support dynamic linking these days and 17958 # people can always --disable-shared, the test was removed, and we 17959 # assume the GNU/Linux dynamic linker is in use. 17960 dynamic_linker='GNU/Linux ld.so' 17961 ;; 17962 17963 netbsd*) 17964 version_type=sunos 17965 need_lib_prefix=no 17966 need_version=no 17967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17970 dynamic_linker='NetBSD (a.out) ld.so' 17971 else 17972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17973 soname_spec='${libname}${release}${shared_ext}$major' 17974 dynamic_linker='NetBSD ld.elf_so' 17975 fi 17976 shlibpath_var=LD_LIBRARY_PATH 17977 shlibpath_overrides_runpath=yes 17978 hardcode_into_libs=yes 17979 ;; 17980 17981 newsos6) 17982 version_type=linux 17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17984 shlibpath_var=LD_LIBRARY_PATH 17985 shlibpath_overrides_runpath=yes 17986 ;; 17987 17988 nto-qnx*) 17989 version_type=linux 17990 need_lib_prefix=no 17991 need_version=no 17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17993 soname_spec='${libname}${release}${shared_ext}$major' 17994 shlibpath_var=LD_LIBRARY_PATH 17995 shlibpath_overrides_runpath=yes 17996 ;; 17997 17998 openbsd*) 17999 version_type=sunos 18000 sys_lib_dlsearch_path_spec="/usr/lib" 18001 need_lib_prefix=no 18002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18003 case $host_os in 18004 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18005 *) need_version=no ;; 18006 esac 18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18009 shlibpath_var=LD_LIBRARY_PATH 18010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18011 case $host_os in 18012 openbsd2.[89] | openbsd2.[89].*) 18013 shlibpath_overrides_runpath=no 18014 ;; 18015 *) 18016 shlibpath_overrides_runpath=yes 18017 ;; 18018 esac 18019 else 18020 shlibpath_overrides_runpath=yes 18021 fi 18022 ;; 18023 18024 os2*) 18025 libname_spec='$name' 18026 shrext_cmds=".dll" 18027 need_lib_prefix=no 18028 library_names_spec='$libname${shared_ext} $libname.a' 18029 dynamic_linker='OS/2 ld.exe' 18030 shlibpath_var=LIBPATH 18031 ;; 18032 18033 osf3* | osf4* | osf5*) 18034 version_type=osf 18035 need_lib_prefix=no 18036 need_version=no 18037 soname_spec='${libname}${release}${shared_ext}$major' 18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18039 shlibpath_var=LD_LIBRARY_PATH 18040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18042 ;; 18043 18044 rdos*) 18045 dynamic_linker=no 18046 ;; 18047 18048 solaris*) 18049 version_type=linux 18050 need_lib_prefix=no 18051 need_version=no 18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18053 soname_spec='${libname}${release}${shared_ext}$major' 18054 shlibpath_var=LD_LIBRARY_PATH 18055 shlibpath_overrides_runpath=yes 18056 hardcode_into_libs=yes 18057 # ldd complains unless libraries are executable 18058 postinstall_cmds='chmod +x $lib' 18059 ;; 18060 18061 sunos4*) 18062 version_type=sunos 18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18065 shlibpath_var=LD_LIBRARY_PATH 18066 shlibpath_overrides_runpath=yes 18067 if test "$with_gnu_ld" = yes; then 18068 need_lib_prefix=no 18069 fi 18070 need_version=yes 18071 ;; 18072 18073 sysv4 | sysv4.3*) 18074 version_type=linux 18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18076 soname_spec='${libname}${release}${shared_ext}$major' 18077 shlibpath_var=LD_LIBRARY_PATH 18078 case $host_vendor in 18079 sni) 18080 shlibpath_overrides_runpath=no 18081 need_lib_prefix=no 18082 export_dynamic_flag_spec='${wl}-Blargedynsym' 18083 runpath_var=LD_RUN_PATH 18084 ;; 18085 siemens) 18086 need_lib_prefix=no 18087 ;; 18088 motorola) 18089 need_lib_prefix=no 18090 need_version=no 18091 shlibpath_overrides_runpath=no 18092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18093 ;; 18094 esac 18095 ;; 18096 18097 sysv4*MP*) 18098 if test -d /usr/nec ;then 18099 version_type=linux 18100 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18101 soname_spec='$libname${shared_ext}.$major' 18102 shlibpath_var=LD_LIBRARY_PATH 18103 fi 18104 ;; 18105 18106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18107 version_type=freebsd-elf 18108 need_lib_prefix=no 18109 need_version=no 18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18111 soname_spec='${libname}${release}${shared_ext}$major' 18112 shlibpath_var=LD_LIBRARY_PATH 18113 hardcode_into_libs=yes 18114 if test "$with_gnu_ld" = yes; then 18115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18116 shlibpath_overrides_runpath=no 18117 else 18118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18119 shlibpath_overrides_runpath=yes 18120 case $host_os in 18121 sco3.2v5*) 18122 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18123 ;; 18124 esac 18125 fi 18126 sys_lib_dlsearch_path_spec='/usr/lib' 18127 ;; 18128 18129 uts4*) 18130 version_type=linux 18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18132 soname_spec='${libname}${release}${shared_ext}$major' 18133 shlibpath_var=LD_LIBRARY_PATH 18134 ;; 18135 18136 *) 18137 dynamic_linker=no 18138 ;; 18139 esac 18140 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18141 echo "${ECHO_T}$dynamic_linker" >&6; } 18142 test "$dynamic_linker" = no && can_build_shared=no 18143 18144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18145 echo $ECHO_N "(cached) $ECHO_C" >&6 18146 else 18147 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18148 fi 18149 18150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18152 echo $ECHO_N "(cached) $ECHO_C" >&6 18153 else 18154 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18155 fi 18156 18157 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18158 18159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18160 if test "$GCC" = yes; then 18161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18162 fi 18163 18164 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18166 hardcode_action_GCJ= 18167 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18168 test -n "$runpath_var_GCJ" || \ 18169 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18170 18171 # We can hardcode non-existant directories. 18172 if test "$hardcode_direct_GCJ" != no && 18173 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18174 # have to relink, otherwise we might link with an installed library 18175 # when we should be linking with a yet-to-be-installed one 18176 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18177 test "$hardcode_minus_L_GCJ" != no; then 18178 # Linking always hardcodes the temporary library directory. 18179 hardcode_action_GCJ=relink 18180 else 18181 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18182 hardcode_action_GCJ=immediate 18183 fi 18184 else 18185 # We cannot hardcode anything, or else we can only hardcode existing 18186 # directories. 18187 hardcode_action_GCJ=unsupported 18188 fi 18189 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18190 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18191 18192 if test "$hardcode_action_GCJ" = relink; then 18193 # Fast installation is not supported 18194 enable_fast_install=no 18195 elif test "$shlibpath_overrides_runpath" = yes || 18196 test "$enable_shared" = no; then 18197 # Fast installation is not necessary 18198 enable_fast_install=needless 18199 fi 18200 18201 18202 # The else clause should only fire when bootstrapping the 18203 # libtool distribution, otherwise you forgot to ship ltmain.sh 18204 # with your package, and you will get complaints that there are 18205 # no rules to generate ltmain.sh. 18206 if test -f "$ltmain"; then 18207 # See if we are running on zsh, and set the options which allow our commands through 18208 # without removal of \ escapes. 18209 if test -n "${ZSH_VERSION+set}" ; then 18210 setopt NO_GLOB_SUBST 18211 fi 18212 # Now quote all the things that may contain metacharacters while being 18213 # careful not to overquote the AC_SUBSTed values. We take copies of the 18214 # variables and quote the copies for generation of the libtool script. 18215 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18216 SED SHELL STRIP \ 18217 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18218 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18219 deplibs_check_method reload_flag reload_cmds need_locks \ 18220 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18221 lt_cv_sys_global_symbol_to_c_name_address \ 18222 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18223 old_postinstall_cmds old_postuninstall_cmds \ 18224 compiler_GCJ \ 18225 CC_GCJ \ 18226 LD_GCJ \ 18227 lt_prog_compiler_wl_GCJ \ 18228 lt_prog_compiler_pic_GCJ \ 18229 lt_prog_compiler_static_GCJ \ 18230 lt_prog_compiler_no_builtin_flag_GCJ \ 18231 export_dynamic_flag_spec_GCJ \ 18232 thread_safe_flag_spec_GCJ \ 18233 whole_archive_flag_spec_GCJ \ 18234 enable_shared_with_static_runtimes_GCJ \ 18235 old_archive_cmds_GCJ \ 18236 old_archive_from_new_cmds_GCJ \ 18237 predep_objects_GCJ \ 18238 postdep_objects_GCJ \ 18239 predeps_GCJ \ 18240 postdeps_GCJ \ 18241 compiler_lib_search_path_GCJ \ 18242 compiler_lib_search_dirs_GCJ \ 18243 archive_cmds_GCJ \ 18244 archive_expsym_cmds_GCJ \ 18245 postinstall_cmds_GCJ \ 18246 postuninstall_cmds_GCJ \ 18247 old_archive_from_expsyms_cmds_GCJ \ 18248 allow_undefined_flag_GCJ \ 18249 no_undefined_flag_GCJ \ 18250 export_symbols_cmds_GCJ \ 18251 hardcode_libdir_flag_spec_GCJ \ 18252 hardcode_libdir_flag_spec_ld_GCJ \ 18253 hardcode_libdir_separator_GCJ \ 18254 hardcode_automatic_GCJ \ 18255 module_cmds_GCJ \ 18256 module_expsym_cmds_GCJ \ 18257 lt_cv_prog_compiler_c_o_GCJ \ 18258 fix_srcfile_path_GCJ \ 18259 exclude_expsyms_GCJ \ 18260 include_expsyms_GCJ; do 18261 18262 case $var in 18263 old_archive_cmds_GCJ | \ 18264 old_archive_from_new_cmds_GCJ | \ 18265 archive_cmds_GCJ | \ 18266 archive_expsym_cmds_GCJ | \ 18267 module_cmds_GCJ | \ 18268 module_expsym_cmds_GCJ | \ 18269 old_archive_from_expsyms_cmds_GCJ | \ 18270 export_symbols_cmds_GCJ | \ 18271 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18272 postinstall_cmds | postuninstall_cmds | \ 18273 old_postinstall_cmds | old_postuninstall_cmds | \ 18274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18275 # Double-quote double-evaled strings. 18276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18277 ;; 18278 *) 18279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18280 ;; 18281 esac 18282 done 18283 18284 case $lt_echo in 18285 *'\$0 --fallback-echo"') 18286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18287 ;; 18288 esac 18289 18290 cfgfile="$ofile" 18291 18292 cat <<__EOF__ >> "$cfgfile" 18293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 18294 18295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18296 18297 # Shell to use when invoking shell scripts. 18298 SHELL=$lt_SHELL 18299 18300 # Whether or not to build shared libraries. 18301 build_libtool_libs=$enable_shared 18302 18303 # Whether or not to build static libraries. 18304 build_old_libs=$enable_static 18305 18306 # Whether or not to add -lc for building shared libraries. 18307 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18308 18309 # Whether or not to disallow shared libs when runtime libs are static 18310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18311 18312 # Whether or not to optimize for fast installation. 18313 fast_install=$enable_fast_install 18314 18315 # The host system. 18316 host_alias=$host_alias 18317 host=$host 18318 host_os=$host_os 18319 18320 # The build system. 18321 build_alias=$build_alias 18322 build=$build 18323 build_os=$build_os 18324 18325 # An echo program that does not interpret backslashes. 18326 echo=$lt_echo 18327 18328 # The archiver. 18329 AR=$lt_AR 18330 AR_FLAGS=$lt_AR_FLAGS 18331 18332 # A C compiler. 18333 LTCC=$lt_LTCC 18334 18335 # LTCC compiler flags. 18336 LTCFLAGS=$lt_LTCFLAGS 18337 18338 # A language-specific compiler. 18339 CC=$lt_compiler_GCJ 18340 18341 # Is the compiler the GNU C compiler? 18342 with_gcc=$GCC_GCJ 18343 18344 # An ERE matcher. 18345 EGREP=$lt_EGREP 18346 18347 # The linker used to build libraries. 18348 LD=$lt_LD_GCJ 18349 18350 # Whether we need hard or soft links. 18351 LN_S=$lt_LN_S 18352 18353 # A BSD-compatible nm program. 18354 NM=$lt_NM 18355 18356 # A symbol stripping program 18357 STRIP=$lt_STRIP 18358 18359 # Used to examine libraries when file_magic_cmd begins "file" 18360 MAGIC_CMD=$MAGIC_CMD 18361 18362 # Used on cygwin: DLL creation program. 18363 DLLTOOL="$DLLTOOL" 18364 18365 # Used on cygwin: object dumper. 18366 OBJDUMP="$OBJDUMP" 18367 18368 # Used on cygwin: assembler. 18369 AS="$AS" 18370 18371 # The name of the directory that contains temporary libtool files. 18372 objdir=$objdir 18373 18374 # How to create reloadable object files. 18375 reload_flag=$lt_reload_flag 18376 reload_cmds=$lt_reload_cmds 18377 18378 # How to pass a linker flag through the compiler. 18379 wl=$lt_lt_prog_compiler_wl_GCJ 18380 18381 # Object file suffix (normally "o"). 18382 objext="$ac_objext" 18383 18384 # Old archive suffix (normally "a"). 18385 libext="$libext" 18386 18387 # Shared library suffix (normally ".so"). 18388 shrext_cmds='$shrext_cmds' 18389 18390 # Executable file suffix (normally ""). 18391 exeext="$exeext" 18392 18393 # Additional compiler flags for building library objects. 18394 pic_flag=$lt_lt_prog_compiler_pic_GCJ 18395 pic_mode=$pic_mode 18396 18397 # What is the maximum length of a command? 18398 max_cmd_len=$lt_cv_sys_max_cmd_len 18399 18400 # Does compiler simultaneously support -c and -o options? 18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18402 18403 # Must we lock files when doing compilation? 18404 need_locks=$lt_need_locks 18405 18406 # Do we need the lib prefix for modules? 18407 need_lib_prefix=$need_lib_prefix 18408 18409 # Do we need a version for libraries? 18410 need_version=$need_version 18411 18412 # Whether dlopen is supported. 18413 dlopen_support=$enable_dlopen 18414 18415 # Whether dlopen of programs is supported. 18416 dlopen_self=$enable_dlopen_self 18417 18418 # Whether dlopen of statically linked programs is supported. 18419 dlopen_self_static=$enable_dlopen_self_static 18420 18421 # Compiler flag to prevent dynamic linking. 18422 link_static_flag=$lt_lt_prog_compiler_static_GCJ 18423 18424 # Compiler flag to turn off builtin functions. 18425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18426 18427 # Compiler flag to allow reflexive dlopens. 18428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18429 18430 # Compiler flag to generate shared objects directly from archives. 18431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18432 18433 # Compiler flag to generate thread-safe objects. 18434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18435 18436 # Library versioning type. 18437 version_type=$version_type 18438 18439 # Format of library name prefix. 18440 libname_spec=$lt_libname_spec 18441 18442 # List of archive names. First name is the real one, the rest are links. 18443 # The last name is the one that the linker finds with -lNAME. 18444 library_names_spec=$lt_library_names_spec 18445 18446 # The coded name of the library, if different from the real name. 18447 soname_spec=$lt_soname_spec 18448 18449 # Commands used to build and install an old-style archive. 18450 RANLIB=$lt_RANLIB 18451 old_archive_cmds=$lt_old_archive_cmds_GCJ 18452 old_postinstall_cmds=$lt_old_postinstall_cmds 18453 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18454 18455 # Create an old-style archive from a shared archive. 18456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18457 18458 # Create a temporary old-style archive to link instead of a shared archive. 18459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18460 18461 # Commands used to build and install a shared archive. 18462 archive_cmds=$lt_archive_cmds_GCJ 18463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18464 postinstall_cmds=$lt_postinstall_cmds 18465 postuninstall_cmds=$lt_postuninstall_cmds 18466 18467 # Commands used to build a loadable module (assumed same as above if empty) 18468 module_cmds=$lt_module_cmds_GCJ 18469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18470 18471 # Commands to strip libraries. 18472 old_striplib=$lt_old_striplib 18473 striplib=$lt_striplib 18474 18475 # Dependencies to place before the objects being linked to create a 18476 # shared library. 18477 predep_objects=$lt_predep_objects_GCJ 18478 18479 # Dependencies to place after the objects being linked to create a 18480 # shared library. 18481 postdep_objects=$lt_postdep_objects_GCJ 18482 18483 # Dependencies to place before the objects being linked to create a 18484 # shared library. 18485 predeps=$lt_predeps_GCJ 18486 18487 # Dependencies to place after the objects being linked to create a 18488 # shared library. 18489 postdeps=$lt_postdeps_GCJ 18490 18491 # The directories searched by this compiler when creating a shared 18492 # library 18493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 18494 18495 # The library search path used internally by the compiler when linking 18496 # a shared library. 18497 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18498 18499 # Method to check whether dependent libraries are shared objects. 18500 deplibs_check_method=$lt_deplibs_check_method 18501 18502 # Command to use when deplibs_check_method == file_magic. 18503 file_magic_cmd=$lt_file_magic_cmd 18504 18505 # Flag that allows shared libraries with undefined symbols to be built. 18506 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18507 18508 # Flag that forces no undefined symbols. 18509 no_undefined_flag=$lt_no_undefined_flag_GCJ 18510 18511 # Commands used to finish a libtool library installation in a directory. 18512 finish_cmds=$lt_finish_cmds 18513 18514 # Same as above, but a single script fragment to be evaled but not shown. 18515 finish_eval=$lt_finish_eval 18516 18517 # Take the output of nm and produce a listing of raw symbols and C names. 18518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18519 18520 # Transform the output of nm in a proper C declaration 18521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18522 18523 # Transform the output of nm in a C name address pair 18524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18525 18526 # This is the shared library runtime path variable. 18527 runpath_var=$runpath_var 18528 18529 # This is the shared library path variable. 18530 shlibpath_var=$shlibpath_var 18531 18532 # Is shlibpath searched before the hard-coded library search path? 18533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18534 18535 # How to hardcode a shared library path into an executable. 18536 hardcode_action=$hardcode_action_GCJ 18537 18538 # Whether we should hardcode library paths into libraries. 18539 hardcode_into_libs=$hardcode_into_libs 18540 18541 # Flag to hardcode \$libdir into a binary during linking. 18542 # This must work even if \$libdir does not exist. 18543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18544 18545 # If ld is used when linking, flag to hardcode \$libdir into 18546 # a binary during linking. This must work even if \$libdir does 18547 # not exist. 18548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18549 18550 # Whether we need a single -rpath flag with a separated argument. 18551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18552 18553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18554 # resulting binary. 18555 hardcode_direct=$hardcode_direct_GCJ 18556 18557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18558 # resulting binary. 18559 hardcode_minus_L=$hardcode_minus_L_GCJ 18560 18561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18562 # the resulting binary. 18563 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18564 18565 # Set to yes if building a shared library automatically hardcodes DIR into the library 18566 # and all subsequent libraries and executables linked against it. 18567 hardcode_automatic=$hardcode_automatic_GCJ 18568 18569 # Variables whose values should be saved in libtool wrapper scripts and 18570 # restored at relink time. 18571 variables_saved_for_relink="$variables_saved_for_relink" 18572 18573 # Whether libtool must link a program against all its dependency libraries. 18574 link_all_deplibs=$link_all_deplibs_GCJ 18575 18576 # Compile-time system search path for libraries 18577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18578 18579 # Run-time system search path for libraries 18580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18581 18582 # Fix the shell variable \$srcfile for the compiler. 18583 fix_srcfile_path=$lt_fix_srcfile_path 18584 18585 # Set to yes if exported symbols are required. 18586 always_export_symbols=$always_export_symbols_GCJ 18587 18588 # The commands to list exported symbols. 18589 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18590 18591 # The commands to extract the exported symbol list from a shared archive. 18592 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18593 18594 # Symbols that should not be listed in the preloaded symbols. 18595 exclude_expsyms=$lt_exclude_expsyms_GCJ 18596 18597 # Symbols that must always be exported. 18598 include_expsyms=$lt_include_expsyms_GCJ 18599 18600 # ### END LIBTOOL TAG CONFIG: $tagname 18601 18602 __EOF__ 18603 18604 18605 else 18606 # If there is no Makefile yet, we rely on a make rule to execute 18607 # `config.status --recheck' to rerun these tests and create the 18608 # libtool script then. 18609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18610 if test -f "$ltmain_in"; then 18611 test -f Makefile && make "$ltmain" 18612 fi 18613 fi 18614 18615 18616 ac_ext=c 18617 ac_cpp='$CPP $CPPFLAGS' 18618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18620 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18621 18622 CC="$lt_save_CC" 18623 18624 else 18625 tagname="" 18626 fi 18627 ;; 18628 18629 RC) 18630 18631 18632 # Source file extension for RC test sources. 18633 ac_ext=rc 18634 18635 # Object file extension for compiled RC test sources. 18636 objext=o 18637 objext_RC=$objext 18638 18639 # Code to be used in simple compile tests 18640 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18641 18642 # Code to be used in simple link tests 18643 lt_simple_link_test_code="$lt_simple_compile_test_code" 18644 18645 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18646 18647 # If no C compiler was specified, use CC. 18648 LTCC=${LTCC-"$CC"} 18649 18650 # If no C compiler flags were specified, use CFLAGS. 18651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18652 18653 # Allow CC to be a program name with arguments. 18654 compiler=$CC 18655 18656 18657 # save warnings/boilerplate of simple test code 18658 ac_outfile=conftest.$ac_objext 18659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18661 _lt_compiler_boilerplate=`cat conftest.err` 18662 $rm conftest* 18663 18664 ac_outfile=conftest.$ac_objext 18665 echo "$lt_simple_link_test_code" >conftest.$ac_ext 18666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18667 _lt_linker_boilerplate=`cat conftest.err` 18668 $rm -r conftest* 18669 18670 18671 # Allow CC to be a program name with arguments. 18672 lt_save_CC="$CC" 18673 CC=${RC-"windres"} 18674 compiler=$CC 18675 compiler_RC=$CC 18676 for cc_temp in $compiler""; do 18677 case $cc_temp in 18678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18680 \-*) ;; 18681 *) break;; 18682 esac 18683 done 18684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18685 18686 lt_cv_prog_compiler_c_o_RC=yes 18687 18688 # The else clause should only fire when bootstrapping the 18689 # libtool distribution, otherwise you forgot to ship ltmain.sh 18690 # with your package, and you will get complaints that there are 18691 # no rules to generate ltmain.sh. 18692 if test -f "$ltmain"; then 18693 # See if we are running on zsh, and set the options which allow our commands through 18694 # without removal of \ escapes. 18695 if test -n "${ZSH_VERSION+set}" ; then 18696 setopt NO_GLOB_SUBST 18697 fi 18698 # Now quote all the things that may contain metacharacters while being 18699 # careful not to overquote the AC_SUBSTed values. We take copies of the 18700 # variables and quote the copies for generation of the libtool script. 18701 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18702 SED SHELL STRIP \ 18703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18705 deplibs_check_method reload_flag reload_cmds need_locks \ 18706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18707 lt_cv_sys_global_symbol_to_c_name_address \ 18708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18709 old_postinstall_cmds old_postuninstall_cmds \ 18710 compiler_RC \ 18711 CC_RC \ 18712 LD_RC \ 18713 lt_prog_compiler_wl_RC \ 18714 lt_prog_compiler_pic_RC \ 18715 lt_prog_compiler_static_RC \ 18716 lt_prog_compiler_no_builtin_flag_RC \ 18717 export_dynamic_flag_spec_RC \ 18718 thread_safe_flag_spec_RC \ 18719 whole_archive_flag_spec_RC \ 18720 enable_shared_with_static_runtimes_RC \ 18721 old_archive_cmds_RC \ 18722 old_archive_from_new_cmds_RC \ 18723 predep_objects_RC \ 18724 postdep_objects_RC \ 18725 predeps_RC \ 18726 postdeps_RC \ 18727 compiler_lib_search_path_RC \ 18728 compiler_lib_search_dirs_RC \ 18729 archive_cmds_RC \ 18730 archive_expsym_cmds_RC \ 18731 postinstall_cmds_RC \ 18732 postuninstall_cmds_RC \ 18733 old_archive_from_expsyms_cmds_RC \ 18734 allow_undefined_flag_RC \ 18735 no_undefined_flag_RC \ 18736 export_symbols_cmds_RC \ 18737 hardcode_libdir_flag_spec_RC \ 18738 hardcode_libdir_flag_spec_ld_RC \ 18739 hardcode_libdir_separator_RC \ 18740 hardcode_automatic_RC \ 18741 module_cmds_RC \ 18742 module_expsym_cmds_RC \ 18743 lt_cv_prog_compiler_c_o_RC \ 18744 fix_srcfile_path_RC \ 18745 exclude_expsyms_RC \ 18746 include_expsyms_RC; do 18747 18748 case $var in 18749 old_archive_cmds_RC | \ 18750 old_archive_from_new_cmds_RC | \ 18751 archive_cmds_RC | \ 18752 archive_expsym_cmds_RC | \ 18753 module_cmds_RC | \ 18754 module_expsym_cmds_RC | \ 18755 old_archive_from_expsyms_cmds_RC | \ 18756 export_symbols_cmds_RC | \ 18757 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18758 postinstall_cmds | postuninstall_cmds | \ 18759 old_postinstall_cmds | old_postuninstall_cmds | \ 18760 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18761 # Double-quote double-evaled strings. 18762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18763 ;; 18764 *) 18765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18766 ;; 18767 esac 18768 done 18769 18770 case $lt_echo in 18771 *'\$0 --fallback-echo"') 18772 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18773 ;; 18774 esac 18775 18776 cfgfile="$ofile" 18777 18778 cat <<__EOF__ >> "$cfgfile" 18779 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 18780 18781 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18782 18783 # Shell to use when invoking shell scripts. 18784 SHELL=$lt_SHELL 18785 18786 # Whether or not to build shared libraries. 18787 build_libtool_libs=$enable_shared 18788 18789 # Whether or not to build static libraries. 18790 build_old_libs=$enable_static 18791 18792 # Whether or not to add -lc for building shared libraries. 18793 build_libtool_need_lc=$archive_cmds_need_lc_RC 18794 18795 # Whether or not to disallow shared libs when runtime libs are static 18796 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18797 18798 # Whether or not to optimize for fast installation. 18799 fast_install=$enable_fast_install 18800 18801 # The host system. 18802 host_alias=$host_alias 18803 host=$host 18804 host_os=$host_os 18805 18806 # The build system. 18807 build_alias=$build_alias 18808 build=$build 18809 build_os=$build_os 18810 18811 # An echo program that does not interpret backslashes. 18812 echo=$lt_echo 18813 18814 # The archiver. 18815 AR=$lt_AR 18816 AR_FLAGS=$lt_AR_FLAGS 18817 18818 # A C compiler. 18819 LTCC=$lt_LTCC 18820 18821 # LTCC compiler flags. 18822 LTCFLAGS=$lt_LTCFLAGS 18823 18824 # A language-specific compiler. 18825 CC=$lt_compiler_RC 18826 18827 # Is the compiler the GNU C compiler? 18828 with_gcc=$GCC_RC 18829 18830 # An ERE matcher. 18831 EGREP=$lt_EGREP 18832 18833 # The linker used to build libraries. 18834 LD=$lt_LD_RC 18835 18836 # Whether we need hard or soft links. 18837 LN_S=$lt_LN_S 18838 18839 # A BSD-compatible nm program. 18840 NM=$lt_NM 18841 18842 # A symbol stripping program 18843 STRIP=$lt_STRIP 18844 18845 # Used to examine libraries when file_magic_cmd begins "file" 18846 MAGIC_CMD=$MAGIC_CMD 18847 18848 # Used on cygwin: DLL creation program. 18849 DLLTOOL="$DLLTOOL" 18850 18851 # Used on cygwin: object dumper. 18852 OBJDUMP="$OBJDUMP" 18853 18854 # Used on cygwin: assembler. 18855 AS="$AS" 18856 18857 # The name of the directory that contains temporary libtool files. 18858 objdir=$objdir 18859 18860 # How to create reloadable object files. 18861 reload_flag=$lt_reload_flag 18862 reload_cmds=$lt_reload_cmds 18863 18864 # How to pass a linker flag through the compiler. 18865 wl=$lt_lt_prog_compiler_wl_RC 18866 18867 # Object file suffix (normally "o"). 18868 objext="$ac_objext" 18869 18870 # Old archive suffix (normally "a"). 18871 libext="$libext" 18872 18873 # Shared library suffix (normally ".so"). 18874 shrext_cmds='$shrext_cmds' 18875 18876 # Executable file suffix (normally ""). 18877 exeext="$exeext" 18878 18879 # Additional compiler flags for building library objects. 18880 pic_flag=$lt_lt_prog_compiler_pic_RC 18881 pic_mode=$pic_mode 18882 18883 # What is the maximum length of a command? 18884 max_cmd_len=$lt_cv_sys_max_cmd_len 18885 18886 # Does compiler simultaneously support -c and -o options? 18887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18888 18889 # Must we lock files when doing compilation? 18890 need_locks=$lt_need_locks 18891 18892 # Do we need the lib prefix for modules? 18893 need_lib_prefix=$need_lib_prefix 18894 18895 # Do we need a version for libraries? 18896 need_version=$need_version 18897 18898 # Whether dlopen is supported. 18899 dlopen_support=$enable_dlopen 18900 18901 # Whether dlopen of programs is supported. 18902 dlopen_self=$enable_dlopen_self 18903 18904 # Whether dlopen of statically linked programs is supported. 18905 dlopen_self_static=$enable_dlopen_self_static 18906 18907 # Compiler flag to prevent dynamic linking. 18908 link_static_flag=$lt_lt_prog_compiler_static_RC 18909 18910 # Compiler flag to turn off builtin functions. 18911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18912 18913 # Compiler flag to allow reflexive dlopens. 18914 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18915 18916 # Compiler flag to generate shared objects directly from archives. 18917 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18918 18919 # Compiler flag to generate thread-safe objects. 18920 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18921 18922 # Library versioning type. 18923 version_type=$version_type 18924 18925 # Format of library name prefix. 18926 libname_spec=$lt_libname_spec 18927 18928 # List of archive names. First name is the real one, the rest are links. 18929 # The last name is the one that the linker finds with -lNAME. 18930 library_names_spec=$lt_library_names_spec 18931 18932 # The coded name of the library, if different from the real name. 18933 soname_spec=$lt_soname_spec 18934 18935 # Commands used to build and install an old-style archive. 18936 RANLIB=$lt_RANLIB 18937 old_archive_cmds=$lt_old_archive_cmds_RC 18938 old_postinstall_cmds=$lt_old_postinstall_cmds 18939 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18940 18941 # Create an old-style archive from a shared archive. 18942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18943 18944 # Create a temporary old-style archive to link instead of a shared archive. 18945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18946 18947 # Commands used to build and install a shared archive. 18948 archive_cmds=$lt_archive_cmds_RC 18949 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18950 postinstall_cmds=$lt_postinstall_cmds 18951 postuninstall_cmds=$lt_postuninstall_cmds 18952 18953 # Commands used to build a loadable module (assumed same as above if empty) 18954 module_cmds=$lt_module_cmds_RC 18955 module_expsym_cmds=$lt_module_expsym_cmds_RC 18956 18957 # Commands to strip libraries. 18958 old_striplib=$lt_old_striplib 18959 striplib=$lt_striplib 18960 18961 # Dependencies to place before the objects being linked to create a 18962 # shared library. 18963 predep_objects=$lt_predep_objects_RC 18964 18965 # Dependencies to place after the objects being linked to create a 18966 # shared library. 18967 postdep_objects=$lt_postdep_objects_RC 18968 18969 # Dependencies to place before the objects being linked to create a 18970 # shared library. 18971 predeps=$lt_predeps_RC 18972 18973 # Dependencies to place after the objects being linked to create a 18974 # shared library. 18975 postdeps=$lt_postdeps_RC 18976 18977 # The directories searched by this compiler when creating a shared 18978 # library 18979 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 18980 18981 # The library search path used internally by the compiler when linking 18982 # a shared library. 18983 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18984 18985 # Method to check whether dependent libraries are shared objects. 18986 deplibs_check_method=$lt_deplibs_check_method 18987 18988 # Command to use when deplibs_check_method == file_magic. 18989 file_magic_cmd=$lt_file_magic_cmd 18990 18991 # Flag that allows shared libraries with undefined symbols to be built. 18992 allow_undefined_flag=$lt_allow_undefined_flag_RC 18993 18994 # Flag that forces no undefined symbols. 18995 no_undefined_flag=$lt_no_undefined_flag_RC 18996 18997 # Commands used to finish a libtool library installation in a directory. 18998 finish_cmds=$lt_finish_cmds 18999 19000 # Same as above, but a single script fragment to be evaled but not shown. 19001 finish_eval=$lt_finish_eval 19002 19003 # Take the output of nm and produce a listing of raw symbols and C names. 19004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19005 19006 # Transform the output of nm in a proper C declaration 19007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19008 19009 # Transform the output of nm in a C name address pair 19010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19011 19012 # This is the shared library runtime path variable. 19013 runpath_var=$runpath_var 19014 19015 # This is the shared library path variable. 19016 shlibpath_var=$shlibpath_var 19017 19018 # Is shlibpath searched before the hard-coded library search path? 19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19020 19021 # How to hardcode a shared library path into an executable. 19022 hardcode_action=$hardcode_action_RC 19023 19024 # Whether we should hardcode library paths into libraries. 19025 hardcode_into_libs=$hardcode_into_libs 19026 19027 # Flag to hardcode \$libdir into a binary during linking. 19028 # This must work even if \$libdir does not exist. 19029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19030 19031 # If ld is used when linking, flag to hardcode \$libdir into 19032 # a binary during linking. This must work even if \$libdir does 19033 # not exist. 19034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19035 19036 # Whether we need a single -rpath flag with a separated argument. 19037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19038 19039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19040 # resulting binary. 19041 hardcode_direct=$hardcode_direct_RC 19042 19043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19044 # resulting binary. 19045 hardcode_minus_L=$hardcode_minus_L_RC 19046 19047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19048 # the resulting binary. 19049 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19050 19051 # Set to yes if building a shared library automatically hardcodes DIR into the library 19052 # and all subsequent libraries and executables linked against it. 19053 hardcode_automatic=$hardcode_automatic_RC 19054 19055 # Variables whose values should be saved in libtool wrapper scripts and 19056 # restored at relink time. 19057 variables_saved_for_relink="$variables_saved_for_relink" 19058 19059 # Whether libtool must link a program against all its dependency libraries. 19060 link_all_deplibs=$link_all_deplibs_RC 19061 19062 # Compile-time system search path for libraries 19063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19064 19065 # Run-time system search path for libraries 19066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19067 19068 # Fix the shell variable \$srcfile for the compiler. 19069 fix_srcfile_path=$lt_fix_srcfile_path 19070 19071 # Set to yes if exported symbols are required. 19072 always_export_symbols=$always_export_symbols_RC 19073 19074 # The commands to list exported symbols. 19075 export_symbols_cmds=$lt_export_symbols_cmds_RC 19076 19077 # The commands to extract the exported symbol list from a shared archive. 19078 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19079 19080 # Symbols that should not be listed in the preloaded symbols. 19081 exclude_expsyms=$lt_exclude_expsyms_RC 19082 19083 # Symbols that must always be exported. 19084 include_expsyms=$lt_include_expsyms_RC 19085 19086 # ### END LIBTOOL TAG CONFIG: $tagname 19087 19088 __EOF__ 19089 19090 19091 else 19092 # If there is no Makefile yet, we rely on a make rule to execute 19093 # `config.status --recheck' to rerun these tests and create the 19094 # libtool script then. 19095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19096 if test -f "$ltmain_in"; then 19097 test -f Makefile && make "$ltmain" 19098 fi 19099 fi 19100 19101 19102 ac_ext=c 19103 ac_cpp='$CPP $CPPFLAGS' 19104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19106 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19107 19108 CC="$lt_save_CC" 19109 19110 ;; 19111 19112 *) 19113 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19114 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19115 { (exit 1); exit 1; }; } 19116 ;; 19117 esac 19118 19119 # Append the new tag name to the list of available tags. 19120 if test -n "$tagname" ; then 19121 available_tags="$available_tags $tagname" 19122 fi 19123 fi 19124 done 19125 IFS="$lt_save_ifs" 19126 19127 # Now substitute the updated list of available tags. 19128 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19129 mv "${ofile}T" "$ofile" 19130 chmod +x "$ofile" 19131 else 19132 rm -f "${ofile}T" 19133 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19134 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19135 { (exit 1); exit 1; }; } 19136 fi 19137 fi 19138 19139 19140 19141 # This can be used to rebuild libtool when needed 19142 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19143 19144 # Always use our own libtool. 19145 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19146 19147 # Prevent multiple expansion 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 # Find a good install program. We prefer a C program (faster), 19169 # so one script is as good as another. But avoid the broken or 19170 # incompatible versions: 19171 # SysV /etc/install, /usr/sbin/install 19172 # SunOS /usr/etc/install 19173 # IRIX /sbin/install 19174 # AIX /bin/install 19175 # AmigaOS /C/install, which installs bootblocks on floppy discs 19176 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19177 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 19178 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19179 # OS/2's system install, which has a completely different semantic 19180 # ./install, which can be erroneously created by make from ./install.sh. 19181 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19182 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 19183 if test -z "$INSTALL"; then 19184 if test "${ac_cv_path_install+set}" = set; then 19185 echo $ECHO_N "(cached) $ECHO_C" >&6 19186 else 19187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19188 for as_dir in $PATH 19189 do 19190 IFS=$as_save_IFS 19191 test -z "$as_dir" && as_dir=. 19192 # Account for people who put trailing slashes in PATH elements. 19193 case $as_dir/ in 19194 ./ | .// | /cC/* | \ 19195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19196 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19197 /usr/ucb/* ) ;; 19198 *) 19199 # OSF1 and SCO ODT 3.0 have their own names for install. 19200 # Don't use installbsd from OSF since it installs stuff as root 19201 # by default. 19202 for ac_prog in ginstall scoinst install; do 19203 for ac_exec_ext in '' $ac_executable_extensions; do 19204 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 19205 if test $ac_prog = install && 19206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19207 # AIX install. It has an incompatible calling convention. 19208 : 19209 elif test $ac_prog = install && 19210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19211 # program-specific install script used by HP pwplus--don't use. 19212 : 19213 else 19214 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19215 break 3 19216 fi 19217 fi 19218 done 19219 done 19220 ;; 19221 esac 19222 done 19223 IFS=$as_save_IFS 19224 19225 19226 fi 19227 if test "${ac_cv_path_install+set}" = set; then 19228 INSTALL=$ac_cv_path_install 19229 else 19230 # As a last resort, use the slow shell script. Don't cache a 19231 # value for INSTALL within a source directory, because that will 19232 # break other packages using the cache if that directory is 19233 # removed, or if the value is a relative name. 19234 INSTALL=$ac_install_sh 19235 fi 19236 fi 19237 { echo "$as_me:$LINENO: result: $INSTALL" >&5 19238 echo "${ECHO_T}$INSTALL" >&6; } 19239 19240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19241 # It thinks the first close brace ends the variable substitution. 19242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19243 19244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19245 19246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19247 19248 19249 19250 19251 19252 19253 19254 # Extract the first word of "ar", so it can be a program name with args. 19255 set dummy ar; ac_word=$2 19256 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19258 if test "${ac_cv_path_AR+set}" = set; then 19259 echo $ECHO_N "(cached) $ECHO_C" >&6 19260 else 19261 case $AR in 19262 [\\/]* | ?:[\\/]*) 19263 ac_cv_path_AR="$AR" # Let the user override the test with a path. 19264 ;; 19265 *) 19266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19267 for as_dir in $PATH 19268 do 19269 IFS=$as_save_IFS 19270 test -z "$as_dir" && as_dir=. 19271 for ac_exec_ext in '' $ac_executable_extensions; do 19272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19273 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 19274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19275 break 2 19276 fi 19277 done 19278 done 19279 IFS=$as_save_IFS 19280 19281 ;; 19282 esac 19283 fi 19284 AR=$ac_cv_path_AR 19285 if test -n "$AR"; then 19286 { echo "$as_me:$LINENO: result: $AR" >&5 19287 echo "${ECHO_T}$AR" >&6; } 19288 else 19289 { echo "$as_me:$LINENO: result: no" >&5 19290 echo "${ECHO_T}no" >&6; } 19291 fi 19292 19293 19294 ARFLAGS="cruv" 19295 19296 19297 19298 # Extract the first word of "tbl", so it can be a program name with args. 19299 set dummy tbl; ac_word=$2 19300 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19302 if test "${ac_cv_path_TBL+set}" = set; then 19303 echo $ECHO_N "(cached) $ECHO_C" >&6 19304 else 19305 case $TBL in 19306 [\\/]* | ?:[\\/]*) 19307 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 19308 ;; 19309 *) 19310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19311 for as_dir in $PATH 19312 do 19313 IFS=$as_save_IFS 19314 test -z "$as_dir" && as_dir=. 19315 for ac_exec_ext in '' $ac_executable_extensions; do 19316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19317 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 19318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19319 break 2 19320 fi 19321 done 19322 done 19323 IFS=$as_save_IFS 19324 19325 ;; 19326 esac 19327 fi 19328 TBL=$ac_cv_path_TBL 19329 if test -n "$TBL"; then 19330 { echo "$as_me:$LINENO: result: $TBL" >&5 19331 echo "${ECHO_T}$TBL" >&6; } 19332 else 19333 { echo "$as_me:$LINENO: result: no" >&5 19334 echo "${ECHO_T}no" >&6; } 19335 fi 19336 19337 19338 19339 19340 # Extract the first word of "nroff", so it can be a program name with args. 19341 set dummy nroff; ac_word=$2 19342 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19344 if test "${ac_cv_path_NROFF+set}" = set; then 19345 echo $ECHO_N "(cached) $ECHO_C" >&6 19346 else 19347 case $NROFF in 19348 [\\/]* | ?:[\\/]*) 19349 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 19350 ;; 19351 *) 19352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19353 for as_dir in $PATH 19354 do 19355 IFS=$as_save_IFS 19356 test -z "$as_dir" && as_dir=. 19357 for ac_exec_ext in '' $ac_executable_extensions; do 19358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19359 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 19360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19361 break 2 19362 fi 19363 done 19364 done 19365 IFS=$as_save_IFS 19366 19367 ;; 19368 esac 19369 fi 19370 NROFF=$ac_cv_path_NROFF 19371 if test -n "$NROFF"; then 19372 { echo "$as_me:$LINENO: result: $NROFF" >&5 19373 echo "${ECHO_T}$NROFF" >&6; } 19374 else 19375 { echo "$as_me:$LINENO: result: no" >&5 19376 echo "${ECHO_T}no" >&6; } 19377 fi 19378 19379 19380 19381 19382 # Extract the first word of "sed", so it can be a program name with args. 19383 set dummy sed; ac_word=$2 19384 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19386 if test "${ac_cv_path_SED+set}" = set; then 19387 echo $ECHO_N "(cached) $ECHO_C" >&6 19388 else 19389 case $SED in 19390 [\\/]* | ?:[\\/]*) 19391 ac_cv_path_SED="$SED" # Let the user override the test with a path. 19392 ;; 19393 *) 19394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19395 for as_dir in $PATH 19396 do 19397 IFS=$as_save_IFS 19398 test -z "$as_dir" && as_dir=. 19399 for ac_exec_ext in '' $ac_executable_extensions; do 19400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19401 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 19402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19403 break 2 19404 fi 19405 done 19406 done 19407 IFS=$as_save_IFS 19408 19409 ;; 19410 esac 19411 fi 19412 SED=$ac_cv_path_SED 19413 if test -n "$SED"; then 19414 { echo "$as_me:$LINENO: result: $SED" >&5 19415 echo "${ECHO_T}$SED" >&6; } 19416 else 19417 { echo "$as_me:$LINENO: result: no" >&5 19418 echo "${ECHO_T}no" >&6; } 19419 fi 19420 19421 19422 19423 19424 # Extract the first word of "tr", so it can be a program name with args. 19425 set dummy tr; ac_word=$2 19426 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19428 if test "${ac_cv_path_TR+set}" = set; then 19429 echo $ECHO_N "(cached) $ECHO_C" >&6 19430 else 19431 case $TR in 19432 [\\/]* | ?:[\\/]*) 19433 ac_cv_path_TR="$TR" # Let the user override the test with a path. 19434 ;; 19435 *) 19436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19437 for as_dir in $PATH 19438 do 19439 IFS=$as_save_IFS 19440 test -z "$as_dir" && as_dir=. 19441 for ac_exec_ext in '' $ac_executable_extensions; do 19442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19443 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 19444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19445 break 2 19446 fi 19447 done 19448 done 19449 IFS=$as_save_IFS 19450 19451 ;; 19452 esac 19453 fi 19454 TR=$ac_cv_path_TR 19455 if test -n "$TR"; then 19456 { echo "$as_me:$LINENO: result: $TR" >&5 19457 echo "${ECHO_T}$TR" >&6; } 19458 else 19459 { echo "$as_me:$LINENO: result: no" >&5 19460 echo "${ECHO_T}no" >&6; } 19461 fi 19462 19463 19464 19465 19466 # The POSIX ln(1) program. Non-POSIX systems may substitute 19467 # "copy" or something. 19468 LN=ln 19469 19470 19471 case "$AR" in 19472 "") 19473 { { echo "$as_me:$LINENO: error: 19474 ar program not found. Please fix your PATH to include the directory in 19475 which ar resides, or set AR in the environment with the full path to ar. 19476 " >&5 19477 echo "$as_me: error: 19478 ar program not found. Please fix your PATH to include the directory in 19479 which ar resides, or set AR in the environment with the full path to ar. 19480 " >&2;} 19481 { (exit 1); exit 1; }; } 19482 19483 ;; 19484 esac 19485 19486 # 19487 # Etags. 19488 # 19489 for ac_prog in etags emacs-etags 19490 do 19491 # Extract the first word of "$ac_prog", so it can be a program name with args. 19492 set dummy $ac_prog; ac_word=$2 19493 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19495 if test "${ac_cv_path_ETAGS+set}" = set; then 19496 echo $ECHO_N "(cached) $ECHO_C" >&6 19497 else 19498 case $ETAGS in 19499 [\\/]* | ?:[\\/]*) 19500 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 19501 ;; 19502 *) 19503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19504 for as_dir in $PATH 19505 do 19506 IFS=$as_save_IFS 19507 test -z "$as_dir" && as_dir=. 19508 for ac_exec_ext in '' $ac_executable_extensions; do 19509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19510 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 19511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19512 break 2 19513 fi 19514 done 19515 done 19516 IFS=$as_save_IFS 19517 19518 ;; 19519 esac 19520 fi 19521 ETAGS=$ac_cv_path_ETAGS 19522 if test -n "$ETAGS"; then 19523 { echo "$as_me:$LINENO: result: $ETAGS" >&5 19524 echo "${ECHO_T}$ETAGS" >&6; } 19525 else 19526 { echo "$as_me:$LINENO: result: no" >&5 19527 echo "${ECHO_T}no" >&6; } 19528 fi 19529 19530 19531 test -n "$ETAGS" && break 19532 done 19533 19534 19535 # 19536 # Some systems, e.g. RH7, have the Exuberant Ctags etags instead of 19537 # GNU emacs etags, and it requires the -L flag. 19538 # 19539 if test "X$ETAGS" != "X"; then 19540 { echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5 19541 echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6; } 19542 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 19543 { echo "$as_me:$LINENO: result: yes" >&5 19544 echo "${ECHO_T}yes" >&6; } 19545 ETAGS="$ETAGS -L" 19546 else 19547 { echo "$as_me:$LINENO: result: no" >&5 19548 echo "${ECHO_T}no" >&6; } 19549 fi 19550 fi 19551 19552 19553 # 19554 # Perl is optional; it is used only by some of the system test scripts. 19555 # 19556 for ac_prog in perl5 perl 19557 do 19558 # Extract the first word of "$ac_prog", so it can be a program name with args. 19559 set dummy $ac_prog; ac_word=$2 19560 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19562 if test "${ac_cv_path_PERL+set}" = set; then 19563 echo $ECHO_N "(cached) $ECHO_C" >&6 19564 else 19565 case $PERL in 19566 [\\/]* | ?:[\\/]*) 19567 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19568 ;; 19569 *) 19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19571 for as_dir in $PATH 19572 do 19573 IFS=$as_save_IFS 19574 test -z "$as_dir" && as_dir=. 19575 for ac_exec_ext in '' $ac_executable_extensions; do 19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19577 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19579 break 2 19580 fi 19581 done 19582 done 19583 IFS=$as_save_IFS 19584 19585 ;; 19586 esac 19587 fi 19588 PERL=$ac_cv_path_PERL 19589 if test -n "$PERL"; then 19590 { echo "$as_me:$LINENO: result: $PERL" >&5 19591 echo "${ECHO_T}$PERL" >&6; } 19592 else 19593 { echo "$as_me:$LINENO: result: no" >&5 19594 echo "${ECHO_T}no" >&6; } 19595 fi 19596 19597 19598 test -n "$PERL" && break 19599 done 19600 19601 19602 19603 # 19604 # isc/list.h and others clash with BIND 9 and system header files. 19605 # Install into non-shared directory. 19606 # 19607 case "$includedir" in 19608 '${prefix}/include') 19609 includedir='${prefix}/include/bind' 19610 ;; 19611 esac 19612 # 19613 # -lbind can clash with system version. Install into non-shared directory. 19614 # 19615 case "$libdir" in 19616 '${prefix}/lib') 19617 libdir='${prefix}/lib/bind' 19618 ;; 19619 esac 19620 19621 # 19622 # Make sure INSTALL uses an absolute path, else it will be wrong in all 19623 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by 19624 # configure based on the location of the file where it is substituted. 19625 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate 19626 # subdirectory of install-sh, This relative path will be wrong for all 19627 # directories more than one level down from install-sh. 19628 # 19629 case "$INSTALL" in 19630 /*) 19631 ;; 19632 *) 19633 # 19634 # Not all systems have dirname. 19635 # 19636 19637 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`" 19638 19639 19640 ac_prog="`echo $INSTALL | sed 's%.*/%%'`" 19641 test "$ac_dir" = "$ac_prog" && ac_dir=. 19642 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`" 19643 INSTALL="$ac_dir/$ac_prog" 19644 ;; 19645 esac 19646 19647 # 19648 # On these hosts, we really want to use cc, not gcc, even if it is 19649 # found. The gcc that these systems have will not correctly handle 19650 # pthreads. 19651 # 19652 # However, if the user sets $CC to be something, let that override 19653 # our change. 19654 # 19655 if test "X$CC" = "X" ; then 19656 case "$host" in 19657 *-dec-osf*) 19658 CC="cc" 19659 ;; 19660 *-solaris*) 19661 # Use Sun's cc if it is available, but watch 19662 # out for /usr/ucb/cc; it will never be the right 19663 # compiler to use. 19664 # 19665 # If setting CC here fails, the AC_PROG_CC done 19666 # below might still find gcc. 19667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 19668 for ac_dir in $PATH; do 19669 test -z "$ac_dir" && ac_dir=. 19670 case "$ac_dir" in 19671 /usr/ucb) 19672 # exclude 19673 ;; 19674 *) 19675 if test -f "$ac_dir/cc"; then 19676 CC="$ac_dir/cc" 19677 break 19678 fi 19679 ;; 19680 esac 19681 done 19682 IFS="$ac_save_ifs" 19683 ;; 19684 *-hp-hpux*) 19685 CC="cc" 19686 ;; 19687 mips-sgi-irix*) 19688 CC="cc" 19689 ;; 19690 esac 19691 fi 19692 19693 19694 ac_ext=c 19695 ac_cpp='$CPP $CPPFLAGS' 19696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19698 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19699 if test -n "$ac_tool_prefix"; then 19700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19701 set dummy ${ac_tool_prefix}gcc; ac_word=$2 19702 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19704 if test "${ac_cv_prog_CC+set}" = set; then 19705 echo $ECHO_N "(cached) $ECHO_C" >&6 19706 else 19707 if test -n "$CC"; then 19708 ac_cv_prog_CC="$CC" # Let the user override the test. 19709 else 19710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19711 for as_dir in $PATH 19712 do 19713 IFS=$as_save_IFS 19714 test -z "$as_dir" && as_dir=. 19715 for ac_exec_ext in '' $ac_executable_extensions; do 19716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19717 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19719 break 2 19720 fi 19721 done 19722 done 19723 IFS=$as_save_IFS 19724 19725 fi 19726 fi 19727 CC=$ac_cv_prog_CC 19728 if test -n "$CC"; then 19729 { echo "$as_me:$LINENO: result: $CC" >&5 19730 echo "${ECHO_T}$CC" >&6; } 19731 else 19732 { echo "$as_me:$LINENO: result: no" >&5 19733 echo "${ECHO_T}no" >&6; } 19734 fi 19735 19736 19737 fi 19738 if test -z "$ac_cv_prog_CC"; then 19739 ac_ct_CC=$CC 19740 # Extract the first word of "gcc", so it can be a program name with args. 19741 set dummy gcc; ac_word=$2 19742 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19745 echo $ECHO_N "(cached) $ECHO_C" >&6 19746 else 19747 if test -n "$ac_ct_CC"; then 19748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19749 else 19750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19751 for as_dir in $PATH 19752 do 19753 IFS=$as_save_IFS 19754 test -z "$as_dir" && as_dir=. 19755 for ac_exec_ext in '' $ac_executable_extensions; do 19756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19757 ac_cv_prog_ac_ct_CC="gcc" 19758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19759 break 2 19760 fi 19761 done 19762 done 19763 IFS=$as_save_IFS 19764 19765 fi 19766 fi 19767 ac_ct_CC=$ac_cv_prog_ac_ct_CC 19768 if test -n "$ac_ct_CC"; then 19769 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19770 echo "${ECHO_T}$ac_ct_CC" >&6; } 19771 else 19772 { echo "$as_me:$LINENO: result: no" >&5 19773 echo "${ECHO_T}no" >&6; } 19774 fi 19775 19776 if test "x$ac_ct_CC" = x; then 19777 CC="" 19778 else 19779 case $cross_compiling:$ac_tool_warned in 19780 yes:) 19781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19782 whose name does not start with the host triplet. If you think this 19783 configuration is useful to you, please write to autoconf@gnu.org." >&5 19784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19785 whose name does not start with the host triplet. If you think this 19786 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19787 ac_tool_warned=yes ;; 19788 esac 19789 CC=$ac_ct_CC 19790 fi 19791 else 19792 CC="$ac_cv_prog_CC" 19793 fi 19794 19795 if test -z "$CC"; then 19796 if test -n "$ac_tool_prefix"; then 19797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19798 set dummy ${ac_tool_prefix}cc; ac_word=$2 19799 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19801 if test "${ac_cv_prog_CC+set}" = set; then 19802 echo $ECHO_N "(cached) $ECHO_C" >&6 19803 else 19804 if test -n "$CC"; then 19805 ac_cv_prog_CC="$CC" # Let the user override the test. 19806 else 19807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19808 for as_dir in $PATH 19809 do 19810 IFS=$as_save_IFS 19811 test -z "$as_dir" && as_dir=. 19812 for ac_exec_ext in '' $ac_executable_extensions; do 19813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19814 ac_cv_prog_CC="${ac_tool_prefix}cc" 19815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19816 break 2 19817 fi 19818 done 19819 done 19820 IFS=$as_save_IFS 19821 19822 fi 19823 fi 19824 CC=$ac_cv_prog_CC 19825 if test -n "$CC"; then 19826 { echo "$as_me:$LINENO: result: $CC" >&5 19827 echo "${ECHO_T}$CC" >&6; } 19828 else 19829 { echo "$as_me:$LINENO: result: no" >&5 19830 echo "${ECHO_T}no" >&6; } 19831 fi 19832 19833 19834 fi 19835 fi 19836 if test -z "$CC"; then 19837 # Extract the first word of "cc", so it can be a program name with args. 19838 set dummy cc; ac_word=$2 19839 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19841 if test "${ac_cv_prog_CC+set}" = set; then 19842 echo $ECHO_N "(cached) $ECHO_C" >&6 19843 else 19844 if test -n "$CC"; then 19845 ac_cv_prog_CC="$CC" # Let the user override the test. 19846 else 19847 ac_prog_rejected=no 19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19849 for as_dir in $PATH 19850 do 19851 IFS=$as_save_IFS 19852 test -z "$as_dir" && as_dir=. 19853 for ac_exec_ext in '' $ac_executable_extensions; do 19854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19855 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19856 ac_prog_rejected=yes 19857 continue 19858 fi 19859 ac_cv_prog_CC="cc" 19860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19861 break 2 19862 fi 19863 done 19864 done 19865 IFS=$as_save_IFS 19866 19867 if test $ac_prog_rejected = yes; then 19868 # We found a bogon in the path, so make sure we never use it. 19869 set dummy $ac_cv_prog_CC 19870 shift 19871 if test $# != 0; then 19872 # We chose a different compiler from the bogus one. 19873 # However, it has the same basename, so the bogon will be chosen 19874 # first if we set CC to just the basename; use the full file name. 19875 shift 19876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19877 fi 19878 fi 19879 fi 19880 fi 19881 CC=$ac_cv_prog_CC 19882 if test -n "$CC"; then 19883 { echo "$as_me:$LINENO: result: $CC" >&5 19884 echo "${ECHO_T}$CC" >&6; } 19885 else 19886 { echo "$as_me:$LINENO: result: no" >&5 19887 echo "${ECHO_T}no" >&6; } 19888 fi 19889 19890 19891 fi 19892 if test -z "$CC"; then 19893 if test -n "$ac_tool_prefix"; then 19894 for ac_prog in cl.exe 19895 do 19896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19898 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19900 if test "${ac_cv_prog_CC+set}" = set; then 19901 echo $ECHO_N "(cached) $ECHO_C" >&6 19902 else 19903 if test -n "$CC"; then 19904 ac_cv_prog_CC="$CC" # Let the user override the test. 19905 else 19906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19907 for as_dir in $PATH 19908 do 19909 IFS=$as_save_IFS 19910 test -z "$as_dir" && as_dir=. 19911 for ac_exec_ext in '' $ac_executable_extensions; do 19912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19915 break 2 19916 fi 19917 done 19918 done 19919 IFS=$as_save_IFS 19920 19921 fi 19922 fi 19923 CC=$ac_cv_prog_CC 19924 if test -n "$CC"; then 19925 { echo "$as_me:$LINENO: result: $CC" >&5 19926 echo "${ECHO_T}$CC" >&6; } 19927 else 19928 { echo "$as_me:$LINENO: result: no" >&5 19929 echo "${ECHO_T}no" >&6; } 19930 fi 19931 19932 19933 test -n "$CC" && break 19934 done 19935 fi 19936 if test -z "$CC"; then 19937 ac_ct_CC=$CC 19938 for ac_prog in cl.exe 19939 do 19940 # Extract the first word of "$ac_prog", so it can be a program name with args. 19941 set dummy $ac_prog; ac_word=$2 19942 { echo "$as_me:$LINENO: checking for $ac_word" >&5 19943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19945 echo $ECHO_N "(cached) $ECHO_C" >&6 19946 else 19947 if test -n "$ac_ct_CC"; then 19948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19949 else 19950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19951 for as_dir in $PATH 19952 do 19953 IFS=$as_save_IFS 19954 test -z "$as_dir" && as_dir=. 19955 for ac_exec_ext in '' $ac_executable_extensions; do 19956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19957 ac_cv_prog_ac_ct_CC="$ac_prog" 19958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19959 break 2 19960 fi 19961 done 19962 done 19963 IFS=$as_save_IFS 19964 19965 fi 19966 fi 19967 ac_ct_CC=$ac_cv_prog_ac_ct_CC 19968 if test -n "$ac_ct_CC"; then 19969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19970 echo "${ECHO_T}$ac_ct_CC" >&6; } 19971 else 19972 { echo "$as_me:$LINENO: result: no" >&5 19973 echo "${ECHO_T}no" >&6; } 19974 fi 19975 19976 19977 test -n "$ac_ct_CC" && break 19978 done 19979 19980 if test "x$ac_ct_CC" = x; then 19981 CC="" 19982 else 19983 case $cross_compiling:$ac_tool_warned in 19984 yes:) 19985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19986 whose name does not start with the host triplet. If you think this 19987 configuration is useful to you, please write to autoconf@gnu.org." >&5 19988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19989 whose name does not start with the host triplet. If you think this 19990 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19991 ac_tool_warned=yes ;; 19992 esac 19993 CC=$ac_ct_CC 19994 fi 19995 fi 19996 19997 fi 19998 19999 20000 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20001 See \`config.log' for more details." >&5 20002 echo "$as_me: error: no acceptable C compiler found in \$PATH 20003 See \`config.log' for more details." >&2;} 20004 { (exit 1); exit 1; }; } 20005 20006 # Provide some information about the compiler. 20007 echo "$as_me:$LINENO: checking for C compiler version" >&5 20008 ac_compiler=`set X $ac_compile; echo $2` 20009 { (ac_try="$ac_compiler --version >&5" 20010 case "(($ac_try" in 20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20012 *) ac_try_echo=$ac_try;; 20013 esac 20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20015 (eval "$ac_compiler --version >&5") 2>&5 20016 ac_status=$? 20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20018 (exit $ac_status); } 20019 { (ac_try="$ac_compiler -v >&5" 20020 case "(($ac_try" in 20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20022 *) ac_try_echo=$ac_try;; 20023 esac 20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20025 (eval "$ac_compiler -v >&5") 2>&5 20026 ac_status=$? 20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20028 (exit $ac_status); } 20029 { (ac_try="$ac_compiler -V >&5" 20030 case "(($ac_try" in 20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20032 *) ac_try_echo=$ac_try;; 20033 esac 20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20035 (eval "$ac_compiler -V >&5") 2>&5 20036 ac_status=$? 20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20038 (exit $ac_status); } 20039 20040 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20041 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20042 if test "${ac_cv_c_compiler_gnu+set}" = set; then 20043 echo $ECHO_N "(cached) $ECHO_C" >&6 20044 else 20045 cat >conftest.$ac_ext <<_ACEOF 20046 /* confdefs.h. */ 20047 _ACEOF 20048 cat confdefs.h >>conftest.$ac_ext 20049 cat >>conftest.$ac_ext <<_ACEOF 20050 /* end confdefs.h. */ 20051 20052 int 20053 main () 20054 { 20055 #ifndef __GNUC__ 20056 choke me 20057 #endif 20058 20059 ; 20060 return 0; 20061 } 20062 _ACEOF 20063 rm -f conftest.$ac_objext 20064 if { (ac_try="$ac_compile" 20065 case "(($ac_try" in 20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20067 *) ac_try_echo=$ac_try;; 20068 esac 20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20070 (eval "$ac_compile") 2>conftest.er1 20071 ac_status=$? 20072 grep -v '^ *+' conftest.er1 >conftest.err 20073 rm -f conftest.er1 20074 cat conftest.err >&5 20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20076 (exit $ac_status); } && { 20077 test -z "$ac_c_werror_flag" || 20078 test ! -s conftest.err 20079 } && test -s conftest.$ac_objext; then 20080 ac_compiler_gnu=yes 20081 else 20082 echo "$as_me: failed program was:" >&5 20083 sed 's/^/| /' conftest.$ac_ext >&5 20084 20085 ac_compiler_gnu=no 20086 fi 20087 20088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20089 ac_cv_c_compiler_gnu=$ac_compiler_gnu 20090 20091 fi 20092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20094 GCC=`test $ac_compiler_gnu = yes && echo yes` 20095 ac_test_CFLAGS=${CFLAGS+set} 20096 ac_save_CFLAGS=$CFLAGS 20097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20099 if test "${ac_cv_prog_cc_g+set}" = set; then 20100 echo $ECHO_N "(cached) $ECHO_C" >&6 20101 else 20102 ac_save_c_werror_flag=$ac_c_werror_flag 20103 ac_c_werror_flag=yes 20104 ac_cv_prog_cc_g=no 20105 CFLAGS="-g" 20106 cat >conftest.$ac_ext <<_ACEOF 20107 /* confdefs.h. */ 20108 _ACEOF 20109 cat confdefs.h >>conftest.$ac_ext 20110 cat >>conftest.$ac_ext <<_ACEOF 20111 /* end confdefs.h. */ 20112 20113 int 20114 main () 20115 { 20116 20117 ; 20118 return 0; 20119 } 20120 _ACEOF 20121 rm -f conftest.$ac_objext 20122 if { (ac_try="$ac_compile" 20123 case "(($ac_try" in 20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20125 *) ac_try_echo=$ac_try;; 20126 esac 20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20128 (eval "$ac_compile") 2>conftest.er1 20129 ac_status=$? 20130 grep -v '^ *+' conftest.er1 >conftest.err 20131 rm -f conftest.er1 20132 cat conftest.err >&5 20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20134 (exit $ac_status); } && { 20135 test -z "$ac_c_werror_flag" || 20136 test ! -s conftest.err 20137 } && test -s conftest.$ac_objext; then 20138 ac_cv_prog_cc_g=yes 20139 else 20140 echo "$as_me: failed program was:" >&5 20141 sed 's/^/| /' conftest.$ac_ext >&5 20142 20143 CFLAGS="" 20144 cat >conftest.$ac_ext <<_ACEOF 20145 /* confdefs.h. */ 20146 _ACEOF 20147 cat confdefs.h >>conftest.$ac_ext 20148 cat >>conftest.$ac_ext <<_ACEOF 20149 /* end confdefs.h. */ 20150 20151 int 20152 main () 20153 { 20154 20155 ; 20156 return 0; 20157 } 20158 _ACEOF 20159 rm -f conftest.$ac_objext 20160 if { (ac_try="$ac_compile" 20161 case "(($ac_try" in 20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20163 *) ac_try_echo=$ac_try;; 20164 esac 20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20166 (eval "$ac_compile") 2>conftest.er1 20167 ac_status=$? 20168 grep -v '^ *+' conftest.er1 >conftest.err 20169 rm -f conftest.er1 20170 cat conftest.err >&5 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } && { 20173 test -z "$ac_c_werror_flag" || 20174 test ! -s conftest.err 20175 } && test -s conftest.$ac_objext; then 20176 : 20177 else 20178 echo "$as_me: failed program was:" >&5 20179 sed 's/^/| /' conftest.$ac_ext >&5 20180 20181 ac_c_werror_flag=$ac_save_c_werror_flag 20182 CFLAGS="-g" 20183 cat >conftest.$ac_ext <<_ACEOF 20184 /* confdefs.h. */ 20185 _ACEOF 20186 cat confdefs.h >>conftest.$ac_ext 20187 cat >>conftest.$ac_ext <<_ACEOF 20188 /* end confdefs.h. */ 20189 20190 int 20191 main () 20192 { 20193 20194 ; 20195 return 0; 20196 } 20197 _ACEOF 20198 rm -f conftest.$ac_objext 20199 if { (ac_try="$ac_compile" 20200 case "(($ac_try" in 20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20202 *) ac_try_echo=$ac_try;; 20203 esac 20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20205 (eval "$ac_compile") 2>conftest.er1 20206 ac_status=$? 20207 grep -v '^ *+' conftest.er1 >conftest.err 20208 rm -f conftest.er1 20209 cat conftest.err >&5 20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20211 (exit $ac_status); } && { 20212 test -z "$ac_c_werror_flag" || 20213 test ! -s conftest.err 20214 } && test -s conftest.$ac_objext; then 20215 ac_cv_prog_cc_g=yes 20216 else 20217 echo "$as_me: failed program was:" >&5 20218 sed 's/^/| /' conftest.$ac_ext >&5 20219 20220 20221 fi 20222 20223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20224 fi 20225 20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20227 fi 20228 20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20230 ac_c_werror_flag=$ac_save_c_werror_flag 20231 fi 20232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20234 if test "$ac_test_CFLAGS" = set; then 20235 CFLAGS=$ac_save_CFLAGS 20236 elif test $ac_cv_prog_cc_g = yes; then 20237 if test "$GCC" = yes; then 20238 CFLAGS="-g -O2" 20239 else 20240 CFLAGS="-g" 20241 fi 20242 else 20243 if test "$GCC" = yes; then 20244 CFLAGS="-O2" 20245 else 20246 CFLAGS= 20247 fi 20248 fi 20249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20251 if test "${ac_cv_prog_cc_c89+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253 else 20254 ac_cv_prog_cc_c89=no 20255 ac_save_CC=$CC 20256 cat >conftest.$ac_ext <<_ACEOF 20257 /* confdefs.h. */ 20258 _ACEOF 20259 cat confdefs.h >>conftest.$ac_ext 20260 cat >>conftest.$ac_ext <<_ACEOF 20261 /* end confdefs.h. */ 20262 #include <stdarg.h> 20263 #include <stdio.h> 20264 #include <sys/types.h> 20265 #include <sys/stat.h> 20266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20267 struct buf { int x; }; 20268 FILE * (*rcsopen) (struct buf *, struct stat *, int); 20269 static char *e (p, i) 20270 char **p; 20271 int i; 20272 { 20273 return p[i]; 20274 } 20275 static char *f (char * (*g) (char **, int), char **p, ...) 20276 { 20277 char *s; 20278 va_list v; 20279 va_start (v,p); 20280 s = g (p, va_arg (v,int)); 20281 va_end (v); 20282 return s; 20283 } 20284 20285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20286 function prototypes and stuff, but not '\xHH' hex character constants. 20287 These don't provoke an error unfortunately, instead are silently treated 20288 as 'x'. The following induces an error, until -std is added to get 20289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20290 array size at least. It's necessary to write '\x00'==0 to get something 20291 that's true only with -std. */ 20292 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20293 20294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20295 inside strings and character constants. */ 20296 #define FOO(x) 'x' 20297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20298 20299 int test (int i, double x); 20300 struct s1 {int (*f) (int a);}; 20301 struct s2 {int (*f) (double a);}; 20302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20303 int argc; 20304 char **argv; 20305 int 20306 main () 20307 { 20308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20309 ; 20310 return 0; 20311 } 20312 _ACEOF 20313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20315 do 20316 CC="$ac_save_CC $ac_arg" 20317 rm -f conftest.$ac_objext 20318 if { (ac_try="$ac_compile" 20319 case "(($ac_try" in 20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20321 *) ac_try_echo=$ac_try;; 20322 esac 20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20324 (eval "$ac_compile") 2>conftest.er1 20325 ac_status=$? 20326 grep -v '^ *+' conftest.er1 >conftest.err 20327 rm -f conftest.er1 20328 cat conftest.err >&5 20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20330 (exit $ac_status); } && { 20331 test -z "$ac_c_werror_flag" || 20332 test ! -s conftest.err 20333 } && test -s conftest.$ac_objext; then 20334 ac_cv_prog_cc_c89=$ac_arg 20335 else 20336 echo "$as_me: failed program was:" >&5 20337 sed 's/^/| /' conftest.$ac_ext >&5 20338 20339 20340 fi 20341 20342 rm -f core conftest.err conftest.$ac_objext 20343 test "x$ac_cv_prog_cc_c89" != "xno" && break 20344 done 20345 rm -f conftest.$ac_ext 20346 CC=$ac_save_CC 20347 20348 fi 20349 # AC_CACHE_VAL 20350 case "x$ac_cv_prog_cc_c89" in 20351 x) 20352 { echo "$as_me:$LINENO: result: none needed" >&5 20353 echo "${ECHO_T}none needed" >&6; } ;; 20354 xno) 20355 { echo "$as_me:$LINENO: result: unsupported" >&5 20356 echo "${ECHO_T}unsupported" >&6; } ;; 20357 *) 20358 CC="$CC $ac_cv_prog_cc_c89" 20359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20361 esac 20362 20363 20364 ac_ext=c 20365 ac_cpp='$CPP $CPPFLAGS' 20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20369 20370 20371 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20373 if test "${ac_cv_header_stdc+set}" = set; then 20374 echo $ECHO_N "(cached) $ECHO_C" >&6 20375 else 20376 cat >conftest.$ac_ext <<_ACEOF 20377 /* confdefs.h. */ 20378 _ACEOF 20379 cat confdefs.h >>conftest.$ac_ext 20380 cat >>conftest.$ac_ext <<_ACEOF 20381 /* end confdefs.h. */ 20382 #include <stdlib.h> 20383 #include <stdarg.h> 20384 #include <string.h> 20385 #include <float.h> 20386 20387 int 20388 main () 20389 { 20390 20391 ; 20392 return 0; 20393 } 20394 _ACEOF 20395 rm -f conftest.$ac_objext 20396 if { (ac_try="$ac_compile" 20397 case "(($ac_try" in 20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20399 *) ac_try_echo=$ac_try;; 20400 esac 20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20402 (eval "$ac_compile") 2>conftest.er1 20403 ac_status=$? 20404 grep -v '^ *+' conftest.er1 >conftest.err 20405 rm -f conftest.er1 20406 cat conftest.err >&5 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20408 (exit $ac_status); } && { 20409 test -z "$ac_c_werror_flag" || 20410 test ! -s conftest.err 20411 } && test -s conftest.$ac_objext; then 20412 ac_cv_header_stdc=yes 20413 else 20414 echo "$as_me: failed program was:" >&5 20415 sed 's/^/| /' conftest.$ac_ext >&5 20416 20417 ac_cv_header_stdc=no 20418 fi 20419 20420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20421 20422 if test $ac_cv_header_stdc = yes; then 20423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20424 cat >conftest.$ac_ext <<_ACEOF 20425 /* confdefs.h. */ 20426 _ACEOF 20427 cat confdefs.h >>conftest.$ac_ext 20428 cat >>conftest.$ac_ext <<_ACEOF 20429 /* end confdefs.h. */ 20430 #include <string.h> 20431 20432 _ACEOF 20433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20434 $EGREP "memchr" >/dev/null 2>&1; then 20435 : 20436 else 20437 ac_cv_header_stdc=no 20438 fi 20439 rm -f conftest* 20440 20441 fi 20442 20443 if test $ac_cv_header_stdc = yes; then 20444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20445 cat >conftest.$ac_ext <<_ACEOF 20446 /* confdefs.h. */ 20447 _ACEOF 20448 cat confdefs.h >>conftest.$ac_ext 20449 cat >>conftest.$ac_ext <<_ACEOF 20450 /* end confdefs.h. */ 20451 #include <stdlib.h> 20452 20453 _ACEOF 20454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20455 $EGREP "free" >/dev/null 2>&1; then 20456 : 20457 else 20458 ac_cv_header_stdc=no 20459 fi 20460 rm -f conftest* 20461 20462 fi 20463 20464 if test $ac_cv_header_stdc = yes; then 20465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20466 if test "$cross_compiling" = yes; then 20467 : 20468 else 20469 cat >conftest.$ac_ext <<_ACEOF 20470 /* confdefs.h. */ 20471 _ACEOF 20472 cat confdefs.h >>conftest.$ac_ext 20473 cat >>conftest.$ac_ext <<_ACEOF 20474 /* end confdefs.h. */ 20475 #include <ctype.h> 20476 #include <stdlib.h> 20477 #if ((' ' & 0x0FF) == 0x020) 20478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20480 #else 20481 # define ISLOWER(c) \ 20482 (('a' <= (c) && (c) <= 'i') \ 20483 || ('j' <= (c) && (c) <= 'r') \ 20484 || ('s' <= (c) && (c) <= 'z')) 20485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20486 #endif 20487 20488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20489 int 20490 main () 20491 { 20492 int i; 20493 for (i = 0; i < 256; i++) 20494 if (XOR (islower (i), ISLOWER (i)) 20495 || toupper (i) != TOUPPER (i)) 20496 return 2; 20497 return 0; 20498 } 20499 _ACEOF 20500 rm -f conftest$ac_exeext 20501 if { (ac_try="$ac_link" 20502 case "(($ac_try" in 20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20504 *) ac_try_echo=$ac_try;; 20505 esac 20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20507 (eval "$ac_link") 2>&5 20508 ac_status=$? 20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20511 { (case "(($ac_try" in 20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20513 *) ac_try_echo=$ac_try;; 20514 esac 20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20516 (eval "$ac_try") 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); }; }; then 20520 : 20521 else 20522 echo "$as_me: program exited with status $ac_status" >&5 20523 echo "$as_me: failed program was:" >&5 20524 sed 's/^/| /' conftest.$ac_ext >&5 20525 20526 ( exit $ac_status ) 20527 ac_cv_header_stdc=no 20528 fi 20529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20530 fi 20531 20532 20533 fi 20534 fi 20535 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20536 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20537 if test $ac_cv_header_stdc = yes; then 20538 20539 cat >>confdefs.h <<\_ACEOF 20540 #define STDC_HEADERS 1 20541 _ACEOF 20542 20543 fi 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 for ac_header in fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/timers.h stropts.h memory.h 20557 do 20558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20560 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20563 echo $ECHO_N "(cached) $ECHO_C" >&6 20564 fi 20565 ac_res=`eval echo '${'$as_ac_Header'}'` 20566 { echo "$as_me:$LINENO: result: $ac_res" >&5 20567 echo "${ECHO_T}$ac_res" >&6; } 20568 else 20569 # Is the header compilable? 20570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 20571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20572 cat >conftest.$ac_ext <<_ACEOF 20573 /* confdefs.h. */ 20574 _ACEOF 20575 cat confdefs.h >>conftest.$ac_ext 20576 cat >>conftest.$ac_ext <<_ACEOF 20577 /* end confdefs.h. */ 20578 $ac_includes_default 20579 #include <$ac_header> 20580 _ACEOF 20581 rm -f conftest.$ac_objext 20582 if { (ac_try="$ac_compile" 20583 case "(($ac_try" in 20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20585 *) ac_try_echo=$ac_try;; 20586 esac 20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20588 (eval "$ac_compile") 2>conftest.er1 20589 ac_status=$? 20590 grep -v '^ *+' conftest.er1 >conftest.err 20591 rm -f conftest.er1 20592 cat conftest.err >&5 20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20594 (exit $ac_status); } && { 20595 test -z "$ac_c_werror_flag" || 20596 test ! -s conftest.err 20597 } && test -s conftest.$ac_objext; then 20598 ac_header_compiler=yes 20599 else 20600 echo "$as_me: failed program was:" >&5 20601 sed 's/^/| /' conftest.$ac_ext >&5 20602 20603 ac_header_compiler=no 20604 fi 20605 20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20608 echo "${ECHO_T}$ac_header_compiler" >&6; } 20609 20610 # Is the header present? 20611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 20612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20613 cat >conftest.$ac_ext <<_ACEOF 20614 /* confdefs.h. */ 20615 _ACEOF 20616 cat confdefs.h >>conftest.$ac_ext 20617 cat >>conftest.$ac_ext <<_ACEOF 20618 /* end confdefs.h. */ 20619 #include <$ac_header> 20620 _ACEOF 20621 if { (ac_try="$ac_cpp conftest.$ac_ext" 20622 case "(($ac_try" in 20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20624 *) ac_try_echo=$ac_try;; 20625 esac 20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20628 ac_status=$? 20629 grep -v '^ *+' conftest.er1 >conftest.err 20630 rm -f conftest.er1 20631 cat conftest.err >&5 20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20633 (exit $ac_status); } >/dev/null && { 20634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20635 test ! -s conftest.err 20636 }; then 20637 ac_header_preproc=yes 20638 else 20639 echo "$as_me: failed program was:" >&5 20640 sed 's/^/| /' conftest.$ac_ext >&5 20641 20642 ac_header_preproc=no 20643 fi 20644 20645 rm -f conftest.err conftest.$ac_ext 20646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20647 echo "${ECHO_T}$ac_header_preproc" >&6; } 20648 20649 # So? What about this header? 20650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20651 yes:no: ) 20652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20656 ac_header_preproc=yes 20657 ;; 20658 no:yes:* ) 20659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20671 20672 ;; 20673 esac 20674 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20677 echo $ECHO_N "(cached) $ECHO_C" >&6 20678 else 20679 eval "$as_ac_Header=\$ac_header_preproc" 20680 fi 20681 ac_res=`eval echo '${'$as_ac_Header'}'` 20682 { echo "$as_me:$LINENO: result: $ac_res" >&5 20683 echo "${ECHO_T}$ac_res" >&6; } 20684 20685 fi 20686 if test `eval echo '${'$as_ac_Header'}'` = yes; then 20687 cat >>confdefs.h <<_ACEOF 20688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20689 _ACEOF 20690 20691 fi 20692 20693 done 20694 20695 20696 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20697 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20698 if test "${ac_cv_c_const+set}" = set; then 20699 echo $ECHO_N "(cached) $ECHO_C" >&6 20700 else 20701 cat >conftest.$ac_ext <<_ACEOF 20702 /* confdefs.h. */ 20703 _ACEOF 20704 cat confdefs.h >>conftest.$ac_ext 20705 cat >>conftest.$ac_ext <<_ACEOF 20706 /* end confdefs.h. */ 20707 20708 int 20709 main () 20710 { 20711 /* FIXME: Include the comments suggested by Paul. */ 20712 #ifndef __cplusplus 20713 /* Ultrix mips cc rejects this. */ 20714 typedef int charset[2]; 20715 const charset cs; 20716 /* SunOS 4.1.1 cc rejects this. */ 20717 char const *const *pcpcc; 20718 char **ppc; 20719 /* NEC SVR4.0.2 mips cc rejects this. */ 20720 struct point {int x, y;}; 20721 static struct point const zero = {0,0}; 20722 /* AIX XL C 1.02.0.0 rejects this. 20723 It does not let you subtract one const X* pointer from another in 20724 an arm of an if-expression whose if-part is not a constant 20725 expression */ 20726 const char *g = "string"; 20727 pcpcc = &g + (g ? g-g : 0); 20728 /* HPUX 7.0 cc rejects these. */ 20729 ++pcpcc; 20730 ppc = (char**) pcpcc; 20731 pcpcc = (char const *const *) ppc; 20732 { /* SCO 3.2v4 cc rejects this. */ 20733 char *t; 20734 char const *s = 0 ? (char *) 0 : (char const *) 0; 20735 20736 *t++ = 0; 20737 if (s) return 0; 20738 } 20739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20740 int x[] = {25, 17}; 20741 const int *foo = &x[0]; 20742 ++foo; 20743 } 20744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20745 typedef const int *iptr; 20746 iptr p = 0; 20747 ++p; 20748 } 20749 { /* AIX XL C 1.02.0.0 rejects this saying 20750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20751 struct s { int j; const int *ap[3]; }; 20752 struct s *b; b->j = 5; 20753 } 20754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20755 const int foo = 10; 20756 if (!foo) return 0; 20757 } 20758 return !cs[0] && !zero.x; 20759 #endif 20760 20761 ; 20762 return 0; 20763 } 20764 _ACEOF 20765 rm -f conftest.$ac_objext 20766 if { (ac_try="$ac_compile" 20767 case "(($ac_try" in 20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20769 *) ac_try_echo=$ac_try;; 20770 esac 20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20772 (eval "$ac_compile") 2>conftest.er1 20773 ac_status=$? 20774 grep -v '^ *+' conftest.er1 >conftest.err 20775 rm -f conftest.er1 20776 cat conftest.err >&5 20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20778 (exit $ac_status); } && { 20779 test -z "$ac_c_werror_flag" || 20780 test ! -s conftest.err 20781 } && test -s conftest.$ac_objext; then 20782 ac_cv_c_const=yes 20783 else 20784 echo "$as_me: failed program was:" >&5 20785 sed 's/^/| /' conftest.$ac_ext >&5 20786 20787 ac_cv_c_const=no 20788 fi 20789 20790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20791 fi 20792 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20793 echo "${ECHO_T}$ac_cv_c_const" >&6; } 20794 if test $ac_cv_c_const = no; then 20795 20796 cat >>confdefs.h <<\_ACEOF 20797 #define const 20798 _ACEOF 20799 20800 fi 20801 20802 { echo "$as_me:$LINENO: checking for inline" >&5 20803 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 20804 if test "${ac_cv_c_inline+set}" = set; then 20805 echo $ECHO_N "(cached) $ECHO_C" >&6 20806 else 20807 ac_cv_c_inline=no 20808 for ac_kw in inline __inline__ __inline; do 20809 cat >conftest.$ac_ext <<_ACEOF 20810 /* confdefs.h. */ 20811 _ACEOF 20812 cat confdefs.h >>conftest.$ac_ext 20813 cat >>conftest.$ac_ext <<_ACEOF 20814 /* end confdefs.h. */ 20815 #ifndef __cplusplus 20816 typedef int foo_t; 20817 static $ac_kw foo_t static_foo () {return 0; } 20818 $ac_kw foo_t foo () {return 0; } 20819 #endif 20820 20821 _ACEOF 20822 rm -f conftest.$ac_objext 20823 if { (ac_try="$ac_compile" 20824 case "(($ac_try" in 20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20826 *) ac_try_echo=$ac_try;; 20827 esac 20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20829 (eval "$ac_compile") 2>conftest.er1 20830 ac_status=$? 20831 grep -v '^ *+' conftest.er1 >conftest.err 20832 rm -f conftest.er1 20833 cat conftest.err >&5 20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20835 (exit $ac_status); } && { 20836 test -z "$ac_c_werror_flag" || 20837 test ! -s conftest.err 20838 } && test -s conftest.$ac_objext; then 20839 ac_cv_c_inline=$ac_kw 20840 else 20841 echo "$as_me: failed program was:" >&5 20842 sed 's/^/| /' conftest.$ac_ext >&5 20843 20844 20845 fi 20846 20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20848 test "$ac_cv_c_inline" != no && break 20849 done 20850 20851 fi 20852 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 20853 echo "${ECHO_T}$ac_cv_c_inline" >&6; } 20854 20855 20856 case $ac_cv_c_inline in 20857 inline | yes) ;; 20858 *) 20859 case $ac_cv_c_inline in 20860 no) ac_val=;; 20861 *) ac_val=$ac_cv_c_inline;; 20862 esac 20863 cat >>confdefs.h <<_ACEOF 20864 #ifndef __cplusplus 20865 #define inline $ac_val 20866 #endif 20867 _ACEOF 20868 ;; 20869 esac 20870 20871 { echo "$as_me:$LINENO: checking for size_t" >&5 20872 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 20873 if test "${ac_cv_type_size_t+set}" = set; then 20874 echo $ECHO_N "(cached) $ECHO_C" >&6 20875 else 20876 cat >conftest.$ac_ext <<_ACEOF 20877 /* confdefs.h. */ 20878 _ACEOF 20879 cat confdefs.h >>conftest.$ac_ext 20880 cat >>conftest.$ac_ext <<_ACEOF 20881 /* end confdefs.h. */ 20882 $ac_includes_default 20883 typedef size_t ac__type_new_; 20884 int 20885 main () 20886 { 20887 if ((ac__type_new_ *) 0) 20888 return 0; 20889 if (sizeof (ac__type_new_)) 20890 return 0; 20891 ; 20892 return 0; 20893 } 20894 _ACEOF 20895 rm -f conftest.$ac_objext 20896 if { (ac_try="$ac_compile" 20897 case "(($ac_try" in 20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20899 *) ac_try_echo=$ac_try;; 20900 esac 20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20902 (eval "$ac_compile") 2>conftest.er1 20903 ac_status=$? 20904 grep -v '^ *+' conftest.er1 >conftest.err 20905 rm -f conftest.er1 20906 cat conftest.err >&5 20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); } && { 20909 test -z "$ac_c_werror_flag" || 20910 test ! -s conftest.err 20911 } && test -s conftest.$ac_objext; then 20912 ac_cv_type_size_t=yes 20913 else 20914 echo "$as_me: failed program was:" >&5 20915 sed 's/^/| /' conftest.$ac_ext >&5 20916 20917 ac_cv_type_size_t=no 20918 fi 20919 20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20921 fi 20922 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20923 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 20924 if test $ac_cv_type_size_t = yes; then 20925 : 20926 else 20927 20928 cat >>confdefs.h <<_ACEOF 20929 #define size_t unsigned int 20930 _ACEOF 20931 20932 fi 20933 20934 { echo "$as_me:$LINENO: checking for ssize_t" >&5 20935 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 20936 if test "${ac_cv_type_ssize_t+set}" = set; then 20937 echo $ECHO_N "(cached) $ECHO_C" >&6 20938 else 20939 cat >conftest.$ac_ext <<_ACEOF 20940 /* confdefs.h. */ 20941 _ACEOF 20942 cat confdefs.h >>conftest.$ac_ext 20943 cat >>conftest.$ac_ext <<_ACEOF 20944 /* end confdefs.h. */ 20945 $ac_includes_default 20946 typedef ssize_t ac__type_new_; 20947 int 20948 main () 20949 { 20950 if ((ac__type_new_ *) 0) 20951 return 0; 20952 if (sizeof (ac__type_new_)) 20953 return 0; 20954 ; 20955 return 0; 20956 } 20957 _ACEOF 20958 rm -f conftest.$ac_objext 20959 if { (ac_try="$ac_compile" 20960 case "(($ac_try" in 20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20962 *) ac_try_echo=$ac_try;; 20963 esac 20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20965 (eval "$ac_compile") 2>conftest.er1 20966 ac_status=$? 20967 grep -v '^ *+' conftest.er1 >conftest.err 20968 rm -f conftest.er1 20969 cat conftest.err >&5 20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20971 (exit $ac_status); } && { 20972 test -z "$ac_c_werror_flag" || 20973 test ! -s conftest.err 20974 } && test -s conftest.$ac_objext; then 20975 ac_cv_type_ssize_t=yes 20976 else 20977 echo "$as_me: failed program was:" >&5 20978 sed 's/^/| /' conftest.$ac_ext >&5 20979 20980 ac_cv_type_ssize_t=no 20981 fi 20982 20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20984 fi 20985 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 20986 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 20987 if test $ac_cv_type_ssize_t = yes; then 20988 : 20989 else 20990 20991 cat >>confdefs.h <<_ACEOF 20992 #define ssize_t signed 20993 _ACEOF 20994 20995 fi 20996 20997 { echo "$as_me:$LINENO: checking for uintptr_t" >&5 20998 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } 20999 if test "${ac_cv_type_uintptr_t+set}" = set; then 21000 echo $ECHO_N "(cached) $ECHO_C" >&6 21001 else 21002 cat >conftest.$ac_ext <<_ACEOF 21003 /* confdefs.h. */ 21004 _ACEOF 21005 cat confdefs.h >>conftest.$ac_ext 21006 cat >>conftest.$ac_ext <<_ACEOF 21007 /* end confdefs.h. */ 21008 $ac_includes_default 21009 typedef uintptr_t ac__type_new_; 21010 int 21011 main () 21012 { 21013 if ((ac__type_new_ *) 0) 21014 return 0; 21015 if (sizeof (ac__type_new_)) 21016 return 0; 21017 ; 21018 return 0; 21019 } 21020 _ACEOF 21021 rm -f conftest.$ac_objext 21022 if { (ac_try="$ac_compile" 21023 case "(($ac_try" in 21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21025 *) ac_try_echo=$ac_try;; 21026 esac 21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21028 (eval "$ac_compile") 2>conftest.er1 21029 ac_status=$? 21030 grep -v '^ *+' conftest.er1 >conftest.err 21031 rm -f conftest.er1 21032 cat conftest.err >&5 21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21034 (exit $ac_status); } && { 21035 test -z "$ac_c_werror_flag" || 21036 test ! -s conftest.err 21037 } && test -s conftest.$ac_objext; then 21038 ac_cv_type_uintptr_t=yes 21039 else 21040 echo "$as_me: failed program was:" >&5 21041 sed 's/^/| /' conftest.$ac_ext >&5 21042 21043 ac_cv_type_uintptr_t=no 21044 fi 21045 21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21047 fi 21048 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 21049 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } 21050 if test $ac_cv_type_uintptr_t = yes; then 21051 : 21052 else 21053 21054 cat >>confdefs.h <<_ACEOF 21055 #define uintptr_t unsigned long 21056 _ACEOF 21057 21058 fi 21059 21060 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 21061 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 21062 if test "${ac_cv_header_time+set}" = set; then 21063 echo $ECHO_N "(cached) $ECHO_C" >&6 21064 else 21065 cat >conftest.$ac_ext <<_ACEOF 21066 /* confdefs.h. */ 21067 _ACEOF 21068 cat confdefs.h >>conftest.$ac_ext 21069 cat >>conftest.$ac_ext <<_ACEOF 21070 /* end confdefs.h. */ 21071 #include <sys/types.h> 21072 #include <sys/time.h> 21073 #include <time.h> 21074 21075 int 21076 main () 21077 { 21078 if ((struct tm *) 0) 21079 return 0; 21080 ; 21081 return 0; 21082 } 21083 _ACEOF 21084 rm -f conftest.$ac_objext 21085 if { (ac_try="$ac_compile" 21086 case "(($ac_try" in 21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21088 *) ac_try_echo=$ac_try;; 21089 esac 21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21091 (eval "$ac_compile") 2>conftest.er1 21092 ac_status=$? 21093 grep -v '^ *+' conftest.er1 >conftest.err 21094 rm -f conftest.er1 21095 cat conftest.err >&5 21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21097 (exit $ac_status); } && { 21098 test -z "$ac_c_werror_flag" || 21099 test ! -s conftest.err 21100 } && test -s conftest.$ac_objext; then 21101 ac_cv_header_time=yes 21102 else 21103 echo "$as_me: failed program was:" >&5 21104 sed 's/^/| /' conftest.$ac_ext >&5 21105 21106 ac_cv_header_time=no 21107 fi 21108 21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21110 fi 21111 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21112 echo "${ECHO_T}$ac_cv_header_time" >&6; } 21113 if test $ac_cv_header_time = yes; then 21114 21115 cat >>confdefs.h <<\_ACEOF 21116 #define TIME_WITH_SYS_TIME 1 21117 _ACEOF 21118 21119 fi 21120 21121 21122 # 21123 # check for clock_gettime() in librt 21124 # 21125 21126 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 21127 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 21128 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 21129 echo $ECHO_N "(cached) $ECHO_C" >&6 21130 else 21131 ac_check_lib_save_LIBS=$LIBS 21132 LIBS="-lrt $LIBS" 21133 cat >conftest.$ac_ext <<_ACEOF 21134 /* confdefs.h. */ 21135 _ACEOF 21136 cat confdefs.h >>conftest.$ac_ext 21137 cat >>conftest.$ac_ext <<_ACEOF 21138 /* end confdefs.h. */ 21139 21140 /* Override any GCC internal prototype to avoid an error. 21141 Use char because int might match the return type of a GCC 21142 builtin and then its argument prototype would still apply. */ 21143 #ifdef __cplusplus 21144 extern "C" 21145 #endif 21146 char clock_gettime (); 21147 int 21148 main () 21149 { 21150 return clock_gettime (); 21151 ; 21152 return 0; 21153 } 21154 _ACEOF 21155 rm -f conftest.$ac_objext conftest$ac_exeext 21156 if { (ac_try="$ac_link" 21157 case "(($ac_try" in 21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21159 *) ac_try_echo=$ac_try;; 21160 esac 21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21162 (eval "$ac_link") 2>conftest.er1 21163 ac_status=$? 21164 grep -v '^ *+' conftest.er1 >conftest.err 21165 rm -f conftest.er1 21166 cat conftest.err >&5 21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21168 (exit $ac_status); } && { 21169 test -z "$ac_c_werror_flag" || 21170 test ! -s conftest.err 21171 } && test -s conftest$ac_exeext && 21172 $as_test_x conftest$ac_exeext; then 21173 ac_cv_lib_rt_clock_gettime=yes 21174 else 21175 echo "$as_me: failed program was:" >&5 21176 sed 's/^/| /' conftest.$ac_ext >&5 21177 21178 ac_cv_lib_rt_clock_gettime=no 21179 fi 21180 21181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21182 conftest$ac_exeext conftest.$ac_ext 21183 LIBS=$ac_check_lib_save_LIBS 21184 fi 21185 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 21186 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } 21187 if test $ac_cv_lib_rt_clock_gettime = yes; then 21188 cat >>confdefs.h <<_ACEOF 21189 #define HAVE_LIBRT 1 21190 _ACEOF 21191 21192 LIBS="-lrt $LIBS" 21193 21194 fi 21195 21196 21197 # 21198 # check for MD5Init() in libmd5 21199 # 21200 21201 { echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5 21202 echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6; } 21203 if test "${ac_cv_lib_md5_MD5Init+set}" = set; then 21204 echo $ECHO_N "(cached) $ECHO_C" >&6 21205 else 21206 ac_check_lib_save_LIBS=$LIBS 21207 LIBS="-lmd5 $LIBS" 21208 cat >conftest.$ac_ext <<_ACEOF 21209 /* confdefs.h. */ 21210 _ACEOF 21211 cat confdefs.h >>conftest.$ac_ext 21212 cat >>conftest.$ac_ext <<_ACEOF 21213 /* end confdefs.h. */ 21214 21215 /* Override any GCC internal prototype to avoid an error. 21216 Use char because int might match the return type of a GCC 21217 builtin and then its argument prototype would still apply. */ 21218 #ifdef __cplusplus 21219 extern "C" 21220 #endif 21221 char MD5Init (); 21222 int 21223 main () 21224 { 21225 return MD5Init (); 21226 ; 21227 return 0; 21228 } 21229 _ACEOF 21230 rm -f conftest.$ac_objext conftest$ac_exeext 21231 if { (ac_try="$ac_link" 21232 case "(($ac_try" in 21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21234 *) ac_try_echo=$ac_try;; 21235 esac 21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21237 (eval "$ac_link") 2>conftest.er1 21238 ac_status=$? 21239 grep -v '^ *+' conftest.er1 >conftest.err 21240 rm -f conftest.er1 21241 cat conftest.err >&5 21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21243 (exit $ac_status); } && { 21244 test -z "$ac_c_werror_flag" || 21245 test ! -s conftest.err 21246 } && test -s conftest$ac_exeext && 21247 $as_test_x conftest$ac_exeext; then 21248 ac_cv_lib_md5_MD5Init=yes 21249 else 21250 echo "$as_me: failed program was:" >&5 21251 sed 's/^/| /' conftest.$ac_ext >&5 21252 21253 ac_cv_lib_md5_MD5Init=no 21254 fi 21255 21256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21257 conftest$ac_exeext conftest.$ac_ext 21258 LIBS=$ac_check_lib_save_LIBS 21259 fi 21260 { echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5 21261 echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6; } 21262 if test $ac_cv_lib_md5_MD5Init = yes; then 21263 cat >>confdefs.h <<_ACEOF 21264 #define HAVE_LIBMD5 1 21265 _ACEOF 21266 21267 LIBS="-lmd5 $LIBS" 21268 21269 fi 21270 21271 21272 # 21273 # check if we need to #include sys/select.h explicitly 21274 # 21275 case $ac_cv_header_unistd_h in 21276 yes) 21277 { echo "$as_me:$LINENO: checking if unistd.h defines fd_set" >&5 21278 echo $ECHO_N "checking if unistd.h defines fd_set... $ECHO_C" >&6; } 21279 cat >conftest.$ac_ext <<_ACEOF 21280 /* confdefs.h. */ 21281 _ACEOF 21282 cat confdefs.h >>conftest.$ac_ext 21283 cat >>conftest.$ac_ext <<_ACEOF 21284 /* end confdefs.h. */ 21285 21286 #include <unistd.h> 21287 int 21288 main () 21289 { 21290 fd_set read_set; return (0); 21291 ; 21292 return 0; 21293 } 21294 _ACEOF 21295 rm -f conftest.$ac_objext 21296 if { (ac_try="$ac_compile" 21297 case "(($ac_try" in 21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21299 *) ac_try_echo=$ac_try;; 21300 esac 21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21302 (eval "$ac_compile") 2>conftest.er1 21303 ac_status=$? 21304 grep -v '^ *+' conftest.er1 >conftest.err 21305 rm -f conftest.er1 21306 cat conftest.err >&5 21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21308 (exit $ac_status); } && { 21309 test -z "$ac_c_werror_flag" || 21310 test ! -s conftest.err 21311 } && test -s conftest.$ac_objext; then 21312 { echo "$as_me:$LINENO: result: yes" >&5 21313 echo "${ECHO_T}yes" >&6; } 21314 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 21315 21316 else 21317 echo "$as_me: failed program was:" >&5 21318 sed 's/^/| /' conftest.$ac_ext >&5 21319 21320 { echo "$as_me:$LINENO: result: no" >&5 21321 echo "${ECHO_T}no" >&6; } 21322 case ac_cv_header_sys_select_h in 21323 yes) 21324 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 21325 ;; 21326 no) 21327 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5 21328 echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;} 21329 { (exit 1); exit 1; }; } 21330 ;; 21331 esac 21332 21333 fi 21334 21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21336 ;; 21337 no) 21338 case ac_cv_header_sys_select_h in 21339 yes) 21340 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 21341 ;; 21342 no) 21343 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5 21344 echo "$as_me: error: need either unistd.h or sys/select.h" >&2;} 21345 { (exit 1); exit 1; }; } 21346 ;; 21347 esac 21348 ;; 21349 esac 21350 21351 21352 # 21353 # Find the machine's endian flavor. 21354 # 21355 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 21356 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 21357 if test "${ac_cv_c_bigendian+set}" = set; then 21358 echo $ECHO_N "(cached) $ECHO_C" >&6 21359 else 21360 # See if sys/param.h defines the BYTE_ORDER macro. 21361 cat >conftest.$ac_ext <<_ACEOF 21362 /* confdefs.h. */ 21363 _ACEOF 21364 cat confdefs.h >>conftest.$ac_ext 21365 cat >>conftest.$ac_ext <<_ACEOF 21366 /* end confdefs.h. */ 21367 #include <sys/types.h> 21368 #include <sys/param.h> 21369 21370 int 21371 main () 21372 { 21373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 21374 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 21375 bogus endian macros 21376 #endif 21377 21378 ; 21379 return 0; 21380 } 21381 _ACEOF 21382 rm -f conftest.$ac_objext 21383 if { (ac_try="$ac_compile" 21384 case "(($ac_try" in 21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21386 *) ac_try_echo=$ac_try;; 21387 esac 21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21389 (eval "$ac_compile") 2>conftest.er1 21390 ac_status=$? 21391 grep -v '^ *+' conftest.er1 >conftest.err 21392 rm -f conftest.er1 21393 cat conftest.err >&5 21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21395 (exit $ac_status); } && { 21396 test -z "$ac_c_werror_flag" || 21397 test ! -s conftest.err 21398 } && test -s conftest.$ac_objext; then 21399 # It does; now see whether it defined to BIG_ENDIAN or not. 21400 cat >conftest.$ac_ext <<_ACEOF 21401 /* confdefs.h. */ 21402 _ACEOF 21403 cat confdefs.h >>conftest.$ac_ext 21404 cat >>conftest.$ac_ext <<_ACEOF 21405 /* end confdefs.h. */ 21406 #include <sys/types.h> 21407 #include <sys/param.h> 21408 21409 int 21410 main () 21411 { 21412 #if BYTE_ORDER != BIG_ENDIAN 21413 not big endian 21414 #endif 21415 21416 ; 21417 return 0; 21418 } 21419 _ACEOF 21420 rm -f conftest.$ac_objext 21421 if { (ac_try="$ac_compile" 21422 case "(($ac_try" in 21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21424 *) ac_try_echo=$ac_try;; 21425 esac 21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21427 (eval "$ac_compile") 2>conftest.er1 21428 ac_status=$? 21429 grep -v '^ *+' conftest.er1 >conftest.err 21430 rm -f conftest.er1 21431 cat conftest.err >&5 21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21433 (exit $ac_status); } && { 21434 test -z "$ac_c_werror_flag" || 21435 test ! -s conftest.err 21436 } && test -s conftest.$ac_objext; then 21437 ac_cv_c_bigendian=yes 21438 else 21439 echo "$as_me: failed program was:" >&5 21440 sed 's/^/| /' conftest.$ac_ext >&5 21441 21442 ac_cv_c_bigendian=no 21443 fi 21444 21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21446 else 21447 echo "$as_me: failed program was:" >&5 21448 sed 's/^/| /' conftest.$ac_ext >&5 21449 21450 # It does not; compile a test program. 21451 if test "$cross_compiling" = yes; then 21452 # try to guess the endianness by grepping values into an object file 21453 ac_cv_c_bigendian=unknown 21454 cat >conftest.$ac_ext <<_ACEOF 21455 /* confdefs.h. */ 21456 _ACEOF 21457 cat confdefs.h >>conftest.$ac_ext 21458 cat >>conftest.$ac_ext <<_ACEOF 21459 /* end confdefs.h. */ 21460 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21461 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21462 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 21463 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21464 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21465 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 21466 int 21467 main () 21468 { 21469 _ascii (); _ebcdic (); 21470 ; 21471 return 0; 21472 } 21473 _ACEOF 21474 rm -f conftest.$ac_objext 21475 if { (ac_try="$ac_compile" 21476 case "(($ac_try" in 21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21478 *) ac_try_echo=$ac_try;; 21479 esac 21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21481 (eval "$ac_compile") 2>conftest.er1 21482 ac_status=$? 21483 grep -v '^ *+' conftest.er1 >conftest.err 21484 rm -f conftest.er1 21485 cat conftest.err >&5 21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21487 (exit $ac_status); } && { 21488 test -z "$ac_c_werror_flag" || 21489 test ! -s conftest.err 21490 } && test -s conftest.$ac_objext; then 21491 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 21492 ac_cv_c_bigendian=yes 21493 fi 21494 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21495 if test "$ac_cv_c_bigendian" = unknown; then 21496 ac_cv_c_bigendian=no 21497 else 21498 # finding both strings is unlikely to happen, but who knows? 21499 ac_cv_c_bigendian=unknown 21500 fi 21501 fi 21502 else 21503 echo "$as_me: failed program was:" >&5 21504 sed 's/^/| /' conftest.$ac_ext >&5 21505 21506 21507 fi 21508 21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21510 else 21511 cat >conftest.$ac_ext <<_ACEOF 21512 /* confdefs.h. */ 21513 _ACEOF 21514 cat confdefs.h >>conftest.$ac_ext 21515 cat >>conftest.$ac_ext <<_ACEOF 21516 /* end confdefs.h. */ 21517 $ac_includes_default 21518 int 21519 main () 21520 { 21521 21522 /* Are we little or big endian? From Harbison&Steele. */ 21523 union 21524 { 21525 long int l; 21526 char c[sizeof (long int)]; 21527 } u; 21528 u.l = 1; 21529 return u.c[sizeof (long int) - 1] == 1; 21530 21531 ; 21532 return 0; 21533 } 21534 _ACEOF 21535 rm -f conftest$ac_exeext 21536 if { (ac_try="$ac_link" 21537 case "(($ac_try" in 21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21539 *) ac_try_echo=$ac_try;; 21540 esac 21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21542 (eval "$ac_link") 2>&5 21543 ac_status=$? 21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21546 { (case "(($ac_try" in 21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21548 *) ac_try_echo=$ac_try;; 21549 esac 21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21551 (eval "$ac_try") 2>&5 21552 ac_status=$? 21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21554 (exit $ac_status); }; }; then 21555 ac_cv_c_bigendian=no 21556 else 21557 echo "$as_me: program exited with status $ac_status" >&5 21558 echo "$as_me: failed program was:" >&5 21559 sed 's/^/| /' conftest.$ac_ext >&5 21560 21561 ( exit $ac_status ) 21562 ac_cv_c_bigendian=yes 21563 fi 21564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21565 fi 21566 21567 21568 fi 21569 21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21571 fi 21572 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 21573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 21574 case $ac_cv_c_bigendian in 21575 yes) 21576 21577 cat >>confdefs.h <<\_ACEOF 21578 #define WORDS_BIGENDIAN 1 21579 _ACEOF 21580 ;; 21581 no) 21582 ;; 21583 *) 21584 { { echo "$as_me:$LINENO: error: unknown endianness 21585 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 21586 echo "$as_me: error: unknown endianness 21587 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 21588 { (exit 1); exit 1; }; } ;; 21589 esac 21590 21591 21592 21593 # Check whether --with-irs-gr was given. 21594 if test "${with_irs_gr+set}" = set; then 21595 withval=$with_irs_gr; want_irs_gr="$withval" 21596 else 21597 want_irs_gr="no" 21598 fi 21599 21600 case "$want_irs_gr" in 21601 yes) WANT_IRS_GR="#define WANT_IRS_GR 1" 21602 WANT_IRS_GR_OBJS="\${WANT_IRS_GR_OBJS}" 21603 ;; 21604 *) WANT_IRS_GR="#undef WANT_IRS_GR" WANT_IRS_GR_OBJS="";; 21605 esac 21606 21607 21608 21609 21610 # Check whether --with-irs-pw was given. 21611 if test "${with_irs_pw+set}" = set; then 21612 withval=$with_irs_pw; want_irs_pw="$withval" 21613 else 21614 want_irs_pw="no" 21615 fi 21616 21617 case "$want_irs_pw" in 21618 yes) WANT_IRS_PW="#define WANT_IRS_PW 1" 21619 WANT_IRS_PW_OBJS="\${WANT_IRS_PW_OBJS}";; 21620 *) WANT_IRS_PW="#undef WANT_IRS_PW" WANT_IRS_PW_OBJS="";; 21621 esac 21622 21623 21624 21625 21626 # Check whether --with-irs-nis was given. 21627 if test "${with_irs_nis+set}" = set; then 21628 withval=$with_irs_nis; want_irs_nis="$withval" 21629 else 21630 want_irs_nis="no" 21631 fi 21632 21633 case "$want_irs_nis" in 21634 yes) 21635 WANT_IRS_NIS="#define WANT_IRS_NIS 1" 21636 WANT_IRS_NIS_OBJS="\${WANT_IRS_NIS_OBJS}" 21637 case "$want_irs_gr" in 21638 yes) 21639 WANT_IRS_NISGR_OBJS="\${WANT_IRS_NISGR_OBJS}";; 21640 *) 21641 WANT_IRS_NISGR_OBJS="";; 21642 esac 21643 case "$want_irs_pw" in 21644 yes) 21645 WANT_IRS_NISPW_OBJS="\${WANT_IRS_NISPW_OBJS}";; 21646 *) 21647 WANT_IRS_NISPW_OBJS="";; 21648 esac 21649 ;; 21650 *) 21651 WANT_IRS_NIS="#undef WANT_IRS_NIS" 21652 WANT_IRS_NIS_OBJS="" 21653 WANT_IRS_NISGR_OBJS="" 21654 WANT_IRS_NISPW_OBJS="";; 21655 esac 21656 21657 21658 21659 21660 if test "$cross_compiling" = yes; then 21661 WANT_IRS_DBPW_OBJS="" 21662 21663 else 21664 cat >conftest.$ac_ext <<_ACEOF 21665 /* confdefs.h. */ 21666 _ACEOF 21667 cat confdefs.h >>conftest.$ac_ext 21668 cat >>conftest.$ac_ext <<_ACEOF 21669 /* end confdefs.h. */ 21670 21671 #ifdef HAVE_DB_H 21672 int have_db_h = 1; 21673 #else 21674 int have_db_h = 0; 21675 #endif 21676 main() { return(!have_db_h); } 21677 21678 _ACEOF 21679 rm -f conftest$ac_exeext 21680 if { (ac_try="$ac_link" 21681 case "(($ac_try" in 21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21683 *) ac_try_echo=$ac_try;; 21684 esac 21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21686 (eval "$ac_link") 2>&5 21687 ac_status=$? 21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21690 { (case "(($ac_try" in 21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21692 *) ac_try_echo=$ac_try;; 21693 esac 21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21695 (eval "$ac_try") 2>&5 21696 ac_status=$? 21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21698 (exit $ac_status); }; }; then 21699 WANT_IRS_DBPW_OBJS="\${WANT_IRS_DBPW_OBJS}" 21700 21701 else 21702 echo "$as_me: program exited with status $ac_status" >&5 21703 echo "$as_me: failed program was:" >&5 21704 sed 's/^/| /' conftest.$ac_ext >&5 21705 21706 ( exit $ac_status ) 21707 WANT_IRS_DBPW_OBJS="" 21708 21709 fi 21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21711 fi 21712 21713 21714 21715 21716 # 21717 # was --with-randomdev specified? 21718 # 21719 { echo "$as_me:$LINENO: checking for random device" >&5 21720 echo $ECHO_N "checking for random device... $ECHO_C" >&6; } 21721 21722 # Check whether --with-randomdev was given. 21723 if test "${with_randomdev+set}" = set; then 21724 withval=$with_randomdev; use_randomdev="$withval" 21725 else 21726 use_randomdev="unspec" 21727 fi 21728 21729 21730 case "$use_randomdev" in 21731 unspec) 21732 case "$host" in 21733 *-openbsd*) 21734 devrandom=/dev/srandom 21735 ;; 21736 *) 21737 devrandom=/dev/random 21738 ;; 21739 esac 21740 { echo "$as_me:$LINENO: result: $devrandom" >&5 21741 echo "${ECHO_T}$devrandom" >&6; } 21742 as_ac_File=`echo "ac_cv_file_$devrandom" | $as_tr_sh` 21743 { echo "$as_me:$LINENO: checking for $devrandom" >&5 21744 echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6; } 21745 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21746 echo $ECHO_N "(cached) $ECHO_C" >&6 21747 else 21748 test "$cross_compiling" = yes && 21749 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21750 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21751 { (exit 1); exit 1; }; } 21752 if test -r "$devrandom"; then 21753 eval "$as_ac_File=yes" 21754 else 21755 eval "$as_ac_File=no" 21756 fi 21757 fi 21758 ac_res=`eval echo '${'$as_ac_File'}'` 21759 { echo "$as_me:$LINENO: result: $ac_res" >&5 21760 echo "${ECHO_T}$ac_res" >&6; } 21761 if test `eval echo '${'$as_ac_File'}'` = yes; then 21762 cat >>confdefs.h <<_ACEOF 21763 #define PATH_RANDOMDEV "$devrandom" 21764 _ACEOF 21765 21766 fi 21767 21768 ;; 21769 yes) 21770 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5 21771 echo "$as_me: error: --with-randomdev must specify a path" >&2;} 21772 { (exit 1); exit 1; }; } 21773 ;; 21774 *) 21775 cat >>confdefs.h <<_ACEOF 21776 #define PATH_RANDOMDEV "$use_randomdev" 21777 _ACEOF 21778 21779 { echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5 21780 echo "${ECHO_T}using \"$use_randomdev\"" >&6; } 21781 ;; 21782 esac 21783 21784 # 21785 # Begin pthreads checking. 21786 # 21787 # First, decide whether to use multithreading or not. 21788 # 21789 # Enable multithreading by default on systems where it is known 21790 # to work well, and where debugging of multithreaded programs 21791 # is supported. 21792 # 21793 21794 { echo "$as_me:$LINENO: checking whether to build with thread support" >&5 21795 echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6; } 21796 21797 case $host in 21798 *-dec-osf*) 21799 use_threads=true ;; 21800 *-solaris2.[0-6]) 21801 # Thread signals are broken on Solaris 2.6; they are sometimes 21802 # delivered to the wrong thread. 21803 use_threads=false ;; 21804 *-solaris*) 21805 use_threads=true ;; 21806 *-ibm-aix*) 21807 use_threads=true ;; 21808 *-hp-hpux10*) 21809 use_threads=false ;; 21810 *-hp-hpux11*) 21811 use_threads=true ;; 21812 *-sgi-irix*) 21813 use_threads=true ;; 21814 *-sco-sysv*uw*|*-*-sysv*UnixWare*) 21815 # UnixWare 21816 use_threads=false ;; 21817 *-*-sysv*OpenUNIX*) 21818 # UnixWare 21819 use_threads=true ;; 21820 *-netbsd*) 21821 if test -r /usr/lib/libpthread.so ; then 21822 use_threads=true 21823 else 21824 # Socket I/O optimizations introduced in 9.2 expose a 21825 # bug in unproven-pthreads; see PR #12650 21826 use_threads=false 21827 fi 21828 ;; 21829 *-openbsd*) 21830 # OpenBSD users have reported that named dumps core on 21831 # startup when built with threads. 21832 use_threads=false ;; 21833 *-freebsd*) 21834 use_threads=false ;; 21835 *-bsdi234*) 21836 # Thread signals do not work reliably on some versions of BSD/OS. 21837 use_threads=false ;; 21838 *-bsdi5*) 21839 use_threads=true ;; 21840 *-linux*) 21841 # Threads are disabled on Linux by default because most 21842 # Linux kernels produce unusable core dumps from multithreaded 21843 # programs, and because of limitations in setuid(). 21844 use_threads=false ;; 21845 *) 21846 use_threads=false ;; 21847 esac 21848 21849 # Check whether --enable-threads was given. 21850 if test "${enable_threads+set}" = set; then 21851 enableval=$enable_threads; 21852 fi 21853 21854 case "$enable_threads" in 21855 yes) 21856 use_threads=true 21857 ;; 21858 no) 21859 use_threads=false 21860 ;; 21861 '') 21862 # Use system-dependent default 21863 ;; 21864 *) 21865 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5 21866 echo "$as_me: error: --enable-threads takes yes or no" >&2;} 21867 { (exit 1); exit 1; }; } 21868 ;; 21869 esac 21870 21871 if $use_threads 21872 then 21873 { echo "$as_me:$LINENO: result: yes" >&5 21874 echo "${ECHO_T}yes" >&6; } 21875 else 21876 { echo "$as_me:$LINENO: result: no" >&5 21877 echo "${ECHO_T}no" >&6; } 21878 fi 21879 21880 if $use_threads 21881 then 21882 # 21883 # Search for / configure pthreads in a system-dependent fashion. 21884 # 21885 case "$host" in 21886 *-netbsd*) 21887 # NetBSD has multiple pthreads implementations. The 21888 # recommended one to use is "unproven-pthreads". The 21889 # older "mit-pthreads" may also work on some NetBSD 21890 # versions. The PTL2 thread library does not 21891 # currently work with bind9, but can be chosen with 21892 # the --with-ptl2 option for those who wish to 21893 # experiment with it. 21894 CC="gcc" 21895 { echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5 21896 echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6; } 21897 21898 21899 # Check whether --with-ptl2 was given. 21900 if test "${with_ptl2+set}" = set; then 21901 withval=$with_ptl2; use_ptl2="$withval" 21902 else 21903 use_ptl2="no" 21904 fi 21905 21906 21907 : ${LOCALBASE:=/usr/pkg} 21908 21909 if test "X$use_ptl2" = "Xyes" 21910 then 21911 { echo "$as_me:$LINENO: result: PTL2" >&5 21912 echo "${ECHO_T}PTL2" >&6; } 21913 { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5 21914 echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;} 21915 CC=ptlgcc 21916 else 21917 if test -r /usr/lib/libpthread.so 21918 then 21919 { echo "$as_me:$LINENO: result: native" >&5 21920 echo "${ECHO_T}native" >&6; } 21921 LIBS="-lpthread $LIBS" 21922 else 21923 if test ! -d $LOCALBASE/pthreads 21924 then 21925 { echo "$as_me:$LINENO: result: none" >&5 21926 echo "${ECHO_T}none" >&6; } 21927 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 21928 echo "$as_me: error: \"could not find thread libraries\"" >&2;} 21929 { (exit 1); exit 1; }; } 21930 fi 21931 21932 if $use_threads 21933 then 21934 { echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5 21935 echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6; } 21936 pkg="$LOCALBASE/pthreads" 21937 lib1="-L$pkg/lib -Wl,-R$pkg/lib" 21938 lib2="-lpthread -lm -lgcc -lpthread" 21939 LIBS="$lib1 $lib2 $LIBS" 21940 CPPFLAGS="$CPPFLAGS -I$pkg/include" 21941 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include" 21942 fi 21943 fi 21944 fi 21945 ;; 21946 *-freebsd*) 21947 # We don't want to set -lpthread as that break 21948 # the ability to choose threads library at final 21949 # link time and is not valid for all architectures. 21950 21951 PTHREAD= 21952 if test "X$GCC" = "Xyes"; then 21953 saved_cc="$CC" 21954 CC="$CC -pthread" 21955 { echo "$as_me:$LINENO: checking for gcc -pthread support" >&5 21956 echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6; }; 21957 cat >conftest.$ac_ext <<_ACEOF 21958 /* confdefs.h. */ 21959 _ACEOF 21960 cat confdefs.h >>conftest.$ac_ext 21961 cat >>conftest.$ac_ext <<_ACEOF 21962 /* end confdefs.h. */ 21963 #include <pthread.h> 21964 int 21965 main () 21966 { 21967 printf("%x\n", pthread_create); 21968 ; 21969 return 0; 21970 } 21971 _ACEOF 21972 rm -f conftest.$ac_objext conftest$ac_exeext 21973 if { (ac_try="$ac_link" 21974 case "(($ac_try" in 21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21976 *) ac_try_echo=$ac_try;; 21977 esac 21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21979 (eval "$ac_link") 2>conftest.er1 21980 ac_status=$? 21981 grep -v '^ *+' conftest.er1 >conftest.err 21982 rm -f conftest.er1 21983 cat conftest.err >&5 21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21985 (exit $ac_status); } && { 21986 test -z "$ac_c_werror_flag" || 21987 test ! -s conftest.err 21988 } && test -s conftest$ac_exeext && 21989 $as_test_x conftest$ac_exeext; then 21990 PTHREAD="yes" 21991 { echo "$as_me:$LINENO: result: yes" >&5 21992 echo "${ECHO_T}yes" >&6; } 21993 else 21994 echo "$as_me: failed program was:" >&5 21995 sed 's/^/| /' conftest.$ac_ext >&5 21996 21997 { echo "$as_me:$LINENO: result: no" >&5 21998 echo "${ECHO_T}no" >&6; } 21999 fi 22000 22001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22002 conftest$ac_exeext conftest.$ac_ext 22003 CC="$saved_cc" 22004 fi 22005 if test "X$PTHREAD" != "Xyes"; then 22006 22007 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 22008 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 22009 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 22010 echo $ECHO_N "(cached) $ECHO_C" >&6 22011 else 22012 ac_check_lib_save_LIBS=$LIBS 22013 LIBS="-lpthread $LIBS" 22014 cat >conftest.$ac_ext <<_ACEOF 22015 /* confdefs.h. */ 22016 _ACEOF 22017 cat confdefs.h >>conftest.$ac_ext 22018 cat >>conftest.$ac_ext <<_ACEOF 22019 /* end confdefs.h. */ 22020 22021 /* Override any GCC internal prototype to avoid an error. 22022 Use char because int might match the return type of a GCC 22023 builtin and then its argument prototype would still apply. */ 22024 #ifdef __cplusplus 22025 extern "C" 22026 #endif 22027 char pthread_create (); 22028 int 22029 main () 22030 { 22031 return pthread_create (); 22032 ; 22033 return 0; 22034 } 22035 _ACEOF 22036 rm -f conftest.$ac_objext conftest$ac_exeext 22037 if { (ac_try="$ac_link" 22038 case "(($ac_try" in 22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22040 *) ac_try_echo=$ac_try;; 22041 esac 22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22043 (eval "$ac_link") 2>conftest.er1 22044 ac_status=$? 22045 grep -v '^ *+' conftest.er1 >conftest.err 22046 rm -f conftest.er1 22047 cat conftest.err >&5 22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22049 (exit $ac_status); } && { 22050 test -z "$ac_c_werror_flag" || 22051 test ! -s conftest.err 22052 } && test -s conftest$ac_exeext && 22053 $as_test_x conftest$ac_exeext; then 22054 ac_cv_lib_pthread_pthread_create=yes 22055 else 22056 echo "$as_me: failed program was:" >&5 22057 sed 's/^/| /' conftest.$ac_ext >&5 22058 22059 ac_cv_lib_pthread_pthread_create=no 22060 fi 22061 22062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22063 conftest$ac_exeext conftest.$ac_ext 22064 LIBS=$ac_check_lib_save_LIBS 22065 fi 22066 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 22067 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 22068 if test $ac_cv_lib_pthread_pthread_create = yes; then 22069 cat >>confdefs.h <<_ACEOF 22070 #define HAVE_LIBPTHREAD 1 22071 _ACEOF 22072 22073 LIBS="-lpthread $LIBS" 22074 22075 else 22076 22077 { echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5 22078 echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6; } 22079 if test "${ac_cv_lib_thr_thread_create+set}" = set; then 22080 echo $ECHO_N "(cached) $ECHO_C" >&6 22081 else 22082 ac_check_lib_save_LIBS=$LIBS 22083 LIBS="-lthr $LIBS" 22084 cat >conftest.$ac_ext <<_ACEOF 22085 /* confdefs.h. */ 22086 _ACEOF 22087 cat confdefs.h >>conftest.$ac_ext 22088 cat >>conftest.$ac_ext <<_ACEOF 22089 /* end confdefs.h. */ 22090 22091 /* Override any GCC internal prototype to avoid an error. 22092 Use char because int might match the return type of a GCC 22093 builtin and then its argument prototype would still apply. */ 22094 #ifdef __cplusplus 22095 extern "C" 22096 #endif 22097 char thread_create (); 22098 int 22099 main () 22100 { 22101 return thread_create (); 22102 ; 22103 return 0; 22104 } 22105 _ACEOF 22106 rm -f conftest.$ac_objext conftest$ac_exeext 22107 if { (ac_try="$ac_link" 22108 case "(($ac_try" in 22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22110 *) ac_try_echo=$ac_try;; 22111 esac 22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22113 (eval "$ac_link") 2>conftest.er1 22114 ac_status=$? 22115 grep -v '^ *+' conftest.er1 >conftest.err 22116 rm -f conftest.er1 22117 cat conftest.err >&5 22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22119 (exit $ac_status); } && { 22120 test -z "$ac_c_werror_flag" || 22121 test ! -s conftest.err 22122 } && test -s conftest$ac_exeext && 22123 $as_test_x conftest$ac_exeext; then 22124 ac_cv_lib_thr_thread_create=yes 22125 else 22126 echo "$as_me: failed program was:" >&5 22127 sed 's/^/| /' conftest.$ac_ext >&5 22128 22129 ac_cv_lib_thr_thread_create=no 22130 fi 22131 22132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22133 conftest$ac_exeext conftest.$ac_ext 22134 LIBS=$ac_check_lib_save_LIBS 22135 fi 22136 { echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5 22137 echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6; } 22138 if test $ac_cv_lib_thr_thread_create = yes; then 22139 cat >>confdefs.h <<_ACEOF 22140 #define HAVE_LIBTHR 1 22141 _ACEOF 22142 22143 LIBS="-lthr $LIBS" 22144 22145 else 22146 22147 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 22148 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; } 22149 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 22150 echo $ECHO_N "(cached) $ECHO_C" >&6 22151 else 22152 ac_check_lib_save_LIBS=$LIBS 22153 LIBS="-lc_r $LIBS" 22154 cat >conftest.$ac_ext <<_ACEOF 22155 /* confdefs.h. */ 22156 _ACEOF 22157 cat confdefs.h >>conftest.$ac_ext 22158 cat >>conftest.$ac_ext <<_ACEOF 22159 /* end confdefs.h. */ 22160 22161 /* Override any GCC internal prototype to avoid an error. 22162 Use char because int might match the return type of a GCC 22163 builtin and then its argument prototype would still apply. */ 22164 #ifdef __cplusplus 22165 extern "C" 22166 #endif 22167 char pthread_create (); 22168 int 22169 main () 22170 { 22171 return pthread_create (); 22172 ; 22173 return 0; 22174 } 22175 _ACEOF 22176 rm -f conftest.$ac_objext conftest$ac_exeext 22177 if { (ac_try="$ac_link" 22178 case "(($ac_try" in 22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22180 *) ac_try_echo=$ac_try;; 22181 esac 22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22183 (eval "$ac_link") 2>conftest.er1 22184 ac_status=$? 22185 grep -v '^ *+' conftest.er1 >conftest.err 22186 rm -f conftest.er1 22187 cat conftest.err >&5 22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22189 (exit $ac_status); } && { 22190 test -z "$ac_c_werror_flag" || 22191 test ! -s conftest.err 22192 } && test -s conftest$ac_exeext && 22193 $as_test_x conftest$ac_exeext; then 22194 ac_cv_lib_c_r_pthread_create=yes 22195 else 22196 echo "$as_me: failed program was:" >&5 22197 sed 's/^/| /' conftest.$ac_ext >&5 22198 22199 ac_cv_lib_c_r_pthread_create=no 22200 fi 22201 22202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22203 conftest$ac_exeext conftest.$ac_ext 22204 LIBS=$ac_check_lib_save_LIBS 22205 fi 22206 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 22207 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } 22208 if test $ac_cv_lib_c_r_pthread_create = yes; then 22209 cat >>confdefs.h <<_ACEOF 22210 #define HAVE_LIBC_R 1 22211 _ACEOF 22212 22213 LIBS="-lc_r $LIBS" 22214 22215 else 22216 22217 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5 22218 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; } 22219 if test "${ac_cv_lib_c_pthread_create+set}" = set; then 22220 echo $ECHO_N "(cached) $ECHO_C" >&6 22221 else 22222 ac_check_lib_save_LIBS=$LIBS 22223 LIBS="-lc $LIBS" 22224 cat >conftest.$ac_ext <<_ACEOF 22225 /* confdefs.h. */ 22226 _ACEOF 22227 cat confdefs.h >>conftest.$ac_ext 22228 cat >>conftest.$ac_ext <<_ACEOF 22229 /* end confdefs.h. */ 22230 22231 /* Override any GCC internal prototype to avoid an error. 22232 Use char because int might match the return type of a GCC 22233 builtin and then its argument prototype would still apply. */ 22234 #ifdef __cplusplus 22235 extern "C" 22236 #endif 22237 char pthread_create (); 22238 int 22239 main () 22240 { 22241 return pthread_create (); 22242 ; 22243 return 0; 22244 } 22245 _ACEOF 22246 rm -f conftest.$ac_objext conftest$ac_exeext 22247 if { (ac_try="$ac_link" 22248 case "(($ac_try" in 22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22250 *) ac_try_echo=$ac_try;; 22251 esac 22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22253 (eval "$ac_link") 2>conftest.er1 22254 ac_status=$? 22255 grep -v '^ *+' conftest.er1 >conftest.err 22256 rm -f conftest.er1 22257 cat conftest.err >&5 22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22259 (exit $ac_status); } && { 22260 test -z "$ac_c_werror_flag" || 22261 test ! -s conftest.err 22262 } && test -s conftest$ac_exeext && 22263 $as_test_x conftest$ac_exeext; then 22264 ac_cv_lib_c_pthread_create=yes 22265 else 22266 echo "$as_me: failed program was:" >&5 22267 sed 's/^/| /' conftest.$ac_ext >&5 22268 22269 ac_cv_lib_c_pthread_create=no 22270 fi 22271 22272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22273 conftest$ac_exeext conftest.$ac_ext 22274 LIBS=$ac_check_lib_save_LIBS 22275 fi 22276 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5 22277 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; } 22278 if test $ac_cv_lib_c_pthread_create = yes; then 22279 cat >>confdefs.h <<_ACEOF 22280 #define HAVE_LIBC 1 22281 _ACEOF 22282 22283 LIBS="-lc $LIBS" 22284 22285 else 22286 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 22287 echo "$as_me: error: \"could not find thread libraries\"" >&2;} 22288 { (exit 1); exit 1; }; } 22289 fi 22290 22291 fi 22292 22293 fi 22294 22295 fi 22296 22297 fi 22298 ;; 22299 *) 22300 22301 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 22302 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 22303 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 22304 echo $ECHO_N "(cached) $ECHO_C" >&6 22305 else 22306 ac_check_lib_save_LIBS=$LIBS 22307 LIBS="-lpthread $LIBS" 22308 cat >conftest.$ac_ext <<_ACEOF 22309 /* confdefs.h. */ 22310 _ACEOF 22311 cat confdefs.h >>conftest.$ac_ext 22312 cat >>conftest.$ac_ext <<_ACEOF 22313 /* end confdefs.h. */ 22314 22315 /* Override any GCC internal prototype to avoid an error. 22316 Use char because int might match the return type of a GCC 22317 builtin and then its argument prototype would still apply. */ 22318 #ifdef __cplusplus 22319 extern "C" 22320 #endif 22321 char pthread_create (); 22322 int 22323 main () 22324 { 22325 return pthread_create (); 22326 ; 22327 return 0; 22328 } 22329 _ACEOF 22330 rm -f conftest.$ac_objext conftest$ac_exeext 22331 if { (ac_try="$ac_link" 22332 case "(($ac_try" in 22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22334 *) ac_try_echo=$ac_try;; 22335 esac 22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22337 (eval "$ac_link") 2>conftest.er1 22338 ac_status=$? 22339 grep -v '^ *+' conftest.er1 >conftest.err 22340 rm -f conftest.er1 22341 cat conftest.err >&5 22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22343 (exit $ac_status); } && { 22344 test -z "$ac_c_werror_flag" || 22345 test ! -s conftest.err 22346 } && test -s conftest$ac_exeext && 22347 $as_test_x conftest$ac_exeext; then 22348 ac_cv_lib_pthread_pthread_create=yes 22349 else 22350 echo "$as_me: failed program was:" >&5 22351 sed 's/^/| /' conftest.$ac_ext >&5 22352 22353 ac_cv_lib_pthread_pthread_create=no 22354 fi 22355 22356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22357 conftest$ac_exeext conftest.$ac_ext 22358 LIBS=$ac_check_lib_save_LIBS 22359 fi 22360 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 22361 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 22362 if test $ac_cv_lib_pthread_pthread_create = yes; then 22363 cat >>confdefs.h <<_ACEOF 22364 #define HAVE_LIBPTHREAD 1 22365 _ACEOF 22366 22367 LIBS="-lpthread $LIBS" 22368 22369 else 22370 22371 { echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5 22372 echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6; } 22373 if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then 22374 echo $ECHO_N "(cached) $ECHO_C" >&6 22375 else 22376 ac_check_lib_save_LIBS=$LIBS 22377 LIBS="-lpthread $LIBS" 22378 cat >conftest.$ac_ext <<_ACEOF 22379 /* confdefs.h. */ 22380 _ACEOF 22381 cat confdefs.h >>conftest.$ac_ext 22382 cat >>conftest.$ac_ext <<_ACEOF 22383 /* end confdefs.h. */ 22384 22385 /* Override any GCC internal prototype to avoid an error. 22386 Use char because int might match the return type of a GCC 22387 builtin and then its argument prototype would still apply. */ 22388 #ifdef __cplusplus 22389 extern "C" 22390 #endif 22391 char __pthread_create (); 22392 int 22393 main () 22394 { 22395 return __pthread_create (); 22396 ; 22397 return 0; 22398 } 22399 _ACEOF 22400 rm -f conftest.$ac_objext conftest$ac_exeext 22401 if { (ac_try="$ac_link" 22402 case "(($ac_try" in 22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22404 *) ac_try_echo=$ac_try;; 22405 esac 22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22407 (eval "$ac_link") 2>conftest.er1 22408 ac_status=$? 22409 grep -v '^ *+' conftest.er1 >conftest.err 22410 rm -f conftest.er1 22411 cat conftest.err >&5 22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22413 (exit $ac_status); } && { 22414 test -z "$ac_c_werror_flag" || 22415 test ! -s conftest.err 22416 } && test -s conftest$ac_exeext && 22417 $as_test_x conftest$ac_exeext; then 22418 ac_cv_lib_pthread___pthread_create=yes 22419 else 22420 echo "$as_me: failed program was:" >&5 22421 sed 's/^/| /' conftest.$ac_ext >&5 22422 22423 ac_cv_lib_pthread___pthread_create=no 22424 fi 22425 22426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22427 conftest$ac_exeext conftest.$ac_ext 22428 LIBS=$ac_check_lib_save_LIBS 22429 fi 22430 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5 22431 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6; } 22432 if test $ac_cv_lib_pthread___pthread_create = yes; then 22433 cat >>confdefs.h <<_ACEOF 22434 #define HAVE_LIBPTHREAD 1 22435 _ACEOF 22436 22437 LIBS="-lpthread $LIBS" 22438 22439 else 22440 22441 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 22442 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; } 22443 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then 22444 echo $ECHO_N "(cached) $ECHO_C" >&6 22445 else 22446 ac_check_lib_save_LIBS=$LIBS 22447 LIBS="-lpthread $LIBS" 22448 cat >conftest.$ac_ext <<_ACEOF 22449 /* confdefs.h. */ 22450 _ACEOF 22451 cat confdefs.h >>conftest.$ac_ext 22452 cat >>conftest.$ac_ext <<_ACEOF 22453 /* end confdefs.h. */ 22454 22455 /* Override any GCC internal prototype to avoid an error. 22456 Use char because int might match the return type of a GCC 22457 builtin and then its argument prototype would still apply. */ 22458 #ifdef __cplusplus 22459 extern "C" 22460 #endif 22461 char __pthread_create_system (); 22462 int 22463 main () 22464 { 22465 return __pthread_create_system (); 22466 ; 22467 return 0; 22468 } 22469 _ACEOF 22470 rm -f conftest.$ac_objext conftest$ac_exeext 22471 if { (ac_try="$ac_link" 22472 case "(($ac_try" in 22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22474 *) ac_try_echo=$ac_try;; 22475 esac 22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22477 (eval "$ac_link") 2>conftest.er1 22478 ac_status=$? 22479 grep -v '^ *+' conftest.er1 >conftest.err 22480 rm -f conftest.er1 22481 cat conftest.err >&5 22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22483 (exit $ac_status); } && { 22484 test -z "$ac_c_werror_flag" || 22485 test ! -s conftest.err 22486 } && test -s conftest$ac_exeext && 22487 $as_test_x conftest$ac_exeext; then 22488 ac_cv_lib_pthread___pthread_create_system=yes 22489 else 22490 echo "$as_me: failed program was:" >&5 22491 sed 's/^/| /' conftest.$ac_ext >&5 22492 22493 ac_cv_lib_pthread___pthread_create_system=no 22494 fi 22495 22496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22497 conftest$ac_exeext conftest.$ac_ext 22498 LIBS=$ac_check_lib_save_LIBS 22499 fi 22500 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 22501 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } 22502 if test $ac_cv_lib_pthread___pthread_create_system = yes; then 22503 cat >>confdefs.h <<_ACEOF 22504 #define HAVE_LIBPTHREAD 1 22505 _ACEOF 22506 22507 LIBS="-lpthread $LIBS" 22508 22509 else 22510 22511 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 22512 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; } 22513 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 22514 echo $ECHO_N "(cached) $ECHO_C" >&6 22515 else 22516 ac_check_lib_save_LIBS=$LIBS 22517 LIBS="-lc_r $LIBS" 22518 cat >conftest.$ac_ext <<_ACEOF 22519 /* confdefs.h. */ 22520 _ACEOF 22521 cat confdefs.h >>conftest.$ac_ext 22522 cat >>conftest.$ac_ext <<_ACEOF 22523 /* end confdefs.h. */ 22524 22525 /* Override any GCC internal prototype to avoid an error. 22526 Use char because int might match the return type of a GCC 22527 builtin and then its argument prototype would still apply. */ 22528 #ifdef __cplusplus 22529 extern "C" 22530 #endif 22531 char pthread_create (); 22532 int 22533 main () 22534 { 22535 return pthread_create (); 22536 ; 22537 return 0; 22538 } 22539 _ACEOF 22540 rm -f conftest.$ac_objext conftest$ac_exeext 22541 if { (ac_try="$ac_link" 22542 case "(($ac_try" in 22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22544 *) ac_try_echo=$ac_try;; 22545 esac 22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22547 (eval "$ac_link") 2>conftest.er1 22548 ac_status=$? 22549 grep -v '^ *+' conftest.er1 >conftest.err 22550 rm -f conftest.er1 22551 cat conftest.err >&5 22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22553 (exit $ac_status); } && { 22554 test -z "$ac_c_werror_flag" || 22555 test ! -s conftest.err 22556 } && test -s conftest$ac_exeext && 22557 $as_test_x conftest$ac_exeext; then 22558 ac_cv_lib_c_r_pthread_create=yes 22559 else 22560 echo "$as_me: failed program was:" >&5 22561 sed 's/^/| /' conftest.$ac_ext >&5 22562 22563 ac_cv_lib_c_r_pthread_create=no 22564 fi 22565 22566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22567 conftest$ac_exeext conftest.$ac_ext 22568 LIBS=$ac_check_lib_save_LIBS 22569 fi 22570 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 22571 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } 22572 if test $ac_cv_lib_c_r_pthread_create = yes; then 22573 cat >>confdefs.h <<_ACEOF 22574 #define HAVE_LIBC_R 1 22575 _ACEOF 22576 22577 LIBS="-lc_r $LIBS" 22578 22579 else 22580 22581 { echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5 22582 echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; } 22583 if test "${ac_cv_lib_c_pthread_create+set}" = set; then 22584 echo $ECHO_N "(cached) $ECHO_C" >&6 22585 else 22586 ac_check_lib_save_LIBS=$LIBS 22587 LIBS="-lc $LIBS" 22588 cat >conftest.$ac_ext <<_ACEOF 22589 /* confdefs.h. */ 22590 _ACEOF 22591 cat confdefs.h >>conftest.$ac_ext 22592 cat >>conftest.$ac_ext <<_ACEOF 22593 /* end confdefs.h. */ 22594 22595 /* Override any GCC internal prototype to avoid an error. 22596 Use char because int might match the return type of a GCC 22597 builtin and then its argument prototype would still apply. */ 22598 #ifdef __cplusplus 22599 extern "C" 22600 #endif 22601 char pthread_create (); 22602 int 22603 main () 22604 { 22605 return pthread_create (); 22606 ; 22607 return 0; 22608 } 22609 _ACEOF 22610 rm -f conftest.$ac_objext conftest$ac_exeext 22611 if { (ac_try="$ac_link" 22612 case "(($ac_try" in 22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22614 *) ac_try_echo=$ac_try;; 22615 esac 22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22617 (eval "$ac_link") 2>conftest.er1 22618 ac_status=$? 22619 grep -v '^ *+' conftest.er1 >conftest.err 22620 rm -f conftest.er1 22621 cat conftest.err >&5 22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22623 (exit $ac_status); } && { 22624 test -z "$ac_c_werror_flag" || 22625 test ! -s conftest.err 22626 } && test -s conftest$ac_exeext && 22627 $as_test_x conftest$ac_exeext; then 22628 ac_cv_lib_c_pthread_create=yes 22629 else 22630 echo "$as_me: failed program was:" >&5 22631 sed 's/^/| /' conftest.$ac_ext >&5 22632 22633 ac_cv_lib_c_pthread_create=no 22634 fi 22635 22636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22637 conftest$ac_exeext conftest.$ac_ext 22638 LIBS=$ac_check_lib_save_LIBS 22639 fi 22640 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5 22641 echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; } 22642 if test $ac_cv_lib_c_pthread_create = yes; then 22643 cat >>confdefs.h <<_ACEOF 22644 #define HAVE_LIBC 1 22645 _ACEOF 22646 22647 LIBS="-lc $LIBS" 22648 22649 else 22650 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 22651 echo "$as_me: error: \"could not find thread libraries\"" >&2;} 22652 { (exit 1); exit 1; }; } 22653 fi 22654 22655 fi 22656 22657 fi 22658 22659 fi 22660 22661 fi 22662 22663 ;; 22664 esac 22665 fi 22666 22667 if $use_threads 22668 then 22669 if test "X$GCC" = "Xyes"; then 22670 case "$host" in 22671 *-freebsd*) 22672 CC="$CC -pthread" 22673 CCOPT="$CCOPT -pthread" 22674 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22675 ;; 22676 *-openbsd*) 22677 CC="$CC -pthread" 22678 CCOPT="$CCOPT -pthread" 22679 ;; 22680 *-solaris*) 22681 LIBS="$LIBS -lthread" 22682 ;; 22683 *-ibm-aix*) 22684 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22685 ;; 22686 esac 22687 else 22688 case $host in 22689 *-dec-osf*) 22690 CC="$CC -pthread" 22691 CCOPT="$CCOPT -pthread" 22692 ;; 22693 *-solaris*) 22694 CC="$CC -mt" 22695 CCOPT="$CCOPT -mt" 22696 ;; 22697 *-ibm-aix*) 22698 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22699 ;; 22700 *-UnixWare*) 22701 CC="$CC -Kthread" 22702 CCOPT="$CCOPT -Kthread" 22703 ;; 22704 esac 22705 fi 22706 cat >>confdefs.h <<\_ACEOF 22707 #define _REENTRANT 1 22708 _ACEOF 22709 22710 ALWAYS_DEFINES="-D_REENTRANT" 22711 DO_PTHREADS="#define DO_PTHREADS 1" 22712 WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}" 22713 WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}" 22714 case $host in 22715 ia64-hp-hpux11.*) 22716 WANT_IRS_THREADS_OBJS="";; 22717 *) 22718 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";; 22719 esac 22720 WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}" 22721 thread_dir=pthreads 22722 22723 # 22724 # We'd like to use sigwait() too 22725 # 22726 { echo "$as_me:$LINENO: checking for sigwait" >&5 22727 echo $ECHO_N "checking for sigwait... $ECHO_C" >&6; } 22728 if test "${ac_cv_func_sigwait+set}" = set; then 22729 echo $ECHO_N "(cached) $ECHO_C" >&6 22730 else 22731 cat >conftest.$ac_ext <<_ACEOF 22732 /* confdefs.h. */ 22733 _ACEOF 22734 cat confdefs.h >>conftest.$ac_ext 22735 cat >>conftest.$ac_ext <<_ACEOF 22736 /* end confdefs.h. */ 22737 /* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait. 22738 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22739 #define sigwait innocuous_sigwait 22740 22741 /* System header to define __stub macros and hopefully few prototypes, 22742 which can conflict with char sigwait (); below. 22743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22744 <limits.h> exists even on freestanding compilers. */ 22745 22746 #ifdef __STDC__ 22747 # include <limits.h> 22748 #else 22749 # include <assert.h> 22750 #endif 22751 22752 #undef sigwait 22753 22754 /* Override any GCC internal prototype to avoid an error. 22755 Use char because int might match the return type of a GCC 22756 builtin and then its argument prototype would still apply. */ 22757 #ifdef __cplusplus 22758 extern "C" 22759 #endif 22760 char sigwait (); 22761 /* The GNU C library defines this for functions which it implements 22762 to always fail with ENOSYS. Some functions are actually named 22763 something starting with __ and the normal name is an alias. */ 22764 #if defined __stub_sigwait || defined __stub___sigwait 22765 choke me 22766 #endif 22767 22768 int 22769 main () 22770 { 22771 return sigwait (); 22772 ; 22773 return 0; 22774 } 22775 _ACEOF 22776 rm -f conftest.$ac_objext conftest$ac_exeext 22777 if { (ac_try="$ac_link" 22778 case "(($ac_try" in 22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22780 *) ac_try_echo=$ac_try;; 22781 esac 22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22783 (eval "$ac_link") 2>conftest.er1 22784 ac_status=$? 22785 grep -v '^ *+' conftest.er1 >conftest.err 22786 rm -f conftest.er1 22787 cat conftest.err >&5 22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22789 (exit $ac_status); } && { 22790 test -z "$ac_c_werror_flag" || 22791 test ! -s conftest.err 22792 } && test -s conftest$ac_exeext && 22793 $as_test_x conftest$ac_exeext; then 22794 ac_cv_func_sigwait=yes 22795 else 22796 echo "$as_me: failed program was:" >&5 22797 sed 's/^/| /' conftest.$ac_ext >&5 22798 22799 ac_cv_func_sigwait=no 22800 fi 22801 22802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22803 conftest$ac_exeext conftest.$ac_ext 22804 fi 22805 { echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5 22806 echo "${ECHO_T}$ac_cv_func_sigwait" >&6; } 22807 if test $ac_cv_func_sigwait = yes; then 22808 cat >>confdefs.h <<\_ACEOF 22809 #define HAVE_SIGWAIT 1 22810 _ACEOF 22811 22812 else 22813 { echo "$as_me:$LINENO: checking for sigwait in -lc" >&5 22814 echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6; } 22815 if test "${ac_cv_lib_c_sigwait+set}" = set; then 22816 echo $ECHO_N "(cached) $ECHO_C" >&6 22817 else 22818 ac_check_lib_save_LIBS=$LIBS 22819 LIBS="-lc $LIBS" 22820 cat >conftest.$ac_ext <<_ACEOF 22821 /* confdefs.h. */ 22822 _ACEOF 22823 cat confdefs.h >>conftest.$ac_ext 22824 cat >>conftest.$ac_ext <<_ACEOF 22825 /* end confdefs.h. */ 22826 22827 /* Override any GCC internal prototype to avoid an error. 22828 Use char because int might match the return type of a GCC 22829 builtin and then its argument prototype would still apply. */ 22830 #ifdef __cplusplus 22831 extern "C" 22832 #endif 22833 char sigwait (); 22834 int 22835 main () 22836 { 22837 return sigwait (); 22838 ; 22839 return 0; 22840 } 22841 _ACEOF 22842 rm -f conftest.$ac_objext conftest$ac_exeext 22843 if { (ac_try="$ac_link" 22844 case "(($ac_try" in 22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22846 *) ac_try_echo=$ac_try;; 22847 esac 22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22849 (eval "$ac_link") 2>conftest.er1 22850 ac_status=$? 22851 grep -v '^ *+' conftest.er1 >conftest.err 22852 rm -f conftest.er1 22853 cat conftest.err >&5 22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22855 (exit $ac_status); } && { 22856 test -z "$ac_c_werror_flag" || 22857 test ! -s conftest.err 22858 } && test -s conftest$ac_exeext && 22859 $as_test_x conftest$ac_exeext; then 22860 ac_cv_lib_c_sigwait=yes 22861 else 22862 echo "$as_me: failed program was:" >&5 22863 sed 's/^/| /' conftest.$ac_ext >&5 22864 22865 ac_cv_lib_c_sigwait=no 22866 fi 22867 22868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22869 conftest$ac_exeext conftest.$ac_ext 22870 LIBS=$ac_check_lib_save_LIBS 22871 fi 22872 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5 22873 echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6; } 22874 if test $ac_cv_lib_c_sigwait = yes; then 22875 cat >>confdefs.h <<\_ACEOF 22876 #define HAVE_SIGWAIT 1 22877 _ACEOF 22878 22879 else 22880 { echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5 22881 echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6; } 22882 if test "${ac_cv_lib_pthread_sigwait+set}" = set; then 22883 echo $ECHO_N "(cached) $ECHO_C" >&6 22884 else 22885 ac_check_lib_save_LIBS=$LIBS 22886 LIBS="-lpthread $LIBS" 22887 cat >conftest.$ac_ext <<_ACEOF 22888 /* confdefs.h. */ 22889 _ACEOF 22890 cat confdefs.h >>conftest.$ac_ext 22891 cat >>conftest.$ac_ext <<_ACEOF 22892 /* end confdefs.h. */ 22893 22894 /* Override any GCC internal prototype to avoid an error. 22895 Use char because int might match the return type of a GCC 22896 builtin and then its argument prototype would still apply. */ 22897 #ifdef __cplusplus 22898 extern "C" 22899 #endif 22900 char sigwait (); 22901 int 22902 main () 22903 { 22904 return sigwait (); 22905 ; 22906 return 0; 22907 } 22908 _ACEOF 22909 rm -f conftest.$ac_objext conftest$ac_exeext 22910 if { (ac_try="$ac_link" 22911 case "(($ac_try" in 22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22913 *) ac_try_echo=$ac_try;; 22914 esac 22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22916 (eval "$ac_link") 2>conftest.er1 22917 ac_status=$? 22918 grep -v '^ *+' conftest.er1 >conftest.err 22919 rm -f conftest.er1 22920 cat conftest.err >&5 22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22922 (exit $ac_status); } && { 22923 test -z "$ac_c_werror_flag" || 22924 test ! -s conftest.err 22925 } && test -s conftest$ac_exeext && 22926 $as_test_x conftest$ac_exeext; then 22927 ac_cv_lib_pthread_sigwait=yes 22928 else 22929 echo "$as_me: failed program was:" >&5 22930 sed 's/^/| /' conftest.$ac_ext >&5 22931 22932 ac_cv_lib_pthread_sigwait=no 22933 fi 22934 22935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22936 conftest$ac_exeext conftest.$ac_ext 22937 LIBS=$ac_check_lib_save_LIBS 22938 fi 22939 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5 22940 echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6; } 22941 if test $ac_cv_lib_pthread_sigwait = yes; then 22942 cat >>confdefs.h <<\_ACEOF 22943 #define HAVE_SIGWAIT 1 22944 _ACEOF 22945 22946 else 22947 { echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5 22948 echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6; } 22949 if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then 22950 echo $ECHO_N "(cached) $ECHO_C" >&6 22951 else 22952 ac_check_lib_save_LIBS=$LIBS 22953 LIBS="-lpthread $LIBS" 22954 cat >conftest.$ac_ext <<_ACEOF 22955 /* confdefs.h. */ 22956 _ACEOF 22957 cat confdefs.h >>conftest.$ac_ext 22958 cat >>conftest.$ac_ext <<_ACEOF 22959 /* end confdefs.h. */ 22960 22961 /* Override any GCC internal prototype to avoid an error. 22962 Use char because int might match the return type of a GCC 22963 builtin and then its argument prototype would still apply. */ 22964 #ifdef __cplusplus 22965 extern "C" 22966 #endif 22967 char _Psigwait (); 22968 int 22969 main () 22970 { 22971 return _Psigwait (); 22972 ; 22973 return 0; 22974 } 22975 _ACEOF 22976 rm -f conftest.$ac_objext conftest$ac_exeext 22977 if { (ac_try="$ac_link" 22978 case "(($ac_try" in 22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22980 *) ac_try_echo=$ac_try;; 22981 esac 22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22983 (eval "$ac_link") 2>conftest.er1 22984 ac_status=$? 22985 grep -v '^ *+' conftest.er1 >conftest.err 22986 rm -f conftest.er1 22987 cat conftest.err >&5 22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22989 (exit $ac_status); } && { 22990 test -z "$ac_c_werror_flag" || 22991 test ! -s conftest.err 22992 } && test -s conftest$ac_exeext && 22993 $as_test_x conftest$ac_exeext; then 22994 ac_cv_lib_pthread__Psigwait=yes 22995 else 22996 echo "$as_me: failed program was:" >&5 22997 sed 's/^/| /' conftest.$ac_ext >&5 22998 22999 ac_cv_lib_pthread__Psigwait=no 23000 fi 23001 23002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23003 conftest$ac_exeext conftest.$ac_ext 23004 LIBS=$ac_check_lib_save_LIBS 23005 fi 23006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5 23007 echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6; } 23008 if test $ac_cv_lib_pthread__Psigwait = yes; then 23009 cat >>confdefs.h <<\_ACEOF 23010 #define HAVE_SIGWAIT 1 23011 _ACEOF 23012 23013 fi 23014 23015 fi 23016 23017 fi 23018 23019 fi 23020 23021 23022 { echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5 23023 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6; } 23024 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then 23025 echo $ECHO_N "(cached) $ECHO_C" >&6 23026 else 23027 cat >conftest.$ac_ext <<_ACEOF 23028 /* confdefs.h. */ 23029 _ACEOF 23030 cat confdefs.h >>conftest.$ac_ext 23031 cat >>conftest.$ac_ext <<_ACEOF 23032 /* end confdefs.h. */ 23033 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize. 23034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23035 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize 23036 23037 /* System header to define __stub macros and hopefully few prototypes, 23038 which can conflict with char pthread_attr_getstacksize (); below. 23039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23040 <limits.h> exists even on freestanding compilers. */ 23041 23042 #ifdef __STDC__ 23043 # include <limits.h> 23044 #else 23045 # include <assert.h> 23046 #endif 23047 23048 #undef pthread_attr_getstacksize 23049 23050 /* Override any GCC internal prototype to avoid an error. 23051 Use char because int might match the return type of a GCC 23052 builtin and then its argument prototype would still apply. */ 23053 #ifdef __cplusplus 23054 extern "C" 23055 #endif 23056 char pthread_attr_getstacksize (); 23057 /* The GNU C library defines this for functions which it implements 23058 to always fail with ENOSYS. Some functions are actually named 23059 something starting with __ and the normal name is an alias. */ 23060 #if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize 23061 choke me 23062 #endif 23063 23064 int 23065 main () 23066 { 23067 return pthread_attr_getstacksize (); 23068 ; 23069 return 0; 23070 } 23071 _ACEOF 23072 rm -f conftest.$ac_objext conftest$ac_exeext 23073 if { (ac_try="$ac_link" 23074 case "(($ac_try" in 23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23076 *) ac_try_echo=$ac_try;; 23077 esac 23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23079 (eval "$ac_link") 2>conftest.er1 23080 ac_status=$? 23081 grep -v '^ *+' conftest.er1 >conftest.err 23082 rm -f conftest.er1 23083 cat conftest.err >&5 23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23085 (exit $ac_status); } && { 23086 test -z "$ac_c_werror_flag" || 23087 test ! -s conftest.err 23088 } && test -s conftest$ac_exeext && 23089 $as_test_x conftest$ac_exeext; then 23090 ac_cv_func_pthread_attr_getstacksize=yes 23091 else 23092 echo "$as_me: failed program was:" >&5 23093 sed 's/^/| /' conftest.$ac_ext >&5 23094 23095 ac_cv_func_pthread_attr_getstacksize=no 23096 fi 23097 23098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23099 conftest$ac_exeext conftest.$ac_ext 23100 fi 23101 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5 23102 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6; } 23103 if test $ac_cv_func_pthread_attr_getstacksize = yes; then 23104 cat >>confdefs.h <<\_ACEOF 23105 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 23106 _ACEOF 23107 23108 fi 23109 23110 23111 # 23112 # Additional OS-specific issues related to pthreads and sigwait. 23113 # 23114 case "$host" in 23115 # 23116 # One more place to look for sigwait. 23117 # 23118 *-freebsd*) 23119 { echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5 23120 echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6; } 23121 if test "${ac_cv_lib_c_r_sigwait+set}" = set; then 23122 echo $ECHO_N "(cached) $ECHO_C" >&6 23123 else 23124 ac_check_lib_save_LIBS=$LIBS 23125 LIBS="-lc_r $LIBS" 23126 cat >conftest.$ac_ext <<_ACEOF 23127 /* confdefs.h. */ 23128 _ACEOF 23129 cat confdefs.h >>conftest.$ac_ext 23130 cat >>conftest.$ac_ext <<_ACEOF 23131 /* end confdefs.h. */ 23132 23133 /* Override any GCC internal prototype to avoid an error. 23134 Use char because int might match the return type of a GCC 23135 builtin and then its argument prototype would still apply. */ 23136 #ifdef __cplusplus 23137 extern "C" 23138 #endif 23139 char sigwait (); 23140 int 23141 main () 23142 { 23143 return sigwait (); 23144 ; 23145 return 0; 23146 } 23147 _ACEOF 23148 rm -f conftest.$ac_objext conftest$ac_exeext 23149 if { (ac_try="$ac_link" 23150 case "(($ac_try" in 23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23152 *) ac_try_echo=$ac_try;; 23153 esac 23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23155 (eval "$ac_link") 2>conftest.er1 23156 ac_status=$? 23157 grep -v '^ *+' conftest.er1 >conftest.err 23158 rm -f conftest.er1 23159 cat conftest.err >&5 23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23161 (exit $ac_status); } && { 23162 test -z "$ac_c_werror_flag" || 23163 test ! -s conftest.err 23164 } && test -s conftest$ac_exeext && 23165 $as_test_x conftest$ac_exeext; then 23166 ac_cv_lib_c_r_sigwait=yes 23167 else 23168 echo "$as_me: failed program was:" >&5 23169 sed 's/^/| /' conftest.$ac_ext >&5 23170 23171 ac_cv_lib_c_r_sigwait=no 23172 fi 23173 23174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23175 conftest$ac_exeext conftest.$ac_ext 23176 LIBS=$ac_check_lib_save_LIBS 23177 fi 23178 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5 23179 echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6; } 23180 if test $ac_cv_lib_c_r_sigwait = yes; then 23181 cat >>confdefs.h <<\_ACEOF 23182 #define HAVE_SIGWAIT 1 23183 _ACEOF 23184 23185 fi 23186 23187 ;; 23188 # 23189 # BSDI 3.0 through 4.0.1 needs pthread_init() to be 23190 # called before certain pthreads calls. This is deprecated 23191 # in BSD/OS 4.1. 23192 # 23193 *-bsdi3.*|*-bsdi4.0*) 23194 cat >>confdefs.h <<\_ACEOF 23195 #define NEED_PTHREAD_INIT 1 23196 _ACEOF 23197 23198 ;; 23199 # 23200 # LinuxThreads requires some changes to the way we 23201 # deal with signals. 23202 # 23203 *-linux*) 23204 cat >>confdefs.h <<\_ACEOF 23205 #define HAVE_LINUXTHREADS 1 23206 _ACEOF 23207 23208 ;; 23209 # 23210 # Ensure the right sigwait() semantics on Solaris and make 23211 # sure we call pthread_setconcurrency. 23212 # 23213 *-solaris*) 23214 cat >>confdefs.h <<\_ACEOF 23215 #define _POSIX_PTHREAD_SEMANTICS 1 23216 _ACEOF 23217 23218 { echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5 23219 echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6; } 23220 if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then 23221 echo $ECHO_N "(cached) $ECHO_C" >&6 23222 else 23223 cat >conftest.$ac_ext <<_ACEOF 23224 /* confdefs.h. */ 23225 _ACEOF 23226 cat confdefs.h >>conftest.$ac_ext 23227 cat >>conftest.$ac_ext <<_ACEOF 23228 /* end confdefs.h. */ 23229 /* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency. 23230 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23231 #define pthread_setconcurrency innocuous_pthread_setconcurrency 23232 23233 /* System header to define __stub macros and hopefully few prototypes, 23234 which can conflict with char pthread_setconcurrency (); below. 23235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23236 <limits.h> exists even on freestanding compilers. */ 23237 23238 #ifdef __STDC__ 23239 # include <limits.h> 23240 #else 23241 # include <assert.h> 23242 #endif 23243 23244 #undef pthread_setconcurrency 23245 23246 /* Override any GCC internal prototype to avoid an error. 23247 Use char because int might match the return type of a GCC 23248 builtin and then its argument prototype would still apply. */ 23249 #ifdef __cplusplus 23250 extern "C" 23251 #endif 23252 char pthread_setconcurrency (); 23253 /* The GNU C library defines this for functions which it implements 23254 to always fail with ENOSYS. Some functions are actually named 23255 something starting with __ and the normal name is an alias. */ 23256 #if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency 23257 choke me 23258 #endif 23259 23260 int 23261 main () 23262 { 23263 return pthread_setconcurrency (); 23264 ; 23265 return 0; 23266 } 23267 _ACEOF 23268 rm -f conftest.$ac_objext conftest$ac_exeext 23269 if { (ac_try="$ac_link" 23270 case "(($ac_try" in 23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23272 *) ac_try_echo=$ac_try;; 23273 esac 23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23275 (eval "$ac_link") 2>conftest.er1 23276 ac_status=$? 23277 grep -v '^ *+' conftest.er1 >conftest.err 23278 rm -f conftest.er1 23279 cat conftest.err >&5 23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23281 (exit $ac_status); } && { 23282 test -z "$ac_c_werror_flag" || 23283 test ! -s conftest.err 23284 } && test -s conftest$ac_exeext && 23285 $as_test_x conftest$ac_exeext; then 23286 ac_cv_func_pthread_setconcurrency=yes 23287 else 23288 echo "$as_me: failed program was:" >&5 23289 sed 's/^/| /' conftest.$ac_ext >&5 23290 23291 ac_cv_func_pthread_setconcurrency=no 23292 fi 23293 23294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23295 conftest$ac_exeext conftest.$ac_ext 23296 fi 23297 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5 23298 echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6; } 23299 if test $ac_cv_func_pthread_setconcurrency = yes; then 23300 cat >>confdefs.h <<\_ACEOF 23301 #define CALL_PTHREAD_SETCONCURRENCY 1 23302 _ACEOF 23303 23304 fi 23305 23306 cat >>confdefs.h <<\_ACEOF 23307 #define POSIX_GETPWUID_R 1 23308 _ACEOF 23309 23310 cat >>confdefs.h <<\_ACEOF 23311 #define POSIX_GETPWNAM_R 1 23312 _ACEOF 23313 23314 cat >>confdefs.h <<\_ACEOF 23315 #define POSIX_GETGRGID_R 1 23316 _ACEOF 23317 23318 cat >>confdefs.h <<\_ACEOF 23319 #define POSIX_GETGRNAM_R 1 23320 _ACEOF 23321 23322 ;; 23323 *hpux11*) 23324 cat >>confdefs.h <<\_ACEOF 23325 #define NEED_ENDNETGRENT_R 1 23326 _ACEOF 23327 23328 cat >>confdefs.h <<\_ACEOF 23329 #define _PTHREADS_DRAFT4 1 23330 _ACEOF 23331 23332 ;; 23333 # 23334 # UnixWare does things its own way. 23335 # 23336 *-UnixWare*) 23337 cat >>confdefs.h <<\_ACEOF 23338 #define HAVE_UNIXWARE_SIGWAIT 1 23339 _ACEOF 23340 23341 ;; 23342 esac 23343 23344 # 23345 # Look for sysconf to allow detection of the number of processors. 23346 # 23347 { echo "$as_me:$LINENO: checking for sysconf" >&5 23348 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; } 23349 if test "${ac_cv_func_sysconf+set}" = set; then 23350 echo $ECHO_N "(cached) $ECHO_C" >&6 23351 else 23352 cat >conftest.$ac_ext <<_ACEOF 23353 /* confdefs.h. */ 23354 _ACEOF 23355 cat confdefs.h >>conftest.$ac_ext 23356 cat >>conftest.$ac_ext <<_ACEOF 23357 /* end confdefs.h. */ 23358 /* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf. 23359 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23360 #define sysconf innocuous_sysconf 23361 23362 /* System header to define __stub macros and hopefully few prototypes, 23363 which can conflict with char sysconf (); below. 23364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23365 <limits.h> exists even on freestanding compilers. */ 23366 23367 #ifdef __STDC__ 23368 # include <limits.h> 23369 #else 23370 # include <assert.h> 23371 #endif 23372 23373 #undef sysconf 23374 23375 /* Override any GCC internal prototype to avoid an error. 23376 Use char because int might match the return type of a GCC 23377 builtin and then its argument prototype would still apply. */ 23378 #ifdef __cplusplus 23379 extern "C" 23380 #endif 23381 char sysconf (); 23382 /* The GNU C library defines this for functions which it implements 23383 to always fail with ENOSYS. Some functions are actually named 23384 something starting with __ and the normal name is an alias. */ 23385 #if defined __stub_sysconf || defined __stub___sysconf 23386 choke me 23387 #endif 23388 23389 int 23390 main () 23391 { 23392 return sysconf (); 23393 ; 23394 return 0; 23395 } 23396 _ACEOF 23397 rm -f conftest.$ac_objext conftest$ac_exeext 23398 if { (ac_try="$ac_link" 23399 case "(($ac_try" in 23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23401 *) ac_try_echo=$ac_try;; 23402 esac 23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23404 (eval "$ac_link") 2>conftest.er1 23405 ac_status=$? 23406 grep -v '^ *+' conftest.er1 >conftest.err 23407 rm -f conftest.er1 23408 cat conftest.err >&5 23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23410 (exit $ac_status); } && { 23411 test -z "$ac_c_werror_flag" || 23412 test ! -s conftest.err 23413 } && test -s conftest$ac_exeext && 23414 $as_test_x conftest$ac_exeext; then 23415 ac_cv_func_sysconf=yes 23416 else 23417 echo "$as_me: failed program was:" >&5 23418 sed 's/^/| /' conftest.$ac_ext >&5 23419 23420 ac_cv_func_sysconf=no 23421 fi 23422 23423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23424 conftest$ac_exeext conftest.$ac_ext 23425 fi 23426 { echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5 23427 echo "${ECHO_T}$ac_cv_func_sysconf" >&6; } 23428 if test $ac_cv_func_sysconf = yes; then 23429 cat >>confdefs.h <<\_ACEOF 23430 #define HAVE_SYSCONF 1 23431 _ACEOF 23432 23433 fi 23434 23435 23436 else 23437 ALWAYS_DEFINES="" 23438 DO_PTHREADS="#undef DO_PTHREADS" 23439 WANT_IRS_THREADSGR_OBJS="" 23440 WANT_IRS_THREADSPW_OBJS="" 23441 WANT_IRS_THREADS_OBJS="" 23442 WANT_THREADS_OBJS="" 23443 thread_dir=nothreads 23444 fi 23445 23446 23447 23448 23449 23450 23451 23452 23453 { echo "$as_me:$LINENO: checking for strlcat" >&5 23454 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } 23455 if test "${ac_cv_func_strlcat+set}" = set; then 23456 echo $ECHO_N "(cached) $ECHO_C" >&6 23457 else 23458 cat >conftest.$ac_ext <<_ACEOF 23459 /* confdefs.h. */ 23460 _ACEOF 23461 cat confdefs.h >>conftest.$ac_ext 23462 cat >>conftest.$ac_ext <<_ACEOF 23463 /* end confdefs.h. */ 23464 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat. 23465 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23466 #define strlcat innocuous_strlcat 23467 23468 /* System header to define __stub macros and hopefully few prototypes, 23469 which can conflict with char strlcat (); below. 23470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23471 <limits.h> exists even on freestanding compilers. */ 23472 23473 #ifdef __STDC__ 23474 # include <limits.h> 23475 #else 23476 # include <assert.h> 23477 #endif 23478 23479 #undef strlcat 23480 23481 /* Override any GCC internal prototype to avoid an error. 23482 Use char because int might match the return type of a GCC 23483 builtin and then its argument prototype would still apply. */ 23484 #ifdef __cplusplus 23485 extern "C" 23486 #endif 23487 char strlcat (); 23488 /* The GNU C library defines this for functions which it implements 23489 to always fail with ENOSYS. Some functions are actually named 23490 something starting with __ and the normal name is an alias. */ 23491 #if defined __stub_strlcat || defined __stub___strlcat 23492 choke me 23493 #endif 23494 23495 int 23496 main () 23497 { 23498 return strlcat (); 23499 ; 23500 return 0; 23501 } 23502 _ACEOF 23503 rm -f conftest.$ac_objext conftest$ac_exeext 23504 if { (ac_try="$ac_link" 23505 case "(($ac_try" in 23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23507 *) ac_try_echo=$ac_try;; 23508 esac 23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23510 (eval "$ac_link") 2>conftest.er1 23511 ac_status=$? 23512 grep -v '^ *+' conftest.er1 >conftest.err 23513 rm -f conftest.er1 23514 cat conftest.err >&5 23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23516 (exit $ac_status); } && { 23517 test -z "$ac_c_werror_flag" || 23518 test ! -s conftest.err 23519 } && test -s conftest$ac_exeext && 23520 $as_test_x conftest$ac_exeext; then 23521 ac_cv_func_strlcat=yes 23522 else 23523 echo "$as_me: failed program was:" >&5 23524 sed 's/^/| /' conftest.$ac_ext >&5 23525 23526 ac_cv_func_strlcat=no 23527 fi 23528 23529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23530 conftest$ac_exeext conftest.$ac_ext 23531 fi 23532 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5 23533 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; } 23534 if test $ac_cv_func_strlcat = yes; then 23535 cat >>confdefs.h <<\_ACEOF 23536 #define HAVE_STRLCAT 1 23537 _ACEOF 23538 23539 fi 23540 23541 { echo "$as_me:$LINENO: checking for memmove" >&5 23542 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; } 23543 if test "${ac_cv_func_memmove+set}" = set; then 23544 echo $ECHO_N "(cached) $ECHO_C" >&6 23545 else 23546 cat >conftest.$ac_ext <<_ACEOF 23547 /* confdefs.h. */ 23548 _ACEOF 23549 cat confdefs.h >>conftest.$ac_ext 23550 cat >>conftest.$ac_ext <<_ACEOF 23551 /* end confdefs.h. */ 23552 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove. 23553 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23554 #define memmove innocuous_memmove 23555 23556 /* System header to define __stub macros and hopefully few prototypes, 23557 which can conflict with char memmove (); below. 23558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23559 <limits.h> exists even on freestanding compilers. */ 23560 23561 #ifdef __STDC__ 23562 # include <limits.h> 23563 #else 23564 # include <assert.h> 23565 #endif 23566 23567 #undef memmove 23568 23569 /* Override any GCC internal prototype to avoid an error. 23570 Use char because int might match the return type of a GCC 23571 builtin and then its argument prototype would still apply. */ 23572 #ifdef __cplusplus 23573 extern "C" 23574 #endif 23575 char memmove (); 23576 /* The GNU C library defines this for functions which it implements 23577 to always fail with ENOSYS. Some functions are actually named 23578 something starting with __ and the normal name is an alias. */ 23579 #if defined __stub_memmove || defined __stub___memmove 23580 choke me 23581 #endif 23582 23583 int 23584 main () 23585 { 23586 return memmove (); 23587 ; 23588 return 0; 23589 } 23590 _ACEOF 23591 rm -f conftest.$ac_objext conftest$ac_exeext 23592 if { (ac_try="$ac_link" 23593 case "(($ac_try" in 23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23595 *) ac_try_echo=$ac_try;; 23596 esac 23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23598 (eval "$ac_link") 2>conftest.er1 23599 ac_status=$? 23600 grep -v '^ *+' conftest.er1 >conftest.err 23601 rm -f conftest.er1 23602 cat conftest.err >&5 23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23604 (exit $ac_status); } && { 23605 test -z "$ac_c_werror_flag" || 23606 test ! -s conftest.err 23607 } && test -s conftest$ac_exeext && 23608 $as_test_x conftest$ac_exeext; then 23609 ac_cv_func_memmove=yes 23610 else 23611 echo "$as_me: failed program was:" >&5 23612 sed 's/^/| /' conftest.$ac_ext >&5 23613 23614 ac_cv_func_memmove=no 23615 fi 23616 23617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23618 conftest$ac_exeext conftest.$ac_ext 23619 fi 23620 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5 23621 echo "${ECHO_T}$ac_cv_func_memmove" >&6; } 23622 if test $ac_cv_func_memmove = yes; then 23623 cat >>confdefs.h <<\_ACEOF 23624 #define HAVE_MEMMOVE 1 23625 _ACEOF 23626 23627 fi 23628 23629 { echo "$as_me:$LINENO: checking for memchr" >&5 23630 echo $ECHO_N "checking for memchr... $ECHO_C" >&6; } 23631 if test "${ac_cv_func_memchr+set}" = set; then 23632 echo $ECHO_N "(cached) $ECHO_C" >&6 23633 else 23634 cat >conftest.$ac_ext <<_ACEOF 23635 /* confdefs.h. */ 23636 _ACEOF 23637 cat confdefs.h >>conftest.$ac_ext 23638 cat >>conftest.$ac_ext <<_ACEOF 23639 /* end confdefs.h. */ 23640 /* Define memchr to an innocuous variant, in case <limits.h> declares memchr. 23641 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23642 #define memchr innocuous_memchr 23643 23644 /* System header to define __stub macros and hopefully few prototypes, 23645 which can conflict with char memchr (); below. 23646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23647 <limits.h> exists even on freestanding compilers. */ 23648 23649 #ifdef __STDC__ 23650 # include <limits.h> 23651 #else 23652 # include <assert.h> 23653 #endif 23654 23655 #undef memchr 23656 23657 /* Override any GCC internal prototype to avoid an error. 23658 Use char because int might match the return type of a GCC 23659 builtin and then its argument prototype would still apply. */ 23660 #ifdef __cplusplus 23661 extern "C" 23662 #endif 23663 char memchr (); 23664 /* The GNU C library defines this for functions which it implements 23665 to always fail with ENOSYS. Some functions are actually named 23666 something starting with __ and the normal name is an alias. */ 23667 #if defined __stub_memchr || defined __stub___memchr 23668 choke me 23669 #endif 23670 23671 int 23672 main () 23673 { 23674 return memchr (); 23675 ; 23676 return 0; 23677 } 23678 _ACEOF 23679 rm -f conftest.$ac_objext conftest$ac_exeext 23680 if { (ac_try="$ac_link" 23681 case "(($ac_try" in 23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23683 *) ac_try_echo=$ac_try;; 23684 esac 23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23686 (eval "$ac_link") 2>conftest.er1 23687 ac_status=$? 23688 grep -v '^ *+' conftest.er1 >conftest.err 23689 rm -f conftest.er1 23690 cat conftest.err >&5 23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23692 (exit $ac_status); } && { 23693 test -z "$ac_c_werror_flag" || 23694 test ! -s conftest.err 23695 } && test -s conftest$ac_exeext && 23696 $as_test_x conftest$ac_exeext; then 23697 ac_cv_func_memchr=yes 23698 else 23699 echo "$as_me: failed program was:" >&5 23700 sed 's/^/| /' conftest.$ac_ext >&5 23701 23702 ac_cv_func_memchr=no 23703 fi 23704 23705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23706 conftest$ac_exeext conftest.$ac_ext 23707 fi 23708 { echo "$as_me:$LINENO: result: $ac_cv_func_memchr" >&5 23709 echo "${ECHO_T}$ac_cv_func_memchr" >&6; } 23710 if test $ac_cv_func_memchr = yes; then 23711 cat >>confdefs.h <<\_ACEOF 23712 #define HAVE_MEMCHR 1 23713 _ACEOF 23714 23715 fi 23716 23717 { echo "$as_me:$LINENO: checking for strtoul" >&5 23718 echo $ECHO_N "checking for strtoul... $ECHO_C" >&6; } 23719 if test "${ac_cv_func_strtoul+set}" = set; then 23720 echo $ECHO_N "(cached) $ECHO_C" >&6 23721 else 23722 cat >conftest.$ac_ext <<_ACEOF 23723 /* confdefs.h. */ 23724 _ACEOF 23725 cat confdefs.h >>conftest.$ac_ext 23726 cat >>conftest.$ac_ext <<_ACEOF 23727 /* end confdefs.h. */ 23728 /* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul. 23729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23730 #define strtoul innocuous_strtoul 23731 23732 /* System header to define __stub macros and hopefully few prototypes, 23733 which can conflict with char strtoul (); below. 23734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23735 <limits.h> exists even on freestanding compilers. */ 23736 23737 #ifdef __STDC__ 23738 # include <limits.h> 23739 #else 23740 # include <assert.h> 23741 #endif 23742 23743 #undef strtoul 23744 23745 /* Override any GCC internal prototype to avoid an error. 23746 Use char because int might match the return type of a GCC 23747 builtin and then its argument prototype would still apply. */ 23748 #ifdef __cplusplus 23749 extern "C" 23750 #endif 23751 char strtoul (); 23752 /* The GNU C library defines this for functions which it implements 23753 to always fail with ENOSYS. Some functions are actually named 23754 something starting with __ and the normal name is an alias. */ 23755 #if defined __stub_strtoul || defined __stub___strtoul 23756 choke me 23757 #endif 23758 23759 int 23760 main () 23761 { 23762 return strtoul (); 23763 ; 23764 return 0; 23765 } 23766 _ACEOF 23767 rm -f conftest.$ac_objext conftest$ac_exeext 23768 if { (ac_try="$ac_link" 23769 case "(($ac_try" in 23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23771 *) ac_try_echo=$ac_try;; 23772 esac 23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23774 (eval "$ac_link") 2>conftest.er1 23775 ac_status=$? 23776 grep -v '^ *+' conftest.er1 >conftest.err 23777 rm -f conftest.er1 23778 cat conftest.err >&5 23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23780 (exit $ac_status); } && { 23781 test -z "$ac_c_werror_flag" || 23782 test ! -s conftest.err 23783 } && test -s conftest$ac_exeext && 23784 $as_test_x conftest$ac_exeext; then 23785 ac_cv_func_strtoul=yes 23786 else 23787 echo "$as_me: failed program was:" >&5 23788 sed 's/^/| /' conftest.$ac_ext >&5 23789 23790 ac_cv_func_strtoul=no 23791 fi 23792 23793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23794 conftest$ac_exeext conftest.$ac_ext 23795 fi 23796 { echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5 23797 echo "${ECHO_T}$ac_cv_func_strtoul" >&6; } 23798 if test $ac_cv_func_strtoul = yes; then 23799 : 23800 else 23801 cat >>confdefs.h <<\_ACEOF 23802 #define NEED_STRTOUL 1 23803 _ACEOF 23804 23805 fi 23806 23807 23808 { echo "$as_me:$LINENO: checking for if_nametoindex" >&5 23809 echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6; } 23810 if test "${ac_cv_func_if_nametoindex+set}" = set; then 23811 echo $ECHO_N "(cached) $ECHO_C" >&6 23812 else 23813 cat >conftest.$ac_ext <<_ACEOF 23814 /* confdefs.h. */ 23815 _ACEOF 23816 cat confdefs.h >>conftest.$ac_ext 23817 cat >>conftest.$ac_ext <<_ACEOF 23818 /* end confdefs.h. */ 23819 /* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex. 23820 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23821 #define if_nametoindex innocuous_if_nametoindex 23822 23823 /* System header to define __stub macros and hopefully few prototypes, 23824 which can conflict with char if_nametoindex (); below. 23825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23826 <limits.h> exists even on freestanding compilers. */ 23827 23828 #ifdef __STDC__ 23829 # include <limits.h> 23830 #else 23831 # include <assert.h> 23832 #endif 23833 23834 #undef if_nametoindex 23835 23836 /* Override any GCC internal prototype to avoid an error. 23837 Use char because int might match the return type of a GCC 23838 builtin and then its argument prototype would still apply. */ 23839 #ifdef __cplusplus 23840 extern "C" 23841 #endif 23842 char if_nametoindex (); 23843 /* The GNU C library defines this for functions which it implements 23844 to always fail with ENOSYS. Some functions are actually named 23845 something starting with __ and the normal name is an alias. */ 23846 #if defined __stub_if_nametoindex || defined __stub___if_nametoindex 23847 choke me 23848 #endif 23849 23850 int 23851 main () 23852 { 23853 return if_nametoindex (); 23854 ; 23855 return 0; 23856 } 23857 _ACEOF 23858 rm -f conftest.$ac_objext conftest$ac_exeext 23859 if { (ac_try="$ac_link" 23860 case "(($ac_try" in 23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23862 *) ac_try_echo=$ac_try;; 23863 esac 23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23865 (eval "$ac_link") 2>conftest.er1 23866 ac_status=$? 23867 grep -v '^ *+' conftest.er1 >conftest.err 23868 rm -f conftest.er1 23869 cat conftest.err >&5 23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23871 (exit $ac_status); } && { 23872 test -z "$ac_c_werror_flag" || 23873 test ! -s conftest.err 23874 } && test -s conftest$ac_exeext && 23875 $as_test_x conftest$ac_exeext; then 23876 ac_cv_func_if_nametoindex=yes 23877 else 23878 echo "$as_me: failed program was:" >&5 23879 sed 's/^/| /' conftest.$ac_ext >&5 23880 23881 ac_cv_func_if_nametoindex=no 23882 fi 23883 23884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23885 conftest$ac_exeext conftest.$ac_ext 23886 fi 23887 { echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5 23888 echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6; } 23889 if test $ac_cv_func_if_nametoindex = yes; then 23890 USE_IFNAMELINKID="#define USE_IFNAMELINKID 1" 23891 else 23892 USE_IFNAMELINKID="#undef USE_IFNAMELINKID" 23893 fi 23894 23895 23896 23897 ISC_THREAD_DIR=$thread_dir 23898 23899 23900 { echo "$as_me:$LINENO: checking for daemon" >&5 23901 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } 23902 if test "${ac_cv_func_daemon+set}" = set; then 23903 echo $ECHO_N "(cached) $ECHO_C" >&6 23904 else 23905 cat >conftest.$ac_ext <<_ACEOF 23906 /* confdefs.h. */ 23907 _ACEOF 23908 cat confdefs.h >>conftest.$ac_ext 23909 cat >>conftest.$ac_ext <<_ACEOF 23910 /* end confdefs.h. */ 23911 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. 23912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23913 #define daemon innocuous_daemon 23914 23915 /* System header to define __stub macros and hopefully few prototypes, 23916 which can conflict with char daemon (); below. 23917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23918 <limits.h> exists even on freestanding compilers. */ 23919 23920 #ifdef __STDC__ 23921 # include <limits.h> 23922 #else 23923 # include <assert.h> 23924 #endif 23925 23926 #undef daemon 23927 23928 /* Override any GCC internal prototype to avoid an error. 23929 Use char because int might match the return type of a GCC 23930 builtin and then its argument prototype would still apply. */ 23931 #ifdef __cplusplus 23932 extern "C" 23933 #endif 23934 char daemon (); 23935 /* The GNU C library defines this for functions which it implements 23936 to always fail with ENOSYS. Some functions are actually named 23937 something starting with __ and the normal name is an alias. */ 23938 #if defined __stub_daemon || defined __stub___daemon 23939 choke me 23940 #endif 23941 23942 int 23943 main () 23944 { 23945 return daemon (); 23946 ; 23947 return 0; 23948 } 23949 _ACEOF 23950 rm -f conftest.$ac_objext conftest$ac_exeext 23951 if { (ac_try="$ac_link" 23952 case "(($ac_try" in 23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23954 *) ac_try_echo=$ac_try;; 23955 esac 23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23957 (eval "$ac_link") 2>conftest.er1 23958 ac_status=$? 23959 grep -v '^ *+' conftest.er1 >conftest.err 23960 rm -f conftest.er1 23961 cat conftest.err >&5 23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23963 (exit $ac_status); } && { 23964 test -z "$ac_c_werror_flag" || 23965 test ! -s conftest.err 23966 } && test -s conftest$ac_exeext && 23967 $as_test_x conftest$ac_exeext; then 23968 ac_cv_func_daemon=yes 23969 else 23970 echo "$as_me: failed program was:" >&5 23971 sed 's/^/| /' conftest.$ac_ext >&5 23972 23973 ac_cv_func_daemon=no 23974 fi 23975 23976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23977 conftest$ac_exeext conftest.$ac_ext 23978 fi 23979 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 23980 echo "${ECHO_T}$ac_cv_func_daemon" >&6; } 23981 if test $ac_cv_func_daemon = yes; then 23982 DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON" 23983 23984 else 23985 DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1" 23986 23987 fi 23988 23989 23990 23991 23992 { echo "$as_me:$LINENO: checking for strsep" >&5 23993 echo $ECHO_N "checking for strsep... $ECHO_C" >&6; } 23994 if test "${ac_cv_func_strsep+set}" = set; then 23995 echo $ECHO_N "(cached) $ECHO_C" >&6 23996 else 23997 cat >conftest.$ac_ext <<_ACEOF 23998 /* confdefs.h. */ 23999 _ACEOF 24000 cat confdefs.h >>conftest.$ac_ext 24001 cat >>conftest.$ac_ext <<_ACEOF 24002 /* end confdefs.h. */ 24003 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep. 24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24005 #define strsep innocuous_strsep 24006 24007 /* System header to define __stub macros and hopefully few prototypes, 24008 which can conflict with char strsep (); below. 24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24010 <limits.h> exists even on freestanding compilers. */ 24011 24012 #ifdef __STDC__ 24013 # include <limits.h> 24014 #else 24015 # include <assert.h> 24016 #endif 24017 24018 #undef strsep 24019 24020 /* Override any GCC internal prototype to avoid an error. 24021 Use char because int might match the return type of a GCC 24022 builtin and then its argument prototype would still apply. */ 24023 #ifdef __cplusplus 24024 extern "C" 24025 #endif 24026 char strsep (); 24027 /* The GNU C library defines this for functions which it implements 24028 to always fail with ENOSYS. Some functions are actually named 24029 something starting with __ and the normal name is an alias. */ 24030 #if defined __stub_strsep || defined __stub___strsep 24031 choke me 24032 #endif 24033 24034 int 24035 main () 24036 { 24037 return strsep (); 24038 ; 24039 return 0; 24040 } 24041 _ACEOF 24042 rm -f conftest.$ac_objext conftest$ac_exeext 24043 if { (ac_try="$ac_link" 24044 case "(($ac_try" in 24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24046 *) ac_try_echo=$ac_try;; 24047 esac 24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24049 (eval "$ac_link") 2>conftest.er1 24050 ac_status=$? 24051 grep -v '^ *+' conftest.er1 >conftest.err 24052 rm -f conftest.er1 24053 cat conftest.err >&5 24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24055 (exit $ac_status); } && { 24056 test -z "$ac_c_werror_flag" || 24057 test ! -s conftest.err 24058 } && test -s conftest$ac_exeext && 24059 $as_test_x conftest$ac_exeext; then 24060 ac_cv_func_strsep=yes 24061 else 24062 echo "$as_me: failed program was:" >&5 24063 sed 's/^/| /' conftest.$ac_ext >&5 24064 24065 ac_cv_func_strsep=no 24066 fi 24067 24068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24069 conftest$ac_exeext conftest.$ac_ext 24070 fi 24071 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 24072 echo "${ECHO_T}$ac_cv_func_strsep" >&6; } 24073 if test $ac_cv_func_strsep = yes; then 24074 STRSEP_OBJS="" NEED_STRSEP="#undef NEED_STRSEP" 24075 24076 else 24077 STRSEP_OBJS="\${STRSEP_OBJS}" NEED_STRSEP="#define NEED_STRSEP 1" 24078 24079 fi 24080 24081 24082 24083 24084 { echo "$as_me:$LINENO: checking for strerror" >&5 24085 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; } 24086 if test "${ac_cv_func_strerror+set}" = set; then 24087 echo $ECHO_N "(cached) $ECHO_C" >&6 24088 else 24089 cat >conftest.$ac_ext <<_ACEOF 24090 /* confdefs.h. */ 24091 _ACEOF 24092 cat confdefs.h >>conftest.$ac_ext 24093 cat >>conftest.$ac_ext <<_ACEOF 24094 /* end confdefs.h. */ 24095 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror. 24096 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24097 #define strerror innocuous_strerror 24098 24099 /* System header to define __stub macros and hopefully few prototypes, 24100 which can conflict with char strerror (); below. 24101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24102 <limits.h> exists even on freestanding compilers. */ 24103 24104 #ifdef __STDC__ 24105 # include <limits.h> 24106 #else 24107 # include <assert.h> 24108 #endif 24109 24110 #undef strerror 24111 24112 /* Override any GCC internal prototype to avoid an error. 24113 Use char because int might match the return type of a GCC 24114 builtin and then its argument prototype would still apply. */ 24115 #ifdef __cplusplus 24116 extern "C" 24117 #endif 24118 char strerror (); 24119 /* The GNU C library defines this for functions which it implements 24120 to always fail with ENOSYS. Some functions are actually named 24121 something starting with __ and the normal name is an alias. */ 24122 #if defined __stub_strerror || defined __stub___strerror 24123 choke me 24124 #endif 24125 24126 int 24127 main () 24128 { 24129 return strerror (); 24130 ; 24131 return 0; 24132 } 24133 _ACEOF 24134 rm -f conftest.$ac_objext conftest$ac_exeext 24135 if { (ac_try="$ac_link" 24136 case "(($ac_try" in 24137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24138 *) ac_try_echo=$ac_try;; 24139 esac 24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24141 (eval "$ac_link") 2>conftest.er1 24142 ac_status=$? 24143 grep -v '^ *+' conftest.er1 >conftest.err 24144 rm -f conftest.er1 24145 cat conftest.err >&5 24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24147 (exit $ac_status); } && { 24148 test -z "$ac_c_werror_flag" || 24149 test ! -s conftest.err 24150 } && test -s conftest$ac_exeext && 24151 $as_test_x conftest$ac_exeext; then 24152 ac_cv_func_strerror=yes 24153 else 24154 echo "$as_me: failed program was:" >&5 24155 sed 's/^/| /' conftest.$ac_ext >&5 24156 24157 ac_cv_func_strerror=no 24158 fi 24159 24160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24161 conftest$ac_exeext conftest.$ac_ext 24162 fi 24163 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5 24164 echo "${ECHO_T}$ac_cv_func_strerror" >&6; } 24165 if test $ac_cv_func_strerror = yes; then 24166 NEED_STRERROR="#undef NEED_STRERROR" 24167 else 24168 NEED_STRERROR="#define NEED_STRERROR 1" 24169 fi 24170 24171 24172 24173 if test -n "$NEED_STRERROR" 24174 then 24175 { echo "$as_me:$LINENO: checking for extern char * sys_errlist" >&5 24176 echo $ECHO_N "checking for extern char * sys_errlist... $ECHO_C" >&6; } 24177 cat >conftest.$ac_ext <<_ACEOF 24178 /* confdefs.h. */ 24179 _ACEOF 24180 cat confdefs.h >>conftest.$ac_ext 24181 cat >>conftest.$ac_ext <<_ACEOF 24182 /* end confdefs.h. */ 24183 extern int sys_nerr; extern char *sys_errlist[]; 24184 int 24185 main () 24186 { 24187 const char *p = sys_errlist[0]; 24188 ; 24189 return 0; 24190 } 24191 _ACEOF 24192 rm -f conftest.$ac_objext conftest$ac_exeext 24193 if { (ac_try="$ac_link" 24194 case "(($ac_try" in 24195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24196 *) ac_try_echo=$ac_try;; 24197 esac 24198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24199 (eval "$ac_link") 2>conftest.er1 24200 ac_status=$? 24201 grep -v '^ *+' conftest.er1 >conftest.err 24202 rm -f conftest.er1 24203 cat conftest.err >&5 24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24205 (exit $ac_status); } && { 24206 test -z "$ac_c_werror_flag" || 24207 test ! -s conftest.err 24208 } && test -s conftest$ac_exeext && 24209 $as_test_x conftest$ac_exeext; then 24210 { echo "$as_me:$LINENO: result: yes" >&5 24211 echo "${ECHO_T}yes" >&6; } 24212 cat >>confdefs.h <<\_ACEOF 24213 #define USE_SYSERROR_LIST 1 24214 _ACEOF 24215 24216 else 24217 echo "$as_me: failed program was:" >&5 24218 sed 's/^/| /' conftest.$ac_ext >&5 24219 24220 { echo "$as_me:$LINENO: result: no" >&5 24221 echo "${ECHO_T}no" >&6; } 24222 fi 24223 24224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24225 conftest$ac_exeext conftest.$ac_ext 24226 fi 24227 24228 # 24229 # flockfile is usually provided by pthreads, but we may want to use it 24230 # even if compiled with --disable-threads. 24231 # 24232 { echo "$as_me:$LINENO: checking for flockfile" >&5 24233 echo $ECHO_N "checking for flockfile... $ECHO_C" >&6; } 24234 if test "${ac_cv_func_flockfile+set}" = set; then 24235 echo $ECHO_N "(cached) $ECHO_C" >&6 24236 else 24237 cat >conftest.$ac_ext <<_ACEOF 24238 /* confdefs.h. */ 24239 _ACEOF 24240 cat confdefs.h >>conftest.$ac_ext 24241 cat >>conftest.$ac_ext <<_ACEOF 24242 /* end confdefs.h. */ 24243 /* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile. 24244 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24245 #define flockfile innocuous_flockfile 24246 24247 /* System header to define __stub macros and hopefully few prototypes, 24248 which can conflict with char flockfile (); below. 24249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24250 <limits.h> exists even on freestanding compilers. */ 24251 24252 #ifdef __STDC__ 24253 # include <limits.h> 24254 #else 24255 # include <assert.h> 24256 #endif 24257 24258 #undef flockfile 24259 24260 /* Override any GCC internal prototype to avoid an error. 24261 Use char because int might match the return type of a GCC 24262 builtin and then its argument prototype would still apply. */ 24263 #ifdef __cplusplus 24264 extern "C" 24265 #endif 24266 char flockfile (); 24267 /* The GNU C library defines this for functions which it implements 24268 to always fail with ENOSYS. Some functions are actually named 24269 something starting with __ and the normal name is an alias. */ 24270 #if defined __stub_flockfile || defined __stub___flockfile 24271 choke me 24272 #endif 24273 24274 int 24275 main () 24276 { 24277 return flockfile (); 24278 ; 24279 return 0; 24280 } 24281 _ACEOF 24282 rm -f conftest.$ac_objext conftest$ac_exeext 24283 if { (ac_try="$ac_link" 24284 case "(($ac_try" in 24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24286 *) ac_try_echo=$ac_try;; 24287 esac 24288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24289 (eval "$ac_link") 2>conftest.er1 24290 ac_status=$? 24291 grep -v '^ *+' conftest.er1 >conftest.err 24292 rm -f conftest.er1 24293 cat conftest.err >&5 24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24295 (exit $ac_status); } && { 24296 test -z "$ac_c_werror_flag" || 24297 test ! -s conftest.err 24298 } && test -s conftest$ac_exeext && 24299 $as_test_x conftest$ac_exeext; then 24300 ac_cv_func_flockfile=yes 24301 else 24302 echo "$as_me: failed program was:" >&5 24303 sed 's/^/| /' conftest.$ac_ext >&5 24304 24305 ac_cv_func_flockfile=no 24306 fi 24307 24308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24309 conftest$ac_exeext conftest.$ac_ext 24310 fi 24311 { echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5 24312 echo "${ECHO_T}$ac_cv_func_flockfile" >&6; } 24313 if test $ac_cv_func_flockfile = yes; then 24314 cat >>confdefs.h <<\_ACEOF 24315 #define HAVE_FLOCKFILE 1 24316 _ACEOF 24317 24318 fi 24319 24320 24321 # 24322 # Indicate what the final decision was regarding threads. 24323 # 24324 { echo "$as_me:$LINENO: checking whether to build with threads" >&5 24325 echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6; } 24326 if $use_threads; then 24327 { echo "$as_me:$LINENO: result: yes" >&5 24328 echo "${ECHO_T}yes" >&6; } 24329 else 24330 { echo "$as_me:$LINENO: result: no" >&5 24331 echo "${ECHO_T}no" >&6; } 24332 fi 24333 24334 # 24335 # End of pthreads stuff. 24336 # 24337 24338 # 24339 # Additional compiler settings. 24340 # 24341 MKDEPCC="$CC" 24342 MKDEPCFLAGS="-M" 24343 IRIX_DNSSEC_WARNINGS_HACK="" 24344 24345 if test "X$GCC" = "Xyes"; then 24346 { echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5 24347 echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6; } 24348 SAVE_CFLAGS=$CFLAGS 24349 CFLAGS=-fno-strict-aliasing 24350 cat >conftest.$ac_ext <<_ACEOF 24351 /* confdefs.h. */ 24352 _ACEOF 24353 cat confdefs.h >>conftest.$ac_ext 24354 cat >>conftest.$ac_ext <<_ACEOF 24355 /* end confdefs.h. */ 24356 24357 int 24358 main () 24359 { 24360 24361 ; 24362 return 0; 24363 } 24364 _ACEOF 24365 rm -f conftest.$ac_objext 24366 if { (ac_try="$ac_compile" 24367 case "(($ac_try" in 24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24369 *) ac_try_echo=$ac_try;; 24370 esac 24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24372 (eval "$ac_compile") 2>conftest.er1 24373 ac_status=$? 24374 grep -v '^ *+' conftest.er1 >conftest.err 24375 rm -f conftest.er1 24376 cat conftest.err >&5 24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24378 (exit $ac_status); } && { 24379 test -z "$ac_c_werror_flag" || 24380 test ! -s conftest.err 24381 } && test -s conftest.$ac_objext; then 24382 FNOSTRICTALIASING=yes 24383 else 24384 echo "$as_me: failed program was:" >&5 24385 sed 's/^/| /' conftest.$ac_ext >&5 24386 24387 FNOSTRICTALIASING=no 24388 fi 24389 24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24391 CFLAGS=$SAVE_CFLAGS 24392 if test "$FNOSTRICTALIASING" = "yes"; then 24393 { echo "$as_me:$LINENO: result: yes" >&5 24394 echo "${ECHO_T}yes" >&6; } 24395 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing" 24396 else 24397 { echo "$as_me:$LINENO: result: no" >&5 24398 echo "${ECHO_T}no" >&6; } 24399 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" 24400 fi 24401 else 24402 case $host in 24403 *-dec-osf*) 24404 CC="$CC -std" 24405 CCOPT="$CCOPT -std" 24406 MKDEPCC="$CC" 24407 ;; 24408 *-hp-hpux*) 24409 CC="$CC -Ae -z" 24410 # The version of the C compiler that constantly warns about 24411 # 'const' as well as alignment issues is unfortunately not 24412 # able to be discerned via the version of the operating 24413 # system, nor does cc have a version flag. 24414 case "`$CC +W 123 2>&1`" in 24415 *Unknown?option*) 24416 STD_CWARNINGS="+w1" 24417 ;; 24418 *) 24419 # Turn off the pointlessly noisy warnings. 24420 STD_CWARNINGS="+w1 +W 474,530,2193,2236" 24421 ;; 24422 esac 24423 CCOPT="$CCOPT -Ae -z" 24424 LIBS="-Wl,+vnocompatwarnings $LIBS" 24425 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";} { for (i = 0 ; i < NF; i++) { if (colon && a$i) continue; if ($i == "\\") continue; if (!colon) { rec = $i continue; } if ($i == ":") { rec = rec " :" colon = 1 continue; } if (length(rec $i) > 76) { print rec " \\"; rec = "\t" $i; a$i = 1; } else { rec = rec " " $i a$i = 1; } } } END {print rec}'"'"' >>$TMP' 24426 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' 24427 ;; 24428 *-sgi-irix*) 24429 STD_CWARNINGS="-fullwarn -woff 1209" 24430 # 24431 # Silence more than 250 instances of 24432 # "prototyped function redeclared without prototype" 24433 # and 11 instances of 24434 # "variable ... was set but never used" 24435 # from lib/dns/sec/openssl. 24436 # 24437 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552" 24438 ;; 24439 *-solaris*) 24440 MKDEPCFLAGS="-xM" 24441 ;; 24442 *-UnixWare*) 24443 CC="$CC -w" 24444 ;; 24445 esac 24446 fi 24447 24448 # 24449 # _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which 24450 # is supposed to be opaque. 24451 # 24452 case $host in 24453 *linux*) 24454 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" 24455 ;; 24456 esac 24457 24458 24459 24460 24461 24462 24463 # 24464 # NLS 24465 # 24466 { echo "$as_me:$LINENO: checking for catgets" >&5 24467 echo $ECHO_N "checking for catgets... $ECHO_C" >&6; } 24468 if test "${ac_cv_func_catgets+set}" = set; then 24469 echo $ECHO_N "(cached) $ECHO_C" >&6 24470 else 24471 cat >conftest.$ac_ext <<_ACEOF 24472 /* confdefs.h. */ 24473 _ACEOF 24474 cat confdefs.h >>conftest.$ac_ext 24475 cat >>conftest.$ac_ext <<_ACEOF 24476 /* end confdefs.h. */ 24477 /* Define catgets to an innocuous variant, in case <limits.h> declares catgets. 24478 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24479 #define catgets innocuous_catgets 24480 24481 /* System header to define __stub macros and hopefully few prototypes, 24482 which can conflict with char catgets (); below. 24483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24484 <limits.h> exists even on freestanding compilers. */ 24485 24486 #ifdef __STDC__ 24487 # include <limits.h> 24488 #else 24489 # include <assert.h> 24490 #endif 24491 24492 #undef catgets 24493 24494 /* Override any GCC internal prototype to avoid an error. 24495 Use char because int might match the return type of a GCC 24496 builtin and then its argument prototype would still apply. */ 24497 #ifdef __cplusplus 24498 extern "C" 24499 #endif 24500 char catgets (); 24501 /* The GNU C library defines this for functions which it implements 24502 to always fail with ENOSYS. Some functions are actually named 24503 something starting with __ and the normal name is an alias. */ 24504 #if defined __stub_catgets || defined __stub___catgets 24505 choke me 24506 #endif 24507 24508 int 24509 main () 24510 { 24511 return catgets (); 24512 ; 24513 return 0; 24514 } 24515 _ACEOF 24516 rm -f conftest.$ac_objext conftest$ac_exeext 24517 if { (ac_try="$ac_link" 24518 case "(($ac_try" in 24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24520 *) ac_try_echo=$ac_try;; 24521 esac 24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24523 (eval "$ac_link") 2>conftest.er1 24524 ac_status=$? 24525 grep -v '^ *+' conftest.er1 >conftest.err 24526 rm -f conftest.er1 24527 cat conftest.err >&5 24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24529 (exit $ac_status); } && { 24530 test -z "$ac_c_werror_flag" || 24531 test ! -s conftest.err 24532 } && test -s conftest$ac_exeext && 24533 $as_test_x conftest$ac_exeext; then 24534 ac_cv_func_catgets=yes 24535 else 24536 echo "$as_me: failed program was:" >&5 24537 sed 's/^/| /' conftest.$ac_ext >&5 24538 24539 ac_cv_func_catgets=no 24540 fi 24541 24542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24543 conftest$ac_exeext conftest.$ac_ext 24544 fi 24545 { echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5 24546 echo "${ECHO_T}$ac_cv_func_catgets" >&6; } 24547 if test $ac_cv_func_catgets = yes; then 24548 cat >>confdefs.h <<\_ACEOF 24549 #define HAVE_CATGETS 1 24550 _ACEOF 24551 24552 fi 24553 24554 24555 # 24556 # -lxnet buys us one big porting headache... standards, gotta love 'em. 24557 # 24558 # AC_CHECK_LIB(xnet, socket, , 24559 # AC_CHECK_LIB(socket, socket) 24560 # AC_CHECK_LIB(nsl, inet_ntoa) 24561 # ) 24562 # 24563 # Use this for now, instead: 24564 # 24565 case "$host" in 24566 mips-sgi-irix*) 24567 ;; 24568 ia64-hp-hpux11.*) 24569 24570 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 24571 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 24572 if test "${ac_cv_lib_socket_socket+set}" = set; then 24573 echo $ECHO_N "(cached) $ECHO_C" >&6 24574 else 24575 ac_check_lib_save_LIBS=$LIBS 24576 LIBS="-lsocket $LIBS" 24577 cat >conftest.$ac_ext <<_ACEOF 24578 /* confdefs.h. */ 24579 _ACEOF 24580 cat confdefs.h >>conftest.$ac_ext 24581 cat >>conftest.$ac_ext <<_ACEOF 24582 /* end confdefs.h. */ 24583 24584 /* Override any GCC internal prototype to avoid an error. 24585 Use char because int might match the return type of a GCC 24586 builtin and then its argument prototype would still apply. */ 24587 #ifdef __cplusplus 24588 extern "C" 24589 #endif 24590 char socket (); 24591 int 24592 main () 24593 { 24594 return socket (); 24595 ; 24596 return 0; 24597 } 24598 _ACEOF 24599 rm -f conftest.$ac_objext conftest$ac_exeext 24600 if { (ac_try="$ac_link" 24601 case "(($ac_try" in 24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24603 *) ac_try_echo=$ac_try;; 24604 esac 24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24606 (eval "$ac_link") 2>conftest.er1 24607 ac_status=$? 24608 grep -v '^ *+' conftest.er1 >conftest.err 24609 rm -f conftest.er1 24610 cat conftest.err >&5 24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24612 (exit $ac_status); } && { 24613 test -z "$ac_c_werror_flag" || 24614 test ! -s conftest.err 24615 } && test -s conftest$ac_exeext && 24616 $as_test_x conftest$ac_exeext; then 24617 ac_cv_lib_socket_socket=yes 24618 else 24619 echo "$as_me: failed program was:" >&5 24620 sed 's/^/| /' conftest.$ac_ext >&5 24621 24622 ac_cv_lib_socket_socket=no 24623 fi 24624 24625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24626 conftest$ac_exeext conftest.$ac_ext 24627 LIBS=$ac_check_lib_save_LIBS 24628 fi 24629 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 24630 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 24631 if test $ac_cv_lib_socket_socket = yes; then 24632 cat >>confdefs.h <<_ACEOF 24633 #define HAVE_LIBSOCKET 1 24634 _ACEOF 24635 24636 LIBS="-lsocket $LIBS" 24637 24638 fi 24639 24640 24641 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 24642 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; } 24643 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 24644 echo $ECHO_N "(cached) $ECHO_C" >&6 24645 else 24646 ac_check_lib_save_LIBS=$LIBS 24647 LIBS="-lnsl $LIBS" 24648 cat >conftest.$ac_ext <<_ACEOF 24649 /* confdefs.h. */ 24650 _ACEOF 24651 cat confdefs.h >>conftest.$ac_ext 24652 cat >>conftest.$ac_ext <<_ACEOF 24653 /* end confdefs.h. */ 24654 24655 /* Override any GCC internal prototype to avoid an error. 24656 Use char because int might match the return type of a GCC 24657 builtin and then its argument prototype would still apply. */ 24658 #ifdef __cplusplus 24659 extern "C" 24660 #endif 24661 char inet_ntoa (); 24662 int 24663 main () 24664 { 24665 return inet_ntoa (); 24666 ; 24667 return 0; 24668 } 24669 _ACEOF 24670 rm -f conftest.$ac_objext conftest$ac_exeext 24671 if { (ac_try="$ac_link" 24672 case "(($ac_try" in 24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24674 *) ac_try_echo=$ac_try;; 24675 esac 24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24677 (eval "$ac_link") 2>conftest.er1 24678 ac_status=$? 24679 grep -v '^ *+' conftest.er1 >conftest.err 24680 rm -f conftest.er1 24681 cat conftest.err >&5 24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24683 (exit $ac_status); } && { 24684 test -z "$ac_c_werror_flag" || 24685 test ! -s conftest.err 24686 } && test -s conftest$ac_exeext && 24687 $as_test_x conftest$ac_exeext; then 24688 ac_cv_lib_nsl_inet_ntoa=yes 24689 else 24690 echo "$as_me: failed program was:" >&5 24691 sed 's/^/| /' conftest.$ac_ext >&5 24692 24693 ac_cv_lib_nsl_inet_ntoa=no 24694 fi 24695 24696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24697 conftest$ac_exeext conftest.$ac_ext 24698 LIBS=$ac_check_lib_save_LIBS 24699 fi 24700 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 24701 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; } 24702 if test $ac_cv_lib_nsl_inet_ntoa = yes; then 24703 cat >>confdefs.h <<_ACEOF 24704 #define HAVE_LIBNSL 1 24705 _ACEOF 24706 24707 LIBS="-lnsl $LIBS" 24708 24709 fi 24710 24711 ;; 24712 *) 24713 24714 { echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5 24715 echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6; } 24716 if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then 24717 echo $ECHO_N "(cached) $ECHO_C" >&6 24718 else 24719 ac_check_lib_save_LIBS=$LIBS 24720 LIBS="-ld4r $LIBS" 24721 cat >conftest.$ac_ext <<_ACEOF 24722 /* confdefs.h. */ 24723 _ACEOF 24724 cat confdefs.h >>conftest.$ac_ext 24725 cat >>conftest.$ac_ext <<_ACEOF 24726 /* end confdefs.h. */ 24727 24728 /* Override any GCC internal prototype to avoid an error. 24729 Use char because int might match the return type of a GCC 24730 builtin and then its argument prototype would still apply. */ 24731 #ifdef __cplusplus 24732 extern "C" 24733 #endif 24734 char gethostbyname_r (); 24735 int 24736 main () 24737 { 24738 return gethostbyname_r (); 24739 ; 24740 return 0; 24741 } 24742 _ACEOF 24743 rm -f conftest.$ac_objext conftest$ac_exeext 24744 if { (ac_try="$ac_link" 24745 case "(($ac_try" in 24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24747 *) ac_try_echo=$ac_try;; 24748 esac 24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24750 (eval "$ac_link") 2>conftest.er1 24751 ac_status=$? 24752 grep -v '^ *+' conftest.er1 >conftest.err 24753 rm -f conftest.er1 24754 cat conftest.err >&5 24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24756 (exit $ac_status); } && { 24757 test -z "$ac_c_werror_flag" || 24758 test ! -s conftest.err 24759 } && test -s conftest$ac_exeext && 24760 $as_test_x conftest$ac_exeext; then 24761 ac_cv_lib_d4r_gethostbyname_r=yes 24762 else 24763 echo "$as_me: failed program was:" >&5 24764 sed 's/^/| /' conftest.$ac_ext >&5 24765 24766 ac_cv_lib_d4r_gethostbyname_r=no 24767 fi 24768 24769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24770 conftest$ac_exeext conftest.$ac_ext 24771 LIBS=$ac_check_lib_save_LIBS 24772 fi 24773 { echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5 24774 echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6; } 24775 if test $ac_cv_lib_d4r_gethostbyname_r = yes; then 24776 cat >>confdefs.h <<_ACEOF 24777 #define HAVE_LIBD4R 1 24778 _ACEOF 24779 24780 LIBS="-ld4r $LIBS" 24781 24782 fi 24783 24784 24785 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 24786 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 24787 if test "${ac_cv_lib_socket_socket+set}" = set; then 24788 echo $ECHO_N "(cached) $ECHO_C" >&6 24789 else 24790 ac_check_lib_save_LIBS=$LIBS 24791 LIBS="-lsocket $LIBS" 24792 cat >conftest.$ac_ext <<_ACEOF 24793 /* confdefs.h. */ 24794 _ACEOF 24795 cat confdefs.h >>conftest.$ac_ext 24796 cat >>conftest.$ac_ext <<_ACEOF 24797 /* end confdefs.h. */ 24798 24799 /* Override any GCC internal prototype to avoid an error. 24800 Use char because int might match the return type of a GCC 24801 builtin and then its argument prototype would still apply. */ 24802 #ifdef __cplusplus 24803 extern "C" 24804 #endif 24805 char socket (); 24806 int 24807 main () 24808 { 24809 return socket (); 24810 ; 24811 return 0; 24812 } 24813 _ACEOF 24814 rm -f conftest.$ac_objext conftest$ac_exeext 24815 if { (ac_try="$ac_link" 24816 case "(($ac_try" in 24817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24818 *) ac_try_echo=$ac_try;; 24819 esac 24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24821 (eval "$ac_link") 2>conftest.er1 24822 ac_status=$? 24823 grep -v '^ *+' conftest.er1 >conftest.err 24824 rm -f conftest.er1 24825 cat conftest.err >&5 24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24827 (exit $ac_status); } && { 24828 test -z "$ac_c_werror_flag" || 24829 test ! -s conftest.err 24830 } && test -s conftest$ac_exeext && 24831 $as_test_x conftest$ac_exeext; then 24832 ac_cv_lib_socket_socket=yes 24833 else 24834 echo "$as_me: failed program was:" >&5 24835 sed 's/^/| /' conftest.$ac_ext >&5 24836 24837 ac_cv_lib_socket_socket=no 24838 fi 24839 24840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24841 conftest$ac_exeext conftest.$ac_ext 24842 LIBS=$ac_check_lib_save_LIBS 24843 fi 24844 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 24845 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 24846 if test $ac_cv_lib_socket_socket = yes; then 24847 cat >>confdefs.h <<_ACEOF 24848 #define HAVE_LIBSOCKET 1 24849 _ACEOF 24850 24851 LIBS="-lsocket $LIBS" 24852 24853 fi 24854 24855 { echo "$as_me:$LINENO: checking for inet_ntoa" >&5 24856 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; } 24857 if test "${ac_cv_func_inet_ntoa+set}" = set; then 24858 echo $ECHO_N "(cached) $ECHO_C" >&6 24859 else 24860 cat >conftest.$ac_ext <<_ACEOF 24861 /* confdefs.h. */ 24862 _ACEOF 24863 cat confdefs.h >>conftest.$ac_ext 24864 cat >>conftest.$ac_ext <<_ACEOF 24865 /* end confdefs.h. */ 24866 /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa. 24867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24868 #define inet_ntoa innocuous_inet_ntoa 24869 24870 /* System header to define __stub macros and hopefully few prototypes, 24871 which can conflict with char inet_ntoa (); below. 24872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24873 <limits.h> exists even on freestanding compilers. */ 24874 24875 #ifdef __STDC__ 24876 # include <limits.h> 24877 #else 24878 # include <assert.h> 24879 #endif 24880 24881 #undef inet_ntoa 24882 24883 /* Override any GCC internal prototype to avoid an error. 24884 Use char because int might match the return type of a GCC 24885 builtin and then its argument prototype would still apply. */ 24886 #ifdef __cplusplus 24887 extern "C" 24888 #endif 24889 char inet_ntoa (); 24890 /* The GNU C library defines this for functions which it implements 24891 to always fail with ENOSYS. Some functions are actually named 24892 something starting with __ and the normal name is an alias. */ 24893 #if defined __stub_inet_ntoa || defined __stub___inet_ntoa 24894 choke me 24895 #endif 24896 24897 int 24898 main () 24899 { 24900 return inet_ntoa (); 24901 ; 24902 return 0; 24903 } 24904 _ACEOF 24905 rm -f conftest.$ac_objext conftest$ac_exeext 24906 if { (ac_try="$ac_link" 24907 case "(($ac_try" in 24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24909 *) ac_try_echo=$ac_try;; 24910 esac 24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24912 (eval "$ac_link") 2>conftest.er1 24913 ac_status=$? 24914 grep -v '^ *+' conftest.er1 >conftest.err 24915 rm -f conftest.er1 24916 cat conftest.err >&5 24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24918 (exit $ac_status); } && { 24919 test -z "$ac_c_werror_flag" || 24920 test ! -s conftest.err 24921 } && test -s conftest$ac_exeext && 24922 $as_test_x conftest$ac_exeext; then 24923 ac_cv_func_inet_ntoa=yes 24924 else 24925 echo "$as_me: failed program was:" >&5 24926 sed 's/^/| /' conftest.$ac_ext >&5 24927 24928 ac_cv_func_inet_ntoa=no 24929 fi 24930 24931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24932 conftest$ac_exeext conftest.$ac_ext 24933 fi 24934 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5 24935 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; } 24936 if test $ac_cv_func_inet_ntoa = yes; then 24937 : 24938 else 24939 24940 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 24941 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; } 24942 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 24943 echo $ECHO_N "(cached) $ECHO_C" >&6 24944 else 24945 ac_check_lib_save_LIBS=$LIBS 24946 LIBS="-lnsl $LIBS" 24947 cat >conftest.$ac_ext <<_ACEOF 24948 /* confdefs.h. */ 24949 _ACEOF 24950 cat confdefs.h >>conftest.$ac_ext 24951 cat >>conftest.$ac_ext <<_ACEOF 24952 /* end confdefs.h. */ 24953 24954 /* Override any GCC internal prototype to avoid an error. 24955 Use char because int might match the return type of a GCC 24956 builtin and then its argument prototype would still apply. */ 24957 #ifdef __cplusplus 24958 extern "C" 24959 #endif 24960 char inet_ntoa (); 24961 int 24962 main () 24963 { 24964 return inet_ntoa (); 24965 ; 24966 return 0; 24967 } 24968 _ACEOF 24969 rm -f conftest.$ac_objext conftest$ac_exeext 24970 if { (ac_try="$ac_link" 24971 case "(($ac_try" in 24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24973 *) ac_try_echo=$ac_try;; 24974 esac 24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24976 (eval "$ac_link") 2>conftest.er1 24977 ac_status=$? 24978 grep -v '^ *+' conftest.er1 >conftest.err 24979 rm -f conftest.er1 24980 cat conftest.err >&5 24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24982 (exit $ac_status); } && { 24983 test -z "$ac_c_werror_flag" || 24984 test ! -s conftest.err 24985 } && test -s conftest$ac_exeext && 24986 $as_test_x conftest$ac_exeext; then 24987 ac_cv_lib_nsl_inet_ntoa=yes 24988 else 24989 echo "$as_me: failed program was:" >&5 24990 sed 's/^/| /' conftest.$ac_ext >&5 24991 24992 ac_cv_lib_nsl_inet_ntoa=no 24993 fi 24994 24995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24996 conftest$ac_exeext conftest.$ac_ext 24997 LIBS=$ac_check_lib_save_LIBS 24998 fi 24999 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 25000 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; } 25001 if test $ac_cv_lib_nsl_inet_ntoa = yes; then 25002 cat >>confdefs.h <<_ACEOF 25003 #define HAVE_LIBNSL 1 25004 _ACEOF 25005 25006 LIBS="-lnsl $LIBS" 25007 25008 fi 25009 25010 fi 25011 25012 ;; 25013 esac 25014 25015 # 25016 # Purify support 25017 # 25018 { echo "$as_me:$LINENO: checking whether to use purify" >&5 25019 echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6; } 25020 25021 # Check whether --with-purify was given. 25022 if test "${with_purify+set}" = set; then 25023 withval=$with_purify; use_purify="$withval" 25024 else 25025 use_purify="no" 25026 fi 25027 25028 25029 case "$use_purify" in 25030 no) 25031 ;; 25032 yes) 25033 # Extract the first word of "purify", so it can be a program name with args. 25034 set dummy purify; ac_word=$2 25035 { echo "$as_me:$LINENO: checking for $ac_word" >&5 25036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 25037 if test "${ac_cv_path_purify_path+set}" = set; then 25038 echo $ECHO_N "(cached) $ECHO_C" >&6 25039 else 25040 case $purify_path in 25041 [\\/]* | ?:[\\/]*) 25042 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path. 25043 ;; 25044 *) 25045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25046 for as_dir in $PATH 25047 do 25048 IFS=$as_save_IFS 25049 test -z "$as_dir" && as_dir=. 25050 for ac_exec_ext in '' $ac_executable_extensions; do 25051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25052 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext" 25053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25054 break 2 25055 fi 25056 done 25057 done 25058 IFS=$as_save_IFS 25059 25060 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify" 25061 ;; 25062 esac 25063 fi 25064 purify_path=$ac_cv_path_purify_path 25065 if test -n "$purify_path"; then 25066 { echo "$as_me:$LINENO: result: $purify_path" >&5 25067 echo "${ECHO_T}$purify_path" >&6; } 25068 else 25069 { echo "$as_me:$LINENO: result: no" >&5 25070 echo "${ECHO_T}no" >&6; } 25071 fi 25072 25073 25074 ;; 25075 *) 25076 purify_path="$use_purify" 25077 ;; 25078 esac 25079 25080 case "$use_purify" in 25081 no) 25082 { echo "$as_me:$LINENO: result: no" >&5 25083 echo "${ECHO_T}no" >&6; } 25084 PURIFY="" 25085 ;; 25086 *) 25087 if test -f $purify_path || test $purify_path = purify; then 25088 { echo "$as_me:$LINENO: result: $purify_path" >&5 25089 echo "${ECHO_T}$purify_path" >&6; } 25090 PURIFYFLAGS="`echo $PURIFYOPTIONS`" 25091 PURIFY="$purify_path $PURIFYFLAGS" 25092 else 25093 { { echo "$as_me:$LINENO: error: $purify_path not found. 25094 25095 Please choose the proper path with the following command: 25096 25097 configure --with-purify=PATH 25098 " >&5 25099 echo "$as_me: error: $purify_path not found. 25100 25101 Please choose the proper path with the following command: 25102 25103 configure --with-purify=PATH 25104 " >&2;} 25105 { (exit 1); exit 1; }; } 25106 fi 25107 ;; 25108 esac 25109 25110 25111 25112 # 25113 # GNU libtool support 25114 # 25115 case $host in 25116 sunos*) 25117 # Just set the maximum command line length for sunos as it otherwise 25118 # takes a exceptionally long time to work it out. Required for libtool. 25119 lt_cv_sys_max_cmd_len=4096; 25120 ;; 25121 esac 25122 25123 25124 # Check whether --with-libtool was given. 25125 if test "${with_libtool+set}" = set; then 25126 withval=$with_libtool; use_libtool="$withval" 25127 else 25128 use_libtool="no" 25129 fi 25130 25131 25132 case $use_libtool in 25133 yes) 25134 25135 O=lo 25136 A=la 25137 LIBTOOL_MKDEP_SED='s;\.o;\.lo;' 25138 LIBTOOL_MODE_COMPILE='--mode=compile' 25139 LIBTOOL_MODE_INSTALL='--mode=install' 25140 LIBTOOL_MODE_LINK='--mode=link' 25141 ;; 25142 *) 25143 O=o 25144 A=a 25145 LIBTOOL= 25146 25147 LIBTOOL_MKDEP_SED= 25148 LIBTOOL_MODE_COMPILE= 25149 LIBTOOL_MODE_INSTALL= 25150 LIBTOOL_MODE_LINK= 25151 ;; 25152 esac 25153 25154 # 25155 # File name extension for static archive files, for those few places 25156 # where they are treated differently from dynamic ones. 25157 # 25158 SA=a 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 # 25169 # Here begins a very long section to determine the system's networking 25170 # capabilities. The order of the tests is signficant. 25171 # 25172 25173 # 25174 # IPv6 25175 # 25176 # Check whether --enable-ipv6 was given. 25177 if test "${enable_ipv6+set}" = set; then 25178 enableval=$enable_ipv6; 25179 fi 25180 25181 25182 case "$enable_ipv6" in 25183 yes|''|autodetect) 25184 cat >>confdefs.h <<\_ACEOF 25185 #define WANT_IPV6 1 25186 _ACEOF 25187 25188 ;; 25189 no) 25190 ;; 25191 esac 25192 25193 # 25194 # We do the IPv6 compilation checking after libtool so that we can put 25195 # the right suffix on the files. 25196 # 25197 { echo "$as_me:$LINENO: checking for IPv6 structures" >&5 25198 echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6; } 25199 cat >conftest.$ac_ext <<_ACEOF 25200 /* confdefs.h. */ 25201 _ACEOF 25202 cat confdefs.h >>conftest.$ac_ext 25203 cat >>conftest.$ac_ext <<_ACEOF 25204 /* end confdefs.h. */ 25205 25206 #include <sys/types.h> 25207 #include <sys/socket.h> 25208 #include <netinet/in.h> 25209 int 25210 main () 25211 { 25212 struct sockaddr_in6 sin6; return (0); 25213 ; 25214 return 0; 25215 } 25216 _ACEOF 25217 rm -f conftest.$ac_objext 25218 if { (ac_try="$ac_compile" 25219 case "(($ac_try" in 25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25221 *) ac_try_echo=$ac_try;; 25222 esac 25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25224 (eval "$ac_compile") 2>conftest.er1 25225 ac_status=$? 25226 grep -v '^ *+' conftest.er1 >conftest.err 25227 rm -f conftest.er1 25228 cat conftest.err >&5 25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25230 (exit $ac_status); } && { 25231 test -z "$ac_c_werror_flag" || 25232 test ! -s conftest.err 25233 } && test -s conftest.$ac_objext; then 25234 { echo "$as_me:$LINENO: result: yes" >&5 25235 echo "${ECHO_T}yes" >&6; } 25236 found_ipv6=yes 25237 else 25238 echo "$as_me: failed program was:" >&5 25239 sed 's/^/| /' conftest.$ac_ext >&5 25240 25241 { echo "$as_me:$LINENO: result: no" >&5 25242 echo "${ECHO_T}no" >&6; } 25243 found_ipv6=no 25244 fi 25245 25246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25247 25248 # 25249 # See whether IPv6 support is provided via a Kame add-on. 25250 # This is done before other IPv6 linking tests to LIBS is properly set. 25251 # 25252 { echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5 25253 echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6; } 25254 25255 # Check whether --with-kame was given. 25256 if test "${with_kame+set}" = set; then 25257 withval=$with_kame; use_kame="$withval" 25258 else 25259 use_kame="no" 25260 fi 25261 25262 25263 case "$use_kame" in 25264 no) 25265 ;; 25266 yes) 25267 kame_path=/usr/local/v6 25268 ;; 25269 *) 25270 kame_path="$use_kame" 25271 ;; 25272 esac 25273 25274 case "$use_kame" in 25275 no) 25276 { echo "$as_me:$LINENO: result: no" >&5 25277 echo "${ECHO_T}no" >&6; } 25278 ;; 25279 *) 25280 if test -f $kame_path/lib/libinet6.a; then 25281 { echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5 25282 echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6; } 25283 LIBS="-L$kame_path/lib -linet6 $LIBS" 25284 else 25285 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found. 25286 25287 Please choose the proper path with the following command: 25288 25289 configure --with-kame=PATH 25290 " >&5 25291 echo "$as_me: error: $kame_path/lib/libinet6.a not found. 25292 25293 Please choose the proper path with the following command: 25294 25295 configure --with-kame=PATH 25296 " >&2;} 25297 { (exit 1); exit 1; }; } 25298 fi 25299 ;; 25300 esac 25301 25302 # 25303 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25304 # Including it on Kame-using platforms is very bad, though, because 25305 # Kame uses #error against direct inclusion. So include it on only 25306 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25307 # This is done before the in6_pktinfo check because that's what 25308 # netinet6/in6.h is needed for. 25309 # 25310 25311 case "$host" in 25312 *-bsdi4.[01]*) 25313 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1" 25314 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25315 ;; 25316 *) 25317 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H" 25318 isc_netinet6in6_hack="" 25319 ;; 25320 esac 25321 25322 25323 # 25324 # This is similar to the netinet6/in6.h issue. 25325 # 25326 case "$host" in 25327 *-UnixWare*) 25328 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1" 25329 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1" 25330 isc_netinetin6_hack="#include <netinet/in6.h>" 25331 ;; 25332 *) 25333 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H" 25334 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR" 25335 isc_netinetin6_hack="" 25336 ;; 25337 esac 25338 25339 # 25340 # Now delve deeper into the suitability of the IPv6 support. 25341 # 25342 case "$found_ipv6" in 25343 yes) 25344 HAS_INET6_STRUCTS="#define HAS_INET6_STRUCTS 1" 25345 25346 { echo "$as_me:$LINENO: checking for in6_addr" >&5 25347 echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6; } 25348 cat >conftest.$ac_ext <<_ACEOF 25349 /* confdefs.h. */ 25350 _ACEOF 25351 cat confdefs.h >>conftest.$ac_ext 25352 cat >>conftest.$ac_ext <<_ACEOF 25353 /* end confdefs.h. */ 25354 25355 #include <sys/types.h> 25356 #include <sys/socket.h> 25357 #include <netinet/in.h> 25358 $isc_netinetin6_hack 25359 $isc_netinet6in6_hack 25360 25361 int 25362 main () 25363 { 25364 struct in6_addr in6; return (0); 25365 ; 25366 return 0; 25367 } 25368 _ACEOF 25369 rm -f conftest.$ac_objext 25370 if { (ac_try="$ac_compile" 25371 case "(($ac_try" in 25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25373 *) ac_try_echo=$ac_try;; 25374 esac 25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25376 (eval "$ac_compile") 2>conftest.er1 25377 ac_status=$? 25378 grep -v '^ *+' conftest.er1 >conftest.err 25379 rm -f conftest.er1 25380 cat conftest.err >&5 25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25382 (exit $ac_status); } && { 25383 test -z "$ac_c_werror_flag" || 25384 test ! -s conftest.err 25385 } && test -s conftest.$ac_objext; then 25386 { echo "$as_me:$LINENO: result: yes" >&5 25387 echo "${ECHO_T}yes" >&6; } 25388 HAS_IN_ADDR6="#undef HAS_IN_ADDR6" 25389 isc_in_addr6_hack="" 25390 else 25391 echo "$as_me: failed program was:" >&5 25392 sed 's/^/| /' conftest.$ac_ext >&5 25393 25394 { echo "$as_me:$LINENO: result: no" >&5 25395 echo "${ECHO_T}no" >&6; } 25396 HAS_IN_ADDR6="#define HAS_IN_ADDR6 1" 25397 isc_in_addr6_hack="#define in6_addr in_addr6" 25398 fi 25399 25400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25401 25402 { echo "$as_me:$LINENO: checking for in6addr_any" >&5 25403 echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6; } 25404 cat >conftest.$ac_ext <<_ACEOF 25405 /* confdefs.h. */ 25406 _ACEOF 25407 cat confdefs.h >>conftest.$ac_ext 25408 cat >>conftest.$ac_ext <<_ACEOF 25409 /* end confdefs.h. */ 25410 25411 #include <sys/types.h> 25412 #include <sys/socket.h> 25413 #include <netinet/in.h> 25414 $isc_netinetin6_hack 25415 $isc_netinet6in6_hack 25416 $isc_in_addr6_hack 25417 25418 int 25419 main () 25420 { 25421 struct in6_addr in6; in6 = in6addr_any; return (0); 25422 ; 25423 return 0; 25424 } 25425 _ACEOF 25426 rm -f conftest.$ac_objext conftest$ac_exeext 25427 if { (ac_try="$ac_link" 25428 case "(($ac_try" in 25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25430 *) ac_try_echo=$ac_try;; 25431 esac 25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25433 (eval "$ac_link") 2>conftest.er1 25434 ac_status=$? 25435 grep -v '^ *+' conftest.er1 >conftest.err 25436 rm -f conftest.er1 25437 cat conftest.err >&5 25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25439 (exit $ac_status); } && { 25440 test -z "$ac_c_werror_flag" || 25441 test ! -s conftest.err 25442 } && test -s conftest$ac_exeext && 25443 $as_test_x conftest$ac_exeext; then 25444 { echo "$as_me:$LINENO: result: yes" >&5 25445 echo "${ECHO_T}yes" >&6; } 25446 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY" 25447 else 25448 echo "$as_me: failed program was:" >&5 25449 sed 's/^/| /' conftest.$ac_ext >&5 25450 25451 { echo "$as_me:$LINENO: result: no" >&5 25452 echo "${ECHO_T}no" >&6; } 25453 NEED_IN6ADDR_ANY="#define NEED_IN6ADDR_ANY 1" 25454 fi 25455 25456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25457 conftest$ac_exeext conftest.$ac_ext 25458 25459 { echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5 25460 echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6; } 25461 cat >conftest.$ac_ext <<_ACEOF 25462 /* confdefs.h. */ 25463 _ACEOF 25464 cat confdefs.h >>conftest.$ac_ext 25465 cat >>conftest.$ac_ext <<_ACEOF 25466 /* end confdefs.h. */ 25467 25468 #include <sys/types.h> 25469 #include <sys/socket.h> 25470 #include <netinet/in.h> 25471 $isc_netinetin6_hack 25472 $isc_netinet6in6_hack 25473 25474 int 25475 main () 25476 { 25477 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 25478 ; 25479 return 0; 25480 } 25481 _ACEOF 25482 rm -f conftest.$ac_objext 25483 if { (ac_try="$ac_compile" 25484 case "(($ac_try" in 25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25486 *) ac_try_echo=$ac_try;; 25487 esac 25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25489 (eval "$ac_compile") 2>conftest.er1 25490 ac_status=$? 25491 grep -v '^ *+' conftest.er1 >conftest.err 25492 rm -f conftest.er1 25493 cat conftest.err >&5 25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25495 (exit $ac_status); } && { 25496 test -z "$ac_c_werror_flag" || 25497 test ! -s conftest.err 25498 } && test -s conftest.$ac_objext; then 25499 { echo "$as_me:$LINENO: result: yes" >&5 25500 echo "${ECHO_T}yes" >&6; } 25501 result="#define HAVE_SIN6_SCOPE_ID 1" 25502 else 25503 echo "$as_me: failed program was:" >&5 25504 sed 's/^/| /' conftest.$ac_ext >&5 25505 25506 { echo "$as_me:$LINENO: result: no" >&5 25507 echo "${ECHO_T}no" >&6; } 25508 result="#undef HAVE_SIN6_SCOPE_ID" 25509 fi 25510 25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25512 HAVE_SIN6_SCOPE_ID="$result" 25513 25514 { echo "$as_me:$LINENO: checking for in6_pktinfo" >&5 25515 echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6; } 25516 cat >conftest.$ac_ext <<_ACEOF 25517 /* confdefs.h. */ 25518 _ACEOF 25519 cat confdefs.h >>conftest.$ac_ext 25520 cat >>conftest.$ac_ext <<_ACEOF 25521 /* end confdefs.h. */ 25522 25523 #include <sys/types.h> 25524 #include <sys/socket.h> 25525 #include <netinet/in.h> 25526 $isc_netinetin6_hack 25527 $isc_netinet6in6_hack 25528 25529 int 25530 main () 25531 { 25532 struct in6_pktinfo xyzzy; return (0); 25533 ; 25534 return 0; 25535 } 25536 _ACEOF 25537 rm -f conftest.$ac_objext 25538 if { (ac_try="$ac_compile" 25539 case "(($ac_try" in 25540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25541 *) ac_try_echo=$ac_try;; 25542 esac 25543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25544 (eval "$ac_compile") 2>conftest.er1 25545 ac_status=$? 25546 grep -v '^ *+' conftest.er1 >conftest.err 25547 rm -f conftest.er1 25548 cat conftest.err >&5 25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25550 (exit $ac_status); } && { 25551 test -z "$ac_c_werror_flag" || 25552 test ! -s conftest.err 25553 } && test -s conftest.$ac_objext; then 25554 { echo "$as_me:$LINENO: result: yes" >&5 25555 echo "${ECHO_T}yes" >&6; } 25556 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 25557 else 25558 echo "$as_me: failed program was:" >&5 25559 sed 's/^/| /' conftest.$ac_ext >&5 25560 25561 { echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5 25562 echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6; } 25563 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 25564 fi 25565 25566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25567 ;; 25568 no) 25569 HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS" 25570 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY" 25571 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 25572 HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1" 25573 ISC_IPV6_H="ipv6.h" 25574 ISC_IPV6_O="ipv6.$O" 25575 ISC_ISCIPV6_O="unix/ipv6.$O" 25576 ISC_IPV6_C="ipv6.c" 25577 ;; 25578 esac 25579 25580 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 25581 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } 25582 cat >conftest.$ac_ext <<_ACEOF 25583 /* confdefs.h. */ 25584 _ACEOF 25585 cat confdefs.h >>conftest.$ac_ext 25586 cat >>conftest.$ac_ext <<_ACEOF 25587 /* end confdefs.h. */ 25588 25589 #include <sys/types.h> 25590 #include <sys/socket.h> 25591 #include <netinet/in.h> 25592 25593 int 25594 main () 25595 { 25596 struct sockaddr_storage xyzzy; return (0); 25597 ; 25598 return 0; 25599 } 25600 _ACEOF 25601 rm -f conftest.$ac_objext 25602 if { (ac_try="$ac_compile" 25603 case "(($ac_try" in 25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25605 *) ac_try_echo=$ac_try;; 25606 esac 25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25608 (eval "$ac_compile") 2>conftest.er1 25609 ac_status=$? 25610 grep -v '^ *+' conftest.er1 >conftest.err 25611 rm -f conftest.er1 25612 cat conftest.err >&5 25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25614 (exit $ac_status); } && { 25615 test -z "$ac_c_werror_flag" || 25616 test ! -s conftest.err 25617 } && test -s conftest.$ac_objext; then 25618 { echo "$as_me:$LINENO: result: yes" >&5 25619 echo "${ECHO_T}yes" >&6; } 25620 HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1" 25621 else 25622 echo "$as_me: failed program was:" >&5 25623 sed 's/^/| /' conftest.$ac_ext >&5 25624 25625 { echo "$as_me:$LINENO: result: no" >&5 25626 echo "${ECHO_T}no" >&6; } 25627 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE" 25628 fi 25629 25630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 # 25647 # Check for network functions that are often missing. We do this 25648 # after the libtool checking, so we can put the right suffix on 25649 # the files. It also needs to come after checking for a Kame add-on, 25650 # which provides some (all?) of the desired functions. 25651 # 25652 { echo "$as_me:$LINENO: checking for inet_ntop" >&5 25653 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; } 25654 cat >conftest.$ac_ext <<_ACEOF 25655 /* confdefs.h. */ 25656 _ACEOF 25657 cat confdefs.h >>conftest.$ac_ext 25658 cat >>conftest.$ac_ext <<_ACEOF 25659 /* end confdefs.h. */ 25660 25661 #include <sys/types.h> 25662 #include <netinet/in.h> 25663 #include <arpa/inet.h> 25664 int 25665 main () 25666 { 25667 inet_ntop(0, 0, 0, 0); return (0); 25668 ; 25669 return 0; 25670 } 25671 _ACEOF 25672 rm -f conftest.$ac_objext conftest$ac_exeext 25673 if { (ac_try="$ac_link" 25674 case "(($ac_try" in 25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25676 *) ac_try_echo=$ac_try;; 25677 esac 25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25679 (eval "$ac_link") 2>conftest.er1 25680 ac_status=$? 25681 grep -v '^ *+' conftest.er1 >conftest.err 25682 rm -f conftest.er1 25683 cat conftest.err >&5 25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25685 (exit $ac_status); } && { 25686 test -z "$ac_c_werror_flag" || 25687 test ! -s conftest.err 25688 } && test -s conftest$ac_exeext && 25689 $as_test_x conftest$ac_exeext; then 25690 { echo "$as_me:$LINENO: result: yes" >&5 25691 echo "${ECHO_T}yes" >&6; } 25692 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 25693 else 25694 echo "$as_me: failed program was:" >&5 25695 sed 's/^/| /' conftest.$ac_ext >&5 25696 25697 { echo "$as_me:$LINENO: result: no" >&5 25698 echo "${ECHO_T}no" >&6; } 25699 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" 25700 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c" 25701 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1" 25702 fi 25703 25704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25705 conftest$ac_exeext conftest.$ac_ext 25706 { echo "$as_me:$LINENO: checking for inet_pton" >&5 25707 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } 25708 cat >conftest.$ac_ext <<_ACEOF 25709 /* confdefs.h. */ 25710 _ACEOF 25711 cat confdefs.h >>conftest.$ac_ext 25712 cat >>conftest.$ac_ext <<_ACEOF 25713 /* end confdefs.h. */ 25714 25715 #include <sys/types.h> 25716 #include <netinet/in.h> 25717 #include <arpa/inet.h> 25718 int 25719 main () 25720 { 25721 inet_pton(0, 0, 0); return (0); 25722 ; 25723 return 0; 25724 } 25725 _ACEOF 25726 rm -f conftest.$ac_objext conftest$ac_exeext 25727 if { (ac_try="$ac_link" 25728 case "(($ac_try" in 25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25730 *) ac_try_echo=$ac_try;; 25731 esac 25732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25733 (eval "$ac_link") 2>conftest.er1 25734 ac_status=$? 25735 grep -v '^ *+' conftest.er1 >conftest.err 25736 rm -f conftest.er1 25737 cat conftest.err >&5 25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25739 (exit $ac_status); } && { 25740 test -z "$ac_c_werror_flag" || 25741 test ! -s conftest.err 25742 } && test -s conftest$ac_exeext && 25743 $as_test_x conftest$ac_exeext; then 25744 { echo "$as_me:$LINENO: result: yes" >&5 25745 echo "${ECHO_T}yes" >&6; } 25746 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 25747 else 25748 echo "$as_me: failed program was:" >&5 25749 sed 's/^/| /' conftest.$ac_ext >&5 25750 25751 { echo "$as_me:$LINENO: result: no" >&5 25752 echo "${ECHO_T}no" >&6; } 25753 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 25754 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 25755 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 25756 fi 25757 25758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25759 conftest$ac_exeext conftest.$ac_ext 25760 { echo "$as_me:$LINENO: checking for inet_aton" >&5 25761 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 25762 cat >conftest.$ac_ext <<_ACEOF 25763 /* confdefs.h. */ 25764 _ACEOF 25765 cat confdefs.h >>conftest.$ac_ext 25766 cat >>conftest.$ac_ext <<_ACEOF 25767 /* end confdefs.h. */ 25768 25769 #include <sys/types.h> 25770 #include <netinet/in.h> 25771 #include <arpa/inet.h> 25772 int 25773 main () 25774 { 25775 struct in_addr in; inet_aton(0, &in); return (0); 25776 ; 25777 return 0; 25778 } 25779 _ACEOF 25780 rm -f conftest.$ac_objext conftest$ac_exeext 25781 if { (ac_try="$ac_link" 25782 case "(($ac_try" in 25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25784 *) ac_try_echo=$ac_try;; 25785 esac 25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25787 (eval "$ac_link") 2>conftest.er1 25788 ac_status=$? 25789 grep -v '^ *+' conftest.er1 >conftest.err 25790 rm -f conftest.er1 25791 cat conftest.err >&5 25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25793 (exit $ac_status); } && { 25794 test -z "$ac_c_werror_flag" || 25795 test ! -s conftest.err 25796 } && test -s conftest$ac_exeext && 25797 $as_test_x conftest$ac_exeext; then 25798 { echo "$as_me:$LINENO: result: yes" >&5 25799 echo "${ECHO_T}yes" >&6; } 25800 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON" 25801 else 25802 echo "$as_me: failed program was:" >&5 25803 sed 's/^/| /' conftest.$ac_ext >&5 25804 25805 { echo "$as_me:$LINENO: result: no" >&5 25806 echo "${ECHO_T}no" >&6; } 25807 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O" 25808 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c" 25809 ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1" 25810 fi 25811 25812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25813 conftest$ac_exeext conftest.$ac_ext 25814 25815 25816 25817 25818 25819 # 25820 # Look for a 4.4BSD-style sa_len member in struct sockaddr. 25821 # 25822 case "$host" in 25823 *-dec-osf*) 25824 # Tru64 broke send() by defining it to send_OBSOLETE 25825 cat >>confdefs.h <<\_ACEOF 25826 #define REENABLE_SEND 1 25827 _ACEOF 25828 25829 # Turn on 4.4BSD style sa_len support. 25830 cat >>confdefs.h <<\_ACEOF 25831 #define _SOCKADDR_LEN 1 25832 _ACEOF 25833 25834 ;; 25835 esac 25836 25837 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 25838 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; } 25839 cat >conftest.$ac_ext <<_ACEOF 25840 /* confdefs.h. */ 25841 _ACEOF 25842 cat confdefs.h >>conftest.$ac_ext 25843 cat >>conftest.$ac_ext <<_ACEOF 25844 /* end confdefs.h. */ 25845 25846 #include <sys/types.h> 25847 #include <sys/socket.h> 25848 int 25849 main () 25850 { 25851 struct sockaddr sa; sa.sa_len = 0; return (0); 25852 ; 25853 return 0; 25854 } 25855 _ACEOF 25856 rm -f conftest.$ac_objext 25857 if { (ac_try="$ac_compile" 25858 case "(($ac_try" in 25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25860 *) ac_try_echo=$ac_try;; 25861 esac 25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25863 (eval "$ac_compile") 2>conftest.er1 25864 ac_status=$? 25865 grep -v '^ *+' conftest.er1 >conftest.err 25866 rm -f conftest.er1 25867 cat conftest.err >&5 25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25869 (exit $ac_status); } && { 25870 test -z "$ac_c_werror_flag" || 25871 test ! -s conftest.err 25872 } && test -s conftest.$ac_objext; then 25873 { echo "$as_me:$LINENO: result: yes" >&5 25874 echo "${ECHO_T}yes" >&6; } 25875 HAVE_SA_LEN="#define HAVE_SA_LEN 1" 25876 else 25877 echo "$as_me: failed program was:" >&5 25878 sed 's/^/| /' conftest.$ac_ext >&5 25879 25880 { echo "$as_me:$LINENO: result: no" >&5 25881 echo "${ECHO_T}no" >&6; } 25882 HAVE_SA_LEN="#undef HAVE_SA_LEN" 25883 fi 25884 25885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25886 25887 25888 # HAVE_MINIMUM_IFREQ 25889 25890 case "$host" in 25891 *-bsdi2345*) have_minimum_ifreq=yes;; 25892 *-darwin*) have_minimum_ifreq=yes;; 25893 *-freebsd*) have_minimum_ifreq=yes;; 25894 *-lynxos*) have_minimum_ifreq=yes;; 25895 *-netbsd*) have_minimum_ifreq=yes;; 25896 *-next*) have_minimum_ifreq=yes;; 25897 *-openbsd*) have_minimum_ifreq=yes;; 25898 *-rhapsody*) have_minimum_ifreq=yes;; 25899 esac 25900 25901 case "$have_minimum_ifreq" in 25902 yes) 25903 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";; 25904 no) 25905 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";; 25906 *) 25907 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";; 25908 esac 25909 25910 25911 # PORT_DIR 25912 PORT_DIR=port/unknown 25913 SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES" 25914 BSD_COMP="#undef BSD_COMP" 25915 USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL" 25916 PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK" 25917 HAVE_MD5="#undef HAVE_MD5" 25918 USE_POLL="#undef HAVE_POLL" 25919 SOLARIS2="#undef SOLARIS2" 25920 case "$host" in 25921 *aix3.2*) PORT_DIR="port/aix32";; 25922 *aix4*) PORT_DIR="port/aix4";; 25923 *aix5*) PORT_DIR="port/aix5";; 25924 *aux3*) PORT_DIR="port/aux3";; 25925 *-bsdi2*) PORT_DIR="port/bsdos2";; 25926 *-bsdi*) PORT_DIR="port/bsdos";; 25927 *-cygwin*) 25928 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY" 25929 PORT_DIR="port/cygwin";; 25930 *-darwin*) PORT_DIR="port/darwin";; 25931 *-dragonfly*) PORT_DIR="port/dragonfly";; 25932 *-osf*) PORT_DIR="port/decunix";; 25933 *-freebsd*) PORT_DIR="port/freebsd";; 25934 *-hpux9*) PORT_DIR="port/hpux9";; 25935 *-hpux10*) PORT_DIR="port/hpux10";; 25936 *-hpux11*) PORT_DIR="port/hpux";; 25937 *-irix*) PORT_DIR="port/irix";; 25938 *-linux*) PORT_DIR="port/linux";; 25939 *-lynxos*) PORT_DIR="port/lynxos";; 25940 *-mpe*) PORT_DIR="port/mpe";; 25941 *-netbsd*) PORT_DIR="port/netbsd";; 25942 *-next*) PORT_DIR="port/next";; 25943 *-openbsd*) PORT_DIR="port/openbsd";; 25944 *-qnx*) PORT_DIR="port/qnx";; 25945 *-rhapsody*) PORT_DIR="port/rhapsody";; 25946 *-sunos4*) 25947 cat >>confdefs.h <<\_ACEOF 25948 #define NEED_SUN4PROTOS 1 25949 _ACEOF 25950 25951 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY" 25952 PORT_DIR="port/sunos";; 25953 *-solaris2.[01234]) 25954 BSD_COMP="#define BSD_COMP 1" 25955 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1" 25956 USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1" 25957 SOLARIS2="#define SOLARIS2 1" 25958 PORT_DIR="port/solaris";; 25959 *-solaris2.5) 25960 BSD_COMP="#define BSD_COMP 1" 25961 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1" 25962 SOLARIS2="#define SOLARIS2 1" 25963 PORT_DIR="port/solaris";; 25964 *-solaris2.[67]) 25965 BSD_COMP="#define BSD_COMP 1" 25966 SOLARIS2="#define SOLARIS2 1" 25967 PORT_DIR="port/solaris";; 25968 *-solaris2*) BSD_COMP="#define BSD_COMP 1" 25969 USE_POLL="#define USE_POLL 1" 25970 HAVE_MD5="#define HAVE_MD5 1" 25971 SOLARIS2="#define SOLARIS2 1" 25972 PORT_DIR="port/solaris";; 25973 *-ultrix*) PORT_DIR="port/ultrix";; 25974 *-sco-sysv*uw2.0*) PORT_DIR="port/unixware20";; 25975 *-sco-sysv*uw2.1.2*) PORT_DIR="port/unixware212";; 25976 *-sco-sysv*uw7*) PORT_DIR="port/unixware7";; 25977 esac 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 PORT_INCLUDE=${PORT_DIR}/include 25988 25989 25990 # 25991 # Look for a 4.4BSD or 4.3BSD struct msghdr 25992 # 25993 { echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5 25994 echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6; } 25995 cat >conftest.$ac_ext <<_ACEOF 25996 /* confdefs.h. */ 25997 _ACEOF 25998 cat confdefs.h >>conftest.$ac_ext 25999 cat >>conftest.$ac_ext <<_ACEOF 26000 /* end confdefs.h. */ 26001 26002 #include <sys/types.h> 26003 #include <sys/socket.h> 26004 int 26005 main () 26006 { 26007 struct msghdr msg; msg.msg_flags = 0; return (0); 26008 ; 26009 return 0; 26010 } 26011 _ACEOF 26012 rm -f conftest.$ac_objext 26013 if { (ac_try="$ac_compile" 26014 case "(($ac_try" in 26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26016 *) ac_try_echo=$ac_try;; 26017 esac 26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26019 (eval "$ac_compile") 2>conftest.er1 26020 ac_status=$? 26021 grep -v '^ *+' conftest.er1 >conftest.err 26022 rm -f conftest.er1 26023 cat conftest.err >&5 26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26025 (exit $ac_status); } && { 26026 test -z "$ac_c_werror_flag" || 26027 test ! -s conftest.err 26028 } && test -s conftest.$ac_objext; then 26029 { echo "$as_me:$LINENO: result: 4.4BSD" >&5 26030 echo "${ECHO_T}4.4BSD" >&6; } 26031 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 26032 else 26033 echo "$as_me: failed program was:" >&5 26034 sed 's/^/| /' conftest.$ac_ext >&5 26035 26036 { echo "$as_me:$LINENO: result: 4.3BSD" >&5 26037 echo "${ECHO_T}4.3BSD" >&6; } 26038 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1" 26039 fi 26040 26041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26042 26043 26044 # 26045 # Look for in_port_t. 26046 # 26047 { echo "$as_me:$LINENO: checking for type in_port_t" >&5 26048 echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6; } 26049 cat >conftest.$ac_ext <<_ACEOF 26050 /* confdefs.h. */ 26051 _ACEOF 26052 cat confdefs.h >>conftest.$ac_ext 26053 cat >>conftest.$ac_ext <<_ACEOF 26054 /* end confdefs.h. */ 26055 26056 #include <sys/types.h> 26057 #include <netinet/in.h> 26058 int 26059 main () 26060 { 26061 in_port_t port = 25; return (0); 26062 ; 26063 return 0; 26064 } 26065 _ACEOF 26066 rm -f conftest.$ac_objext 26067 if { (ac_try="$ac_compile" 26068 case "(($ac_try" in 26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26070 *) ac_try_echo=$ac_try;; 26071 esac 26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26073 (eval "$ac_compile") 2>conftest.er1 26074 ac_status=$? 26075 grep -v '^ *+' conftest.er1 >conftest.err 26076 rm -f conftest.er1 26077 cat conftest.err >&5 26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26079 (exit $ac_status); } && { 26080 test -z "$ac_c_werror_flag" || 26081 test ! -s conftest.err 26082 } && test -s conftest.$ac_objext; then 26083 { echo "$as_me:$LINENO: result: yes" >&5 26084 echo "${ECHO_T}yes" >&6; } 26085 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 26086 else 26087 echo "$as_me: failed program was:" >&5 26088 sed 's/^/| /' conftest.$ac_ext >&5 26089 26090 { echo "$as_me:$LINENO: result: no" >&5 26091 echo "${ECHO_T}no" >&6; } 26092 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1" 26093 fi 26094 26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26096 26097 26098 { echo "$as_me:$LINENO: checking for struct timespec" >&5 26099 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } 26100 cat >conftest.$ac_ext <<_ACEOF 26101 /* confdefs.h. */ 26102 _ACEOF 26103 cat confdefs.h >>conftest.$ac_ext 26104 cat >>conftest.$ac_ext <<_ACEOF 26105 /* end confdefs.h. */ 26106 26107 #include <sys/types.h> 26108 #include <time.h> 26109 int 26110 main () 26111 { 26112 struct timespec ts = { 0, 0 }; return (0); 26113 ; 26114 return 0; 26115 } 26116 _ACEOF 26117 rm -f conftest.$ac_objext 26118 if { (ac_try="$ac_compile" 26119 case "(($ac_try" in 26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26121 *) ac_try_echo=$ac_try;; 26122 esac 26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26124 (eval "$ac_compile") 2>conftest.er1 26125 ac_status=$? 26126 grep -v '^ *+' conftest.er1 >conftest.err 26127 rm -f conftest.er1 26128 cat conftest.err >&5 26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26130 (exit $ac_status); } && { 26131 test -z "$ac_c_werror_flag" || 26132 test ! -s conftest.err 26133 } && test -s conftest.$ac_objext; then 26134 { echo "$as_me:$LINENO: result: yes" >&5 26135 echo "${ECHO_T}yes" >&6; } 26136 ISC_PLATFORM_NEEDTIMESPEC="#undef ISC_PLATFORM_NEEDTIMESPEC" 26137 else 26138 echo "$as_me: failed program was:" >&5 26139 sed 's/^/| /' conftest.$ac_ext >&5 26140 26141 { echo "$as_me:$LINENO: result: no" >&5 26142 echo "${ECHO_T}no" >&6; } 26143 ISC_PLATFORM_NEEDTIMESPEC="#define ISC_PLATFORM_NEEDTIMESPEC 1" 26144 fi 26145 26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26147 26148 26149 # 26150 # Check for addrinfo 26151 # 26152 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 26153 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 26154 cat >conftest.$ac_ext <<_ACEOF 26155 /* confdefs.h. */ 26156 _ACEOF 26157 cat confdefs.h >>conftest.$ac_ext 26158 cat >>conftest.$ac_ext <<_ACEOF 26159 /* end confdefs.h. */ 26160 26161 #include <netdb.h> 26162 int 26163 main () 26164 { 26165 struct addrinfo a; return (0); 26166 ; 26167 return 0; 26168 } 26169 _ACEOF 26170 rm -f conftest.$ac_objext 26171 if { (ac_try="$ac_compile" 26172 case "(($ac_try" in 26173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26174 *) ac_try_echo=$ac_try;; 26175 esac 26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26177 (eval "$ac_compile") 2>conftest.er1 26178 ac_status=$? 26179 grep -v '^ *+' conftest.er1 >conftest.err 26180 rm -f conftest.er1 26181 cat conftest.err >&5 26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26183 (exit $ac_status); } && { 26184 test -z "$ac_c_werror_flag" || 26185 test ! -s conftest.err 26186 } && test -s conftest.$ac_objext; then 26187 { echo "$as_me:$LINENO: result: yes" >&5 26188 echo "${ECHO_T}yes" >&6; } 26189 cat >>confdefs.h <<\_ACEOF 26190 #define HAVE_ADDRINFO 1 26191 _ACEOF 26192 26193 else 26194 echo "$as_me: failed program was:" >&5 26195 sed 's/^/| /' conftest.$ac_ext >&5 26196 26197 { echo "$as_me:$LINENO: result: no" >&5 26198 echo "${ECHO_T}no" >&6; } 26199 fi 26200 26201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26202 26203 { echo "$as_me:$LINENO: checking for int sethostent" >&5 26204 echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6; } 26205 cat >conftest.$ac_ext <<_ACEOF 26206 /* confdefs.h. */ 26207 _ACEOF 26208 cat confdefs.h >>conftest.$ac_ext 26209 cat >>conftest.$ac_ext <<_ACEOF 26210 /* end confdefs.h. */ 26211 26212 #include <netdb.h> 26213 int 26214 main () 26215 { 26216 int i = sethostent(0); return(0); 26217 ; 26218 return 0; 26219 } 26220 _ACEOF 26221 rm -f conftest.$ac_objext 26222 if { (ac_try="$ac_compile" 26223 case "(($ac_try" in 26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26225 *) ac_try_echo=$ac_try;; 26226 esac 26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26228 (eval "$ac_compile") 2>conftest.er1 26229 ac_status=$? 26230 grep -v '^ *+' conftest.er1 >conftest.err 26231 rm -f conftest.er1 26232 cat conftest.err >&5 26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26234 (exit $ac_status); } && { 26235 test -z "$ac_c_werror_flag" || 26236 test ! -s conftest.err 26237 } && test -s conftest.$ac_objext; then 26238 { echo "$as_me:$LINENO: result: yes" >&5 26239 echo "${ECHO_T}yes" >&6; } 26240 else 26241 echo "$as_me: failed program was:" >&5 26242 sed 's/^/| /' conftest.$ac_ext >&5 26243 26244 { echo "$as_me:$LINENO: result: no" >&5 26245 echo "${ECHO_T}no" >&6; } 26246 fi 26247 26248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26249 26250 { echo "$as_me:$LINENO: checking for int endhostent" >&5 26251 echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6; } 26252 cat >conftest.$ac_ext <<_ACEOF 26253 /* confdefs.h. */ 26254 _ACEOF 26255 cat confdefs.h >>conftest.$ac_ext 26256 cat >>conftest.$ac_ext <<_ACEOF 26257 /* end confdefs.h. */ 26258 26259 #include <netdb.h> 26260 int 26261 main () 26262 { 26263 int i = endhostent(); return(0); 26264 ; 26265 return 0; 26266 } 26267 _ACEOF 26268 rm -f conftest.$ac_objext 26269 if { (ac_try="$ac_compile" 26270 case "(($ac_try" in 26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26272 *) ac_try_echo=$ac_try;; 26273 esac 26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26275 (eval "$ac_compile") 2>conftest.er1 26276 ac_status=$? 26277 grep -v '^ *+' conftest.er1 >conftest.err 26278 rm -f conftest.er1 26279 cat conftest.err >&5 26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26281 (exit $ac_status); } && { 26282 test -z "$ac_c_werror_flag" || 26283 test ! -s conftest.err 26284 } && test -s conftest.$ac_objext; then 26285 { echo "$as_me:$LINENO: result: yes" >&5 26286 echo "${ECHO_T}yes" >&6; } 26287 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 26288 else 26289 echo "$as_me: failed program was:" >&5 26290 sed 's/^/| /' conftest.$ac_ext >&5 26291 26292 { echo "$as_me:$LINENO: result: no" >&5 26293 echo "${ECHO_T}no" >&6; } 26294 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT" 26295 fi 26296 26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26298 26299 26300 { echo "$as_me:$LINENO: checking for int setnetent" >&5 26301 echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6; } 26302 cat >conftest.$ac_ext <<_ACEOF 26303 /* confdefs.h. */ 26304 _ACEOF 26305 cat confdefs.h >>conftest.$ac_ext 26306 cat >>conftest.$ac_ext <<_ACEOF 26307 /* end confdefs.h. */ 26308 26309 #include <netdb.h> 26310 int 26311 main () 26312 { 26313 int i = setnetent(0); return(0); 26314 ; 26315 return 0; 26316 } 26317 _ACEOF 26318 rm -f conftest.$ac_objext 26319 if { (ac_try="$ac_compile" 26320 case "(($ac_try" in 26321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26322 *) ac_try_echo=$ac_try;; 26323 esac 26324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26325 (eval "$ac_compile") 2>conftest.er1 26326 ac_status=$? 26327 grep -v '^ *+' conftest.er1 >conftest.err 26328 rm -f conftest.er1 26329 cat conftest.err >&5 26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26331 (exit $ac_status); } && { 26332 test -z "$ac_c_werror_flag" || 26333 test ! -s conftest.err 26334 } && test -s conftest.$ac_objext; then 26335 { echo "$as_me:$LINENO: result: yes" >&5 26336 echo "${ECHO_T}yes" >&6; } 26337 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 26338 else 26339 echo "$as_me: failed program was:" >&5 26340 sed 's/^/| /' conftest.$ac_ext >&5 26341 26342 { echo "$as_me:$LINENO: result: no" >&5 26343 echo "${ECHO_T}no" >&6; } 26344 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT" 26345 fi 26346 26347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26348 26349 26350 { echo "$as_me:$LINENO: checking for int endnetent" >&5 26351 echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6; } 26352 cat >conftest.$ac_ext <<_ACEOF 26353 /* confdefs.h. */ 26354 _ACEOF 26355 cat confdefs.h >>conftest.$ac_ext 26356 cat >>conftest.$ac_ext <<_ACEOF 26357 /* end confdefs.h. */ 26358 26359 #include <netdb.h> 26360 int 26361 main () 26362 { 26363 int i = endnetent(); return(0); 26364 ; 26365 return 0; 26366 } 26367 _ACEOF 26368 rm -f conftest.$ac_objext 26369 if { (ac_try="$ac_compile" 26370 case "(($ac_try" in 26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26372 *) ac_try_echo=$ac_try;; 26373 esac 26374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26375 (eval "$ac_compile") 2>conftest.er1 26376 ac_status=$? 26377 grep -v '^ *+' conftest.er1 >conftest.err 26378 rm -f conftest.er1 26379 cat conftest.err >&5 26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26381 (exit $ac_status); } && { 26382 test -z "$ac_c_werror_flag" || 26383 test ! -s conftest.err 26384 } && test -s conftest.$ac_objext; then 26385 { echo "$as_me:$LINENO: result: yes" >&5 26386 echo "${ECHO_T}yes" >&6; } 26387 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 26388 else 26389 echo "$as_me: failed program was:" >&5 26390 sed 's/^/| /' conftest.$ac_ext >&5 26391 26392 { echo "$as_me:$LINENO: result: no" >&5 26393 echo "${ECHO_T}no" >&6; } 26394 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT" 26395 fi 26396 26397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26398 26399 26400 { echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5 26401 echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6; } 26402 cat >conftest.$ac_ext <<_ACEOF 26403 /* confdefs.h. */ 26404 _ACEOF 26405 cat confdefs.h >>conftest.$ac_ext 26406 cat >>conftest.$ac_ext <<_ACEOF 26407 /* end confdefs.h. */ 26408 26409 #include <netdb.h> 26410 struct hostent *gethostbyaddr(const void *, size_t, int); 26411 int 26412 main () 26413 { 26414 return(0); 26415 ; 26416 return 0; 26417 } 26418 _ACEOF 26419 rm -f conftest.$ac_objext 26420 if { (ac_try="$ac_compile" 26421 case "(($ac_try" in 26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26423 *) ac_try_echo=$ac_try;; 26424 esac 26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26426 (eval "$ac_compile") 2>conftest.er1 26427 ac_status=$? 26428 grep -v '^ *+' conftest.er1 >conftest.err 26429 rm -f conftest.er1 26430 cat conftest.err >&5 26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26432 (exit $ac_status); } && { 26433 test -z "$ac_c_werror_flag" || 26434 test ! -s conftest.err 26435 } && test -s conftest.$ac_objext; then 26436 { echo "$as_me:$LINENO: result: yes" >&5 26437 echo "${ECHO_T}yes" >&6; } 26438 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 26439 else 26440 echo "$as_me: failed program was:" >&5 26441 sed 's/^/| /' conftest.$ac_ext >&5 26442 26443 { echo "$as_me:$LINENO: result: no" >&5 26444 echo "${ECHO_T}no" >&6; } 26445 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID" 26446 fi 26447 26448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26449 26450 26451 { echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5 26452 echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6; } 26453 cat >conftest.$ac_ext <<_ACEOF 26454 /* confdefs.h. */ 26455 _ACEOF 26456 cat confdefs.h >>conftest.$ac_ext 26457 cat >>conftest.$ac_ext <<_ACEOF 26458 /* end confdefs.h. */ 26459 26460 #include <netdb.h> 26461 int 26462 main () 26463 { 26464 h_errno = 1; return(0); 26465 ; 26466 return 0; 26467 } 26468 _ACEOF 26469 rm -f conftest.$ac_objext 26470 if { (ac_try="$ac_compile" 26471 case "(($ac_try" in 26472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26473 *) ac_try_echo=$ac_try;; 26474 esac 26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26476 (eval "$ac_compile") 2>conftest.er1 26477 ac_status=$? 26478 grep -v '^ *+' conftest.er1 >conftest.err 26479 rm -f conftest.er1 26480 cat conftest.err >&5 26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26482 (exit $ac_status); } && { 26483 test -z "$ac_c_werror_flag" || 26484 test ! -s conftest.err 26485 } && test -s conftest.$ac_objext; then 26486 { echo "$as_me:$LINENO: result: yes" >&5 26487 echo "${ECHO_T}yes" >&6; } 26488 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 26489 else 26490 echo "$as_me: failed program was:" >&5 26491 sed 's/^/| /' conftest.$ac_ext >&5 26492 26493 { echo "$as_me:$LINENO: result: no" >&5 26494 echo "${ECHO_T}no" >&6; } 26495 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1" 26496 fi 26497 26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26499 26500 26501 { echo "$as_me:$LINENO: checking for getipnodebyname" >&5 26502 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; } 26503 if test "${ac_cv_func_getipnodebyname+set}" = set; then 26504 echo $ECHO_N "(cached) $ECHO_C" >&6 26505 else 26506 cat >conftest.$ac_ext <<_ACEOF 26507 /* confdefs.h. */ 26508 _ACEOF 26509 cat confdefs.h >>conftest.$ac_ext 26510 cat >>conftest.$ac_ext <<_ACEOF 26511 /* end confdefs.h. */ 26512 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname. 26513 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26514 #define getipnodebyname innocuous_getipnodebyname 26515 26516 /* System header to define __stub macros and hopefully few prototypes, 26517 which can conflict with char getipnodebyname (); below. 26518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26519 <limits.h> exists even on freestanding compilers. */ 26520 26521 #ifdef __STDC__ 26522 # include <limits.h> 26523 #else 26524 # include <assert.h> 26525 #endif 26526 26527 #undef getipnodebyname 26528 26529 /* Override any GCC internal prototype to avoid an error. 26530 Use char because int might match the return type of a GCC 26531 builtin and then its argument prototype would still apply. */ 26532 #ifdef __cplusplus 26533 extern "C" 26534 #endif 26535 char getipnodebyname (); 26536 /* The GNU C library defines this for functions which it implements 26537 to always fail with ENOSYS. Some functions are actually named 26538 something starting with __ and the normal name is an alias. */ 26539 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname 26540 choke me 26541 #endif 26542 26543 int 26544 main () 26545 { 26546 return getipnodebyname (); 26547 ; 26548 return 0; 26549 } 26550 _ACEOF 26551 rm -f conftest.$ac_objext conftest$ac_exeext 26552 if { (ac_try="$ac_link" 26553 case "(($ac_try" in 26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26555 *) ac_try_echo=$ac_try;; 26556 esac 26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26558 (eval "$ac_link") 2>conftest.er1 26559 ac_status=$? 26560 grep -v '^ *+' conftest.er1 >conftest.err 26561 rm -f conftest.er1 26562 cat conftest.err >&5 26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26564 (exit $ac_status); } && { 26565 test -z "$ac_c_werror_flag" || 26566 test ! -s conftest.err 26567 } && test -s conftest$ac_exeext && 26568 $as_test_x conftest$ac_exeext; then 26569 ac_cv_func_getipnodebyname=yes 26570 else 26571 echo "$as_me: failed program was:" >&5 26572 sed 's/^/| /' conftest.$ac_ext >&5 26573 26574 ac_cv_func_getipnodebyname=no 26575 fi 26576 26577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26578 conftest$ac_exeext conftest.$ac_ext 26579 fi 26580 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5 26581 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; } 26582 if test $ac_cv_func_getipnodebyname = yes; then 26583 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO" 26584 else 26585 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1" 26586 fi 26587 26588 { echo "$as_me:$LINENO: checking for getnameinfo" >&5 26589 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; } 26590 if test "${ac_cv_func_getnameinfo+set}" = set; then 26591 echo $ECHO_N "(cached) $ECHO_C" >&6 26592 else 26593 cat >conftest.$ac_ext <<_ACEOF 26594 /* confdefs.h. */ 26595 _ACEOF 26596 cat confdefs.h >>conftest.$ac_ext 26597 cat >>conftest.$ac_ext <<_ACEOF 26598 /* end confdefs.h. */ 26599 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo. 26600 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26601 #define getnameinfo innocuous_getnameinfo 26602 26603 /* System header to define __stub macros and hopefully few prototypes, 26604 which can conflict with char getnameinfo (); below. 26605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26606 <limits.h> exists even on freestanding compilers. */ 26607 26608 #ifdef __STDC__ 26609 # include <limits.h> 26610 #else 26611 # include <assert.h> 26612 #endif 26613 26614 #undef getnameinfo 26615 26616 /* Override any GCC internal prototype to avoid an error. 26617 Use char because int might match the return type of a GCC 26618 builtin and then its argument prototype would still apply. */ 26619 #ifdef __cplusplus 26620 extern "C" 26621 #endif 26622 char getnameinfo (); 26623 /* The GNU C library defines this for functions which it implements 26624 to always fail with ENOSYS. Some functions are actually named 26625 something starting with __ and the normal name is an alias. */ 26626 #if defined __stub_getnameinfo || defined __stub___getnameinfo 26627 choke me 26628 #endif 26629 26630 int 26631 main () 26632 { 26633 return getnameinfo (); 26634 ; 26635 return 0; 26636 } 26637 _ACEOF 26638 rm -f conftest.$ac_objext conftest$ac_exeext 26639 if { (ac_try="$ac_link" 26640 case "(($ac_try" in 26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26642 *) ac_try_echo=$ac_try;; 26643 esac 26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26645 (eval "$ac_link") 2>conftest.er1 26646 ac_status=$? 26647 grep -v '^ *+' conftest.er1 >conftest.err 26648 rm -f conftest.er1 26649 cat conftest.err >&5 26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26651 (exit $ac_status); } && { 26652 test -z "$ac_c_werror_flag" || 26653 test ! -s conftest.err 26654 } && test -s conftest$ac_exeext && 26655 $as_test_x conftest$ac_exeext; then 26656 ac_cv_func_getnameinfo=yes 26657 else 26658 echo "$as_me: failed program was:" >&5 26659 sed 's/^/| /' conftest.$ac_ext >&5 26660 26661 ac_cv_func_getnameinfo=no 26662 fi 26663 26664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26665 conftest$ac_exeext conftest.$ac_ext 26666 fi 26667 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5 26668 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; } 26669 if test $ac_cv_func_getnameinfo = yes; then 26670 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO" 26671 else 26672 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1" 26673 fi 26674 26675 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5 26676 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } 26677 if test "${ac_cv_func_getaddrinfo+set}" = set; then 26678 echo $ECHO_N "(cached) $ECHO_C" >&6 26679 else 26680 cat >conftest.$ac_ext <<_ACEOF 26681 /* confdefs.h. */ 26682 _ACEOF 26683 cat confdefs.h >>conftest.$ac_ext 26684 cat >>conftest.$ac_ext <<_ACEOF 26685 /* end confdefs.h. */ 26686 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 26687 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26688 #define getaddrinfo innocuous_getaddrinfo 26689 26690 /* System header to define __stub macros and hopefully few prototypes, 26691 which can conflict with char getaddrinfo (); below. 26692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26693 <limits.h> exists even on freestanding compilers. */ 26694 26695 #ifdef __STDC__ 26696 # include <limits.h> 26697 #else 26698 # include <assert.h> 26699 #endif 26700 26701 #undef getaddrinfo 26702 26703 /* Override any GCC internal prototype to avoid an error. 26704 Use char because int might match the return type of a GCC 26705 builtin and then its argument prototype would still apply. */ 26706 #ifdef __cplusplus 26707 extern "C" 26708 #endif 26709 char getaddrinfo (); 26710 /* The GNU C library defines this for functions which it implements 26711 to always fail with ENOSYS. Some functions are actually named 26712 something starting with __ and the normal name is an alias. */ 26713 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo 26714 choke me 26715 #endif 26716 26717 int 26718 main () 26719 { 26720 return getaddrinfo (); 26721 ; 26722 return 0; 26723 } 26724 _ACEOF 26725 rm -f conftest.$ac_objext conftest$ac_exeext 26726 if { (ac_try="$ac_link" 26727 case "(($ac_try" in 26728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26729 *) ac_try_echo=$ac_try;; 26730 esac 26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26732 (eval "$ac_link") 2>conftest.er1 26733 ac_status=$? 26734 grep -v '^ *+' conftest.er1 >conftest.err 26735 rm -f conftest.er1 26736 cat conftest.err >&5 26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26738 (exit $ac_status); } && { 26739 test -z "$ac_c_werror_flag" || 26740 test ! -s conftest.err 26741 } && test -s conftest$ac_exeext && 26742 $as_test_x conftest$ac_exeext; then 26743 ac_cv_func_getaddrinfo=yes 26744 else 26745 echo "$as_me: failed program was:" >&5 26746 sed 's/^/| /' conftest.$ac_ext >&5 26747 26748 ac_cv_func_getaddrinfo=no 26749 fi 26750 26751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26752 conftest$ac_exeext conftest.$ac_ext 26753 fi 26754 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 26755 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; } 26756 if test $ac_cv_func_getaddrinfo = yes; then 26757 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO" 26758 cat >>confdefs.h <<\_ACEOF 26759 #define HAVE_GETADDRINFO 1 26760 _ACEOF 26761 26762 else 26763 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1" 26764 fi 26765 26766 { echo "$as_me:$LINENO: checking for gai_strerror" >&5 26767 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; } 26768 if test "${ac_cv_func_gai_strerror+set}" = set; then 26769 echo $ECHO_N "(cached) $ECHO_C" >&6 26770 else 26771 cat >conftest.$ac_ext <<_ACEOF 26772 /* confdefs.h. */ 26773 _ACEOF 26774 cat confdefs.h >>conftest.$ac_ext 26775 cat >>conftest.$ac_ext <<_ACEOF 26776 /* end confdefs.h. */ 26777 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror. 26778 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26779 #define gai_strerror innocuous_gai_strerror 26780 26781 /* System header to define __stub macros and hopefully few prototypes, 26782 which can conflict with char gai_strerror (); below. 26783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26784 <limits.h> exists even on freestanding compilers. */ 26785 26786 #ifdef __STDC__ 26787 # include <limits.h> 26788 #else 26789 # include <assert.h> 26790 #endif 26791 26792 #undef gai_strerror 26793 26794 /* Override any GCC internal prototype to avoid an error. 26795 Use char because int might match the return type of a GCC 26796 builtin and then its argument prototype would still apply. */ 26797 #ifdef __cplusplus 26798 extern "C" 26799 #endif 26800 char gai_strerror (); 26801 /* The GNU C library defines this for functions which it implements 26802 to always fail with ENOSYS. Some functions are actually named 26803 something starting with __ and the normal name is an alias. */ 26804 #if defined __stub_gai_strerror || defined __stub___gai_strerror 26805 choke me 26806 #endif 26807 26808 int 26809 main () 26810 { 26811 return gai_strerror (); 26812 ; 26813 return 0; 26814 } 26815 _ACEOF 26816 rm -f conftest.$ac_objext conftest$ac_exeext 26817 if { (ac_try="$ac_link" 26818 case "(($ac_try" in 26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26820 *) ac_try_echo=$ac_try;; 26821 esac 26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26823 (eval "$ac_link") 2>conftest.er1 26824 ac_status=$? 26825 grep -v '^ *+' conftest.er1 >conftest.err 26826 rm -f conftest.er1 26827 cat conftest.err >&5 26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26829 (exit $ac_status); } && { 26830 test -z "$ac_c_werror_flag" || 26831 test ! -s conftest.err 26832 } && test -s conftest$ac_exeext && 26833 $as_test_x conftest$ac_exeext; then 26834 ac_cv_func_gai_strerror=yes 26835 else 26836 echo "$as_me: failed program was:" >&5 26837 sed 's/^/| /' conftest.$ac_ext >&5 26838 26839 ac_cv_func_gai_strerror=no 26840 fi 26841 26842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26843 conftest$ac_exeext conftest.$ac_ext 26844 fi 26845 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5 26846 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; } 26847 if test $ac_cv_func_gai_strerror = yes; then 26848 cat >>confdefs.h <<\_ACEOF 26849 #define HAVE_GAISTRERROR 1 26850 _ACEOF 26851 26852 fi 26853 26854 26855 26856 26857 { echo "$as_me:$LINENO: checking for pselect" >&5 26858 echo $ECHO_N "checking for pselect... $ECHO_C" >&6; } 26859 if test "${ac_cv_func_pselect+set}" = set; then 26860 echo $ECHO_N "(cached) $ECHO_C" >&6 26861 else 26862 cat >conftest.$ac_ext <<_ACEOF 26863 /* confdefs.h. */ 26864 _ACEOF 26865 cat confdefs.h >>conftest.$ac_ext 26866 cat >>conftest.$ac_ext <<_ACEOF 26867 /* end confdefs.h. */ 26868 /* Define pselect to an innocuous variant, in case <limits.h> declares pselect. 26869 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26870 #define pselect innocuous_pselect 26871 26872 /* System header to define __stub macros and hopefully few prototypes, 26873 which can conflict with char pselect (); below. 26874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26875 <limits.h> exists even on freestanding compilers. */ 26876 26877 #ifdef __STDC__ 26878 # include <limits.h> 26879 #else 26880 # include <assert.h> 26881 #endif 26882 26883 #undef pselect 26884 26885 /* Override any GCC internal prototype to avoid an error. 26886 Use char because int might match the return type of a GCC 26887 builtin and then its argument prototype would still apply. */ 26888 #ifdef __cplusplus 26889 extern "C" 26890 #endif 26891 char pselect (); 26892 /* The GNU C library defines this for functions which it implements 26893 to always fail with ENOSYS. Some functions are actually named 26894 something starting with __ and the normal name is an alias. */ 26895 #if defined __stub_pselect || defined __stub___pselect 26896 choke me 26897 #endif 26898 26899 int 26900 main () 26901 { 26902 return pselect (); 26903 ; 26904 return 0; 26905 } 26906 _ACEOF 26907 rm -f conftest.$ac_objext conftest$ac_exeext 26908 if { (ac_try="$ac_link" 26909 case "(($ac_try" in 26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26911 *) ac_try_echo=$ac_try;; 26912 esac 26913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26914 (eval "$ac_link") 2>conftest.er1 26915 ac_status=$? 26916 grep -v '^ *+' conftest.er1 >conftest.err 26917 rm -f conftest.er1 26918 cat conftest.err >&5 26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26920 (exit $ac_status); } && { 26921 test -z "$ac_c_werror_flag" || 26922 test ! -s conftest.err 26923 } && test -s conftest$ac_exeext && 26924 $as_test_x conftest$ac_exeext; then 26925 ac_cv_func_pselect=yes 26926 else 26927 echo "$as_me: failed program was:" >&5 26928 sed 's/^/| /' conftest.$ac_ext >&5 26929 26930 ac_cv_func_pselect=no 26931 fi 26932 26933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26934 conftest$ac_exeext conftest.$ac_ext 26935 fi 26936 { echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5 26937 echo "${ECHO_T}$ac_cv_func_pselect" >&6; } 26938 if test $ac_cv_func_pselect = yes; then 26939 NEED_PSELECT="#undef NEED_PSELECT" 26940 else 26941 NEED_PSELECT="#define NEED_PSELECT" 26942 fi 26943 26944 26945 { echo "$as_me:$LINENO: checking for gettimeofday" >&5 26946 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; } 26947 if test "${ac_cv_func_gettimeofday+set}" = set; then 26948 echo $ECHO_N "(cached) $ECHO_C" >&6 26949 else 26950 cat >conftest.$ac_ext <<_ACEOF 26951 /* confdefs.h. */ 26952 _ACEOF 26953 cat confdefs.h >>conftest.$ac_ext 26954 cat >>conftest.$ac_ext <<_ACEOF 26955 /* end confdefs.h. */ 26956 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday. 26957 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26958 #define gettimeofday innocuous_gettimeofday 26959 26960 /* System header to define __stub macros and hopefully few prototypes, 26961 which can conflict with char gettimeofday (); below. 26962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26963 <limits.h> exists even on freestanding compilers. */ 26964 26965 #ifdef __STDC__ 26966 # include <limits.h> 26967 #else 26968 # include <assert.h> 26969 #endif 26970 26971 #undef gettimeofday 26972 26973 /* Override any GCC internal prototype to avoid an error. 26974 Use char because int might match the return type of a GCC 26975 builtin and then its argument prototype would still apply. */ 26976 #ifdef __cplusplus 26977 extern "C" 26978 #endif 26979 char gettimeofday (); 26980 /* The GNU C library defines this for functions which it implements 26981 to always fail with ENOSYS. Some functions are actually named 26982 something starting with __ and the normal name is an alias. */ 26983 #if defined __stub_gettimeofday || defined __stub___gettimeofday 26984 choke me 26985 #endif 26986 26987 int 26988 main () 26989 { 26990 return gettimeofday (); 26991 ; 26992 return 0; 26993 } 26994 _ACEOF 26995 rm -f conftest.$ac_objext conftest$ac_exeext 26996 if { (ac_try="$ac_link" 26997 case "(($ac_try" in 26998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26999 *) ac_try_echo=$ac_try;; 27000 esac 27001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27002 (eval "$ac_link") 2>conftest.er1 27003 ac_status=$? 27004 grep -v '^ *+' conftest.er1 >conftest.err 27005 rm -f conftest.er1 27006 cat conftest.err >&5 27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27008 (exit $ac_status); } && { 27009 test -z "$ac_c_werror_flag" || 27010 test ! -s conftest.err 27011 } && test -s conftest$ac_exeext && 27012 $as_test_x conftest$ac_exeext; then 27013 ac_cv_func_gettimeofday=yes 27014 else 27015 echo "$as_me: failed program was:" >&5 27016 sed 's/^/| /' conftest.$ac_ext >&5 27017 27018 ac_cv_func_gettimeofday=no 27019 fi 27020 27021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27022 conftest$ac_exeext conftest.$ac_ext 27023 fi 27024 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 27025 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; } 27026 if test $ac_cv_func_gettimeofday = yes; then 27027 NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY" 27028 else 27029 NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1" 27030 fi 27031 27032 27033 { echo "$as_me:$LINENO: checking for strndup" >&5 27034 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; } 27035 if test "${ac_cv_func_strndup+set}" = set; then 27036 echo $ECHO_N "(cached) $ECHO_C" >&6 27037 else 27038 cat >conftest.$ac_ext <<_ACEOF 27039 /* confdefs.h. */ 27040 _ACEOF 27041 cat confdefs.h >>conftest.$ac_ext 27042 cat >>conftest.$ac_ext <<_ACEOF 27043 /* end confdefs.h. */ 27044 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup. 27045 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27046 #define strndup innocuous_strndup 27047 27048 /* System header to define __stub macros and hopefully few prototypes, 27049 which can conflict with char strndup (); below. 27050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27051 <limits.h> exists even on freestanding compilers. */ 27052 27053 #ifdef __STDC__ 27054 # include <limits.h> 27055 #else 27056 # include <assert.h> 27057 #endif 27058 27059 #undef strndup 27060 27061 /* Override any GCC internal prototype to avoid an error. 27062 Use char because int might match the return type of a GCC 27063 builtin and then its argument prototype would still apply. */ 27064 #ifdef __cplusplus 27065 extern "C" 27066 #endif 27067 char strndup (); 27068 /* The GNU C library defines this for functions which it implements 27069 to always fail with ENOSYS. Some functions are actually named 27070 something starting with __ and the normal name is an alias. */ 27071 #if defined __stub_strndup || defined __stub___strndup 27072 choke me 27073 #endif 27074 27075 int 27076 main () 27077 { 27078 return strndup (); 27079 ; 27080 return 0; 27081 } 27082 _ACEOF 27083 rm -f conftest.$ac_objext conftest$ac_exeext 27084 if { (ac_try="$ac_link" 27085 case "(($ac_try" in 27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27087 *) ac_try_echo=$ac_try;; 27088 esac 27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27090 (eval "$ac_link") 2>conftest.er1 27091 ac_status=$? 27092 grep -v '^ *+' conftest.er1 >conftest.err 27093 rm -f conftest.er1 27094 cat conftest.err >&5 27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27096 (exit $ac_status); } && { 27097 test -z "$ac_c_werror_flag" || 27098 test ! -s conftest.err 27099 } && test -s conftest$ac_exeext && 27100 $as_test_x conftest$ac_exeext; then 27101 ac_cv_func_strndup=yes 27102 else 27103 echo "$as_me: failed program was:" >&5 27104 sed 's/^/| /' conftest.$ac_ext >&5 27105 27106 ac_cv_func_strndup=no 27107 fi 27108 27109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27110 conftest$ac_exeext conftest.$ac_ext 27111 fi 27112 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 27113 echo "${ECHO_T}$ac_cv_func_strndup" >&6; } 27114 if test $ac_cv_func_strndup = yes; then 27115 HAVE_STRNDUP="#define HAVE_STRNDUP 1" 27116 else 27117 HAVE_STRNDUP="#undef HAVE_STRNDUP" 27118 fi 27119 27120 27121 27122 # 27123 # Look for a sysctl call to get the list of network interfaces. 27124 # 27125 { echo "$as_me:$LINENO: checking for interface list sysctl" >&5 27126 echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6; } 27127 cat >conftest.$ac_ext <<_ACEOF 27128 /* confdefs.h. */ 27129 _ACEOF 27130 cat confdefs.h >>conftest.$ac_ext 27131 cat >>conftest.$ac_ext <<_ACEOF 27132 /* end confdefs.h. */ 27133 27134 #include <sys/param.h> 27135 #include <sys/sysctl.h> 27136 #include <sys/socket.h> 27137 #ifdef NET_RT_IFLIST 27138 found_rt_iflist 27139 #endif 27140 27141 _ACEOF 27142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27143 $EGREP "found_rt_iflist" >/dev/null 2>&1; then 27144 { echo "$as_me:$LINENO: result: yes" >&5 27145 echo "${ECHO_T}yes" >&6; } 27146 cat >>confdefs.h <<\_ACEOF 27147 #define HAVE_IFLIST_SYSCTL 1 27148 _ACEOF 27149 27150 else 27151 { echo "$as_me:$LINENO: result: no" >&5 27152 echo "${ECHO_T}no" >&6; } 27153 fi 27154 rm -f conftest* 27155 27156 27157 # 27158 # Check for some other useful functions that are not ever-present. 27159 # 27160 { echo "$as_me:$LINENO: checking for strsep" >&5 27161 echo $ECHO_N "checking for strsep... $ECHO_C" >&6; } 27162 if test "${ac_cv_func_strsep+set}" = set; then 27163 echo $ECHO_N "(cached) $ECHO_C" >&6 27164 else 27165 cat >conftest.$ac_ext <<_ACEOF 27166 /* confdefs.h. */ 27167 _ACEOF 27168 cat confdefs.h >>conftest.$ac_ext 27169 cat >>conftest.$ac_ext <<_ACEOF 27170 /* end confdefs.h. */ 27171 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep. 27172 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27173 #define strsep innocuous_strsep 27174 27175 /* System header to define __stub macros and hopefully few prototypes, 27176 which can conflict with char strsep (); below. 27177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27178 <limits.h> exists even on freestanding compilers. */ 27179 27180 #ifdef __STDC__ 27181 # include <limits.h> 27182 #else 27183 # include <assert.h> 27184 #endif 27185 27186 #undef strsep 27187 27188 /* Override any GCC internal prototype to avoid an error. 27189 Use char because int might match the return type of a GCC 27190 builtin and then its argument prototype would still apply. */ 27191 #ifdef __cplusplus 27192 extern "C" 27193 #endif 27194 char strsep (); 27195 /* The GNU C library defines this for functions which it implements 27196 to always fail with ENOSYS. Some functions are actually named 27197 something starting with __ and the normal name is an alias. */ 27198 #if defined __stub_strsep || defined __stub___strsep 27199 choke me 27200 #endif 27201 27202 int 27203 main () 27204 { 27205 return strsep (); 27206 ; 27207 return 0; 27208 } 27209 _ACEOF 27210 rm -f conftest.$ac_objext conftest$ac_exeext 27211 if { (ac_try="$ac_link" 27212 case "(($ac_try" in 27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27214 *) ac_try_echo=$ac_try;; 27215 esac 27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27217 (eval "$ac_link") 2>conftest.er1 27218 ac_status=$? 27219 grep -v '^ *+' conftest.er1 >conftest.err 27220 rm -f conftest.er1 27221 cat conftest.err >&5 27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27223 (exit $ac_status); } && { 27224 test -z "$ac_c_werror_flag" || 27225 test ! -s conftest.err 27226 } && test -s conftest$ac_exeext && 27227 $as_test_x conftest$ac_exeext; then 27228 ac_cv_func_strsep=yes 27229 else 27230 echo "$as_me: failed program was:" >&5 27231 sed 's/^/| /' conftest.$ac_ext >&5 27232 27233 ac_cv_func_strsep=no 27234 fi 27235 27236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27237 conftest$ac_exeext conftest.$ac_ext 27238 fi 27239 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 27240 echo "${ECHO_T}$ac_cv_func_strsep" >&6; } 27241 if test $ac_cv_func_strsep = yes; then 27242 ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 27243 else 27244 ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1" 27245 fi 27246 27247 27248 27249 { echo "$as_me:$LINENO: checking for char *sprintf" >&5 27250 echo $ECHO_N "checking for char *sprintf... $ECHO_C" >&6; } 27251 cat >conftest.$ac_ext <<_ACEOF 27252 /* confdefs.h. */ 27253 _ACEOF 27254 cat confdefs.h >>conftest.$ac_ext 27255 cat >>conftest.$ac_ext <<_ACEOF 27256 /* end confdefs.h. */ 27257 27258 #include <stdio.h> 27259 27260 int 27261 main () 27262 { 27263 char buf[2]; return(*sprintf(buf,"x")); 27264 ; 27265 return 0; 27266 } 27267 _ACEOF 27268 rm -f conftest.$ac_objext 27269 if { (ac_try="$ac_compile" 27270 case "(($ac_try" in 27271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27272 *) ac_try_echo=$ac_try;; 27273 esac 27274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27275 (eval "$ac_compile") 2>conftest.er1 27276 ac_status=$? 27277 grep -v '^ *+' conftest.er1 >conftest.err 27278 rm -f conftest.er1 27279 cat conftest.err >&5 27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27281 (exit $ac_status); } && { 27282 test -z "$ac_c_werror_flag" || 27283 test ! -s conftest.err 27284 } && test -s conftest.$ac_objext; then 27285 cat >>confdefs.h <<\_ACEOF 27286 #define SPRINTF_CHAR 1 27287 _ACEOF 27288 27289 { echo "$as_me:$LINENO: result: yes" >&5 27290 echo "${ECHO_T}yes" >&6; } 27291 27292 else 27293 echo "$as_me: failed program was:" >&5 27294 sed 's/^/| /' conftest.$ac_ext >&5 27295 27296 { echo "$as_me:$LINENO: result: no" >&5 27297 echo "${ECHO_T}no" >&6; } 27298 27299 fi 27300 27301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27302 27303 { echo "$as_me:$LINENO: checking for char *vsprintf" >&5 27304 echo $ECHO_N "checking for char *vsprintf... $ECHO_C" >&6; } 27305 case $host in 27306 *sunos4*) # not decared in any header file. 27307 cat >>confdefs.h <<\_ACEOF 27308 #define VSPRINTF_CHAR 1 27309 _ACEOF 27310 27311 { echo "$as_me:$LINENO: result: yes" >&5 27312 echo "${ECHO_T}yes" >&6; } 27313 ;; 27314 *) 27315 cat >conftest.$ac_ext <<_ACEOF 27316 /* confdefs.h. */ 27317 _ACEOF 27318 cat confdefs.h >>conftest.$ac_ext 27319 cat >>conftest.$ac_ext <<_ACEOF 27320 /* end confdefs.h. */ 27321 27322 #include <stdio.h> 27323 27324 int 27325 main () 27326 { 27327 char buf[2]; return(*vsprintf(buf,"x")); 27328 ; 27329 return 0; 27330 } 27331 _ACEOF 27332 rm -f conftest.$ac_objext 27333 if { (ac_try="$ac_compile" 27334 case "(($ac_try" in 27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27336 *) ac_try_echo=$ac_try;; 27337 esac 27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27339 (eval "$ac_compile") 2>conftest.er1 27340 ac_status=$? 27341 grep -v '^ *+' conftest.er1 >conftest.err 27342 rm -f conftest.er1 27343 cat conftest.err >&5 27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27345 (exit $ac_status); } && { 27346 test -z "$ac_c_werror_flag" || 27347 test ! -s conftest.err 27348 } && test -s conftest.$ac_objext; then 27349 cat >>confdefs.h <<\_ACEOF 27350 #define VSPRINTF_CHAR 1 27351 _ACEOF 27352 27353 { echo "$as_me:$LINENO: result: yes" >&5 27354 echo "${ECHO_T}yes" >&6; } 27355 27356 else 27357 echo "$as_me: failed program was:" >&5 27358 sed 's/^/| /' conftest.$ac_ext >&5 27359 27360 { echo "$as_me:$LINENO: result: no" >&5 27361 echo "${ECHO_T}no" >&6; } 27362 27363 fi 27364 27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27366 ;; 27367 esac 27368 27369 { echo "$as_me:$LINENO: checking for vsnprintf" >&5 27370 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; } 27371 if test "${ac_cv_func_vsnprintf+set}" = set; then 27372 echo $ECHO_N "(cached) $ECHO_C" >&6 27373 else 27374 cat >conftest.$ac_ext <<_ACEOF 27375 /* confdefs.h. */ 27376 _ACEOF 27377 cat confdefs.h >>conftest.$ac_ext 27378 cat >>conftest.$ac_ext <<_ACEOF 27379 /* end confdefs.h. */ 27380 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. 27381 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27382 #define vsnprintf innocuous_vsnprintf 27383 27384 /* System header to define __stub macros and hopefully few prototypes, 27385 which can conflict with char vsnprintf (); below. 27386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27387 <limits.h> exists even on freestanding compilers. */ 27388 27389 #ifdef __STDC__ 27390 # include <limits.h> 27391 #else 27392 # include <assert.h> 27393 #endif 27394 27395 #undef vsnprintf 27396 27397 /* Override any GCC internal prototype to avoid an error. 27398 Use char because int might match the return type of a GCC 27399 builtin and then its argument prototype would still apply. */ 27400 #ifdef __cplusplus 27401 extern "C" 27402 #endif 27403 char vsnprintf (); 27404 /* The GNU C library defines this for functions which it implements 27405 to always fail with ENOSYS. Some functions are actually named 27406 something starting with __ and the normal name is an alias. */ 27407 #if defined __stub_vsnprintf || defined __stub___vsnprintf 27408 choke me 27409 #endif 27410 27411 int 27412 main () 27413 { 27414 return vsnprintf (); 27415 ; 27416 return 0; 27417 } 27418 _ACEOF 27419 rm -f conftest.$ac_objext conftest$ac_exeext 27420 if { (ac_try="$ac_link" 27421 case "(($ac_try" in 27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27423 *) ac_try_echo=$ac_try;; 27424 esac 27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27426 (eval "$ac_link") 2>conftest.er1 27427 ac_status=$? 27428 grep -v '^ *+' conftest.er1 >conftest.err 27429 rm -f conftest.er1 27430 cat conftest.err >&5 27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27432 (exit $ac_status); } && { 27433 test -z "$ac_c_werror_flag" || 27434 test ! -s conftest.err 27435 } && test -s conftest$ac_exeext && 27436 $as_test_x conftest$ac_exeext; then 27437 ac_cv_func_vsnprintf=yes 27438 else 27439 echo "$as_me: failed program was:" >&5 27440 sed 's/^/| /' conftest.$ac_ext >&5 27441 27442 ac_cv_func_vsnprintf=no 27443 fi 27444 27445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27446 conftest$ac_exeext conftest.$ac_ext 27447 fi 27448 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 27449 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; } 27450 if test $ac_cv_func_vsnprintf = yes; then 27451 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF" 27452 else 27453 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O" 27454 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c" 27455 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1" 27456 fi 27457 27458 27459 27460 27461 27462 27463 27464 # Determine the printf format characters to use when printing 27465 # values of type isc_int64_t. We make the assumption that platforms 27466 # where a "long long" is the same size as a "long" (e.g., Alpha/OSF1) 27467 # want "%ld" and everyone else can use "%lld". Win32 uses "%I64d", 27468 # but that's defined elsewhere since we don't use configure on Win32. 27469 # 27470 { echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5 27471 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6; } 27472 if test "$cross_compiling" = yes; then 27473 { echo "$as_me:$LINENO: result: default ll" >&5 27474 echo "${ECHO_T}default ll" >&6; } 27475 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 27476 else 27477 cat >conftest.$ac_ext <<_ACEOF 27478 /* confdefs.h. */ 27479 _ACEOF 27480 cat confdefs.h >>conftest.$ac_ext 27481 cat >>conftest.$ac_ext <<_ACEOF 27482 /* end confdefs.h. */ 27483 main() { exit(!(sizeof(long long int) == sizeof(long int))); } 27484 _ACEOF 27485 rm -f conftest$ac_exeext 27486 if { (ac_try="$ac_link" 27487 case "(($ac_try" in 27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27489 *) ac_try_echo=$ac_try;; 27490 esac 27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27492 (eval "$ac_link") 2>&5 27493 ac_status=$? 27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27496 { (case "(($ac_try" in 27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27498 *) ac_try_echo=$ac_try;; 27499 esac 27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27501 (eval "$ac_try") 2>&5 27502 ac_status=$? 27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27504 (exit $ac_status); }; }; then 27505 { echo "$as_me:$LINENO: result: l" >&5 27506 echo "${ECHO_T}l" >&6; } 27507 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"' 27508 else 27509 echo "$as_me: program exited with status $ac_status" >&5 27510 echo "$as_me: failed program was:" >&5 27511 sed 's/^/| /' conftest.$ac_ext >&5 27512 27513 ( exit $ac_status ) 27514 { echo "$as_me:$LINENO: result: ll" >&5 27515 echo "${ECHO_T}ll" >&6; } 27516 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 27517 fi 27518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27519 fi 27520 27521 27522 27523 27524 # 27525 # Security Stuff 27526 # 27527 { echo "$as_me:$LINENO: checking for chroot" >&5 27528 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } 27529 if test "${ac_cv_func_chroot+set}" = set; then 27530 echo $ECHO_N "(cached) $ECHO_C" >&6 27531 else 27532 cat >conftest.$ac_ext <<_ACEOF 27533 /* confdefs.h. */ 27534 _ACEOF 27535 cat confdefs.h >>conftest.$ac_ext 27536 cat >>conftest.$ac_ext <<_ACEOF 27537 /* end confdefs.h. */ 27538 /* Define chroot to an innocuous variant, in case <limits.h> declares chroot. 27539 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27540 #define chroot innocuous_chroot 27541 27542 /* System header to define __stub macros and hopefully few prototypes, 27543 which can conflict with char chroot (); below. 27544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27545 <limits.h> exists even on freestanding compilers. */ 27546 27547 #ifdef __STDC__ 27548 # include <limits.h> 27549 #else 27550 # include <assert.h> 27551 #endif 27552 27553 #undef chroot 27554 27555 /* Override any GCC internal prototype to avoid an error. 27556 Use char because int might match the return type of a GCC 27557 builtin and then its argument prototype would still apply. */ 27558 #ifdef __cplusplus 27559 extern "C" 27560 #endif 27561 char chroot (); 27562 /* The GNU C library defines this for functions which it implements 27563 to always fail with ENOSYS. Some functions are actually named 27564 something starting with __ and the normal name is an alias. */ 27565 #if defined __stub_chroot || defined __stub___chroot 27566 choke me 27567 #endif 27568 27569 int 27570 main () 27571 { 27572 return chroot (); 27573 ; 27574 return 0; 27575 } 27576 _ACEOF 27577 rm -f conftest.$ac_objext conftest$ac_exeext 27578 if { (ac_try="$ac_link" 27579 case "(($ac_try" in 27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27581 *) ac_try_echo=$ac_try;; 27582 esac 27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27584 (eval "$ac_link") 2>conftest.er1 27585 ac_status=$? 27586 grep -v '^ *+' conftest.er1 >conftest.err 27587 rm -f conftest.er1 27588 cat conftest.err >&5 27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27590 (exit $ac_status); } && { 27591 test -z "$ac_c_werror_flag" || 27592 test ! -s conftest.err 27593 } && test -s conftest$ac_exeext && 27594 $as_test_x conftest$ac_exeext; then 27595 ac_cv_func_chroot=yes 27596 else 27597 echo "$as_me: failed program was:" >&5 27598 sed 's/^/| /' conftest.$ac_ext >&5 27599 27600 ac_cv_func_chroot=no 27601 fi 27602 27603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27604 conftest$ac_exeext conftest.$ac_ext 27605 fi 27606 { echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5 27607 echo "${ECHO_T}$ac_cv_func_chroot" >&6; } 27608 if test $ac_cv_func_chroot = yes; then 27609 cat >>confdefs.h <<\_ACEOF 27610 #define HAVE_CHROOT 1 27611 _ACEOF 27612 27613 fi 27614 27615 27616 # 27617 # for accept, recvfrom, getpeername etc. 27618 # 27619 { echo "$as_me:$LINENO: checking for socket length type" >&5 27620 echo $ECHO_N "checking for socket length type... $ECHO_C" >&6; } 27621 cat >conftest.$ac_ext <<_ACEOF 27622 /* confdefs.h. */ 27623 _ACEOF 27624 cat confdefs.h >>conftest.$ac_ext 27625 cat >>conftest.$ac_ext <<_ACEOF 27626 /* end confdefs.h. */ 27627 27628 #include <sys/types.h> 27629 #include <sys/socket.h> 27630 int accept(int, struct sockaddr *, socklen_t *); 27631 27632 int 27633 main () 27634 { 27635 27636 ; 27637 return 0; 27638 } 27639 _ACEOF 27640 rm -f conftest.$ac_objext 27641 if { (ac_try="$ac_compile" 27642 case "(($ac_try" in 27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27644 *) ac_try_echo=$ac_try;; 27645 esac 27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27647 (eval "$ac_compile") 2>conftest.er1 27648 ac_status=$? 27649 grep -v '^ *+' conftest.er1 >conftest.err 27650 rm -f conftest.er1 27651 cat conftest.err >&5 27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27653 (exit $ac_status); } && { 27654 test -z "$ac_c_werror_flag" || 27655 test ! -s conftest.err 27656 } && test -s conftest.$ac_objext; then 27657 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t" 27658 { echo "$as_me:$LINENO: result: socklen_t" >&5 27659 echo "${ECHO_T}socklen_t" >&6; } 27660 27661 else 27662 echo "$as_me: failed program was:" >&5 27663 sed 's/^/| /' conftest.$ac_ext >&5 27664 27665 cat >conftest.$ac_ext <<_ACEOF 27666 /* confdefs.h. */ 27667 _ACEOF 27668 cat confdefs.h >>conftest.$ac_ext 27669 cat >>conftest.$ac_ext <<_ACEOF 27670 /* end confdefs.h. */ 27671 27672 #include <sys/types.h> 27673 #include <sys/socket.h> 27674 int accept(int, struct sockaddr *, unsigned int *); 27675 27676 int 27677 main () 27678 { 27679 27680 ; 27681 return 0; 27682 } 27683 _ACEOF 27684 rm -f conftest.$ac_objext 27685 if { (ac_try="$ac_compile" 27686 case "(($ac_try" in 27687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27688 *) ac_try_echo=$ac_try;; 27689 esac 27690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27691 (eval "$ac_compile") 2>conftest.er1 27692 ac_status=$? 27693 grep -v '^ *+' conftest.er1 >conftest.err 27694 rm -f conftest.er1 27695 cat conftest.err >&5 27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27697 (exit $ac_status); } && { 27698 test -z "$ac_c_werror_flag" || 27699 test ! -s conftest.err 27700 } && test -s conftest.$ac_objext; then 27701 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int" 27702 { echo "$as_me:$LINENO: result: unsigned int" >&5 27703 echo "${ECHO_T}unsigned int" >&6; } 27704 27705 else 27706 echo "$as_me: failed program was:" >&5 27707 sed 's/^/| /' conftest.$ac_ext >&5 27708 27709 cat >conftest.$ac_ext <<_ACEOF 27710 /* confdefs.h. */ 27711 _ACEOF 27712 cat confdefs.h >>conftest.$ac_ext 27713 cat >>conftest.$ac_ext <<_ACEOF 27714 /* end confdefs.h. */ 27715 27716 #include <sys/types.h> 27717 #include <sys/socket.h> 27718 int accept(int, struct sockaddr *, unsigned long *); 27719 27720 int 27721 main () 27722 { 27723 27724 ; 27725 return 0; 27726 } 27727 _ACEOF 27728 rm -f conftest.$ac_objext 27729 if { (ac_try="$ac_compile" 27730 case "(($ac_try" in 27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27732 *) ac_try_echo=$ac_try;; 27733 esac 27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27735 (eval "$ac_compile") 2>conftest.er1 27736 ac_status=$? 27737 grep -v '^ *+' conftest.er1 >conftest.err 27738 rm -f conftest.er1 27739 cat conftest.err >&5 27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27741 (exit $ac_status); } && { 27742 test -z "$ac_c_werror_flag" || 27743 test ! -s conftest.err 27744 } && test -s conftest.$ac_objext; then 27745 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long" 27746 { echo "$as_me:$LINENO: result: unsigned long" >&5 27747 echo "${ECHO_T}unsigned long" >&6; } 27748 27749 else 27750 echo "$as_me: failed program was:" >&5 27751 sed 's/^/| /' conftest.$ac_ext >&5 27752 27753 cat >conftest.$ac_ext <<_ACEOF 27754 /* confdefs.h. */ 27755 _ACEOF 27756 cat confdefs.h >>conftest.$ac_ext 27757 cat >>conftest.$ac_ext <<_ACEOF 27758 /* end confdefs.h. */ 27759 27760 #include <sys/types.h> 27761 #include <sys/socket.h> 27762 int accept(int, struct sockaddr *, long *); 27763 27764 int 27765 main () 27766 { 27767 27768 ; 27769 return 0; 27770 } 27771 _ACEOF 27772 rm -f conftest.$ac_objext 27773 if { (ac_try="$ac_compile" 27774 case "(($ac_try" in 27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27776 *) ac_try_echo=$ac_try;; 27777 esac 27778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27779 (eval "$ac_compile") 2>conftest.er1 27780 ac_status=$? 27781 grep -v '^ *+' conftest.er1 >conftest.err 27782 rm -f conftest.er1 27783 cat conftest.err >&5 27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27785 (exit $ac_status); } && { 27786 test -z "$ac_c_werror_flag" || 27787 test ! -s conftest.err 27788 } && test -s conftest.$ac_objext; then 27789 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long" 27790 { echo "$as_me:$LINENO: result: long" >&5 27791 echo "${ECHO_T}long" >&6; } 27792 27793 else 27794 echo "$as_me: failed program was:" >&5 27795 sed 's/^/| /' conftest.$ac_ext >&5 27796 27797 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int" 27798 { echo "$as_me:$LINENO: result: int" >&5 27799 echo "${ECHO_T}int" >&6; } 27800 27801 fi 27802 27803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27804 fi 27805 27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27807 fi 27808 27809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27810 fi 27811 27812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27813 27814 27815 { echo "$as_me:$LINENO: checking for getgrouplist" >&5 27816 echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6; } 27817 if test "${ac_cv_func_getgrouplist+set}" = set; then 27818 echo $ECHO_N "(cached) $ECHO_C" >&6 27819 else 27820 cat >conftest.$ac_ext <<_ACEOF 27821 /* confdefs.h. */ 27822 _ACEOF 27823 cat confdefs.h >>conftest.$ac_ext 27824 cat >>conftest.$ac_ext <<_ACEOF 27825 /* end confdefs.h. */ 27826 /* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist. 27827 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27828 #define getgrouplist innocuous_getgrouplist 27829 27830 /* System header to define __stub macros and hopefully few prototypes, 27831 which can conflict with char getgrouplist (); below. 27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27833 <limits.h> exists even on freestanding compilers. */ 27834 27835 #ifdef __STDC__ 27836 # include <limits.h> 27837 #else 27838 # include <assert.h> 27839 #endif 27840 27841 #undef getgrouplist 27842 27843 /* Override any GCC internal prototype to avoid an error. 27844 Use char because int might match the return type of a GCC 27845 builtin and then its argument prototype would still apply. */ 27846 #ifdef __cplusplus 27847 extern "C" 27848 #endif 27849 char getgrouplist (); 27850 /* The GNU C library defines this for functions which it implements 27851 to always fail with ENOSYS. Some functions are actually named 27852 something starting with __ and the normal name is an alias. */ 27853 #if defined __stub_getgrouplist || defined __stub___getgrouplist 27854 choke me 27855 #endif 27856 27857 int 27858 main () 27859 { 27860 return getgrouplist (); 27861 ; 27862 return 0; 27863 } 27864 _ACEOF 27865 rm -f conftest.$ac_objext conftest$ac_exeext 27866 if { (ac_try="$ac_link" 27867 case "(($ac_try" in 27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27869 *) ac_try_echo=$ac_try;; 27870 esac 27871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27872 (eval "$ac_link") 2>conftest.er1 27873 ac_status=$? 27874 grep -v '^ *+' conftest.er1 >conftest.err 27875 rm -f conftest.er1 27876 cat conftest.err >&5 27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27878 (exit $ac_status); } && { 27879 test -z "$ac_c_werror_flag" || 27880 test ! -s conftest.err 27881 } && test -s conftest$ac_exeext && 27882 $as_test_x conftest$ac_exeext; then 27883 ac_cv_func_getgrouplist=yes 27884 else 27885 echo "$as_me: failed program was:" >&5 27886 sed 's/^/| /' conftest.$ac_ext >&5 27887 27888 ac_cv_func_getgrouplist=no 27889 fi 27890 27891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27892 conftest$ac_exeext conftest.$ac_ext 27893 fi 27894 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5 27895 echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6; } 27896 if test $ac_cv_func_getgrouplist = yes; then 27897 cat >conftest.$ac_ext <<_ACEOF 27898 /* confdefs.h. */ 27899 _ACEOF 27900 cat confdefs.h >>conftest.$ac_ext 27901 cat >>conftest.$ac_ext <<_ACEOF 27902 /* end confdefs.h. */ 27903 #include <unistd.h> 27904 int 27905 getgrouplist(const char *name, int basegid, int *groups, int *ngroups) { 27906 } 27907 27908 int 27909 main () 27910 { 27911 return (0); 27912 ; 27913 return 0; 27914 } 27915 _ACEOF 27916 rm -f conftest.$ac_objext 27917 if { (ac_try="$ac_compile" 27918 case "(($ac_try" in 27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27920 *) ac_try_echo=$ac_try;; 27921 esac 27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27923 (eval "$ac_compile") 2>conftest.er1 27924 ac_status=$? 27925 grep -v '^ *+' conftest.er1 >conftest.err 27926 rm -f conftest.er1 27927 cat conftest.err >&5 27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27929 (exit $ac_status); } && { 27930 test -z "$ac_c_werror_flag" || 27931 test ! -s conftest.err 27932 } && test -s conftest.$ac_objext; then 27933 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups" 27934 27935 else 27936 echo "$as_me: failed program was:" >&5 27937 sed 's/^/| /' conftest.$ac_ext >&5 27938 27939 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups" 27940 27941 fi 27942 27943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27944 else 27945 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups" 27946 cat >>confdefs.h <<\_ACEOF 27947 #define NEED_GETGROUPLIST 1 27948 _ACEOF 27949 27950 27951 fi 27952 27953 27954 27955 { echo "$as_me:$LINENO: checking for setgroupent" >&5 27956 echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6; } 27957 if test "${ac_cv_func_setgroupent+set}" = set; then 27958 echo $ECHO_N "(cached) $ECHO_C" >&6 27959 else 27960 cat >conftest.$ac_ext <<_ACEOF 27961 /* confdefs.h. */ 27962 _ACEOF 27963 cat confdefs.h >>conftest.$ac_ext 27964 cat >>conftest.$ac_ext <<_ACEOF 27965 /* end confdefs.h. */ 27966 /* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent. 27967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27968 #define setgroupent innocuous_setgroupent 27969 27970 /* System header to define __stub macros and hopefully few prototypes, 27971 which can conflict with char setgroupent (); below. 27972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27973 <limits.h> exists even on freestanding compilers. */ 27974 27975 #ifdef __STDC__ 27976 # include <limits.h> 27977 #else 27978 # include <assert.h> 27979 #endif 27980 27981 #undef setgroupent 27982 27983 /* Override any GCC internal prototype to avoid an error. 27984 Use char because int might match the return type of a GCC 27985 builtin and then its argument prototype would still apply. */ 27986 #ifdef __cplusplus 27987 extern "C" 27988 #endif 27989 char setgroupent (); 27990 /* The GNU C library defines this for functions which it implements 27991 to always fail with ENOSYS. Some functions are actually named 27992 something starting with __ and the normal name is an alias. */ 27993 #if defined __stub_setgroupent || defined __stub___setgroupent 27994 choke me 27995 #endif 27996 27997 int 27998 main () 27999 { 28000 return setgroupent (); 28001 ; 28002 return 0; 28003 } 28004 _ACEOF 28005 rm -f conftest.$ac_objext conftest$ac_exeext 28006 if { (ac_try="$ac_link" 28007 case "(($ac_try" in 28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28009 *) ac_try_echo=$ac_try;; 28010 esac 28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28012 (eval "$ac_link") 2>conftest.er1 28013 ac_status=$? 28014 grep -v '^ *+' conftest.er1 >conftest.err 28015 rm -f conftest.er1 28016 cat conftest.err >&5 28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28018 (exit $ac_status); } && { 28019 test -z "$ac_c_werror_flag" || 28020 test ! -s conftest.err 28021 } && test -s conftest$ac_exeext && 28022 $as_test_x conftest$ac_exeext; then 28023 ac_cv_func_setgroupent=yes 28024 else 28025 echo "$as_me: failed program was:" >&5 28026 sed 's/^/| /' conftest.$ac_ext >&5 28027 28028 ac_cv_func_setgroupent=no 28029 fi 28030 28031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28032 conftest$ac_exeext conftest.$ac_ext 28033 fi 28034 { echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5 28035 echo "${ECHO_T}$ac_cv_func_setgroupent" >&6; } 28036 if test $ac_cv_func_setgroupent = yes; then 28037 : 28038 else 28039 cat >>confdefs.h <<\_ACEOF 28040 #define NEED_SETGROUPENT 1 28041 _ACEOF 28042 28043 fi 28044 28045 28046 case $host in 28047 ia64-hp-hpux11.*) 28048 ;; 28049 *) 28050 { echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5 28051 echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6; } 28052 if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then 28053 echo $ECHO_N "(cached) $ECHO_C" >&6 28054 else 28055 cat >conftest.$ac_ext <<_ACEOF 28056 /* confdefs.h. */ 28057 _ACEOF 28058 cat confdefs.h >>conftest.$ac_ext 28059 cat >>conftest.$ac_ext <<_ACEOF 28060 /* end confdefs.h. */ 28061 /* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r. 28062 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28063 #define getnetbyaddr_r innocuous_getnetbyaddr_r 28064 28065 /* System header to define __stub macros and hopefully few prototypes, 28066 which can conflict with char getnetbyaddr_r (); below. 28067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28068 <limits.h> exists even on freestanding compilers. */ 28069 28070 #ifdef __STDC__ 28071 # include <limits.h> 28072 #else 28073 # include <assert.h> 28074 #endif 28075 28076 #undef getnetbyaddr_r 28077 28078 /* Override any GCC internal prototype to avoid an error. 28079 Use char because int might match the return type of a GCC 28080 builtin and then its argument prototype would still apply. */ 28081 #ifdef __cplusplus 28082 extern "C" 28083 #endif 28084 char getnetbyaddr_r (); 28085 /* The GNU C library defines this for functions which it implements 28086 to always fail with ENOSYS. Some functions are actually named 28087 something starting with __ and the normal name is an alias. */ 28088 #if defined __stub_getnetbyaddr_r || defined __stub___getnetbyaddr_r 28089 choke me 28090 #endif 28091 28092 int 28093 main () 28094 { 28095 return getnetbyaddr_r (); 28096 ; 28097 return 0; 28098 } 28099 _ACEOF 28100 rm -f conftest.$ac_objext conftest$ac_exeext 28101 if { (ac_try="$ac_link" 28102 case "(($ac_try" in 28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28104 *) ac_try_echo=$ac_try;; 28105 esac 28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28107 (eval "$ac_link") 2>conftest.er1 28108 ac_status=$? 28109 grep -v '^ *+' conftest.er1 >conftest.err 28110 rm -f conftest.er1 28111 cat conftest.err >&5 28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28113 (exit $ac_status); } && { 28114 test -z "$ac_c_werror_flag" || 28115 test ! -s conftest.err 28116 } && test -s conftest$ac_exeext && 28117 $as_test_x conftest$ac_exeext; then 28118 ac_cv_func_getnetbyaddr_r=yes 28119 else 28120 echo "$as_me: failed program was:" >&5 28121 sed 's/^/| /' conftest.$ac_ext >&5 28122 28123 ac_cv_func_getnetbyaddr_r=no 28124 fi 28125 28126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28127 conftest$ac_exeext conftest.$ac_ext 28128 fi 28129 { echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5 28130 echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6; } 28131 if test $ac_cv_func_getnetbyaddr_r = yes; then 28132 cat >conftest.$ac_ext <<_ACEOF 28133 /* confdefs.h. */ 28134 _ACEOF 28135 cat confdefs.h >>conftest.$ac_ext 28136 cat >>conftest.$ac_ext <<_ACEOF 28137 /* end confdefs.h. */ 28138 28139 #undef _REENTRANT 28140 #define _REENTRANT 28141 #define _OSF_SOURCE 28142 #undef __USE_MISC 28143 #define __USE_MISC 28144 #include <netdb.h> 28145 struct netent * 28146 getnetbyaddr_r(long net, int type, struct netent *result, char *buffer, 28147 int buflen) {} 28148 28149 int 28150 main () 28151 { 28152 return (0) 28153 ; 28154 return 0; 28155 } 28156 _ACEOF 28157 rm -f conftest.$ac_objext 28158 if { (ac_try="$ac_compile" 28159 case "(($ac_try" in 28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28161 *) ac_try_echo=$ac_try;; 28162 esac 28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28164 (eval "$ac_compile") 2>conftest.er1 28165 ac_status=$? 28166 grep -v '^ *+' conftest.er1 >conftest.err 28167 rm -f conftest.er1 28168 cat conftest.err >&5 28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28170 (exit $ac_status); } && { 28171 test -z "$ac_c_werror_flag" || 28172 test ! -s conftest.err 28173 } && test -s conftest.$ac_objext; then 28174 28175 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen" 28176 NET_R_BAD="#define NET_R_BAD NULL" 28177 NET_R_COPY="#define NET_R_COPY buf, buflen" 28178 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS" 28179 NET_R_OK="#define NET_R_OK nptr" 28180 NET_R_SETANSWER="#undef NET_R_SETANSWER" 28181 NET_R_RETURN="#define NET_R_RETURN struct netent *" 28182 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28183 NETENT_DATA="#undef NETENT_DATA" 28184 28185 else 28186 echo "$as_me: failed program was:" >&5 28187 sed 's/^/| /' conftest.$ac_ext >&5 28188 28189 cat >conftest.$ac_ext <<_ACEOF 28190 /* confdefs.h. */ 28191 _ACEOF 28192 cat confdefs.h >>conftest.$ac_ext 28193 cat >>conftest.$ac_ext <<_ACEOF 28194 /* end confdefs.h. */ 28195 28196 #undef _REENTRANT 28197 #define _REENTRANT 28198 #define _OSF_SOURCE 28199 #undef __USE_MISC 28200 #define __USE_MISC 28201 #include <netdb.h> 28202 int getnetbyaddr_r (unsigned long int, int, struct netent *, 28203 char *, size_t, struct netent **, int *); 28204 28205 int 28206 main () 28207 { 28208 return (0) 28209 ; 28210 return 0; 28211 } 28212 _ACEOF 28213 rm -f conftest.$ac_objext 28214 if { (ac_try="$ac_compile" 28215 case "(($ac_try" in 28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28217 *) ac_try_echo=$ac_try;; 28218 esac 28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28220 (eval "$ac_compile") 2>conftest.er1 28221 ac_status=$? 28222 grep -v '^ *+' conftest.er1 >conftest.err 28223 rm -f conftest.er1 28224 cat conftest.err >&5 28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28226 (exit $ac_status); } && { 28227 test -z "$ac_c_werror_flag" || 28228 test ! -s conftest.err 28229 } && test -s conftest.$ac_objext; then 28230 28231 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop" 28232 NET_R_BAD="#define NET_R_BAD ERANGE" 28233 NET_R_COPY="#define NET_R_COPY buf, buflen" 28234 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen" 28235 NET_R_OK="#define NET_R_OK 0" 28236 NET_R_SETANSWER="#define NET_R_SETANSWER 1" 28237 NET_R_RETURN="#define NET_R_RETURN int" 28238 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int" 28239 NETENT_DATA="#undef NETENT_DATA" 28240 28241 else 28242 echo "$as_me: failed program was:" >&5 28243 sed 's/^/| /' conftest.$ac_ext >&5 28244 28245 cat >conftest.$ac_ext <<_ACEOF 28246 /* confdefs.h. */ 28247 _ACEOF 28248 cat confdefs.h >>conftest.$ac_ext 28249 cat >>conftest.$ac_ext <<_ACEOF 28250 /* end confdefs.h. */ 28251 28252 #undef _REENTRANT 28253 #define _REENTRANT 28254 #define _OSF_SOURCE 28255 #undef __USE_MISC 28256 #define __USE_MISC 28257 #include <netdb.h> 28258 extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *); 28259 28260 int 28261 main () 28262 { 28263 return (0) 28264 ; 28265 return 0; 28266 } 28267 _ACEOF 28268 rm -f conftest.$ac_objext 28269 if { (ac_try="$ac_compile" 28270 case "(($ac_try" in 28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28272 *) ac_try_echo=$ac_try;; 28273 esac 28274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28275 (eval "$ac_compile") 2>conftest.er1 28276 ac_status=$? 28277 grep -v '^ *+' conftest.er1 >conftest.err 28278 rm -f conftest.er1 28279 cat conftest.err >&5 28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28281 (exit $ac_status); } && { 28282 test -z "$ac_c_werror_flag" || 28283 test ! -s conftest.err 28284 } && test -s conftest.$ac_objext; then 28285 28286 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr" 28287 NET_R_BAD="#define NET_R_BAD (-1)" 28288 NET_R_COPY="#define NET_R_COPY ndptr" 28289 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr" 28290 NET_R_OK="#define NET_R_OK 0" 28291 NET_R_SETANSWER="#undef NET_R_SETANSWER" 28292 NET_R_RETURN="#define NET_R_RETURN int" 28293 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" 28294 NETENT_DATA="#define NETENT_DATA 1" 28295 28296 else 28297 echo "$as_me: failed program was:" >&5 28298 sed 's/^/| /' conftest.$ac_ext >&5 28299 28300 cat >conftest.$ac_ext <<_ACEOF 28301 /* confdefs.h. */ 28302 _ACEOF 28303 cat confdefs.h >>conftest.$ac_ext 28304 cat >>conftest.$ac_ext <<_ACEOF 28305 /* end confdefs.h. */ 28306 #undef __USE_MISC 28307 #define __USE_MISC 28308 #include <netdb.h> 28309 int getnetbyaddr_r (in_addr_t, int, struct netent *, struct netent_data *); 28310 28311 int 28312 main () 28313 { 28314 return (0) 28315 ; 28316 return 0; 28317 } 28318 _ACEOF 28319 rm -f conftest.$ac_objext 28320 if { (ac_try="$ac_compile" 28321 case "(($ac_try" in 28322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28323 *) ac_try_echo=$ac_try;; 28324 esac 28325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28326 (eval "$ac_compile") 2>conftest.er1 28327 ac_status=$? 28328 grep -v '^ *+' conftest.er1 >conftest.err 28329 rm -f conftest.er1 28330 cat conftest.err >&5 28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28332 (exit $ac_status); } && { 28333 test -z "$ac_c_werror_flag" || 28334 test ! -s conftest.err 28335 } && test -s conftest.$ac_objext; then 28336 28337 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr" 28338 NET_R_BAD="#define NET_R_BAD (-1)" 28339 NET_R_COPY="#define NET_R_COPY ndptr" 28340 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr" 28341 NET_R_OK="#define NET_R_OK 0" 28342 NET_R_SETANSWER="#undef NET_R_SETANSWER" 28343 NET_R_RETURN="#define NET_R_RETURN int" 28344 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28345 NETENT_DATA="#define NETENT_DATA 1" 28346 28347 else 28348 echo "$as_me: failed program was:" >&5 28349 sed 's/^/| /' conftest.$ac_ext >&5 28350 28351 cat >conftest.$ac_ext <<_ACEOF 28352 /* confdefs.h. */ 28353 _ACEOF 28354 cat confdefs.h >>conftest.$ac_ext 28355 cat >>conftest.$ac_ext <<_ACEOF 28356 /* end confdefs.h. */ 28357 #undef __USE_MISC 28358 #define __USE_MISC 28359 #include <netdb.h> 28360 int getnetbyaddr_r (long, int, struct netent *, struct netent_data *); 28361 28362 int 28363 main () 28364 { 28365 return (0) 28366 ; 28367 return 0; 28368 } 28369 _ACEOF 28370 rm -f conftest.$ac_objext 28371 if { (ac_try="$ac_compile" 28372 case "(($ac_try" in 28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28374 *) ac_try_echo=$ac_try;; 28375 esac 28376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28377 (eval "$ac_compile") 2>conftest.er1 28378 ac_status=$? 28379 grep -v '^ *+' conftest.er1 >conftest.err 28380 rm -f conftest.er1 28381 cat conftest.err >&5 28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28383 (exit $ac_status); } && { 28384 test -z "$ac_c_werror_flag" || 28385 test ! -s conftest.err 28386 } && test -s conftest.$ac_objext; then 28387 28388 NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr" 28389 NET_R_BAD="#define NET_R_BAD (-1)" 28390 NET_R_COPY="#define NET_R_COPY ndptr" 28391 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr" 28392 NET_R_OK="#define NET_R_OK 0" 28393 NET_R_SETANSWER="#undef NET_R_SETANSWER" 28394 NET_R_RETURN="#define NET_R_RETURN int" 28395 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28396 NETENT_DATA="#define NETENT_DATA 1" 28397 28398 else 28399 echo "$as_me: failed program was:" >&5 28400 sed 's/^/| /' conftest.$ac_ext >&5 28401 28402 cat >conftest.$ac_ext <<_ACEOF 28403 /* confdefs.h. */ 28404 _ACEOF 28405 cat confdefs.h >>conftest.$ac_ext 28406 cat >>conftest.$ac_ext <<_ACEOF 28407 /* end confdefs.h. */ 28408 #undef __USE_MISC 28409 #define __USE_MISC 28410 #include <netdb.h> 28411 int getnetbyaddr_r (uint32_t, int, struct netent *, 28412 char *, size_t, struct netent **, int *); 28413 28414 int 28415 main () 28416 { 28417 return (0) 28418 ; 28419 return 0; 28420 } 28421 _ACEOF 28422 rm -f conftest.$ac_objext 28423 if { (ac_try="$ac_compile" 28424 case "(($ac_try" in 28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28426 *) ac_try_echo=$ac_try;; 28427 esac 28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28429 (eval "$ac_compile") 2>conftest.er1 28430 ac_status=$? 28431 grep -v '^ *+' conftest.er1 >conftest.err 28432 rm -f conftest.er1 28433 cat conftest.err >&5 28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28435 (exit $ac_status); } && { 28436 test -z "$ac_c_werror_flag" || 28437 test ! -s conftest.err 28438 } && test -s conftest.$ac_objext; then 28439 28440 NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop" 28441 NET_R_BAD="#define NET_R_BAD ERANGE" 28442 NET_R_COPY="#define NET_R_COPY buf, buflen" 28443 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen" 28444 NET_R_OK="#define NET_R_OK 0" 28445 NET_R_SETANSWER="#define NET_R_SETANSWER 1" 28446 NET_R_RETURN="#define NET_R_RETURN int" 28447 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int" 28448 NETENT_DATA="#undef NETENT_DATA" 28449 28450 else 28451 echo "$as_me: failed program was:" >&5 28452 sed 's/^/| /' conftest.$ac_ext >&5 28453 28454 28455 fi 28456 28457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28458 28459 fi 28460 28461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28462 28463 fi 28464 28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28466 28467 fi 28468 28469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28470 28471 fi 28472 28473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28474 28475 fi 28476 28477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28478 28479 else 28480 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen" 28481 NET_R_BAD="#define NET_R_BAD NULL" 28482 NET_R_COPY="#define NET_R_COPY buf, buflen" 28483 NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS" 28484 NET_R_OK="#define NET_R_OK nptr" 28485 NET_R_SETANSWER="#undef NET_R_SETANSWER" 28486 NET_R_RETURN="#define NET_R_RETURN struct netent *" 28487 GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28488 NETENT_DATA="#undef NETENT_DATA" 28489 28490 fi 28491 28492 esac 28493 28494 case "$host" in 28495 *dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;; 28496 esac 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 { echo "$as_me:$LINENO: checking for setnetent_r" >&5 28508 echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6; } 28509 if test "${ac_cv_func_setnetent_r+set}" = set; then 28510 echo $ECHO_N "(cached) $ECHO_C" >&6 28511 else 28512 cat >conftest.$ac_ext <<_ACEOF 28513 /* confdefs.h. */ 28514 _ACEOF 28515 cat confdefs.h >>conftest.$ac_ext 28516 cat >>conftest.$ac_ext <<_ACEOF 28517 /* end confdefs.h. */ 28518 /* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r. 28519 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28520 #define setnetent_r innocuous_setnetent_r 28521 28522 /* System header to define __stub macros and hopefully few prototypes, 28523 which can conflict with char setnetent_r (); below. 28524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28525 <limits.h> exists even on freestanding compilers. */ 28526 28527 #ifdef __STDC__ 28528 # include <limits.h> 28529 #else 28530 # include <assert.h> 28531 #endif 28532 28533 #undef setnetent_r 28534 28535 /* Override any GCC internal prototype to avoid an error. 28536 Use char because int might match the return type of a GCC 28537 builtin and then its argument prototype would still apply. */ 28538 #ifdef __cplusplus 28539 extern "C" 28540 #endif 28541 char setnetent_r (); 28542 /* The GNU C library defines this for functions which it implements 28543 to always fail with ENOSYS. Some functions are actually named 28544 something starting with __ and the normal name is an alias. */ 28545 #if defined __stub_setnetent_r || defined __stub___setnetent_r 28546 choke me 28547 #endif 28548 28549 int 28550 main () 28551 { 28552 return setnetent_r (); 28553 ; 28554 return 0; 28555 } 28556 _ACEOF 28557 rm -f conftest.$ac_objext conftest$ac_exeext 28558 if { (ac_try="$ac_link" 28559 case "(($ac_try" in 28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28561 *) ac_try_echo=$ac_try;; 28562 esac 28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28564 (eval "$ac_link") 2>conftest.er1 28565 ac_status=$? 28566 grep -v '^ *+' conftest.er1 >conftest.err 28567 rm -f conftest.er1 28568 cat conftest.err >&5 28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28570 (exit $ac_status); } && { 28571 test -z "$ac_c_werror_flag" || 28572 test ! -s conftest.err 28573 } && test -s conftest$ac_exeext && 28574 $as_test_x conftest$ac_exeext; then 28575 ac_cv_func_setnetent_r=yes 28576 else 28577 echo "$as_me: failed program was:" >&5 28578 sed 's/^/| /' conftest.$ac_ext >&5 28579 28580 ac_cv_func_setnetent_r=no 28581 fi 28582 28583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28584 conftest$ac_exeext conftest.$ac_ext 28585 fi 28586 { echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5 28587 echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6; } 28588 if test $ac_cv_func_setnetent_r = yes; then 28589 cat >conftest.$ac_ext <<_ACEOF 28590 /* confdefs.h. */ 28591 _ACEOF 28592 cat confdefs.h >>conftest.$ac_ext 28593 cat >>conftest.$ac_ext <<_ACEOF 28594 /* end confdefs.h. */ 28595 28596 #undef __USE_MISC 28597 #define __USE_MISC 28598 #include <netdb.h> 28599 void setnetent_r (int); 28600 28601 int 28602 main () 28603 { 28604 return (0); 28605 ; 28606 return 0; 28607 } 28608 _ACEOF 28609 rm -f conftest.$ac_objext 28610 if { (ac_try="$ac_compile" 28611 case "(($ac_try" in 28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28613 *) ac_try_echo=$ac_try;; 28614 esac 28615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28616 (eval "$ac_compile") 2>conftest.er1 28617 ac_status=$? 28618 grep -v '^ *+' conftest.er1 >conftest.err 28619 rm -f conftest.er1 28620 cat conftest.err >&5 28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28622 (exit $ac_status); } && { 28623 test -z "$ac_c_werror_flag" || 28624 test ! -s conftest.err 28625 } && test -s conftest.$ac_objext; then 28626 28627 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/" 28628 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/" 28629 NET_R_SET_RETURN="#define NET_R_SET_RETURN void" 28630 28631 else 28632 echo "$as_me: failed program was:" >&5 28633 sed 's/^/| /' conftest.$ac_ext >&5 28634 28635 cat >conftest.$ac_ext <<_ACEOF 28636 /* confdefs.h. */ 28637 _ACEOF 28638 cat confdefs.h >>conftest.$ac_ext 28639 cat >>conftest.$ac_ext <<_ACEOF 28640 /* end confdefs.h. */ 28641 28642 #define _REENTRANT 28643 #undef __USE_MISC 28644 #define __USE_MISC 28645 #include <netdb.h> 28646 extern int setnetent_r(int, struct netent_data *); 28647 28648 int 28649 main () 28650 { 28651 return (0); 28652 ; 28653 return 0; 28654 } 28655 _ACEOF 28656 rm -f conftest.$ac_objext 28657 if { (ac_try="$ac_compile" 28658 case "(($ac_try" in 28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28660 *) ac_try_echo=$ac_try;; 28661 esac 28662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28663 (eval "$ac_compile") 2>conftest.er1 28664 ac_status=$? 28665 grep -v '^ *+' conftest.er1 >conftest.err 28666 rm -f conftest.er1 28667 cat conftest.err >&5 28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28669 (exit $ac_status); } && { 28670 test -z "$ac_c_werror_flag" || 28671 test ! -s conftest.err 28672 } && test -s conftest.$ac_objext; then 28673 28674 NET_R_ENT_ARGS="#define NET_R_ENT_ARGS struct netent_data *ndptr" 28675 NET_R_SET_RESULT="#define NET_R_SET_RESULT NET_R_OK" 28676 NET_R_SET_RETURN="#define NET_R_SET_RETURN int" 28677 28678 else 28679 echo "$as_me: failed program was:" >&5 28680 sed 's/^/| /' conftest.$ac_ext >&5 28681 28682 28683 fi 28684 28685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28686 28687 fi 28688 28689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28690 28691 else 28692 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/" 28693 NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/" 28694 NET_R_SET_RETURN="#define NET_R_SET_RETURN void" 28695 28696 fi 28697 28698 28699 28700 28701 28702 28703 case $host in 28704 ia64-hp-hpux11.*) 28705 ;; 28706 *) 28707 { echo "$as_me:$LINENO: checking for endnetent_r" >&5 28708 echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6; } 28709 if test "${ac_cv_func_endnetent_r+set}" = set; then 28710 echo $ECHO_N "(cached) $ECHO_C" >&6 28711 else 28712 cat >conftest.$ac_ext <<_ACEOF 28713 /* confdefs.h. */ 28714 _ACEOF 28715 cat confdefs.h >>conftest.$ac_ext 28716 cat >>conftest.$ac_ext <<_ACEOF 28717 /* end confdefs.h. */ 28718 /* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r. 28719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28720 #define endnetent_r innocuous_endnetent_r 28721 28722 /* System header to define __stub macros and hopefully few prototypes, 28723 which can conflict with char endnetent_r (); below. 28724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28725 <limits.h> exists even on freestanding compilers. */ 28726 28727 #ifdef __STDC__ 28728 # include <limits.h> 28729 #else 28730 # include <assert.h> 28731 #endif 28732 28733 #undef endnetent_r 28734 28735 /* Override any GCC internal prototype to avoid an error. 28736 Use char because int might match the return type of a GCC 28737 builtin and then its argument prototype would still apply. */ 28738 #ifdef __cplusplus 28739 extern "C" 28740 #endif 28741 char endnetent_r (); 28742 /* The GNU C library defines this for functions which it implements 28743 to always fail with ENOSYS. Some functions are actually named 28744 something starting with __ and the normal name is an alias. */ 28745 #if defined __stub_endnetent_r || defined __stub___endnetent_r 28746 choke me 28747 #endif 28748 28749 int 28750 main () 28751 { 28752 return endnetent_r (); 28753 ; 28754 return 0; 28755 } 28756 _ACEOF 28757 rm -f conftest.$ac_objext conftest$ac_exeext 28758 if { (ac_try="$ac_link" 28759 case "(($ac_try" in 28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28761 *) ac_try_echo=$ac_try;; 28762 esac 28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28764 (eval "$ac_link") 2>conftest.er1 28765 ac_status=$? 28766 grep -v '^ *+' conftest.er1 >conftest.err 28767 rm -f conftest.er1 28768 cat conftest.err >&5 28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28770 (exit $ac_status); } && { 28771 test -z "$ac_c_werror_flag" || 28772 test ! -s conftest.err 28773 } && test -s conftest$ac_exeext && 28774 $as_test_x conftest$ac_exeext; then 28775 ac_cv_func_endnetent_r=yes 28776 else 28777 echo "$as_me: failed program was:" >&5 28778 sed 's/^/| /' conftest.$ac_ext >&5 28779 28780 ac_cv_func_endnetent_r=no 28781 fi 28782 28783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28784 conftest$ac_exeext conftest.$ac_ext 28785 fi 28786 { echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5 28787 echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6; } 28788 if test $ac_cv_func_endnetent_r = yes; then 28789 cat >conftest.$ac_ext <<_ACEOF 28790 /* confdefs.h. */ 28791 _ACEOF 28792 cat confdefs.h >>conftest.$ac_ext 28793 cat >>conftest.$ac_ext <<_ACEOF 28794 /* end confdefs.h. */ 28795 28796 #undef _REENTRANT 28797 #define _REENTRANT 28798 #undef __USE_MISC 28799 #define __USE_MISC 28800 #include <netdb.h> 28801 void endnetent_r (void); 28802 28803 int 28804 main () 28805 { 28806 return (0); 28807 ; 28808 return 0; 28809 } 28810 _ACEOF 28811 rm -f conftest.$ac_objext 28812 if { (ac_try="$ac_compile" 28813 case "(($ac_try" in 28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28815 *) ac_try_echo=$ac_try;; 28816 esac 28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28818 (eval "$ac_compile") 2>conftest.er1 28819 ac_status=$? 28820 grep -v '^ *+' conftest.er1 >conftest.err 28821 rm -f conftest.er1 28822 cat conftest.err >&5 28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28824 (exit $ac_status); } && { 28825 test -z "$ac_c_werror_flag" || 28826 test ! -s conftest.err 28827 } && test -s conftest.$ac_objext; then 28828 28829 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/" 28830 NET_R_END_RETURN="#define NET_R_END_RETURN void" 28831 28832 else 28833 echo "$as_me: failed program was:" >&5 28834 sed 's/^/| /' conftest.$ac_ext >&5 28835 28836 cat >conftest.$ac_ext <<_ACEOF 28837 /* confdefs.h. */ 28838 _ACEOF 28839 cat confdefs.h >>conftest.$ac_ext 28840 cat >>conftest.$ac_ext <<_ACEOF 28841 /* end confdefs.h. */ 28842 28843 #undef _REENTRANT 28844 #define _REENTRANT 28845 #undef __USE_MISC 28846 #define __USE_MISC 28847 #include <netdb.h> 28848 extern int endnetent_r(struct netent_data *); 28849 28850 int 28851 main () 28852 { 28853 return (0); 28854 ; 28855 return 0; 28856 } 28857 _ACEOF 28858 rm -f conftest.$ac_objext 28859 if { (ac_try="$ac_compile" 28860 case "(($ac_try" in 28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28862 *) ac_try_echo=$ac_try;; 28863 esac 28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28865 (eval "$ac_compile") 2>conftest.er1 28866 ac_status=$? 28867 grep -v '^ *+' conftest.er1 >conftest.err 28868 rm -f conftest.er1 28869 cat conftest.err >&5 28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28871 (exit $ac_status); } && { 28872 test -z "$ac_c_werror_flag" || 28873 test ! -s conftest.err 28874 } && test -s conftest.$ac_objext; then 28875 28876 NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)" 28877 NET_R_END_RETURN="#define NET_R_END_RETURN int" 28878 28879 else 28880 echo "$as_me: failed program was:" >&5 28881 sed 's/^/| /' conftest.$ac_ext >&5 28882 28883 cat >conftest.$ac_ext <<_ACEOF 28884 /* confdefs.h. */ 28885 _ACEOF 28886 cat confdefs.h >>conftest.$ac_ext 28887 cat >>conftest.$ac_ext <<_ACEOF 28888 /* end confdefs.h. */ 28889 28890 #undef _REENTRANT 28891 #define _REENTRANT 28892 #undef __USE_MISC 28893 #define __USE_MISC 28894 #include <netdb.h> 28895 extern void endnetent_r(struct netent_data *); 28896 28897 int 28898 main () 28899 { 28900 return (0); 28901 ; 28902 return 0; 28903 } 28904 _ACEOF 28905 rm -f conftest.$ac_objext 28906 if { (ac_try="$ac_compile" 28907 case "(($ac_try" in 28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28909 *) ac_try_echo=$ac_try;; 28910 esac 28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28912 (eval "$ac_compile") 2>conftest.er1 28913 ac_status=$? 28914 grep -v '^ *+' conftest.er1 >conftest.err 28915 rm -f conftest.er1 28916 cat conftest.err >&5 28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28918 (exit $ac_status); } && { 28919 test -z "$ac_c_werror_flag" || 28920 test ! -s conftest.err 28921 } && test -s conftest.$ac_objext; then 28922 28923 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/" 28924 NET_R_END_RETURN="#define NET_R_END_RETURN void" 28925 28926 else 28927 echo "$as_me: failed program was:" >&5 28928 sed 's/^/| /' conftest.$ac_ext >&5 28929 28930 28931 fi 28932 28933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28934 28935 fi 28936 28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28938 28939 fi 28940 28941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28942 28943 else 28944 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/" 28945 NET_R_END_RETURN="#define NET_R_END_RETURN void" 28946 28947 fi 28948 28949 esac 28950 28951 28952 28953 { echo "$as_me:$LINENO: checking for getgrnam_r" >&5 28954 echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6; } 28955 if test "${ac_cv_func_getgrnam_r+set}" = set; then 28956 echo $ECHO_N "(cached) $ECHO_C" >&6 28957 else 28958 cat >conftest.$ac_ext <<_ACEOF 28959 /* confdefs.h. */ 28960 _ACEOF 28961 cat confdefs.h >>conftest.$ac_ext 28962 cat >>conftest.$ac_ext <<_ACEOF 28963 /* end confdefs.h. */ 28964 /* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r. 28965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28966 #define getgrnam_r innocuous_getgrnam_r 28967 28968 /* System header to define __stub macros and hopefully few prototypes, 28969 which can conflict with char getgrnam_r (); below. 28970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28971 <limits.h> exists even on freestanding compilers. */ 28972 28973 #ifdef __STDC__ 28974 # include <limits.h> 28975 #else 28976 # include <assert.h> 28977 #endif 28978 28979 #undef getgrnam_r 28980 28981 /* Override any GCC internal prototype to avoid an error. 28982 Use char because int might match the return type of a GCC 28983 builtin and then its argument prototype would still apply. */ 28984 #ifdef __cplusplus 28985 extern "C" 28986 #endif 28987 char getgrnam_r (); 28988 /* The GNU C library defines this for functions which it implements 28989 to always fail with ENOSYS. Some functions are actually named 28990 something starting with __ and the normal name is an alias. */ 28991 #if defined __stub_getgrnam_r || defined __stub___getgrnam_r 28992 choke me 28993 #endif 28994 28995 int 28996 main () 28997 { 28998 return getgrnam_r (); 28999 ; 29000 return 0; 29001 } 29002 _ACEOF 29003 rm -f conftest.$ac_objext conftest$ac_exeext 29004 if { (ac_try="$ac_link" 29005 case "(($ac_try" in 29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29007 *) ac_try_echo=$ac_try;; 29008 esac 29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29010 (eval "$ac_link") 2>conftest.er1 29011 ac_status=$? 29012 grep -v '^ *+' conftest.er1 >conftest.err 29013 rm -f conftest.er1 29014 cat conftest.err >&5 29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29016 (exit $ac_status); } && { 29017 test -z "$ac_c_werror_flag" || 29018 test ! -s conftest.err 29019 } && test -s conftest$ac_exeext && 29020 $as_test_x conftest$ac_exeext; then 29021 ac_cv_func_getgrnam_r=yes 29022 else 29023 echo "$as_me: failed program was:" >&5 29024 sed 's/^/| /' conftest.$ac_ext >&5 29025 29026 ac_cv_func_getgrnam_r=no 29027 fi 29028 29029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29030 conftest$ac_exeext conftest.$ac_ext 29031 fi 29032 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5 29033 echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6; } 29034 if test $ac_cv_func_getgrnam_r = yes; then 29035 : 29036 else 29037 cat >>confdefs.h <<\_ACEOF 29038 #define NEED_GETGRNAM_R 1 29039 _ACEOF 29040 29041 fi 29042 29043 { echo "$as_me:$LINENO: checking for getgrgid_r" >&5 29044 echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6; } 29045 if test "${ac_cv_func_getgrgid_r+set}" = set; then 29046 echo $ECHO_N "(cached) $ECHO_C" >&6 29047 else 29048 cat >conftest.$ac_ext <<_ACEOF 29049 /* confdefs.h. */ 29050 _ACEOF 29051 cat confdefs.h >>conftest.$ac_ext 29052 cat >>conftest.$ac_ext <<_ACEOF 29053 /* end confdefs.h. */ 29054 /* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r. 29055 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29056 #define getgrgid_r innocuous_getgrgid_r 29057 29058 /* System header to define __stub macros and hopefully few prototypes, 29059 which can conflict with char getgrgid_r (); below. 29060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29061 <limits.h> exists even on freestanding compilers. */ 29062 29063 #ifdef __STDC__ 29064 # include <limits.h> 29065 #else 29066 # include <assert.h> 29067 #endif 29068 29069 #undef getgrgid_r 29070 29071 /* Override any GCC internal prototype to avoid an error. 29072 Use char because int might match the return type of a GCC 29073 builtin and then its argument prototype would still apply. */ 29074 #ifdef __cplusplus 29075 extern "C" 29076 #endif 29077 char getgrgid_r (); 29078 /* The GNU C library defines this for functions which it implements 29079 to always fail with ENOSYS. Some functions are actually named 29080 something starting with __ and the normal name is an alias. */ 29081 #if defined __stub_getgrgid_r || defined __stub___getgrgid_r 29082 choke me 29083 #endif 29084 29085 int 29086 main () 29087 { 29088 return getgrgid_r (); 29089 ; 29090 return 0; 29091 } 29092 _ACEOF 29093 rm -f conftest.$ac_objext conftest$ac_exeext 29094 if { (ac_try="$ac_link" 29095 case "(($ac_try" in 29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29097 *) ac_try_echo=$ac_try;; 29098 esac 29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29100 (eval "$ac_link") 2>conftest.er1 29101 ac_status=$? 29102 grep -v '^ *+' conftest.er1 >conftest.err 29103 rm -f conftest.er1 29104 cat conftest.err >&5 29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29106 (exit $ac_status); } && { 29107 test -z "$ac_c_werror_flag" || 29108 test ! -s conftest.err 29109 } && test -s conftest$ac_exeext && 29110 $as_test_x conftest$ac_exeext; then 29111 ac_cv_func_getgrgid_r=yes 29112 else 29113 echo "$as_me: failed program was:" >&5 29114 sed 's/^/| /' conftest.$ac_ext >&5 29115 29116 ac_cv_func_getgrgid_r=no 29117 fi 29118 29119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29120 conftest$ac_exeext conftest.$ac_ext 29121 fi 29122 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5 29123 echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6; } 29124 if test $ac_cv_func_getgrgid_r = yes; then 29125 : 29126 else 29127 cat >>confdefs.h <<\_ACEOF 29128 #define NEED_GETGRGID_R 1 29129 _ACEOF 29130 29131 fi 29132 29133 29134 { echo "$as_me:$LINENO: checking for getgrent_r" >&5 29135 echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6; } 29136 if test "${ac_cv_func_getgrent_r+set}" = set; then 29137 echo $ECHO_N "(cached) $ECHO_C" >&6 29138 else 29139 cat >conftest.$ac_ext <<_ACEOF 29140 /* confdefs.h. */ 29141 _ACEOF 29142 cat confdefs.h >>conftest.$ac_ext 29143 cat >>conftest.$ac_ext <<_ACEOF 29144 /* end confdefs.h. */ 29145 /* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r. 29146 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29147 #define getgrent_r innocuous_getgrent_r 29148 29149 /* System header to define __stub macros and hopefully few prototypes, 29150 which can conflict with char getgrent_r (); below. 29151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29152 <limits.h> exists even on freestanding compilers. */ 29153 29154 #ifdef __STDC__ 29155 # include <limits.h> 29156 #else 29157 # include <assert.h> 29158 #endif 29159 29160 #undef getgrent_r 29161 29162 /* Override any GCC internal prototype to avoid an error. 29163 Use char because int might match the return type of a GCC 29164 builtin and then its argument prototype would still apply. */ 29165 #ifdef __cplusplus 29166 extern "C" 29167 #endif 29168 char getgrent_r (); 29169 /* The GNU C library defines this for functions which it implements 29170 to always fail with ENOSYS. Some functions are actually named 29171 something starting with __ and the normal name is an alias. */ 29172 #if defined __stub_getgrent_r || defined __stub___getgrent_r 29173 choke me 29174 #endif 29175 29176 int 29177 main () 29178 { 29179 return getgrent_r (); 29180 ; 29181 return 0; 29182 } 29183 _ACEOF 29184 rm -f conftest.$ac_objext conftest$ac_exeext 29185 if { (ac_try="$ac_link" 29186 case "(($ac_try" in 29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29188 *) ac_try_echo=$ac_try;; 29189 esac 29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29191 (eval "$ac_link") 2>conftest.er1 29192 ac_status=$? 29193 grep -v '^ *+' conftest.er1 >conftest.err 29194 rm -f conftest.er1 29195 cat conftest.err >&5 29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29197 (exit $ac_status); } && { 29198 test -z "$ac_c_werror_flag" || 29199 test ! -s conftest.err 29200 } && test -s conftest$ac_exeext && 29201 $as_test_x conftest$ac_exeext; then 29202 ac_cv_func_getgrent_r=yes 29203 else 29204 echo "$as_me: failed program was:" >&5 29205 sed 's/^/| /' conftest.$ac_ext >&5 29206 29207 ac_cv_func_getgrent_r=no 29208 fi 29209 29210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29211 conftest$ac_exeext conftest.$ac_ext 29212 fi 29213 { echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5 29214 echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6; } 29215 if test $ac_cv_func_getgrent_r = yes; then 29216 cat >conftest.$ac_ext <<_ACEOF 29217 /* confdefs.h. */ 29218 _ACEOF 29219 cat confdefs.h >>conftest.$ac_ext 29220 cat >>conftest.$ac_ext <<_ACEOF 29221 /* end confdefs.h. */ 29222 29223 #include <grp.h> 29224 struct group *getgrent_r(struct group *grp, char *buffer, 29225 int buflen) {} 29226 29227 int 29228 main () 29229 { 29230 return (0); 29231 ; 29232 return 0; 29233 } 29234 _ACEOF 29235 rm -f conftest.$ac_objext 29236 if { (ac_try="$ac_compile" 29237 case "(($ac_try" in 29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29239 *) ac_try_echo=$ac_try;; 29240 esac 29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29242 (eval "$ac_compile") 2>conftest.er1 29243 ac_status=$? 29244 grep -v '^ *+' conftest.er1 >conftest.err 29245 rm -f conftest.er1 29246 cat conftest.err >&5 29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29248 (exit $ac_status); } && { 29249 test -z "$ac_c_werror_flag" || 29250 test ! -s conftest.err 29251 } && test -s conftest.$ac_objext; then 29252 29253 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen" 29254 GROUP_R_BAD="#define GROUP_R_BAD NULL" 29255 GROUP_R_OK="#define GROUP_R_OK gptr" 29256 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *" 29257 29258 else 29259 echo "$as_me: failed program was:" >&5 29260 sed 's/^/| /' conftest.$ac_ext >&5 29261 29262 29263 fi 29264 29265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29266 29267 else 29268 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen" 29269 GROUP_R_BAD="#define GROUP_R_BAD NULL" 29270 GROUP_R_OK="#define GROUP_R_OK gptr" 29271 GROUP_R_RETURN="#define GROUP_R_RETURN struct group *" 29272 cat >>confdefs.h <<\_ACEOF 29273 #define NEED_GETGRENT_R 1 29274 _ACEOF 29275 29276 29277 fi 29278 29279 29280 29281 29282 29283 29284 { echo "$as_me:$LINENO: checking for endgrent_r" >&5 29285 echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6; } 29286 if test "${ac_cv_func_endgrent_r+set}" = set; then 29287 echo $ECHO_N "(cached) $ECHO_C" >&6 29288 else 29289 cat >conftest.$ac_ext <<_ACEOF 29290 /* confdefs.h. */ 29291 _ACEOF 29292 cat confdefs.h >>conftest.$ac_ext 29293 cat >>conftest.$ac_ext <<_ACEOF 29294 /* end confdefs.h. */ 29295 /* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r. 29296 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29297 #define endgrent_r innocuous_endgrent_r 29298 29299 /* System header to define __stub macros and hopefully few prototypes, 29300 which can conflict with char endgrent_r (); below. 29301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29302 <limits.h> exists even on freestanding compilers. */ 29303 29304 #ifdef __STDC__ 29305 # include <limits.h> 29306 #else 29307 # include <assert.h> 29308 #endif 29309 29310 #undef endgrent_r 29311 29312 /* Override any GCC internal prototype to avoid an error. 29313 Use char because int might match the return type of a GCC 29314 builtin and then its argument prototype would still apply. */ 29315 #ifdef __cplusplus 29316 extern "C" 29317 #endif 29318 char endgrent_r (); 29319 /* The GNU C library defines this for functions which it implements 29320 to always fail with ENOSYS. Some functions are actually named 29321 something starting with __ and the normal name is an alias. */ 29322 #if defined __stub_endgrent_r || defined __stub___endgrent_r 29323 choke me 29324 #endif 29325 29326 int 29327 main () 29328 { 29329 return endgrent_r (); 29330 ; 29331 return 0; 29332 } 29333 _ACEOF 29334 rm -f conftest.$ac_objext conftest$ac_exeext 29335 if { (ac_try="$ac_link" 29336 case "(($ac_try" in 29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29338 *) ac_try_echo=$ac_try;; 29339 esac 29340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29341 (eval "$ac_link") 2>conftest.er1 29342 ac_status=$? 29343 grep -v '^ *+' conftest.er1 >conftest.err 29344 rm -f conftest.er1 29345 cat conftest.err >&5 29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29347 (exit $ac_status); } && { 29348 test -z "$ac_c_werror_flag" || 29349 test ! -s conftest.err 29350 } && test -s conftest$ac_exeext && 29351 $as_test_x conftest$ac_exeext; then 29352 ac_cv_func_endgrent_r=yes 29353 else 29354 echo "$as_me: failed program was:" >&5 29355 sed 's/^/| /' conftest.$ac_ext >&5 29356 29357 ac_cv_func_endgrent_r=no 29358 fi 29359 29360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29361 conftest$ac_exeext conftest.$ac_ext 29362 fi 29363 { echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5 29364 echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6; } 29365 if test $ac_cv_func_endgrent_r = yes; then 29366 : 29367 else 29368 GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/" 29369 GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void" 29370 GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void" 29371 cat >>confdefs.h <<\_ACEOF 29372 #define NEED_ENDGRENT_R 1 29373 _ACEOF 29374 29375 29376 fi 29377 29378 29379 29380 29381 29382 { echo "$as_me:$LINENO: checking for setgrent_r" >&5 29383 echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6; } 29384 if test "${ac_cv_func_setgrent_r+set}" = set; then 29385 echo $ECHO_N "(cached) $ECHO_C" >&6 29386 else 29387 cat >conftest.$ac_ext <<_ACEOF 29388 /* confdefs.h. */ 29389 _ACEOF 29390 cat confdefs.h >>conftest.$ac_ext 29391 cat >>conftest.$ac_ext <<_ACEOF 29392 /* end confdefs.h. */ 29393 /* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r. 29394 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29395 #define setgrent_r innocuous_setgrent_r 29396 29397 /* System header to define __stub macros and hopefully few prototypes, 29398 which can conflict with char setgrent_r (); below. 29399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29400 <limits.h> exists even on freestanding compilers. */ 29401 29402 #ifdef __STDC__ 29403 # include <limits.h> 29404 #else 29405 # include <assert.h> 29406 #endif 29407 29408 #undef setgrent_r 29409 29410 /* Override any GCC internal prototype to avoid an error. 29411 Use char because int might match the return type of a GCC 29412 builtin and then its argument prototype would still apply. */ 29413 #ifdef __cplusplus 29414 extern "C" 29415 #endif 29416 char setgrent_r (); 29417 /* The GNU C library defines this for functions which it implements 29418 to always fail with ENOSYS. Some functions are actually named 29419 something starting with __ and the normal name is an alias. */ 29420 #if defined __stub_setgrent_r || defined __stub___setgrent_r 29421 choke me 29422 #endif 29423 29424 int 29425 main () 29426 { 29427 return setgrent_r (); 29428 ; 29429 return 0; 29430 } 29431 _ACEOF 29432 rm -f conftest.$ac_objext conftest$ac_exeext 29433 if { (ac_try="$ac_link" 29434 case "(($ac_try" in 29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29436 *) ac_try_echo=$ac_try;; 29437 esac 29438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29439 (eval "$ac_link") 2>conftest.er1 29440 ac_status=$? 29441 grep -v '^ *+' conftest.er1 >conftest.err 29442 rm -f conftest.er1 29443 cat conftest.err >&5 29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29445 (exit $ac_status); } && { 29446 test -z "$ac_c_werror_flag" || 29447 test ! -s conftest.err 29448 } && test -s conftest$ac_exeext && 29449 $as_test_x conftest$ac_exeext; then 29450 ac_cv_func_setgrent_r=yes 29451 else 29452 echo "$as_me: failed program was:" >&5 29453 sed 's/^/| /' conftest.$ac_ext >&5 29454 29455 ac_cv_func_setgrent_r=no 29456 fi 29457 29458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29459 conftest$ac_exeext conftest.$ac_ext 29460 fi 29461 { echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5 29462 echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6; } 29463 if test $ac_cv_func_setgrent_r = yes; then 29464 : 29465 else 29466 GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/" 29467 GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void" 29468 cat >>confdefs.h <<\_ACEOF 29469 #define NEED_SETGRENT_R 1 29470 _ACEOF 29471 29472 29473 fi 29474 29475 29476 29477 29478 29479 case $host in 29480 ia64-hp-hpux11.*) 29481 ;; 29482 *) 29483 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 29484 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } 29485 if test "${ac_cv_func_gethostbyname_r+set}" = set; then 29486 echo $ECHO_N "(cached) $ECHO_C" >&6 29487 else 29488 cat >conftest.$ac_ext <<_ACEOF 29489 /* confdefs.h. */ 29490 _ACEOF 29491 cat confdefs.h >>conftest.$ac_ext 29492 cat >>conftest.$ac_ext <<_ACEOF 29493 /* end confdefs.h. */ 29494 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. 29495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29496 #define gethostbyname_r innocuous_gethostbyname_r 29497 29498 /* System header to define __stub macros and hopefully few prototypes, 29499 which can conflict with char gethostbyname_r (); below. 29500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29501 <limits.h> exists even on freestanding compilers. */ 29502 29503 #ifdef __STDC__ 29504 # include <limits.h> 29505 #else 29506 # include <assert.h> 29507 #endif 29508 29509 #undef gethostbyname_r 29510 29511 /* Override any GCC internal prototype to avoid an error. 29512 Use char because int might match the return type of a GCC 29513 builtin and then its argument prototype would still apply. */ 29514 #ifdef __cplusplus 29515 extern "C" 29516 #endif 29517 char gethostbyname_r (); 29518 /* The GNU C library defines this for functions which it implements 29519 to always fail with ENOSYS. Some functions are actually named 29520 something starting with __ and the normal name is an alias. */ 29521 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 29522 choke me 29523 #endif 29524 29525 int 29526 main () 29527 { 29528 return gethostbyname_r (); 29529 ; 29530 return 0; 29531 } 29532 _ACEOF 29533 rm -f conftest.$ac_objext conftest$ac_exeext 29534 if { (ac_try="$ac_link" 29535 case "(($ac_try" in 29536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29537 *) ac_try_echo=$ac_try;; 29538 esac 29539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29540 (eval "$ac_link") 2>conftest.er1 29541 ac_status=$? 29542 grep -v '^ *+' conftest.er1 >conftest.err 29543 rm -f conftest.er1 29544 cat conftest.err >&5 29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29546 (exit $ac_status); } && { 29547 test -z "$ac_c_werror_flag" || 29548 test ! -s conftest.err 29549 } && test -s conftest$ac_exeext && 29550 $as_test_x conftest$ac_exeext; then 29551 ac_cv_func_gethostbyname_r=yes 29552 else 29553 echo "$as_me: failed program was:" >&5 29554 sed 's/^/| /' conftest.$ac_ext >&5 29555 29556 ac_cv_func_gethostbyname_r=no 29557 fi 29558 29559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29560 conftest$ac_exeext conftest.$ac_ext 29561 fi 29562 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 29563 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } 29564 if test $ac_cv_func_gethostbyname_r = yes; then 29565 cat >conftest.$ac_ext <<_ACEOF 29566 /* confdefs.h. */ 29567 _ACEOF 29568 cat confdefs.h >>conftest.$ac_ext 29569 cat >>conftest.$ac_ext <<_ACEOF 29570 /* end confdefs.h. */ 29571 29572 #undef __USE_MISC 29573 #define __USE_MISC 29574 #include <netdb.h> 29575 struct hostent *gethostbyname_r 29576 (const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {} 29577 29578 int 29579 main () 29580 { 29581 return (0); 29582 ; 29583 return 0; 29584 } 29585 _ACEOF 29586 rm -f conftest.$ac_objext 29587 if { (ac_try="$ac_compile" 29588 case "(($ac_try" in 29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29590 *) ac_try_echo=$ac_try;; 29591 esac 29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29593 (eval "$ac_compile") 2>conftest.er1 29594 ac_status=$? 29595 grep -v '^ *+' conftest.er1 >conftest.err 29596 rm -f conftest.er1 29597 cat conftest.err >&5 29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29599 (exit $ac_status); } && { 29600 test -z "$ac_c_werror_flag" || 29601 test ! -s conftest.err 29602 } && test -s conftest.$ac_objext; then 29603 29604 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop" 29605 HOST_R_BAD="#define HOST_R_BAD NULL" 29606 HOST_R_COPY="#define HOST_R_COPY buf, buflen" 29607 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen" 29608 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno" 29609 HOST_R_OK="#define HOST_R_OK hptr" 29610 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *" 29611 HOST_R_SETANSWER="#undef HOST_R_SETANSWER" 29612 HOSTENT_DATA="#undef HOSTENT_DATA" 29613 29614 29615 else 29616 echo "$as_me: failed program was:" >&5 29617 sed 's/^/| /' conftest.$ac_ext >&5 29618 29619 cat >conftest.$ac_ext <<_ACEOF 29620 /* confdefs.h. */ 29621 _ACEOF 29622 cat confdefs.h >>conftest.$ac_ext 29623 cat >>conftest.$ac_ext <<_ACEOF 29624 /* end confdefs.h. */ 29625 29626 #undef __USE_MISC 29627 #define __USE_MISC 29628 #include <netdb.h> 29629 int gethostbyname_r(const char *name, 29630 struct hostent *result, 29631 struct hostent_data *hdptr); 29632 29633 int 29634 main () 29635 { 29636 29637 ; 29638 return 0; 29639 } 29640 _ACEOF 29641 rm -f conftest.$ac_objext 29642 if { (ac_try="$ac_compile" 29643 case "(($ac_try" in 29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29645 *) ac_try_echo=$ac_try;; 29646 esac 29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29648 (eval "$ac_compile") 2>conftest.er1 29649 ac_status=$? 29650 grep -v '^ *+' conftest.er1 >conftest.err 29651 rm -f conftest.er1 29652 cat conftest.err >&5 29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29654 (exit $ac_status); } && { 29655 test -z "$ac_c_werror_flag" || 29656 test ! -s conftest.err 29657 } && test -s conftest.$ac_objext; then 29658 29659 HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr" 29660 HOST_R_BAD="#define HOST_R_BAD (-1)" 29661 HOST_R_COPY="#define HOST_R_COPY hdptr" 29662 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS" 29663 HOST_R_ERRNO="#undef HOST_R_ERRNO" 29664 HOST_R_OK="#define HOST_R_OK 0" 29665 HOST_R_RETURN="#define HOST_R_RETURN int" 29666 HOST_R_SETANSWER="#undef HOST_R_SETANSWER" 29667 HOSTENT_DATA="#define HOSTENT_DATA 1" 29668 29669 else 29670 echo "$as_me: failed program was:" >&5 29671 sed 's/^/| /' conftest.$ac_ext >&5 29672 29673 cat >conftest.$ac_ext <<_ACEOF 29674 /* confdefs.h. */ 29675 _ACEOF 29676 cat confdefs.h >>conftest.$ac_ext 29677 cat >>conftest.$ac_ext <<_ACEOF 29678 /* end confdefs.h. */ 29679 29680 #undef __USE_MISC 29681 #define __USE_MISC 29682 #include <netdb.h> 29683 extern int gethostbyname_r (const char *, 29684 struct hostent *, 29685 char *, size_t, 29686 struct hostent **, 29687 int *); 29688 29689 int 29690 main () 29691 { 29692 29693 ; 29694 return 0; 29695 } 29696 _ACEOF 29697 rm -f conftest.$ac_objext 29698 if { (ac_try="$ac_compile" 29699 case "(($ac_try" in 29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29701 *) ac_try_echo=$ac_try;; 29702 esac 29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29704 (eval "$ac_compile") 2>conftest.er1 29705 ac_status=$? 29706 grep -v '^ *+' conftest.er1 >conftest.err 29707 rm -f conftest.er1 29708 cat conftest.err >&5 29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29710 (exit $ac_status); } && { 29711 test -z "$ac_c_werror_flag" || 29712 test ! -s conftest.err 29713 } && test -s conftest.$ac_objext; then 29714 29715 HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop" 29716 HOST_R_BAD="#define HOST_R_BAD ERANGE" 29717 HOST_R_COPY="#define HOST_R_COPY buf, buflen" 29718 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen" 29719 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno" 29720 HOST_R_OK="#define HOST_R_OK 0" 29721 HOST_R_RETURN="#define HOST_R_RETURN int" 29722 HOST_R_SETANSWER="#define HOST_R_SETANSWER 1" 29723 HOSTENT_DATA="#undef HOSTENT_DATA" 29724 29725 else 29726 echo "$as_me: failed program was:" >&5 29727 sed 's/^/| /' conftest.$ac_ext >&5 29728 29729 29730 fi 29731 29732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29733 fi 29734 29735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29736 fi 29737 29738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29739 29740 else 29741 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop" 29742 HOST_R_BAD="#define HOST_R_BAD NULL" 29743 HOST_R_COPY="#define HOST_R_COPY buf, buflen" 29744 HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen" 29745 HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno" 29746 HOST_R_OK="#define HOST_R_OK hptr" 29747 HOST_R_RETURN="#define HOST_R_RETURN struct hostent *" 29748 HOST_R_SETANSWER="#undef HOST_R_SETANSWER" 29749 HOSTENT_DATA="#undef HOSTENT_DATA" 29750 29751 fi 29752 29753 esac 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 case $host in 29765 ia64-hp-hpux11.*) 29766 ;; 29767 *) 29768 { echo "$as_me:$LINENO: checking for endhostent_r" >&5 29769 echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6; } 29770 if test "${ac_cv_func_endhostent_r+set}" = set; then 29771 echo $ECHO_N "(cached) $ECHO_C" >&6 29772 else 29773 cat >conftest.$ac_ext <<_ACEOF 29774 /* confdefs.h. */ 29775 _ACEOF 29776 cat confdefs.h >>conftest.$ac_ext 29777 cat >>conftest.$ac_ext <<_ACEOF 29778 /* end confdefs.h. */ 29779 /* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r. 29780 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29781 #define endhostent_r innocuous_endhostent_r 29782 29783 /* System header to define __stub macros and hopefully few prototypes, 29784 which can conflict with char endhostent_r (); below. 29785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29786 <limits.h> exists even on freestanding compilers. */ 29787 29788 #ifdef __STDC__ 29789 # include <limits.h> 29790 #else 29791 # include <assert.h> 29792 #endif 29793 29794 #undef endhostent_r 29795 29796 /* Override any GCC internal prototype to avoid an error. 29797 Use char because int might match the return type of a GCC 29798 builtin and then its argument prototype would still apply. */ 29799 #ifdef __cplusplus 29800 extern "C" 29801 #endif 29802 char endhostent_r (); 29803 /* The GNU C library defines this for functions which it implements 29804 to always fail with ENOSYS. Some functions are actually named 29805 something starting with __ and the normal name is an alias. */ 29806 #if defined __stub_endhostent_r || defined __stub___endhostent_r 29807 choke me 29808 #endif 29809 29810 int 29811 main () 29812 { 29813 return endhostent_r (); 29814 ; 29815 return 0; 29816 } 29817 _ACEOF 29818 rm -f conftest.$ac_objext conftest$ac_exeext 29819 if { (ac_try="$ac_link" 29820 case "(($ac_try" in 29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29822 *) ac_try_echo=$ac_try;; 29823 esac 29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29825 (eval "$ac_link") 2>conftest.er1 29826 ac_status=$? 29827 grep -v '^ *+' conftest.er1 >conftest.err 29828 rm -f conftest.er1 29829 cat conftest.err >&5 29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29831 (exit $ac_status); } && { 29832 test -z "$ac_c_werror_flag" || 29833 test ! -s conftest.err 29834 } && test -s conftest$ac_exeext && 29835 $as_test_x conftest$ac_exeext; then 29836 ac_cv_func_endhostent_r=yes 29837 else 29838 echo "$as_me: failed program was:" >&5 29839 sed 's/^/| /' conftest.$ac_ext >&5 29840 29841 ac_cv_func_endhostent_r=no 29842 fi 29843 29844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29845 conftest$ac_exeext conftest.$ac_ext 29846 fi 29847 { echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5 29848 echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6; } 29849 if test $ac_cv_func_endhostent_r = yes; then 29850 cat >conftest.$ac_ext <<_ACEOF 29851 /* confdefs.h. */ 29852 _ACEOF 29853 cat confdefs.h >>conftest.$ac_ext 29854 cat >>conftest.$ac_ext <<_ACEOF 29855 /* end confdefs.h. */ 29856 29857 #undef _REENTRANT 29858 #define _REENTRANT 29859 #undef __USE_MISC 29860 #define __USE_MISC 29861 #include <netdb.h> 29862 int endhostent_r(struct hostent_data *buffer); 29863 29864 int 29865 main () 29866 { 29867 29868 ; 29869 return 0; 29870 } 29871 _ACEOF 29872 rm -f conftest.$ac_objext 29873 if { (ac_try="$ac_compile" 29874 case "(($ac_try" in 29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29876 *) ac_try_echo=$ac_try;; 29877 esac 29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29879 (eval "$ac_compile") 2>conftest.er1 29880 ac_status=$? 29881 grep -v '^ *+' conftest.er1 >conftest.err 29882 rm -f conftest.er1 29883 cat conftest.err >&5 29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29885 (exit $ac_status); } && { 29886 test -z "$ac_c_werror_flag" || 29887 test ! -s conftest.err 29888 } && test -s conftest.$ac_objext; then 29889 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)" 29890 HOST_R_END_RETURN="#define HOST_R_END_RETURN int" 29891 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr" 29892 29893 else 29894 echo "$as_me: failed program was:" >&5 29895 sed 's/^/| /' conftest.$ac_ext >&5 29896 29897 cat >conftest.$ac_ext <<_ACEOF 29898 /* confdefs.h. */ 29899 _ACEOF 29900 cat confdefs.h >>conftest.$ac_ext 29901 cat >>conftest.$ac_ext <<_ACEOF 29902 /* end confdefs.h. */ 29903 29904 #undef _REENTRANT 29905 #define _REENTRANT 29906 #undef __USE_MISC 29907 #define __USE_MISC 29908 #include <netdb.h> 29909 extern void endhostent_r(struct hostent_data *ht_data); 29910 29911 int 29912 main () 29913 { 29914 29915 ; 29916 return 0; 29917 } 29918 _ACEOF 29919 rm -f conftest.$ac_objext 29920 if { (ac_try="$ac_compile" 29921 case "(($ac_try" in 29922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29923 *) ac_try_echo=$ac_try;; 29924 esac 29925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29926 (eval "$ac_compile") 2>conftest.er1 29927 ac_status=$? 29928 grep -v '^ *+' conftest.er1 >conftest.err 29929 rm -f conftest.er1 29930 cat conftest.err >&5 29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29932 (exit $ac_status); } && { 29933 test -z "$ac_c_werror_flag" || 29934 test ! -s conftest.err 29935 } && test -s conftest.$ac_objext; then 29936 29937 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)" 29938 HOST_R_END_RETURN="#define HOST_R_END_RETURN void" 29939 HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr" 29940 29941 else 29942 echo "$as_me: failed program was:" >&5 29943 sed 's/^/| /' conftest.$ac_ext >&5 29944 29945 cat >conftest.$ac_ext <<_ACEOF 29946 /* confdefs.h. */ 29947 _ACEOF 29948 cat confdefs.h >>conftest.$ac_ext 29949 cat >>conftest.$ac_ext <<_ACEOF 29950 /* end confdefs.h. */ 29951 29952 #undef _REENTRANT 29953 #define _REENTRANT 29954 #undef __USE_MISC 29955 #define __USE_MISC 29956 #include <netdb.h> 29957 extern void endhostent_r(void); 29958 29959 int 29960 main () 29961 { 29962 29963 ; 29964 return 0; 29965 } 29966 _ACEOF 29967 rm -f conftest.$ac_objext 29968 if { (ac_try="$ac_compile" 29969 case "(($ac_try" in 29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29971 *) ac_try_echo=$ac_try;; 29972 esac 29973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29974 (eval "$ac_compile") 2>conftest.er1 29975 ac_status=$? 29976 grep -v '^ *+' conftest.er1 >conftest.err 29977 rm -f conftest.er1 29978 cat conftest.err >&5 29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29980 (exit $ac_status); } && { 29981 test -z "$ac_c_werror_flag" || 29982 test ! -s conftest.err 29983 } && test -s conftest.$ac_objext; then 29984 29985 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/" 29986 HOST_R_END_RETURN="#define HOST_R_END_RETURN void" 29987 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/" 29988 29989 else 29990 echo "$as_me: failed program was:" >&5 29991 sed 's/^/| /' conftest.$ac_ext >&5 29992 29993 29994 fi 29995 29996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29997 29998 fi 29999 30000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30001 30002 fi 30003 30004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30005 30006 else 30007 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/" 30008 HOST_R_END_RETURN="#define HOST_R_END_RETURN void" 30009 HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/" 30010 30011 fi 30012 30013 esac; 30014 30015 30016 30017 30018 case $host in 30019 ia64-hp-hpux11.*) 30020 ;; 30021 *) 30022 { echo "$as_me:$LINENO: checking for sethostent_r" >&5 30023 echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6; } 30024 if test "${ac_cv_func_sethostent_r+set}" = set; then 30025 echo $ECHO_N "(cached) $ECHO_C" >&6 30026 else 30027 cat >conftest.$ac_ext <<_ACEOF 30028 /* confdefs.h. */ 30029 _ACEOF 30030 cat confdefs.h >>conftest.$ac_ext 30031 cat >>conftest.$ac_ext <<_ACEOF 30032 /* end confdefs.h. */ 30033 /* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r. 30034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30035 #define sethostent_r innocuous_sethostent_r 30036 30037 /* System header to define __stub macros and hopefully few prototypes, 30038 which can conflict with char sethostent_r (); below. 30039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30040 <limits.h> exists even on freestanding compilers. */ 30041 30042 #ifdef __STDC__ 30043 # include <limits.h> 30044 #else 30045 # include <assert.h> 30046 #endif 30047 30048 #undef sethostent_r 30049 30050 /* Override any GCC internal prototype to avoid an error. 30051 Use char because int might match the return type of a GCC 30052 builtin and then its argument prototype would still apply. */ 30053 #ifdef __cplusplus 30054 extern "C" 30055 #endif 30056 char sethostent_r (); 30057 /* The GNU C library defines this for functions which it implements 30058 to always fail with ENOSYS. Some functions are actually named 30059 something starting with __ and the normal name is an alias. */ 30060 #if defined __stub_sethostent_r || defined __stub___sethostent_r 30061 choke me 30062 #endif 30063 30064 int 30065 main () 30066 { 30067 return sethostent_r (); 30068 ; 30069 return 0; 30070 } 30071 _ACEOF 30072 rm -f conftest.$ac_objext conftest$ac_exeext 30073 if { (ac_try="$ac_link" 30074 case "(($ac_try" in 30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30076 *) ac_try_echo=$ac_try;; 30077 esac 30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30079 (eval "$ac_link") 2>conftest.er1 30080 ac_status=$? 30081 grep -v '^ *+' conftest.er1 >conftest.err 30082 rm -f conftest.er1 30083 cat conftest.err >&5 30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30085 (exit $ac_status); } && { 30086 test -z "$ac_c_werror_flag" || 30087 test ! -s conftest.err 30088 } && test -s conftest$ac_exeext && 30089 $as_test_x conftest$ac_exeext; then 30090 ac_cv_func_sethostent_r=yes 30091 else 30092 echo "$as_me: failed program was:" >&5 30093 sed 's/^/| /' conftest.$ac_ext >&5 30094 30095 ac_cv_func_sethostent_r=no 30096 fi 30097 30098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30099 conftest$ac_exeext conftest.$ac_ext 30100 fi 30101 { echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5 30102 echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6; } 30103 if test $ac_cv_func_sethostent_r = yes; then 30104 cat >conftest.$ac_ext <<_ACEOF 30105 /* confdefs.h. */ 30106 _ACEOF 30107 cat confdefs.h >>conftest.$ac_ext 30108 cat >>conftest.$ac_ext <<_ACEOF 30109 /* end confdefs.h. */ 30110 30111 #undef _REENTRANT 30112 #define _REENTRANT 30113 #undef __USE_MISC 30114 #define __USE_MISC 30115 #include <netdb.h> 30116 extern void sethostent_r(int flag, struct hostent_data *ht_data); 30117 int 30118 main () 30119 { 30120 30121 ; 30122 return 0; 30123 } 30124 _ACEOF 30125 rm -f conftest.$ac_objext 30126 if { (ac_try="$ac_compile" 30127 case "(($ac_try" in 30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30129 *) ac_try_echo=$ac_try;; 30130 esac 30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30132 (eval "$ac_compile") 2>conftest.er1 30133 ac_status=$? 30134 grep -v '^ *+' conftest.er1 >conftest.err 30135 rm -f conftest.er1 30136 cat conftest.err >&5 30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30138 (exit $ac_status); } && { 30139 test -z "$ac_c_werror_flag" || 30140 test ! -s conftest.err 30141 } && test -s conftest.$ac_objext; then 30142 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/" 30143 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void" 30144 else 30145 echo "$as_me: failed program was:" >&5 30146 sed 's/^/| /' conftest.$ac_ext >&5 30147 30148 cat >conftest.$ac_ext <<_ACEOF 30149 /* confdefs.h. */ 30150 _ACEOF 30151 cat confdefs.h >>conftest.$ac_ext 30152 cat >>conftest.$ac_ext <<_ACEOF 30153 /* end confdefs.h. */ 30154 30155 #undef _REENTRANT 30156 #define _REENTRANT 30157 #undef __USE_MISC 30158 #define __USE_MISC 30159 #include <netdb.h> 30160 extern int sethostent_r(int flag, struct hostent_data *ht_data); 30161 int 30162 main () 30163 { 30164 30165 ; 30166 return 0; 30167 } 30168 _ACEOF 30169 rm -f conftest.$ac_objext 30170 if { (ac_try="$ac_compile" 30171 case "(($ac_try" in 30172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30173 *) ac_try_echo=$ac_try;; 30174 esac 30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30176 (eval "$ac_compile") 2>conftest.er1 30177 ac_status=$? 30178 grep -v '^ *+' conftest.er1 >conftest.err 30179 rm -f conftest.er1 30180 cat conftest.err >&5 30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30182 (exit $ac_status); } && { 30183 test -z "$ac_c_werror_flag" || 30184 test ! -s conftest.err 30185 } && test -s conftest.$ac_objext; then 30186 HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0" 30187 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int" 30188 else 30189 echo "$as_me: failed program was:" >&5 30190 sed 's/^/| /' conftest.$ac_ext >&5 30191 30192 cat >conftest.$ac_ext <<_ACEOF 30193 /* confdefs.h. */ 30194 _ACEOF 30195 cat confdefs.h >>conftest.$ac_ext 30196 cat >>conftest.$ac_ext <<_ACEOF 30197 /* end confdefs.h. */ 30198 30199 #undef _REENTRANT 30200 #define _REENTRANT 30201 #undef __USE_MISC 30202 #define __USE_MISC 30203 #include <netdb.h> 30204 void sethostent_r (int); 30205 int 30206 main () 30207 { 30208 30209 ; 30210 return 0; 30211 } 30212 _ACEOF 30213 rm -f conftest.$ac_objext 30214 if { (ac_try="$ac_compile" 30215 case "(($ac_try" in 30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30217 *) ac_try_echo=$ac_try;; 30218 esac 30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30220 (eval "$ac_compile") 2>conftest.er1 30221 ac_status=$? 30222 grep -v '^ *+' conftest.er1 >conftest.err 30223 rm -f conftest.er1 30224 cat conftest.err >&5 30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30226 (exit $ac_status); } && { 30227 test -z "$ac_c_werror_flag" || 30228 test ! -s conftest.err 30229 } && test -s conftest.$ac_objext; then 30230 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT" 30231 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void" 30232 else 30233 echo "$as_me: failed program was:" >&5 30234 sed 's/^/| /' conftest.$ac_ext >&5 30235 30236 30237 fi 30238 30239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30240 30241 fi 30242 30243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30244 30245 fi 30246 30247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30248 30249 else 30250 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT" 30251 HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void" 30252 30253 fi 30254 30255 esac 30256 30257 30258 30259 30260 { echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5 30261 echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6; } 30262 cat >conftest.$ac_ext <<_ACEOF 30263 /* confdefs.h. */ 30264 _ACEOF 30265 cat confdefs.h >>conftest.$ac_ext 30266 cat >>conftest.$ac_ext <<_ACEOF 30267 /* end confdefs.h. */ 30268 30269 #include <sys/types.h> 30270 #include <pwd.h> 30271 30272 int 30273 main () 30274 { 30275 struct passwd *pw; pw->pw_class = ""; 30276 ; 30277 return 0; 30278 } 30279 _ACEOF 30280 rm -f conftest.$ac_objext 30281 if { (ac_try="$ac_compile" 30282 case "(($ac_try" in 30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30284 *) ac_try_echo=$ac_try;; 30285 esac 30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30287 (eval "$ac_compile") 2>conftest.er1 30288 ac_status=$? 30289 grep -v '^ *+' conftest.er1 >conftest.err 30290 rm -f conftest.er1 30291 cat conftest.err >&5 30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30293 (exit $ac_status); } && { 30294 test -z "$ac_c_werror_flag" || 30295 test ! -s conftest.err 30296 } && test -s conftest.$ac_objext; then 30297 { echo "$as_me:$LINENO: result: yes" >&5 30298 echo "${ECHO_T}yes" >&6; } 30299 cat >>confdefs.h <<\_ACEOF 30300 #define HAS_PW_CLASS 1 30301 _ACEOF 30302 30303 30304 else 30305 echo "$as_me: failed program was:" >&5 30306 sed 's/^/| /' conftest.$ac_ext >&5 30307 30308 { echo "$as_me:$LINENO: result: no" >&5 30309 echo "${ECHO_T}no" >&6; } 30310 30311 fi 30312 30313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30314 30315 cat >conftest.$ac_ext <<_ACEOF 30316 /* confdefs.h. */ 30317 _ACEOF 30318 cat confdefs.h >>conftest.$ac_ext 30319 cat >>conftest.$ac_ext <<_ACEOF 30320 /* end confdefs.h. */ 30321 30322 #include <sys/types.h> 30323 #include <pwd.h> 30324 void 30325 setpwent(void) {} 30326 30327 int 30328 main () 30329 { 30330 return (0); 30331 ; 30332 return 0; 30333 } 30334 _ACEOF 30335 rm -f conftest.$ac_objext 30336 if { (ac_try="$ac_compile" 30337 case "(($ac_try" in 30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30339 *) ac_try_echo=$ac_try;; 30340 esac 30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30342 (eval "$ac_compile") 2>conftest.er1 30343 ac_status=$? 30344 grep -v '^ *+' conftest.er1 >conftest.err 30345 rm -f conftest.er1 30346 cat conftest.err >&5 30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30348 (exit $ac_status); } && { 30349 test -z "$ac_c_werror_flag" || 30350 test ! -s conftest.err 30351 } && test -s conftest.$ac_objext; then 30352 SETPWENT_VOID="#define SETPWENT_VOID 1" 30353 30354 else 30355 echo "$as_me: failed program was:" >&5 30356 sed 's/^/| /' conftest.$ac_ext >&5 30357 30358 SETPWENT_VOID="#undef SETPWENT_VOID" 30359 30360 fi 30361 30362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30363 30364 30365 cat >conftest.$ac_ext <<_ACEOF 30366 /* confdefs.h. */ 30367 _ACEOF 30368 cat confdefs.h >>conftest.$ac_ext 30369 cat >>conftest.$ac_ext <<_ACEOF 30370 /* end confdefs.h. */ 30371 30372 #include <sys/types.h> 30373 #include <grp.h> 30374 void 30375 setgrent(void) {} 30376 30377 int 30378 main () 30379 { 30380 return (0); 30381 ; 30382 return 0; 30383 } 30384 _ACEOF 30385 rm -f conftest.$ac_objext 30386 if { (ac_try="$ac_compile" 30387 case "(($ac_try" in 30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30389 *) ac_try_echo=$ac_try;; 30390 esac 30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30392 (eval "$ac_compile") 2>conftest.er1 30393 ac_status=$? 30394 grep -v '^ *+' conftest.er1 >conftest.err 30395 rm -f conftest.er1 30396 cat conftest.err >&5 30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30398 (exit $ac_status); } && { 30399 test -z "$ac_c_werror_flag" || 30400 test ! -s conftest.err 30401 } && test -s conftest.$ac_objext; then 30402 SETGRENT_VOID="#define SETGRENT_VOID 1" 30403 30404 else 30405 echo "$as_me: failed program was:" >&5 30406 sed 's/^/| /' conftest.$ac_ext >&5 30407 30408 SETGRENT_VOID="#undef SETGRENT_VOID" 30409 30410 fi 30411 30412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30413 30414 30415 case $host in 30416 ia64-hp-hpux11.*) 30417 NGR_R_CONST="#define NGR_R_CONST" 30418 ;; 30419 *-hp-hpux11.*) 30420 # 30421 # HPUX doesn't have a prototype for getnetgrent_r(). 30422 # 30423 NGR_R_CONST="#define NGR_R_CONST" 30424 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen" 30425 NGR_R_BAD="#define NGR_R_BAD (0)" 30426 NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30427 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30428 NGR_R_OK="#define NGR_R_OK 1" 30429 NGR_R_RETURN="#define NGR_R_RETURN int" 30430 ;; 30431 30432 *) 30433 { echo "$as_me:$LINENO: checking for getnetgrent_r" >&5 30434 echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6; } 30435 if test "${ac_cv_func_getnetgrent_r+set}" = set; then 30436 echo $ECHO_N "(cached) $ECHO_C" >&6 30437 else 30438 cat >conftest.$ac_ext <<_ACEOF 30439 /* confdefs.h. */ 30440 _ACEOF 30441 cat confdefs.h >>conftest.$ac_ext 30442 cat >>conftest.$ac_ext <<_ACEOF 30443 /* end confdefs.h. */ 30444 /* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r. 30445 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30446 #define getnetgrent_r innocuous_getnetgrent_r 30447 30448 /* System header to define __stub macros and hopefully few prototypes, 30449 which can conflict with char getnetgrent_r (); below. 30450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30451 <limits.h> exists even on freestanding compilers. */ 30452 30453 #ifdef __STDC__ 30454 # include <limits.h> 30455 #else 30456 # include <assert.h> 30457 #endif 30458 30459 #undef getnetgrent_r 30460 30461 /* Override any GCC internal prototype to avoid an error. 30462 Use char because int might match the return type of a GCC 30463 builtin and then its argument prototype would still apply. */ 30464 #ifdef __cplusplus 30465 extern "C" 30466 #endif 30467 char getnetgrent_r (); 30468 /* The GNU C library defines this for functions which it implements 30469 to always fail with ENOSYS. Some functions are actually named 30470 something starting with __ and the normal name is an alias. */ 30471 #if defined __stub_getnetgrent_r || defined __stub___getnetgrent_r 30472 choke me 30473 #endif 30474 30475 int 30476 main () 30477 { 30478 return getnetgrent_r (); 30479 ; 30480 return 0; 30481 } 30482 _ACEOF 30483 rm -f conftest.$ac_objext conftest$ac_exeext 30484 if { (ac_try="$ac_link" 30485 case "(($ac_try" in 30486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30487 *) ac_try_echo=$ac_try;; 30488 esac 30489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30490 (eval "$ac_link") 2>conftest.er1 30491 ac_status=$? 30492 grep -v '^ *+' conftest.er1 >conftest.err 30493 rm -f conftest.er1 30494 cat conftest.err >&5 30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30496 (exit $ac_status); } && { 30497 test -z "$ac_c_werror_flag" || 30498 test ! -s conftest.err 30499 } && test -s conftest$ac_exeext && 30500 $as_test_x conftest$ac_exeext; then 30501 ac_cv_func_getnetgrent_r=yes 30502 else 30503 echo "$as_me: failed program was:" >&5 30504 sed 's/^/| /' conftest.$ac_ext >&5 30505 30506 ac_cv_func_getnetgrent_r=no 30507 fi 30508 30509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30510 conftest$ac_exeext conftest.$ac_ext 30511 fi 30512 { echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5 30513 echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6; } 30514 if test $ac_cv_func_getnetgrent_r = yes; then 30515 cat >conftest.$ac_ext <<_ACEOF 30516 /* confdefs.h. */ 30517 _ACEOF 30518 cat confdefs.h >>conftest.$ac_ext 30519 cat >>conftest.$ac_ext <<_ACEOF 30520 /* end confdefs.h. */ 30521 30522 #undef __USE_MISC 30523 #define __USE_MISC 30524 #undef _REEENTRANT 30525 #define _REEENTRANT 30526 #include <netdb.h> 30527 #include <unistd.h> 30528 int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {} 30529 30530 30531 int 30532 main () 30533 { 30534 return (0); 30535 ; 30536 return 0; 30537 } 30538 _ACEOF 30539 rm -f conftest.$ac_objext 30540 if { (ac_try="$ac_compile" 30541 case "(($ac_try" in 30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30543 *) ac_try_echo=$ac_try;; 30544 esac 30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30546 (eval "$ac_compile") 2>conftest.er1 30547 ac_status=$? 30548 grep -v '^ *+' conftest.er1 >conftest.err 30549 rm -f conftest.er1 30550 cat conftest.err >&5 30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30552 (exit $ac_status); } && { 30553 test -z "$ac_c_werror_flag" || 30554 test ! -s conftest.err 30555 } && test -s conftest.$ac_objext; then 30556 30557 NGR_R_CONST="#define NGR_R_CONST" 30558 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen" 30559 NGR_R_BAD="#define NGR_R_BAD (0)" 30560 NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30561 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30562 NGR_R_OK="#define NGR_R_OK 1" 30563 NGR_R_RETURN="#define NGR_R_RETURN int" 30564 30565 30566 else 30567 echo "$as_me: failed program was:" >&5 30568 sed 's/^/| /' conftest.$ac_ext >&5 30569 30570 cat >conftest.$ac_ext <<_ACEOF 30571 /* confdefs.h. */ 30572 _ACEOF 30573 cat confdefs.h >>conftest.$ac_ext 30574 cat >>conftest.$ac_ext <<_ACEOF 30575 /* end confdefs.h. */ 30576 30577 #undef __USE_MISC 30578 #define __USE_MISC 30579 #undef _REEENTRANT 30580 #define _REEENTRANT 30581 #include <netdb.h> 30582 #include <unistd.h> 30583 int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {} 30584 30585 30586 int 30587 main () 30588 { 30589 return (0); 30590 ; 30591 return 0; 30592 } 30593 _ACEOF 30594 rm -f conftest.$ac_objext 30595 if { (ac_try="$ac_compile" 30596 case "(($ac_try" in 30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30598 *) ac_try_echo=$ac_try;; 30599 esac 30600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30601 (eval "$ac_compile") 2>conftest.er1 30602 ac_status=$? 30603 grep -v '^ *+' conftest.er1 >conftest.err 30604 rm -f conftest.er1 30605 cat conftest.err >&5 30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30607 (exit $ac_status); } && { 30608 test -z "$ac_c_werror_flag" || 30609 test ! -s conftest.err 30610 } && test -s conftest.$ac_objext; then 30611 30612 NGR_R_CONST="#define NGR_R_CONST" 30613 NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen" 30614 NGR_R_BAD="#define NGR_R_BAD (0)" 30615 NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30616 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30617 NGR_R_OK="#define NGR_R_OK 1" 30618 NGR_R_RETURN="#define NGR_R_RETURN int" 30619 30620 30621 else 30622 echo "$as_me: failed program was:" >&5 30623 sed 's/^/| /' conftest.$ac_ext >&5 30624 30625 cat >conftest.$ac_ext <<_ACEOF 30626 /* confdefs.h. */ 30627 _ACEOF 30628 cat confdefs.h >>conftest.$ac_ext 30629 cat >>conftest.$ac_ext <<_ACEOF 30630 /* end confdefs.h. */ 30631 30632 #undef __USE_MISC 30633 #define __USE_MISC 30634 #undef _REEENTRANT 30635 #define _REEENTRANT 30636 #include <netdb.h> 30637 #include <unistd.h> 30638 extern int getnetgrent_r(char **, char **, char **, void **); 30639 30640 30641 int 30642 main () 30643 { 30644 return (0); 30645 ; 30646 return 0; 30647 } 30648 _ACEOF 30649 rm -f conftest.$ac_objext 30650 if { (ac_try="$ac_compile" 30651 case "(($ac_try" in 30652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30653 *) ac_try_echo=$ac_try;; 30654 esac 30655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30656 (eval "$ac_compile") 2>conftest.er1 30657 ac_status=$? 30658 grep -v '^ *+' conftest.er1 >conftest.err 30659 rm -f conftest.er1 30660 cat conftest.err >&5 30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30662 (exit $ac_status); } && { 30663 test -z "$ac_c_werror_flag" || 30664 test ! -s conftest.err 30665 } && test -s conftest.$ac_objext; then 30666 30667 NGR_R_CONST="#define NGR_R_CONST" 30668 NGR_R_ARGS="#define NGR_R_ARGS void **buf" 30669 NGR_R_BAD="#define NGR_R_BAD (0)" 30670 NGR_R_COPY="#define NGR_R_COPY buf" 30671 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30672 NGR_R_OK="#define NGR_R_OK 1" 30673 NGR_R_RETURN="#define NGR_R_RETURN int" 30674 NGR_R_PRIVATE="#define NGR_R_PRIVATE 1" 30675 30676 30677 else 30678 echo "$as_me: failed program was:" >&5 30679 sed 's/^/| /' conftest.$ac_ext >&5 30680 30681 cat >conftest.$ac_ext <<_ACEOF 30682 /* confdefs.h. */ 30683 _ACEOF 30684 cat confdefs.h >>conftest.$ac_ext 30685 cat >>conftest.$ac_ext <<_ACEOF 30686 /* end confdefs.h. */ 30687 30688 #undef __USE_MISC 30689 #define __USE_MISC 30690 #undef _REEENTRANT 30691 #define _REEENTRANT 30692 #include <netdb.h> 30693 #include <unistd.h> 30694 extern int getnetgrent_r(const char **, const char **, const char **, void *); 30695 30696 30697 int 30698 main () 30699 { 30700 return (0); 30701 ; 30702 return 0; 30703 } 30704 _ACEOF 30705 rm -f conftest.$ac_objext 30706 if { (ac_try="$ac_compile" 30707 case "(($ac_try" in 30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30709 *) ac_try_echo=$ac_try;; 30710 esac 30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30712 (eval "$ac_compile") 2>conftest.er1 30713 ac_status=$? 30714 grep -v '^ *+' conftest.er1 >conftest.err 30715 rm -f conftest.er1 30716 cat conftest.err >&5 30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30718 (exit $ac_status); } && { 30719 test -z "$ac_c_werror_flag" || 30720 test ! -s conftest.err 30721 } && test -s conftest.$ac_objext; then 30722 30723 NGR_R_CONST="#define NGR_R_CONST const" 30724 NGR_R_ARGS="#define NGR_R_ARGS void *buf" 30725 NGR_R_BAD="#define NGR_R_BAD (0)" 30726 NGR_R_COPY="#define NGR_R_COPY buf" 30727 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30728 NGR_R_OK="#define NGR_R_OK 1" 30729 NGR_R_RETURN="#define NGR_R_RETURN int" 30730 NGR_R_PRIVATE="#define NGR_R_PRIVATE 2" 30731 30732 30733 else 30734 echo "$as_me: failed program was:" >&5 30735 sed 's/^/| /' conftest.$ac_ext >&5 30736 30737 30738 fi 30739 30740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30741 30742 fi 30743 30744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30745 30746 fi 30747 30748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30749 30750 fi 30751 30752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30753 30754 else 30755 NGR_R_CONST="#define NGR_R_CONST" 30756 NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen" 30757 NGR_R_BAD="#define NGR_R_BAD (0)" 30758 NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30759 NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30760 NGR_R_OK="#define NGR_R_OK 1" 30761 NGR_R_RETURN="#define NGR_R_RETURN int" 30762 30763 fi 30764 30765 esac 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775 { echo "$as_me:$LINENO: checking for endnetgrent_r" >&5 30776 echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6; } 30777 if test "${ac_cv_func_endnetgrent_r+set}" = set; then 30778 echo $ECHO_N "(cached) $ECHO_C" >&6 30779 else 30780 cat >conftest.$ac_ext <<_ACEOF 30781 /* confdefs.h. */ 30782 _ACEOF 30783 cat confdefs.h >>conftest.$ac_ext 30784 cat >>conftest.$ac_ext <<_ACEOF 30785 /* end confdefs.h. */ 30786 /* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r. 30787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30788 #define endnetgrent_r innocuous_endnetgrent_r 30789 30790 /* System header to define __stub macros and hopefully few prototypes, 30791 which can conflict with char endnetgrent_r (); below. 30792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30793 <limits.h> exists even on freestanding compilers. */ 30794 30795 #ifdef __STDC__ 30796 # include <limits.h> 30797 #else 30798 # include <assert.h> 30799 #endif 30800 30801 #undef endnetgrent_r 30802 30803 /* Override any GCC internal prototype to avoid an error. 30804 Use char because int might match the return type of a GCC 30805 builtin and then its argument prototype would still apply. */ 30806 #ifdef __cplusplus 30807 extern "C" 30808 #endif 30809 char endnetgrent_r (); 30810 /* The GNU C library defines this for functions which it implements 30811 to always fail with ENOSYS. Some functions are actually named 30812 something starting with __ and the normal name is an alias. */ 30813 #if defined __stub_endnetgrent_r || defined __stub___endnetgrent_r 30814 choke me 30815 #endif 30816 30817 int 30818 main () 30819 { 30820 return endnetgrent_r (); 30821 ; 30822 return 0; 30823 } 30824 _ACEOF 30825 rm -f conftest.$ac_objext conftest$ac_exeext 30826 if { (ac_try="$ac_link" 30827 case "(($ac_try" in 30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30829 *) ac_try_echo=$ac_try;; 30830 esac 30831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30832 (eval "$ac_link") 2>conftest.er1 30833 ac_status=$? 30834 grep -v '^ *+' conftest.er1 >conftest.err 30835 rm -f conftest.er1 30836 cat conftest.err >&5 30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30838 (exit $ac_status); } && { 30839 test -z "$ac_c_werror_flag" || 30840 test ! -s conftest.err 30841 } && test -s conftest$ac_exeext && 30842 $as_test_x conftest$ac_exeext; then 30843 ac_cv_func_endnetgrent_r=yes 30844 else 30845 echo "$as_me: failed program was:" >&5 30846 sed 's/^/| /' conftest.$ac_ext >&5 30847 30848 ac_cv_func_endnetgrent_r=no 30849 fi 30850 30851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30852 conftest$ac_exeext conftest.$ac_ext 30853 fi 30854 { echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5 30855 echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6; } 30856 if test $ac_cv_func_endnetgrent_r = yes; then 30857 cat >conftest.$ac_ext <<_ACEOF 30858 /* confdefs.h. */ 30859 _ACEOF 30860 cat confdefs.h >>conftest.$ac_ext 30861 cat >>conftest.$ac_ext <<_ACEOF 30862 /* end confdefs.h. */ 30863 30864 #undef __USE_MISC 30865 #define __USE_MISC 30866 #undef _REEENTRANT 30867 #define _REEENTRANT 30868 #include <netdb.h> 30869 #include <unistd.h> 30870 void endnetgrent_r(void **ptr); 30871 30872 30873 int 30874 main () 30875 { 30876 return (0); 30877 30878 ; 30879 return 0; 30880 } 30881 _ACEOF 30882 rm -f conftest.$ac_objext 30883 if { (ac_try="$ac_compile" 30884 case "(($ac_try" in 30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30886 *) ac_try_echo=$ac_try;; 30887 esac 30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30889 (eval "$ac_compile") 2>conftest.er1 30890 ac_status=$? 30891 grep -v '^ *+' conftest.er1 >conftest.err 30892 rm -f conftest.er1 30893 cat conftest.err >&5 30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30895 (exit $ac_status); } && { 30896 test -z "$ac_c_werror_flag" || 30897 test ! -s conftest.err 30898 } && test -s conftest.$ac_objext; then 30899 30900 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */" 30901 NGR_R_END_RETURN="#define NGR_R_END_RETURN void" 30902 NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS" 30903 30904 30905 else 30906 echo "$as_me: failed program was:" >&5 30907 sed 's/^/| /' conftest.$ac_ext >&5 30908 30909 cat >conftest.$ac_ext <<_ACEOF 30910 /* confdefs.h. */ 30911 _ACEOF 30912 cat confdefs.h >>conftest.$ac_ext 30913 cat >>conftest.$ac_ext <<_ACEOF 30914 /* end confdefs.h. */ 30915 30916 #undef __USE_MISC 30917 #define __USE_MISC 30918 #undef _REEENTRANT 30919 #define _REEENTRANT 30920 #include <netdb.h> 30921 #include <unistd.h> 30922 void endnetgrent_r(void *ptr); 30923 30924 30925 int 30926 main () 30927 { 30928 return (0); 30929 30930 ; 30931 return 0; 30932 } 30933 _ACEOF 30934 rm -f conftest.$ac_objext 30935 if { (ac_try="$ac_compile" 30936 case "(($ac_try" in 30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30938 *) ac_try_echo=$ac_try;; 30939 esac 30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30941 (eval "$ac_compile") 2>conftest.er1 30942 ac_status=$? 30943 grep -v '^ *+' conftest.er1 >conftest.err 30944 rm -f conftest.er1 30945 cat conftest.err >&5 30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30947 (exit $ac_status); } && { 30948 test -z "$ac_c_werror_flag" || 30949 test ! -s conftest.err 30950 } && test -s conftest.$ac_objext; then 30951 30952 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */" 30953 NGR_R_END_RETURN="#define NGR_R_END_RETURN void" 30954 NGR_R_END_ARGS="#define NGR_R_END_ARGS void *buf" 30955 30956 30957 else 30958 echo "$as_me: failed program was:" >&5 30959 sed 's/^/| /' conftest.$ac_ext >&5 30960 30961 30962 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)" 30963 NGR_R_END_RETURN="#define NGR_R_END_RETURN int" 30964 NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS" 30965 30966 30967 fi 30968 30969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30970 30971 fi 30972 30973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30974 30975 else 30976 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/" 30977 NGR_R_END_RETURN="#define NGR_R_END_RETURN void" 30978 NGR_R_END_ARGS="#undef NGR_R_END_ARGS /*empty*/" 30979 cat >>confdefs.h <<\_ACEOF 30980 #define NEED_ENDNETGRENT_R 1 30981 _ACEOF 30982 30983 30984 fi 30985 30986 30987 30988 30989 30990 { echo "$as_me:$LINENO: checking for setnetgrent_r" >&5 30991 echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6; } 30992 if test "${ac_cv_func_setnetgrent_r+set}" = set; then 30993 echo $ECHO_N "(cached) $ECHO_C" >&6 30994 else 30995 cat >conftest.$ac_ext <<_ACEOF 30996 /* confdefs.h. */ 30997 _ACEOF 30998 cat confdefs.h >>conftest.$ac_ext 30999 cat >>conftest.$ac_ext <<_ACEOF 31000 /* end confdefs.h. */ 31001 /* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r. 31002 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31003 #define setnetgrent_r innocuous_setnetgrent_r 31004 31005 /* System header to define __stub macros and hopefully few prototypes, 31006 which can conflict with char setnetgrent_r (); below. 31007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31008 <limits.h> exists even on freestanding compilers. */ 31009 31010 #ifdef __STDC__ 31011 # include <limits.h> 31012 #else 31013 # include <assert.h> 31014 #endif 31015 31016 #undef setnetgrent_r 31017 31018 /* Override any GCC internal prototype to avoid an error. 31019 Use char because int might match the return type of a GCC 31020 builtin and then its argument prototype would still apply. */ 31021 #ifdef __cplusplus 31022 extern "C" 31023 #endif 31024 char setnetgrent_r (); 31025 /* The GNU C library defines this for functions which it implements 31026 to always fail with ENOSYS. Some functions are actually named 31027 something starting with __ and the normal name is an alias. */ 31028 #if defined __stub_setnetgrent_r || defined __stub___setnetgrent_r 31029 choke me 31030 #endif 31031 31032 int 31033 main () 31034 { 31035 return setnetgrent_r (); 31036 ; 31037 return 0; 31038 } 31039 _ACEOF 31040 rm -f conftest.$ac_objext conftest$ac_exeext 31041 if { (ac_try="$ac_link" 31042 case "(($ac_try" in 31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31044 *) ac_try_echo=$ac_try;; 31045 esac 31046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31047 (eval "$ac_link") 2>conftest.er1 31048 ac_status=$? 31049 grep -v '^ *+' conftest.er1 >conftest.err 31050 rm -f conftest.er1 31051 cat conftest.err >&5 31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31053 (exit $ac_status); } && { 31054 test -z "$ac_c_werror_flag" || 31055 test ! -s conftest.err 31056 } && test -s conftest$ac_exeext && 31057 $as_test_x conftest$ac_exeext; then 31058 ac_cv_func_setnetgrent_r=yes 31059 else 31060 echo "$as_me: failed program was:" >&5 31061 sed 's/^/| /' conftest.$ac_ext >&5 31062 31063 ac_cv_func_setnetgrent_r=no 31064 fi 31065 31066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31067 conftest$ac_exeext conftest.$ac_ext 31068 fi 31069 { echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5 31070 echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6; } 31071 if test $ac_cv_func_setnetgrent_r = yes; then 31072 31073 case "$host" in 31074 *bsdi*) 31075 # 31076 # No prototype 31077 # 31078 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/" 31079 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" 31080 NGR_R_SET_ARGS="#define NGR_R_SET_ARGS NGR_R_ARGS" 31081 NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31082 ;; 31083 *hpux*) 31084 # 31085 # No prototype 31086 # 31087 NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" 31088 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" 31089 NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS /* empty */" 31090 NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31091 ;; 31092 *) 31093 cat >conftest.$ac_ext <<_ACEOF 31094 /* confdefs.h. */ 31095 _ACEOF 31096 cat confdefs.h >>conftest.$ac_ext 31097 cat >>conftest.$ac_ext <<_ACEOF 31098 /* end confdefs.h. */ 31099 31100 #undef __USE_MISC 31101 #define __USE_MISC 31102 #undef _REEENTRANT 31103 #define _REEENTRANT 31104 #include <netdb.h> 31105 #include <unistd.h> 31106 void setnetgrent_r(void **ptr); 31107 31108 31109 int 31110 main () 31111 { 31112 return (0); 31113 31114 ; 31115 return 0; 31116 } 31117 _ACEOF 31118 rm -f conftest.$ac_objext 31119 if { (ac_try="$ac_compile" 31120 case "(($ac_try" in 31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31122 *) ac_try_echo=$ac_try;; 31123 esac 31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31125 (eval "$ac_compile") 2>conftest.er1 31126 ac_status=$? 31127 grep -v '^ *+' conftest.er1 >conftest.err 31128 rm -f conftest.er1 31129 cat conftest.err >&5 31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31131 (exit $ac_status); } && { 31132 test -z "$ac_c_werror_flag" || 31133 test ! -s conftest.err 31134 } && test -s conftest.$ac_objext; then 31135 31136 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /* empty */" 31137 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" 31138 NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf" 31139 NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31140 31141 31142 else 31143 echo "$as_me: failed program was:" >&5 31144 sed 's/^/| /' conftest.$ac_ext >&5 31145 31146 cat >conftest.$ac_ext <<_ACEOF 31147 /* confdefs.h. */ 31148 _ACEOF 31149 cat confdefs.h >>conftest.$ac_ext 31150 cat >>conftest.$ac_ext <<_ACEOF 31151 /* end confdefs.h. */ 31152 31153 #undef __USE_MISC 31154 #define __USE_MISC 31155 #undef _REEENTRANT 31156 #define _REEENTRANT 31157 #include <netdb.h> 31158 #include <unistd.h> 31159 extern int setnetgrent_r(char *, void **); 31160 31161 31162 int 31163 main () 31164 { 31165 return (0); 31166 31167 ; 31168 return 0; 31169 } 31170 _ACEOF 31171 rm -f conftest.$ac_objext 31172 if { (ac_try="$ac_compile" 31173 case "(($ac_try" in 31174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31175 *) ac_try_echo=$ac_try;; 31176 esac 31177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31178 (eval "$ac_compile") 2>conftest.er1 31179 ac_status=$? 31180 grep -v '^ *+' conftest.er1 >conftest.err 31181 rm -f conftest.er1 31182 cat conftest.err >&5 31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31184 (exit $ac_status); } && { 31185 test -z "$ac_c_werror_flag" || 31186 test ! -s conftest.err 31187 } && test -s conftest.$ac_objext; then 31188 31189 NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" 31190 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" 31191 NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf" 31192 NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31193 31194 31195 else 31196 echo "$as_me: failed program was:" >&5 31197 sed 's/^/| /' conftest.$ac_ext >&5 31198 31199 31200 NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" 31201 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" 31202 NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS" 31203 NGR_R_SET_CONST="#define NGR_R_SET_CONST const" 31204 31205 31206 fi 31207 31208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31209 fi 31210 31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31212 ;; 31213 esac 31214 31215 31216 else 31217 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/" 31218 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" 31219 NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS" 31220 NGR_R_SET_CONST="#define NGR_R_SET_CONST const" 31221 31222 fi 31223 31224 31225 31226 31227 31228 31229 31230 { echo "$as_me:$LINENO: checking for innetgr_r" >&5 31231 echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6; } 31232 if test "${ac_cv_func_innetgr_r+set}" = set; then 31233 echo $ECHO_N "(cached) $ECHO_C" >&6 31234 else 31235 cat >conftest.$ac_ext <<_ACEOF 31236 /* confdefs.h. */ 31237 _ACEOF 31238 cat confdefs.h >>conftest.$ac_ext 31239 cat >>conftest.$ac_ext <<_ACEOF 31240 /* end confdefs.h. */ 31241 /* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r. 31242 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31243 #define innetgr_r innocuous_innetgr_r 31244 31245 /* System header to define __stub macros and hopefully few prototypes, 31246 which can conflict with char innetgr_r (); below. 31247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31248 <limits.h> exists even on freestanding compilers. */ 31249 31250 #ifdef __STDC__ 31251 # include <limits.h> 31252 #else 31253 # include <assert.h> 31254 #endif 31255 31256 #undef innetgr_r 31257 31258 /* Override any GCC internal prototype to avoid an error. 31259 Use char because int might match the return type of a GCC 31260 builtin and then its argument prototype would still apply. */ 31261 #ifdef __cplusplus 31262 extern "C" 31263 #endif 31264 char innetgr_r (); 31265 /* The GNU C library defines this for functions which it implements 31266 to always fail with ENOSYS. Some functions are actually named 31267 something starting with __ and the normal name is an alias. */ 31268 #if defined __stub_innetgr_r || defined __stub___innetgr_r 31269 choke me 31270 #endif 31271 31272 int 31273 main () 31274 { 31275 return innetgr_r (); 31276 ; 31277 return 0; 31278 } 31279 _ACEOF 31280 rm -f conftest.$ac_objext conftest$ac_exeext 31281 if { (ac_try="$ac_link" 31282 case "(($ac_try" in 31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31284 *) ac_try_echo=$ac_try;; 31285 esac 31286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31287 (eval "$ac_link") 2>conftest.er1 31288 ac_status=$? 31289 grep -v '^ *+' conftest.er1 >conftest.err 31290 rm -f conftest.er1 31291 cat conftest.err >&5 31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31293 (exit $ac_status); } && { 31294 test -z "$ac_c_werror_flag" || 31295 test ! -s conftest.err 31296 } && test -s conftest$ac_exeext && 31297 $as_test_x conftest$ac_exeext; then 31298 ac_cv_func_innetgr_r=yes 31299 else 31300 echo "$as_me: failed program was:" >&5 31301 sed 's/^/| /' conftest.$ac_ext >&5 31302 31303 ac_cv_func_innetgr_r=no 31304 fi 31305 31306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31307 conftest$ac_exeext conftest.$ac_ext 31308 fi 31309 { echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5 31310 echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6; } 31311 if test $ac_cv_func_innetgr_r = yes; then 31312 : 31313 else 31314 cat >>confdefs.h <<\_ACEOF 31315 #define NEED_INNETGR_R 1 31316 _ACEOF 31317 31318 fi 31319 31320 31321 case $host in 31322 ia64-hp-hpux11.*) 31323 ;; 31324 *) 31325 { echo "$as_me:$LINENO: checking for getprotoent_r" >&5 31326 echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6; } 31327 if test "${ac_cv_func_getprotoent_r+set}" = set; then 31328 echo $ECHO_N "(cached) $ECHO_C" >&6 31329 else 31330 cat >conftest.$ac_ext <<_ACEOF 31331 /* confdefs.h. */ 31332 _ACEOF 31333 cat confdefs.h >>conftest.$ac_ext 31334 cat >>conftest.$ac_ext <<_ACEOF 31335 /* end confdefs.h. */ 31336 /* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r. 31337 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31338 #define getprotoent_r innocuous_getprotoent_r 31339 31340 /* System header to define __stub macros and hopefully few prototypes, 31341 which can conflict with char getprotoent_r (); below. 31342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31343 <limits.h> exists even on freestanding compilers. */ 31344 31345 #ifdef __STDC__ 31346 # include <limits.h> 31347 #else 31348 # include <assert.h> 31349 #endif 31350 31351 #undef getprotoent_r 31352 31353 /* Override any GCC internal prototype to avoid an error. 31354 Use char because int might match the return type of a GCC 31355 builtin and then its argument prototype would still apply. */ 31356 #ifdef __cplusplus 31357 extern "C" 31358 #endif 31359 char getprotoent_r (); 31360 /* The GNU C library defines this for functions which it implements 31361 to always fail with ENOSYS. Some functions are actually named 31362 something starting with __ and the normal name is an alias. */ 31363 #if defined __stub_getprotoent_r || defined __stub___getprotoent_r 31364 choke me 31365 #endif 31366 31367 int 31368 main () 31369 { 31370 return getprotoent_r (); 31371 ; 31372 return 0; 31373 } 31374 _ACEOF 31375 rm -f conftest.$ac_objext conftest$ac_exeext 31376 if { (ac_try="$ac_link" 31377 case "(($ac_try" in 31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31379 *) ac_try_echo=$ac_try;; 31380 esac 31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31382 (eval "$ac_link") 2>conftest.er1 31383 ac_status=$? 31384 grep -v '^ *+' conftest.er1 >conftest.err 31385 rm -f conftest.er1 31386 cat conftest.err >&5 31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31388 (exit $ac_status); } && { 31389 test -z "$ac_c_werror_flag" || 31390 test ! -s conftest.err 31391 } && test -s conftest$ac_exeext && 31392 $as_test_x conftest$ac_exeext; then 31393 ac_cv_func_getprotoent_r=yes 31394 else 31395 echo "$as_me: failed program was:" >&5 31396 sed 's/^/| /' conftest.$ac_ext >&5 31397 31398 ac_cv_func_getprotoent_r=no 31399 fi 31400 31401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31402 conftest$ac_exeext conftest.$ac_ext 31403 fi 31404 { echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5 31405 echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6; } 31406 if test $ac_cv_func_getprotoent_r = yes; then 31407 cat >conftest.$ac_ext <<_ACEOF 31408 /* confdefs.h. */ 31409 _ACEOF 31410 cat confdefs.h >>conftest.$ac_ext 31411 cat >>conftest.$ac_ext <<_ACEOF 31412 /* end confdefs.h. */ 31413 31414 #undef __USE_MISC 31415 #define __USE_MISC 31416 #include <netdb.h> 31417 struct protoent *getprotoent_r(struct protoent *result, 31418 char *buffer, int buflen) {} 31419 31420 31421 int 31422 main () 31423 { 31424 return (0); 31425 31426 ; 31427 return 0; 31428 } 31429 _ACEOF 31430 rm -f conftest.$ac_objext 31431 if { (ac_try="$ac_compile" 31432 case "(($ac_try" in 31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31434 *) ac_try_echo=$ac_try;; 31435 esac 31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31437 (eval "$ac_compile") 2>conftest.er1 31438 ac_status=$? 31439 grep -v '^ *+' conftest.er1 >conftest.err 31440 rm -f conftest.er1 31441 cat conftest.err >&5 31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31443 (exit $ac_status); } && { 31444 test -z "$ac_c_werror_flag" || 31445 test ! -s conftest.err 31446 } && test -s conftest.$ac_objext; then 31447 31448 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen" 31449 PROTO_R_BAD="#define PROTO_R_BAD NULL" 31450 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen" 31451 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS" 31452 PROTO_R_OK="#define PROTO_R_OK pptr" 31453 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER" 31454 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *" 31455 PROTOENT_DATA="#undef PROTOENT_DATA" 31456 31457 31458 else 31459 echo "$as_me: failed program was:" >&5 31460 sed 's/^/| /' conftest.$ac_ext >&5 31461 31462 cat >conftest.$ac_ext <<_ACEOF 31463 /* confdefs.h. */ 31464 _ACEOF 31465 cat confdefs.h >>conftest.$ac_ext 31466 cat >>conftest.$ac_ext <<_ACEOF 31467 /* end confdefs.h. */ 31468 31469 #undef __USE_MISC 31470 #define __USE_MISC 31471 #include <netdb.h> 31472 int getprotoent_r (struct protoent *, char *, size_t, struct protoent **); 31473 31474 31475 31476 int 31477 main () 31478 { 31479 return (0); 31480 31481 ; 31482 return 0; 31483 } 31484 _ACEOF 31485 rm -f conftest.$ac_objext 31486 if { (ac_try="$ac_compile" 31487 case "(($ac_try" in 31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31489 *) ac_try_echo=$ac_try;; 31490 esac 31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31492 (eval "$ac_compile") 2>conftest.er1 31493 ac_status=$? 31494 grep -v '^ *+' conftest.er1 >conftest.err 31495 rm -f conftest.er1 31496 cat conftest.err >&5 31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31498 (exit $ac_status); } && { 31499 test -z "$ac_c_werror_flag" || 31500 test ! -s conftest.err 31501 } && test -s conftest.$ac_objext; then 31502 31503 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp" 31504 PROTO_R_BAD="#define PROTO_R_BAD ERANGE" 31505 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen" 31506 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen" 31507 PROTO_R_OK="#define PROTO_R_OK 0" 31508 PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1" 31509 PROTO_R_RETURN="#define PROTO_R_RETURN int" 31510 PROTOENT_DATA="#undef PROTOENT_DATA" 31511 31512 31513 else 31514 echo "$as_me: failed program was:" >&5 31515 sed 's/^/| /' conftest.$ac_ext >&5 31516 31517 cat >conftest.$ac_ext <<_ACEOF 31518 /* confdefs.h. */ 31519 _ACEOF 31520 cat confdefs.h >>conftest.$ac_ext 31521 cat >>conftest.$ac_ext <<_ACEOF 31522 /* end confdefs.h. */ 31523 31524 #undef __USE_MISC 31525 #define __USE_MISC 31526 #include <netdb.h> 31527 int getprotoent_r (struct protoent *, struct protoent_data *prot_data); 31528 31529 31530 31531 int 31532 main () 31533 { 31534 return (0); 31535 31536 ; 31537 return 0; 31538 } 31539 _ACEOF 31540 rm -f conftest.$ac_objext 31541 if { (ac_try="$ac_compile" 31542 case "(($ac_try" in 31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31544 *) ac_try_echo=$ac_try;; 31545 esac 31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31547 (eval "$ac_compile") 2>conftest.er1 31548 ac_status=$? 31549 grep -v '^ *+' conftest.er1 >conftest.err 31550 rm -f conftest.er1 31551 cat conftest.err >&5 31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31553 (exit $ac_status); } && { 31554 test -z "$ac_c_werror_flag" || 31555 test ! -s conftest.err 31556 } && test -s conftest.$ac_objext; then 31557 31558 PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data" 31559 PROTO_R_BAD="#define PROTO_R_BAD (-1)" 31560 PROTO_R_COPY="#define PROTO_R_COPY prot_data" 31561 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr" 31562 PROTO_R_OK="#define PROTO_R_OK 0" 31563 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER" 31564 PROTO_R_RETURN="#define PROTO_R_RETURN int" 31565 PROTOENT_DATA="#define PROTOENT_DATA 1" 31566 31567 31568 else 31569 echo "$as_me: failed program was:" >&5 31570 sed 's/^/| /' conftest.$ac_ext >&5 31571 31572 31573 fi 31574 31575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31576 31577 fi 31578 31579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31580 31581 fi 31582 31583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31584 31585 else 31586 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen" 31587 PROTO_R_BAD="#define PROTO_R_BAD NULL" 31588 PROTO_R_COPY="#define PROTO_R_COPY buf, buflen" 31589 PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS" 31590 PROTO_R_OK="#define PROTO_R_OK pptr" 31591 PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER" 31592 PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *" 31593 PROTOENT_DATA="#undef PROTOENT_DATA" 31594 31595 fi 31596 31597 ;; 31598 esac 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 case $host in 31609 ia64-hp-hpux11.*) 31610 ;; 31611 *) 31612 { echo "$as_me:$LINENO: checking for endprotoent_r" >&5 31613 echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6; } 31614 if test "${ac_cv_func_endprotoent_r+set}" = set; then 31615 echo $ECHO_N "(cached) $ECHO_C" >&6 31616 else 31617 cat >conftest.$ac_ext <<_ACEOF 31618 /* confdefs.h. */ 31619 _ACEOF 31620 cat confdefs.h >>conftest.$ac_ext 31621 cat >>conftest.$ac_ext <<_ACEOF 31622 /* end confdefs.h. */ 31623 /* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r. 31624 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31625 #define endprotoent_r innocuous_endprotoent_r 31626 31627 /* System header to define __stub macros and hopefully few prototypes, 31628 which can conflict with char endprotoent_r (); below. 31629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31630 <limits.h> exists even on freestanding compilers. */ 31631 31632 #ifdef __STDC__ 31633 # include <limits.h> 31634 #else 31635 # include <assert.h> 31636 #endif 31637 31638 #undef endprotoent_r 31639 31640 /* Override any GCC internal prototype to avoid an error. 31641 Use char because int might match the return type of a GCC 31642 builtin and then its argument prototype would still apply. */ 31643 #ifdef __cplusplus 31644 extern "C" 31645 #endif 31646 char endprotoent_r (); 31647 /* The GNU C library defines this for functions which it implements 31648 to always fail with ENOSYS. Some functions are actually named 31649 something starting with __ and the normal name is an alias. */ 31650 #if defined __stub_endprotoent_r || defined __stub___endprotoent_r 31651 choke me 31652 #endif 31653 31654 int 31655 main () 31656 { 31657 return endprotoent_r (); 31658 ; 31659 return 0; 31660 } 31661 _ACEOF 31662 rm -f conftest.$ac_objext conftest$ac_exeext 31663 if { (ac_try="$ac_link" 31664 case "(($ac_try" in 31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31666 *) ac_try_echo=$ac_try;; 31667 esac 31668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31669 (eval "$ac_link") 2>conftest.er1 31670 ac_status=$? 31671 grep -v '^ *+' conftest.er1 >conftest.err 31672 rm -f conftest.er1 31673 cat conftest.err >&5 31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31675 (exit $ac_status); } && { 31676 test -z "$ac_c_werror_flag" || 31677 test ! -s conftest.err 31678 } && test -s conftest$ac_exeext && 31679 $as_test_x conftest$ac_exeext; then 31680 ac_cv_func_endprotoent_r=yes 31681 else 31682 echo "$as_me: failed program was:" >&5 31683 sed 's/^/| /' conftest.$ac_ext >&5 31684 31685 ac_cv_func_endprotoent_r=no 31686 fi 31687 31688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31689 conftest$ac_exeext conftest.$ac_ext 31690 fi 31691 { echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5 31692 echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6; } 31693 if test $ac_cv_func_endprotoent_r = yes; then 31694 cat >conftest.$ac_ext <<_ACEOF 31695 /* confdefs.h. */ 31696 _ACEOF 31697 cat confdefs.h >>conftest.$ac_ext 31698 cat >>conftest.$ac_ext <<_ACEOF 31699 /* end confdefs.h. */ 31700 31701 #undef _REENTRANT 31702 #define _REENTRANT 31703 #undef __USE_MISC 31704 #define __USE_MISC 31705 #include <netdb.h> 31706 void endprotoent_r(void); 31707 31708 31709 int 31710 main () 31711 { 31712 31713 ; 31714 return 0; 31715 } 31716 _ACEOF 31717 rm -f conftest.$ac_objext 31718 if { (ac_try="$ac_compile" 31719 case "(($ac_try" in 31720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31721 *) ac_try_echo=$ac_try;; 31722 esac 31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31724 (eval "$ac_compile") 2>conftest.er1 31725 ac_status=$? 31726 grep -v '^ *+' conftest.er1 >conftest.err 31727 rm -f conftest.er1 31728 cat conftest.err >&5 31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31730 (exit $ac_status); } && { 31731 test -z "$ac_c_werror_flag" || 31732 test ! -s conftest.err 31733 } && test -s conftest.$ac_objext; then 31734 31735 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/" 31736 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void" 31737 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS" 31738 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED" 31739 31740 31741 else 31742 echo "$as_me: failed program was:" >&5 31743 sed 's/^/| /' conftest.$ac_ext >&5 31744 31745 cat >conftest.$ac_ext <<_ACEOF 31746 /* confdefs.h. */ 31747 _ACEOF 31748 cat confdefs.h >>conftest.$ac_ext 31749 cat >>conftest.$ac_ext <<_ACEOF 31750 /* end confdefs.h. */ 31751 31752 #undef _REENTRANT 31753 #define _REENTRANT 31754 #undef __USE_MISC 31755 #define __USE_MISC 31756 #include <netdb.h> 31757 void endprotoent_r(struct protoent_data *); 31758 31759 31760 int 31761 main () 31762 { 31763 31764 ; 31765 return 0; 31766 } 31767 _ACEOF 31768 rm -f conftest.$ac_objext 31769 if { (ac_try="$ac_compile" 31770 case "(($ac_try" in 31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31772 *) ac_try_echo=$ac_try;; 31773 esac 31774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31775 (eval "$ac_compile") 2>conftest.er1 31776 ac_status=$? 31777 grep -v '^ *+' conftest.er1 >conftest.err 31778 rm -f conftest.er1 31779 cat conftest.err >&5 31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31781 (exit $ac_status); } && { 31782 test -z "$ac_c_werror_flag" || 31783 test ! -s conftest.err 31784 } && test -s conftest.$ac_objext; then 31785 31786 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/" 31787 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void" 31788 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data" 31789 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)" 31790 31791 31792 else 31793 echo "$as_me: failed program was:" >&5 31794 sed 's/^/| /' conftest.$ac_ext >&5 31795 31796 cat >conftest.$ac_ext <<_ACEOF 31797 /* confdefs.h. */ 31798 _ACEOF 31799 cat confdefs.h >>conftest.$ac_ext 31800 cat >>conftest.$ac_ext <<_ACEOF 31801 /* end confdefs.h. */ 31802 31803 #undef _REENTRANT 31804 #define _REENTRANT 31805 #undef __USE_MISC 31806 #define __USE_MISC 31807 #include <netdb.h> 31808 int endprotoent_r(struct protoent_data *); 31809 31810 31811 int 31812 main () 31813 { 31814 31815 ; 31816 return 0; 31817 } 31818 _ACEOF 31819 rm -f conftest.$ac_objext 31820 if { (ac_try="$ac_compile" 31821 case "(($ac_try" in 31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31823 *) ac_try_echo=$ac_try;; 31824 esac 31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31826 (eval "$ac_compile") 2>conftest.er1 31827 ac_status=$? 31828 grep -v '^ *+' conftest.er1 >conftest.err 31829 rm -f conftest.er1 31830 cat conftest.err >&5 31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31832 (exit $ac_status); } && { 31833 test -z "$ac_c_werror_flag" || 31834 test ! -s conftest.err 31835 } && test -s conftest.$ac_objext; then 31836 31837 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)" 31838 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int" 31839 PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data" 31840 PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)" 31841 31842 31843 else 31844 echo "$as_me: failed program was:" >&5 31845 sed 's/^/| /' conftest.$ac_ext >&5 31846 31847 31848 fi 31849 31850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31851 31852 fi 31853 31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31855 31856 fi 31857 31858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31859 31860 else 31861 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/" 31862 PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void" 31863 PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/" 31864 PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED" 31865 31866 fi 31867 31868 esac 31869 31870 31871 31872 31873 31874 case $host in 31875 ia64-hp-hpux11.*) 31876 ;; 31877 *) 31878 { echo "$as_me:$LINENO: checking for setprotoent_r" >&5 31879 echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6; } 31880 if test "${ac_cv_func_setprotoent_r+set}" = set; then 31881 echo $ECHO_N "(cached) $ECHO_C" >&6 31882 else 31883 cat >conftest.$ac_ext <<_ACEOF 31884 /* confdefs.h. */ 31885 _ACEOF 31886 cat confdefs.h >>conftest.$ac_ext 31887 cat >>conftest.$ac_ext <<_ACEOF 31888 /* end confdefs.h. */ 31889 /* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r. 31890 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31891 #define setprotoent_r innocuous_setprotoent_r 31892 31893 /* System header to define __stub macros and hopefully few prototypes, 31894 which can conflict with char setprotoent_r (); below. 31895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31896 <limits.h> exists even on freestanding compilers. */ 31897 31898 #ifdef __STDC__ 31899 # include <limits.h> 31900 #else 31901 # include <assert.h> 31902 #endif 31903 31904 #undef setprotoent_r 31905 31906 /* Override any GCC internal prototype to avoid an error. 31907 Use char because int might match the return type of a GCC 31908 builtin and then its argument prototype would still apply. */ 31909 #ifdef __cplusplus 31910 extern "C" 31911 #endif 31912 char setprotoent_r (); 31913 /* The GNU C library defines this for functions which it implements 31914 to always fail with ENOSYS. Some functions are actually named 31915 something starting with __ and the normal name is an alias. */ 31916 #if defined __stub_setprotoent_r || defined __stub___setprotoent_r 31917 choke me 31918 #endif 31919 31920 int 31921 main () 31922 { 31923 return setprotoent_r (); 31924 ; 31925 return 0; 31926 } 31927 _ACEOF 31928 rm -f conftest.$ac_objext conftest$ac_exeext 31929 if { (ac_try="$ac_link" 31930 case "(($ac_try" in 31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31932 *) ac_try_echo=$ac_try;; 31933 esac 31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31935 (eval "$ac_link") 2>conftest.er1 31936 ac_status=$? 31937 grep -v '^ *+' conftest.er1 >conftest.err 31938 rm -f conftest.er1 31939 cat conftest.err >&5 31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31941 (exit $ac_status); } && { 31942 test -z "$ac_c_werror_flag" || 31943 test ! -s conftest.err 31944 } && test -s conftest$ac_exeext && 31945 $as_test_x conftest$ac_exeext; then 31946 ac_cv_func_setprotoent_r=yes 31947 else 31948 echo "$as_me: failed program was:" >&5 31949 sed 's/^/| /' conftest.$ac_ext >&5 31950 31951 ac_cv_func_setprotoent_r=no 31952 fi 31953 31954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31955 conftest$ac_exeext conftest.$ac_ext 31956 fi 31957 { echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5 31958 echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6; } 31959 if test $ac_cv_func_setprotoent_r = yes; then 31960 cat >conftest.$ac_ext <<_ACEOF 31961 /* confdefs.h. */ 31962 _ACEOF 31963 cat confdefs.h >>conftest.$ac_ext 31964 cat >>conftest.$ac_ext <<_ACEOF 31965 /* end confdefs.h. */ 31966 31967 #undef _REENTRANT 31968 #define _REENTRANT 31969 #undef __USE_MISC 31970 #define __USE_MISC 31971 #include <netdb.h> 31972 void setprotoent_r __P((int)); 31973 31974 int 31975 main () 31976 { 31977 31978 ; 31979 return 0; 31980 } 31981 _ACEOF 31982 rm -f conftest.$ac_objext 31983 if { (ac_try="$ac_compile" 31984 case "(($ac_try" in 31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31986 *) ac_try_echo=$ac_try;; 31987 esac 31988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31989 (eval "$ac_compile") 2>conftest.er1 31990 ac_status=$? 31991 grep -v '^ *+' conftest.er1 >conftest.err 31992 rm -f conftest.er1 31993 cat conftest.err >&5 31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31995 (exit $ac_status); } && { 31996 test -z "$ac_c_werror_flag" || 31997 test ! -s conftest.err 31998 } && test -s conftest.$ac_objext; then 31999 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT" 32000 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void" 32001 32002 else 32003 echo "$as_me: failed program was:" >&5 32004 sed 's/^/| /' conftest.$ac_ext >&5 32005 32006 cat >conftest.$ac_ext <<_ACEOF 32007 /* confdefs.h. */ 32008 _ACEOF 32009 cat confdefs.h >>conftest.$ac_ext 32010 cat >>conftest.$ac_ext <<_ACEOF 32011 /* end confdefs.h. */ 32012 32013 #undef _REENTRANT 32014 #define _REENTRANT 32015 #undef __USE_MISC 32016 #define __USE_MISC 32017 #include <netdb.h> 32018 int setprotoent_r (int, struct protoent_data *); 32019 32020 int 32021 main () 32022 { 32023 32024 ; 32025 return 0; 32026 } 32027 _ACEOF 32028 rm -f conftest.$ac_objext 32029 if { (ac_try="$ac_compile" 32030 case "(($ac_try" in 32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32032 *) ac_try_echo=$ac_try;; 32033 esac 32034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32035 (eval "$ac_compile") 2>conftest.er1 32036 ac_status=$? 32037 grep -v '^ *+' conftest.er1 >conftest.err 32038 rm -f conftest.er1 32039 cat conftest.err >&5 32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32041 (exit $ac_status); } && { 32042 test -z "$ac_c_werror_flag" || 32043 test ! -s conftest.err 32044 } && test -s conftest.$ac_objext; then 32045 PROTO_R_SET_RESULT="#define PROTO_R_SET_RESULT (0)" 32046 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN int" 32047 32048 else 32049 echo "$as_me: failed program was:" >&5 32050 sed 's/^/| /' conftest.$ac_ext >&5 32051 32052 32053 fi 32054 32055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32056 32057 fi 32058 32059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32060 32061 else 32062 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT" 32063 PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void" 32064 32065 fi 32066 32067 esac 32068 32069 32070 32071 { echo "$as_me:$LINENO: checking for getpwent_r" >&5 32072 echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6; } 32073 if test "${ac_cv_func_getpwent_r+set}" = set; then 32074 echo $ECHO_N "(cached) $ECHO_C" >&6 32075 else 32076 cat >conftest.$ac_ext <<_ACEOF 32077 /* confdefs.h. */ 32078 _ACEOF 32079 cat confdefs.h >>conftest.$ac_ext 32080 cat >>conftest.$ac_ext <<_ACEOF 32081 /* end confdefs.h. */ 32082 /* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r. 32083 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32084 #define getpwent_r innocuous_getpwent_r 32085 32086 /* System header to define __stub macros and hopefully few prototypes, 32087 which can conflict with char getpwent_r (); below. 32088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32089 <limits.h> exists even on freestanding compilers. */ 32090 32091 #ifdef __STDC__ 32092 # include <limits.h> 32093 #else 32094 # include <assert.h> 32095 #endif 32096 32097 #undef getpwent_r 32098 32099 /* Override any GCC internal prototype to avoid an error. 32100 Use char because int might match the return type of a GCC 32101 builtin and then its argument prototype would still apply. */ 32102 #ifdef __cplusplus 32103 extern "C" 32104 #endif 32105 char getpwent_r (); 32106 /* The GNU C library defines this for functions which it implements 32107 to always fail with ENOSYS. Some functions are actually named 32108 something starting with __ and the normal name is an alias. */ 32109 #if defined __stub_getpwent_r || defined __stub___getpwent_r 32110 choke me 32111 #endif 32112 32113 int 32114 main () 32115 { 32116 return getpwent_r (); 32117 ; 32118 return 0; 32119 } 32120 _ACEOF 32121 rm -f conftest.$ac_objext conftest$ac_exeext 32122 if { (ac_try="$ac_link" 32123 case "(($ac_try" in 32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32125 *) ac_try_echo=$ac_try;; 32126 esac 32127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32128 (eval "$ac_link") 2>conftest.er1 32129 ac_status=$? 32130 grep -v '^ *+' conftest.er1 >conftest.err 32131 rm -f conftest.er1 32132 cat conftest.err >&5 32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32134 (exit $ac_status); } && { 32135 test -z "$ac_c_werror_flag" || 32136 test ! -s conftest.err 32137 } && test -s conftest$ac_exeext && 32138 $as_test_x conftest$ac_exeext; then 32139 ac_cv_func_getpwent_r=yes 32140 else 32141 echo "$as_me: failed program was:" >&5 32142 sed 's/^/| /' conftest.$ac_ext >&5 32143 32144 ac_cv_func_getpwent_r=no 32145 fi 32146 32147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32148 conftest$ac_exeext conftest.$ac_ext 32149 fi 32150 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5 32151 echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6; } 32152 if test $ac_cv_func_getpwent_r = yes; then 32153 cat >conftest.$ac_ext <<_ACEOF 32154 /* confdefs.h. */ 32155 _ACEOF 32156 cat confdefs.h >>conftest.$ac_ext 32157 cat >>conftest.$ac_ext <<_ACEOF 32158 /* end confdefs.h. */ 32159 32160 #include <sys/types.h> 32161 #include <pwd.h> 32162 struct passwd * 32163 getpwent_r(struct passwd *pwptr, char *buf, int buflen) {} 32164 32165 32166 int 32167 main () 32168 { 32169 32170 32171 ; 32172 return 0; 32173 } 32174 _ACEOF 32175 rm -f conftest.$ac_objext 32176 if { (ac_try="$ac_compile" 32177 case "(($ac_try" in 32178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32179 *) ac_try_echo=$ac_try;; 32180 esac 32181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32182 (eval "$ac_compile") 2>conftest.er1 32183 ac_status=$? 32184 grep -v '^ *+' conftest.er1 >conftest.err 32185 rm -f conftest.er1 32186 cat conftest.err >&5 32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32188 (exit $ac_status); } && { 32189 test -z "$ac_c_werror_flag" || 32190 test ! -s conftest.err 32191 } && test -s conftest.$ac_objext; then 32192 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen" 32193 PASS_R_BAD="#define PASS_R_BAD NULL" 32194 PASS_R_COPY="#define PASS_R_COPY buf, buflen" 32195 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS" 32196 PASS_R_OK="#define PASS_R_OK pwptr" 32197 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *" 32198 32199 else 32200 echo "$as_me: failed program was:" >&5 32201 sed 's/^/| /' conftest.$ac_ext >&5 32202 32203 32204 fi 32205 32206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32207 32208 else 32209 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen" 32210 PASS_R_BAD="#define PASS_R_BAD NULL" 32211 PASS_R_COPY="#define PASS_R_COPY buf, buflen" 32212 PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS" 32213 PASS_R_OK="#define PASS_R_OK pwptr" 32214 PASS_R_RETURN="#define PASS_R_RETURN struct passwd *" 32215 cat >>confdefs.h <<\_ACEOF 32216 #define NEED_GETPWENT_R 1 32217 _ACEOF 32218 32219 32220 fi 32221 32222 32223 32224 32225 32226 32227 32228 32229 { echo "$as_me:$LINENO: checking for endpwent_r" >&5 32230 echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6; } 32231 if test "${ac_cv_func_endpwent_r+set}" = set; then 32232 echo $ECHO_N "(cached) $ECHO_C" >&6 32233 else 32234 cat >conftest.$ac_ext <<_ACEOF 32235 /* confdefs.h. */ 32236 _ACEOF 32237 cat confdefs.h >>conftest.$ac_ext 32238 cat >>conftest.$ac_ext <<_ACEOF 32239 /* end confdefs.h. */ 32240 /* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r. 32241 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32242 #define endpwent_r innocuous_endpwent_r 32243 32244 /* System header to define __stub macros and hopefully few prototypes, 32245 which can conflict with char endpwent_r (); below. 32246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32247 <limits.h> exists even on freestanding compilers. */ 32248 32249 #ifdef __STDC__ 32250 # include <limits.h> 32251 #else 32252 # include <assert.h> 32253 #endif 32254 32255 #undef endpwent_r 32256 32257 /* Override any GCC internal prototype to avoid an error. 32258 Use char because int might match the return type of a GCC 32259 builtin and then its argument prototype would still apply. */ 32260 #ifdef __cplusplus 32261 extern "C" 32262 #endif 32263 char endpwent_r (); 32264 /* The GNU C library defines this for functions which it implements 32265 to always fail with ENOSYS. Some functions are actually named 32266 something starting with __ and the normal name is an alias. */ 32267 #if defined __stub_endpwent_r || defined __stub___endpwent_r 32268 choke me 32269 #endif 32270 32271 int 32272 main () 32273 { 32274 return endpwent_r (); 32275 ; 32276 return 0; 32277 } 32278 _ACEOF 32279 rm -f conftest.$ac_objext conftest$ac_exeext 32280 if { (ac_try="$ac_link" 32281 case "(($ac_try" in 32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32283 *) ac_try_echo=$ac_try;; 32284 esac 32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32286 (eval "$ac_link") 2>conftest.er1 32287 ac_status=$? 32288 grep -v '^ *+' conftest.er1 >conftest.err 32289 rm -f conftest.er1 32290 cat conftest.err >&5 32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32292 (exit $ac_status); } && { 32293 test -z "$ac_c_werror_flag" || 32294 test ! -s conftest.err 32295 } && test -s conftest$ac_exeext && 32296 $as_test_x conftest$ac_exeext; then 32297 ac_cv_func_endpwent_r=yes 32298 else 32299 echo "$as_me: failed program was:" >&5 32300 sed 's/^/| /' conftest.$ac_ext >&5 32301 32302 ac_cv_func_endpwent_r=no 32303 fi 32304 32305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32306 conftest$ac_exeext conftest.$ac_ext 32307 fi 32308 { echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5 32309 echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6; } 32310 if test $ac_cv_func_endpwent_r = yes; then 32311 cat >conftest.$ac_ext <<_ACEOF 32312 /* confdefs.h. */ 32313 _ACEOF 32314 cat confdefs.h >>conftest.$ac_ext 32315 cat >>conftest.$ac_ext <<_ACEOF 32316 /* end confdefs.h. */ 32317 32318 #include <pwd.h> 32319 void endpwent_r(FILE **pwfp); 32320 32321 int 32322 main () 32323 { 32324 32325 ; 32326 return 0; 32327 } 32328 _ACEOF 32329 rm -f conftest.$ac_objext 32330 if { (ac_try="$ac_compile" 32331 case "(($ac_try" in 32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32333 *) ac_try_echo=$ac_try;; 32334 esac 32335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32336 (eval "$ac_compile") 2>conftest.er1 32337 ac_status=$? 32338 grep -v '^ *+' conftest.er1 >conftest.err 32339 rm -f conftest.er1 32340 cat conftest.err >&5 32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32342 (exit $ac_status); } && { 32343 test -z "$ac_c_werror_flag" || 32344 test ! -s conftest.err 32345 } && test -s conftest.$ac_objext; then 32346 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/" 32347 PASS_R_END_RETURN="#define PASS_R_END_RETURN void" 32348 PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr" 32349 32350 else 32351 echo "$as_me: failed program was:" >&5 32352 sed 's/^/| /' conftest.$ac_ext >&5 32353 32354 32355 fi 32356 32357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32358 32359 else 32360 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/" 32361 PASS_R_END_RETURN="#define PASS_R_END_RETURN void" 32362 PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS" 32363 cat >>confdefs.h <<\_ACEOF 32364 #define NEED_ENDPWENT_R 1 32365 _ACEOF 32366 32367 32368 fi 32369 32370 32371 32372 32373 { echo "$as_me:$LINENO: checking for setpassent_r" >&5 32374 echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6; } 32375 if test "${ac_cv_func_setpassent_r+set}" = set; then 32376 echo $ECHO_N "(cached) $ECHO_C" >&6 32377 else 32378 cat >conftest.$ac_ext <<_ACEOF 32379 /* confdefs.h. */ 32380 _ACEOF 32381 cat confdefs.h >>conftest.$ac_ext 32382 cat >>conftest.$ac_ext <<_ACEOF 32383 /* end confdefs.h. */ 32384 /* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r. 32385 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32386 #define setpassent_r innocuous_setpassent_r 32387 32388 /* System header to define __stub macros and hopefully few prototypes, 32389 which can conflict with char setpassent_r (); below. 32390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32391 <limits.h> exists even on freestanding compilers. */ 32392 32393 #ifdef __STDC__ 32394 # include <limits.h> 32395 #else 32396 # include <assert.h> 32397 #endif 32398 32399 #undef setpassent_r 32400 32401 /* Override any GCC internal prototype to avoid an error. 32402 Use char because int might match the return type of a GCC 32403 builtin and then its argument prototype would still apply. */ 32404 #ifdef __cplusplus 32405 extern "C" 32406 #endif 32407 char setpassent_r (); 32408 /* The GNU C library defines this for functions which it implements 32409 to always fail with ENOSYS. Some functions are actually named 32410 something starting with __ and the normal name is an alias. */ 32411 #if defined __stub_setpassent_r || defined __stub___setpassent_r 32412 choke me 32413 #endif 32414 32415 int 32416 main () 32417 { 32418 return setpassent_r (); 32419 ; 32420 return 0; 32421 } 32422 _ACEOF 32423 rm -f conftest.$ac_objext conftest$ac_exeext 32424 if { (ac_try="$ac_link" 32425 case "(($ac_try" in 32426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32427 *) ac_try_echo=$ac_try;; 32428 esac 32429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32430 (eval "$ac_link") 2>conftest.er1 32431 ac_status=$? 32432 grep -v '^ *+' conftest.er1 >conftest.err 32433 rm -f conftest.er1 32434 cat conftest.err >&5 32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32436 (exit $ac_status); } && { 32437 test -z "$ac_c_werror_flag" || 32438 test ! -s conftest.err 32439 } && test -s conftest$ac_exeext && 32440 $as_test_x conftest$ac_exeext; then 32441 ac_cv_func_setpassent_r=yes 32442 else 32443 echo "$as_me: failed program was:" >&5 32444 sed 's/^/| /' conftest.$ac_ext >&5 32445 32446 ac_cv_func_setpassent_r=no 32447 fi 32448 32449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32450 conftest$ac_exeext conftest.$ac_ext 32451 fi 32452 { echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5 32453 echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6; } 32454 if test $ac_cv_func_setpassent_r = yes; then 32455 : 32456 else 32457 cat >>confdefs.h <<\_ACEOF 32458 #define NEED_SETPASSENT_R 1 32459 _ACEOF 32460 32461 fi 32462 32463 { echo "$as_me:$LINENO: checking for setpassent" >&5 32464 echo $ECHO_N "checking for setpassent... $ECHO_C" >&6; } 32465 if test "${ac_cv_func_setpassent+set}" = set; then 32466 echo $ECHO_N "(cached) $ECHO_C" >&6 32467 else 32468 cat >conftest.$ac_ext <<_ACEOF 32469 /* confdefs.h. */ 32470 _ACEOF 32471 cat confdefs.h >>conftest.$ac_ext 32472 cat >>conftest.$ac_ext <<_ACEOF 32473 /* end confdefs.h. */ 32474 /* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent. 32475 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32476 #define setpassent innocuous_setpassent 32477 32478 /* System header to define __stub macros and hopefully few prototypes, 32479 which can conflict with char setpassent (); below. 32480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32481 <limits.h> exists even on freestanding compilers. */ 32482 32483 #ifdef __STDC__ 32484 # include <limits.h> 32485 #else 32486 # include <assert.h> 32487 #endif 32488 32489 #undef setpassent 32490 32491 /* Override any GCC internal prototype to avoid an error. 32492 Use char because int might match the return type of a GCC 32493 builtin and then its argument prototype would still apply. */ 32494 #ifdef __cplusplus 32495 extern "C" 32496 #endif 32497 char setpassent (); 32498 /* The GNU C library defines this for functions which it implements 32499 to always fail with ENOSYS. Some functions are actually named 32500 something starting with __ and the normal name is an alias. */ 32501 #if defined __stub_setpassent || defined __stub___setpassent 32502 choke me 32503 #endif 32504 32505 int 32506 main () 32507 { 32508 return setpassent (); 32509 ; 32510 return 0; 32511 } 32512 _ACEOF 32513 rm -f conftest.$ac_objext conftest$ac_exeext 32514 if { (ac_try="$ac_link" 32515 case "(($ac_try" in 32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32517 *) ac_try_echo=$ac_try;; 32518 esac 32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32520 (eval "$ac_link") 2>conftest.er1 32521 ac_status=$? 32522 grep -v '^ *+' conftest.er1 >conftest.err 32523 rm -f conftest.er1 32524 cat conftest.err >&5 32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32526 (exit $ac_status); } && { 32527 test -z "$ac_c_werror_flag" || 32528 test ! -s conftest.err 32529 } && test -s conftest$ac_exeext && 32530 $as_test_x conftest$ac_exeext; then 32531 ac_cv_func_setpassent=yes 32532 else 32533 echo "$as_me: failed program was:" >&5 32534 sed 's/^/| /' conftest.$ac_ext >&5 32535 32536 ac_cv_func_setpassent=no 32537 fi 32538 32539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32540 conftest$ac_exeext conftest.$ac_ext 32541 fi 32542 { echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5 32543 echo "${ECHO_T}$ac_cv_func_setpassent" >&6; } 32544 if test $ac_cv_func_setpassent = yes; then 32545 : 32546 else 32547 cat >>confdefs.h <<\_ACEOF 32548 #define NEED_SETPASSENT 1 32549 _ACEOF 32550 32551 fi 32552 32553 32554 { echo "$as_me:$LINENO: checking for setpwent_r" >&5 32555 echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6; } 32556 if test "${ac_cv_func_setpwent_r+set}" = set; then 32557 echo $ECHO_N "(cached) $ECHO_C" >&6 32558 else 32559 cat >conftest.$ac_ext <<_ACEOF 32560 /* confdefs.h. */ 32561 _ACEOF 32562 cat confdefs.h >>conftest.$ac_ext 32563 cat >>conftest.$ac_ext <<_ACEOF 32564 /* end confdefs.h. */ 32565 /* Define setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r. 32566 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32567 #define setpwent_r innocuous_setpwent_r 32568 32569 /* System header to define __stub macros and hopefully few prototypes, 32570 which can conflict with char setpwent_r (); below. 32571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32572 <limits.h> exists even on freestanding compilers. */ 32573 32574 #ifdef __STDC__ 32575 # include <limits.h> 32576 #else 32577 # include <assert.h> 32578 #endif 32579 32580 #undef setpwent_r 32581 32582 /* Override any GCC internal prototype to avoid an error. 32583 Use char because int might match the return type of a GCC 32584 builtin and then its argument prototype would still apply. */ 32585 #ifdef __cplusplus 32586 extern "C" 32587 #endif 32588 char setpwent_r (); 32589 /* The GNU C library defines this for functions which it implements 32590 to always fail with ENOSYS. Some functions are actually named 32591 something starting with __ and the normal name is an alias. */ 32592 #if defined __stub_setpwent_r || defined __stub___setpwent_r 32593 choke me 32594 #endif 32595 32596 int 32597 main () 32598 { 32599 return setpwent_r (); 32600 ; 32601 return 0; 32602 } 32603 _ACEOF 32604 rm -f conftest.$ac_objext conftest$ac_exeext 32605 if { (ac_try="$ac_link" 32606 case "(($ac_try" in 32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32608 *) ac_try_echo=$ac_try;; 32609 esac 32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32611 (eval "$ac_link") 2>conftest.er1 32612 ac_status=$? 32613 grep -v '^ *+' conftest.er1 >conftest.err 32614 rm -f conftest.er1 32615 cat conftest.err >&5 32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32617 (exit $ac_status); } && { 32618 test -z "$ac_c_werror_flag" || 32619 test ! -s conftest.err 32620 } && test -s conftest$ac_exeext && 32621 $as_test_x conftest$ac_exeext; then 32622 ac_cv_func_setpwent_r=yes 32623 else 32624 echo "$as_me: failed program was:" >&5 32625 sed 's/^/| /' conftest.$ac_ext >&5 32626 32627 ac_cv_func_setpwent_r=no 32628 fi 32629 32630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32631 conftest$ac_exeext conftest.$ac_ext 32632 fi 32633 { echo "$as_me:$LINENO: result: $ac_cv_func_setpwent_r" >&5 32634 echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6; } 32635 if test $ac_cv_func_setpwent_r = yes; then 32636 cat >conftest.$ac_ext <<_ACEOF 32637 /* confdefs.h. */ 32638 _ACEOF 32639 cat confdefs.h >>conftest.$ac_ext 32640 cat >>conftest.$ac_ext <<_ACEOF 32641 /* end confdefs.h. */ 32642 32643 #include <pwd.h> 32644 void setpwent_r(FILE **pwfp); 32645 32646 int 32647 main () 32648 { 32649 32650 ; 32651 return 0; 32652 } 32653 _ACEOF 32654 rm -f conftest.$ac_objext 32655 if { (ac_try="$ac_compile" 32656 case "(($ac_try" in 32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32658 *) ac_try_echo=$ac_try;; 32659 esac 32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32661 (eval "$ac_compile") 2>conftest.er1 32662 ac_status=$? 32663 grep -v '^ *+' conftest.er1 >conftest.err 32664 rm -f conftest.er1 32665 cat conftest.err >&5 32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32667 (exit $ac_status); } && { 32668 test -z "$ac_c_werror_flag" || 32669 test ! -s conftest.err 32670 } && test -s conftest.$ac_objext; then 32671 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */" 32672 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int" 32673 32674 else 32675 echo "$as_me: failed program was:" >&5 32676 sed 's/^/| /' conftest.$ac_ext >&5 32677 32678 cat >conftest.$ac_ext <<_ACEOF 32679 /* confdefs.h. */ 32680 _ACEOF 32681 cat confdefs.h >>conftest.$ac_ext 32682 cat >>conftest.$ac_ext <<_ACEOF 32683 /* end confdefs.h. */ 32684 32685 #include <pwd.h> 32686 int setpwent_r(FILE **pwfp); 32687 32688 int 32689 main () 32690 { 32691 32692 ; 32693 return 0; 32694 } 32695 _ACEOF 32696 rm -f conftest.$ac_objext 32697 if { (ac_try="$ac_compile" 32698 case "(($ac_try" in 32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32700 *) ac_try_echo=$ac_try;; 32701 esac 32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32703 (eval "$ac_compile") 2>conftest.er1 32704 ac_status=$? 32705 grep -v '^ *+' conftest.er1 >conftest.err 32706 rm -f conftest.er1 32707 cat conftest.err >&5 32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32709 (exit $ac_status); } && { 32710 test -z "$ac_c_werror_flag" || 32711 test ! -s conftest.err 32712 } && test -s conftest.$ac_objext; then 32713 PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0" 32714 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int" 32715 32716 else 32717 echo "$as_me: failed program was:" >&5 32718 sed 's/^/| /' conftest.$ac_ext >&5 32719 32720 32721 fi 32722 32723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32724 32725 fi 32726 32727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32728 32729 else 32730 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/" 32731 PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void" 32732 cat >>confdefs.h <<\_ACEOF 32733 #define NEED_SETPWENT_R 1 32734 _ACEOF 32735 32736 32737 fi 32738 32739 32740 32741 32742 { echo "$as_me:$LINENO: checking for getpwnam_r" >&5 32743 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; } 32744 if test "${ac_cv_func_getpwnam_r+set}" = set; then 32745 echo $ECHO_N "(cached) $ECHO_C" >&6 32746 else 32747 cat >conftest.$ac_ext <<_ACEOF 32748 /* confdefs.h. */ 32749 _ACEOF 32750 cat confdefs.h >>conftest.$ac_ext 32751 cat >>conftest.$ac_ext <<_ACEOF 32752 /* end confdefs.h. */ 32753 /* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r. 32754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32755 #define getpwnam_r innocuous_getpwnam_r 32756 32757 /* System header to define __stub macros and hopefully few prototypes, 32758 which can conflict with char getpwnam_r (); below. 32759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32760 <limits.h> exists even on freestanding compilers. */ 32761 32762 #ifdef __STDC__ 32763 # include <limits.h> 32764 #else 32765 # include <assert.h> 32766 #endif 32767 32768 #undef getpwnam_r 32769 32770 /* Override any GCC internal prototype to avoid an error. 32771 Use char because int might match the return type of a GCC 32772 builtin and then its argument prototype would still apply. */ 32773 #ifdef __cplusplus 32774 extern "C" 32775 #endif 32776 char getpwnam_r (); 32777 /* The GNU C library defines this for functions which it implements 32778 to always fail with ENOSYS. Some functions are actually named 32779 something starting with __ and the normal name is an alias. */ 32780 #if defined __stub_getpwnam_r || defined __stub___getpwnam_r 32781 choke me 32782 #endif 32783 32784 int 32785 main () 32786 { 32787 return getpwnam_r (); 32788 ; 32789 return 0; 32790 } 32791 _ACEOF 32792 rm -f conftest.$ac_objext conftest$ac_exeext 32793 if { (ac_try="$ac_link" 32794 case "(($ac_try" in 32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32796 *) ac_try_echo=$ac_try;; 32797 esac 32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32799 (eval "$ac_link") 2>conftest.er1 32800 ac_status=$? 32801 grep -v '^ *+' conftest.er1 >conftest.err 32802 rm -f conftest.er1 32803 cat conftest.err >&5 32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32805 (exit $ac_status); } && { 32806 test -z "$ac_c_werror_flag" || 32807 test ! -s conftest.err 32808 } && test -s conftest$ac_exeext && 32809 $as_test_x conftest$ac_exeext; then 32810 ac_cv_func_getpwnam_r=yes 32811 else 32812 echo "$as_me: failed program was:" >&5 32813 sed 's/^/| /' conftest.$ac_ext >&5 32814 32815 ac_cv_func_getpwnam_r=no 32816 fi 32817 32818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32819 conftest$ac_exeext conftest.$ac_ext 32820 fi 32821 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5 32822 echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6; } 32823 if test $ac_cv_func_getpwnam_r = yes; then 32824 : 32825 else 32826 cat >>confdefs.h <<\_ACEOF 32827 #define NEED_GETPWNAM_R 1 32828 _ACEOF 32829 32830 fi 32831 32832 { echo "$as_me:$LINENO: checking for getpwuid_r" >&5 32833 echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6; } 32834 if test "${ac_cv_func_getpwuid_r+set}" = set; then 32835 echo $ECHO_N "(cached) $ECHO_C" >&6 32836 else 32837 cat >conftest.$ac_ext <<_ACEOF 32838 /* confdefs.h. */ 32839 _ACEOF 32840 cat confdefs.h >>conftest.$ac_ext 32841 cat >>conftest.$ac_ext <<_ACEOF 32842 /* end confdefs.h. */ 32843 /* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r. 32844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32845 #define getpwuid_r innocuous_getpwuid_r 32846 32847 /* System header to define __stub macros and hopefully few prototypes, 32848 which can conflict with char getpwuid_r (); below. 32849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32850 <limits.h> exists even on freestanding compilers. */ 32851 32852 #ifdef __STDC__ 32853 # include <limits.h> 32854 #else 32855 # include <assert.h> 32856 #endif 32857 32858 #undef getpwuid_r 32859 32860 /* Override any GCC internal prototype to avoid an error. 32861 Use char because int might match the return type of a GCC 32862 builtin and then its argument prototype would still apply. */ 32863 #ifdef __cplusplus 32864 extern "C" 32865 #endif 32866 char getpwuid_r (); 32867 /* The GNU C library defines this for functions which it implements 32868 to always fail with ENOSYS. Some functions are actually named 32869 something starting with __ and the normal name is an alias. */ 32870 #if defined __stub_getpwuid_r || defined __stub___getpwuid_r 32871 choke me 32872 #endif 32873 32874 int 32875 main () 32876 { 32877 return getpwuid_r (); 32878 ; 32879 return 0; 32880 } 32881 _ACEOF 32882 rm -f conftest.$ac_objext conftest$ac_exeext 32883 if { (ac_try="$ac_link" 32884 case "(($ac_try" in 32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32886 *) ac_try_echo=$ac_try;; 32887 esac 32888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32889 (eval "$ac_link") 2>conftest.er1 32890 ac_status=$? 32891 grep -v '^ *+' conftest.er1 >conftest.err 32892 rm -f conftest.er1 32893 cat conftest.err >&5 32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32895 (exit $ac_status); } && { 32896 test -z "$ac_c_werror_flag" || 32897 test ! -s conftest.err 32898 } && test -s conftest$ac_exeext && 32899 $as_test_x conftest$ac_exeext; then 32900 ac_cv_func_getpwuid_r=yes 32901 else 32902 echo "$as_me: failed program was:" >&5 32903 sed 's/^/| /' conftest.$ac_ext >&5 32904 32905 ac_cv_func_getpwuid_r=no 32906 fi 32907 32908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32909 conftest$ac_exeext conftest.$ac_ext 32910 fi 32911 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5 32912 echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6; } 32913 if test $ac_cv_func_getpwuid_r = yes; then 32914 : 32915 else 32916 cat >>confdefs.h <<\_ACEOF 32917 #define NEED_GETPWUID_R 1 32918 _ACEOF 32919 32920 fi 32921 32922 32923 case $host in 32924 ia64-hp-hpux11.*) 32925 ;; 32926 *) 32927 { echo "$as_me:$LINENO: checking for getservent_r" >&5 32928 echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6; } 32929 if test "${ac_cv_func_getservent_r+set}" = set; then 32930 echo $ECHO_N "(cached) $ECHO_C" >&6 32931 else 32932 cat >conftest.$ac_ext <<_ACEOF 32933 /* confdefs.h. */ 32934 _ACEOF 32935 cat confdefs.h >>conftest.$ac_ext 32936 cat >>conftest.$ac_ext <<_ACEOF 32937 /* end confdefs.h. */ 32938 /* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r. 32939 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32940 #define getservent_r innocuous_getservent_r 32941 32942 /* System header to define __stub macros and hopefully few prototypes, 32943 which can conflict with char getservent_r (); below. 32944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32945 <limits.h> exists even on freestanding compilers. */ 32946 32947 #ifdef __STDC__ 32948 # include <limits.h> 32949 #else 32950 # include <assert.h> 32951 #endif 32952 32953 #undef getservent_r 32954 32955 /* Override any GCC internal prototype to avoid an error. 32956 Use char because int might match the return type of a GCC 32957 builtin and then its argument prototype would still apply. */ 32958 #ifdef __cplusplus 32959 extern "C" 32960 #endif 32961 char getservent_r (); 32962 /* The GNU C library defines this for functions which it implements 32963 to always fail with ENOSYS. Some functions are actually named 32964 something starting with __ and the normal name is an alias. */ 32965 #if defined __stub_getservent_r || defined __stub___getservent_r 32966 choke me 32967 #endif 32968 32969 int 32970 main () 32971 { 32972 return getservent_r (); 32973 ; 32974 return 0; 32975 } 32976 _ACEOF 32977 rm -f conftest.$ac_objext conftest$ac_exeext 32978 if { (ac_try="$ac_link" 32979 case "(($ac_try" in 32980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32981 *) ac_try_echo=$ac_try;; 32982 esac 32983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32984 (eval "$ac_link") 2>conftest.er1 32985 ac_status=$? 32986 grep -v '^ *+' conftest.er1 >conftest.err 32987 rm -f conftest.er1 32988 cat conftest.err >&5 32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32990 (exit $ac_status); } && { 32991 test -z "$ac_c_werror_flag" || 32992 test ! -s conftest.err 32993 } && test -s conftest$ac_exeext && 32994 $as_test_x conftest$ac_exeext; then 32995 ac_cv_func_getservent_r=yes 32996 else 32997 echo "$as_me: failed program was:" >&5 32998 sed 's/^/| /' conftest.$ac_ext >&5 32999 33000 ac_cv_func_getservent_r=no 33001 fi 33002 33003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33004 conftest$ac_exeext conftest.$ac_ext 33005 fi 33006 { echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5 33007 echo "${ECHO_T}$ac_cv_func_getservent_r" >&6; } 33008 if test $ac_cv_func_getservent_r = yes; then 33009 cat >conftest.$ac_ext <<_ACEOF 33010 /* confdefs.h. */ 33011 _ACEOF 33012 cat confdefs.h >>conftest.$ac_ext 33013 cat >>conftest.$ac_ext <<_ACEOF 33014 /* end confdefs.h. */ 33015 33016 #undef __USE_MISC 33017 #define __USE_MISC 33018 #include <netdb.h> 33019 struct servent * 33020 getservent_r(struct servent *result, char *buffer, int buflen) {} 33021 33022 int 33023 main () 33024 { 33025 return (0); 33026 ; 33027 return 0; 33028 } 33029 _ACEOF 33030 rm -f conftest.$ac_objext 33031 if { (ac_try="$ac_compile" 33032 case "(($ac_try" in 33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33034 *) ac_try_echo=$ac_try;; 33035 esac 33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33037 (eval "$ac_compile") 2>conftest.er1 33038 ac_status=$? 33039 grep -v '^ *+' conftest.er1 >conftest.err 33040 rm -f conftest.er1 33041 cat conftest.err >&5 33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33043 (exit $ac_status); } && { 33044 test -z "$ac_c_werror_flag" || 33045 test ! -s conftest.err 33046 } && test -s conftest.$ac_objext; then 33047 33048 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen" 33049 SERV_R_BAD="#define SERV_R_BAD NULL" 33050 SERV_R_COPY="#define SERV_R_COPY buf, buflen" 33051 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS" 33052 SERV_R_OK="#define SERV_R_OK sptr" 33053 SERV_R_SETANSWER="#undef SERV_R_SETANSWER" 33054 SERV_R_RETURN="#define SERV_R_RETURN struct servent *" 33055 33056 33057 else 33058 echo "$as_me: failed program was:" >&5 33059 sed 's/^/| /' conftest.$ac_ext >&5 33060 33061 cat >conftest.$ac_ext <<_ACEOF 33062 /* confdefs.h. */ 33063 _ACEOF 33064 cat confdefs.h >>conftest.$ac_ext 33065 cat >>conftest.$ac_ext <<_ACEOF 33066 /* end confdefs.h. */ 33067 33068 #undef __USE_MISC 33069 #define __USE_MISC 33070 #include <netdb.h> 33071 int 33072 getservent_r (struct servent *, char *, size_t, struct servent **); 33073 33074 int 33075 main () 33076 { 33077 return (0); 33078 ; 33079 return 0; 33080 } 33081 _ACEOF 33082 rm -f conftest.$ac_objext 33083 if { (ac_try="$ac_compile" 33084 case "(($ac_try" in 33085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33086 *) ac_try_echo=$ac_try;; 33087 esac 33088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33089 (eval "$ac_compile") 2>conftest.er1 33090 ac_status=$? 33091 grep -v '^ *+' conftest.er1 >conftest.err 33092 rm -f conftest.er1 33093 cat conftest.err >&5 33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33095 (exit $ac_status); } && { 33096 test -z "$ac_c_werror_flag" || 33097 test ! -s conftest.err 33098 } && test -s conftest.$ac_objext; then 33099 33100 SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp" 33101 SERV_R_BAD="#define SERV_R_BAD ERANGE" 33102 SERV_R_COPY="#define SERV_R_COPY buf, buflen" 33103 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen" 33104 SERV_R_OK="#define SERV_R_OK (0)" 33105 SERV_R_SETANSWER="#define SERV_R_SETANSWER 1" 33106 SERV_R_RETURN="#define SERV_R_RETURN int" 33107 33108 33109 else 33110 echo "$as_me: failed program was:" >&5 33111 sed 's/^/| /' conftest.$ac_ext >&5 33112 33113 cat >conftest.$ac_ext <<_ACEOF 33114 /* confdefs.h. */ 33115 _ACEOF 33116 cat confdefs.h >>conftest.$ac_ext 33117 cat >>conftest.$ac_ext <<_ACEOF 33118 /* end confdefs.h. */ 33119 33120 #undef __USE_MISC 33121 #define __USE_MISC 33122 #include <netdb.h> 33123 int 33124 getservent_r (struct servent *, struct servent_data *serv_data); 33125 33126 int 33127 main () 33128 { 33129 return (0); 33130 ; 33131 return 0; 33132 } 33133 _ACEOF 33134 rm -f conftest.$ac_objext 33135 if { (ac_try="$ac_compile" 33136 case "(($ac_try" in 33137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33138 *) ac_try_echo=$ac_try;; 33139 esac 33140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33141 (eval "$ac_compile") 2>conftest.er1 33142 ac_status=$? 33143 grep -v '^ *+' conftest.er1 >conftest.err 33144 rm -f conftest.er1 33145 cat conftest.err >&5 33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33147 (exit $ac_status); } && { 33148 test -z "$ac_c_werror_flag" || 33149 test ! -s conftest.err 33150 } && test -s conftest.$ac_objext; then 33151 33152 SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data" 33153 SERV_R_BAD="#define SERV_R_BAD (-1)" 33154 SERV_R_COPY="#define SERV_R_COPY serv_data" 33155 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr" 33156 SERV_R_OK="#define SERV_R_OK (0)" 33157 SERV_R_SETANSWER="#undef SERV_R_SETANSWER" 33158 SERV_R_RETURN="#define SERV_R_RETURN int" 33159 SERVENT_DATA="#define SERVENT_DATA 1" 33160 33161 33162 else 33163 echo "$as_me: failed program was:" >&5 33164 sed 's/^/| /' conftest.$ac_ext >&5 33165 33166 33167 fi 33168 33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33170 33171 fi 33172 33173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33174 33175 fi 33176 33177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33178 33179 else 33180 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen" 33181 SERV_R_BAD="#define SERV_R_BAD NULL" 33182 SERV_R_COPY="#define SERV_R_COPY buf, buflen" 33183 SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS" 33184 SERV_R_OK="#define SERV_R_OK sptr" 33185 SERV_R_SETANSWER="#undef SERV_R_SETANSWER" 33186 SERV_R_RETURN="#define SERV_R_RETURN struct servent *" 33187 33188 fi 33189 33190 esac 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 case $host in 33201 ia64-hp-hpux11.*) 33202 ;; 33203 *) 33204 { echo "$as_me:$LINENO: checking for endservent_r" >&5 33205 echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6; } 33206 if test "${ac_cv_func_endservent_r+set}" = set; then 33207 echo $ECHO_N "(cached) $ECHO_C" >&6 33208 else 33209 cat >conftest.$ac_ext <<_ACEOF 33210 /* confdefs.h. */ 33211 _ACEOF 33212 cat confdefs.h >>conftest.$ac_ext 33213 cat >>conftest.$ac_ext <<_ACEOF 33214 /* end confdefs.h. */ 33215 /* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r. 33216 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33217 #define endservent_r innocuous_endservent_r 33218 33219 /* System header to define __stub macros and hopefully few prototypes, 33220 which can conflict with char endservent_r (); below. 33221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33222 <limits.h> exists even on freestanding compilers. */ 33223 33224 #ifdef __STDC__ 33225 # include <limits.h> 33226 #else 33227 # include <assert.h> 33228 #endif 33229 33230 #undef endservent_r 33231 33232 /* Override any GCC internal prototype to avoid an error. 33233 Use char because int might match the return type of a GCC 33234 builtin and then its argument prototype would still apply. */ 33235 #ifdef __cplusplus 33236 extern "C" 33237 #endif 33238 char endservent_r (); 33239 /* The GNU C library defines this for functions which it implements 33240 to always fail with ENOSYS. Some functions are actually named 33241 something starting with __ and the normal name is an alias. */ 33242 #if defined __stub_endservent_r || defined __stub___endservent_r 33243 choke me 33244 #endif 33245 33246 int 33247 main () 33248 { 33249 return endservent_r (); 33250 ; 33251 return 0; 33252 } 33253 _ACEOF 33254 rm -f conftest.$ac_objext conftest$ac_exeext 33255 if { (ac_try="$ac_link" 33256 case "(($ac_try" in 33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33258 *) ac_try_echo=$ac_try;; 33259 esac 33260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33261 (eval "$ac_link") 2>conftest.er1 33262 ac_status=$? 33263 grep -v '^ *+' conftest.er1 >conftest.err 33264 rm -f conftest.er1 33265 cat conftest.err >&5 33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33267 (exit $ac_status); } && { 33268 test -z "$ac_c_werror_flag" || 33269 test ! -s conftest.err 33270 } && test -s conftest$ac_exeext && 33271 $as_test_x conftest$ac_exeext; then 33272 ac_cv_func_endservent_r=yes 33273 else 33274 echo "$as_me: failed program was:" >&5 33275 sed 's/^/| /' conftest.$ac_ext >&5 33276 33277 ac_cv_func_endservent_r=no 33278 fi 33279 33280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33281 conftest$ac_exeext conftest.$ac_ext 33282 fi 33283 { echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5 33284 echo "${ECHO_T}$ac_cv_func_endservent_r" >&6; } 33285 if test $ac_cv_func_endservent_r = yes; then 33286 cat >conftest.$ac_ext <<_ACEOF 33287 /* confdefs.h. */ 33288 _ACEOF 33289 cat confdefs.h >>conftest.$ac_ext 33290 cat >>conftest.$ac_ext <<_ACEOF 33291 /* end confdefs.h. */ 33292 33293 #undef _REENTRANT 33294 #define _REENTRANT 33295 #undef __USE_MISC 33296 #define __USE_MISC 33297 #include <netdb.h> 33298 void endservent_r(void); 33299 33300 33301 int 33302 main () 33303 { 33304 33305 ; 33306 return 0; 33307 } 33308 _ACEOF 33309 rm -f conftest.$ac_objext 33310 if { (ac_try="$ac_compile" 33311 case "(($ac_try" in 33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33313 *) ac_try_echo=$ac_try;; 33314 esac 33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33316 (eval "$ac_compile") 2>conftest.er1 33317 ac_status=$? 33318 grep -v '^ *+' conftest.er1 >conftest.err 33319 rm -f conftest.er1 33320 cat conftest.err >&5 33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33322 (exit $ac_status); } && { 33323 test -z "$ac_c_werror_flag" || 33324 test ! -s conftest.err 33325 } && test -s conftest.$ac_objext; then 33326 33327 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/" 33328 SERV_R_END_RETURN="#define SERV_R_END_RETURN void " 33329 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/" 33330 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/" 33331 33332 33333 else 33334 echo "$as_me: failed program was:" >&5 33335 sed 's/^/| /' conftest.$ac_ext >&5 33336 33337 cat >conftest.$ac_ext <<_ACEOF 33338 /* confdefs.h. */ 33339 _ACEOF 33340 cat confdefs.h >>conftest.$ac_ext 33341 cat >>conftest.$ac_ext <<_ACEOF 33342 /* end confdefs.h. */ 33343 33344 #undef _REENTRANT 33345 #define _REENTRANT 33346 #undef __USE_MISC 33347 #define __USE_MISC 33348 #include <netdb.h> 33349 void endservent_r(struct servent_data *serv_data); 33350 33351 33352 int 33353 main () 33354 { 33355 33356 ; 33357 return 0; 33358 } 33359 _ACEOF 33360 rm -f conftest.$ac_objext 33361 if { (ac_try="$ac_compile" 33362 case "(($ac_try" in 33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33364 *) ac_try_echo=$ac_try;; 33365 esac 33366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33367 (eval "$ac_compile") 2>conftest.er1 33368 ac_status=$? 33369 grep -v '^ *+' conftest.er1 >conftest.err 33370 rm -f conftest.er1 33371 cat conftest.err >&5 33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33373 (exit $ac_status); } && { 33374 test -z "$ac_c_werror_flag" || 33375 test ! -s conftest.err 33376 } && test -s conftest.$ac_objext; then 33377 33378 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/" 33379 SERV_R_END_RETURN="#define SERV_R_END_RETURN void " 33380 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data" 33381 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)" 33382 33383 33384 else 33385 echo "$as_me: failed program was:" >&5 33386 sed 's/^/| /' conftest.$ac_ext >&5 33387 33388 cat >conftest.$ac_ext <<_ACEOF 33389 /* confdefs.h. */ 33390 _ACEOF 33391 cat confdefs.h >>conftest.$ac_ext 33392 cat >>conftest.$ac_ext <<_ACEOF 33393 /* end confdefs.h. */ 33394 33395 #undef _REENTRANT 33396 #define _REENTRANT 33397 #undef __USE_MISC 33398 #define __USE_MISC 33399 #include <netdb.h> 33400 int endservent_r(struct servent_data *serv_data); 33401 33402 33403 int 33404 main () 33405 { 33406 33407 ; 33408 return 0; 33409 } 33410 _ACEOF 33411 rm -f conftest.$ac_objext 33412 if { (ac_try="$ac_compile" 33413 case "(($ac_try" in 33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33415 *) ac_try_echo=$ac_try;; 33416 esac 33417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33418 (eval "$ac_compile") 2>conftest.er1 33419 ac_status=$? 33420 grep -v '^ *+' conftest.er1 >conftest.err 33421 rm -f conftest.er1 33422 cat conftest.err >&5 33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33424 (exit $ac_status); } && { 33425 test -z "$ac_c_werror_flag" || 33426 test ! -s conftest.err 33427 } && test -s conftest.$ac_objext; then 33428 33429 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)" 33430 SERV_R_END_RETURN="#define SERV_R_END_RETURN int " 33431 SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data" 33432 SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)" 33433 33434 33435 else 33436 echo "$as_me: failed program was:" >&5 33437 sed 's/^/| /' conftest.$ac_ext >&5 33438 33439 33440 fi 33441 33442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33443 33444 fi 33445 33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33447 33448 fi 33449 33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33451 33452 else 33453 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/" 33454 SERV_R_END_RETURN="#define SERV_R_END_RETURN void " 33455 SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/" 33456 SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/" 33457 33458 fi 33459 33460 esac 33461 33462 33463 33464 33465 33466 case $host in 33467 ia64-hp-hpux11.*) 33468 ;; 33469 *) 33470 { echo "$as_me:$LINENO: checking for setservent_r" >&5 33471 echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6; } 33472 if test "${ac_cv_func_setservent_r+set}" = set; then 33473 echo $ECHO_N "(cached) $ECHO_C" >&6 33474 else 33475 cat >conftest.$ac_ext <<_ACEOF 33476 /* confdefs.h. */ 33477 _ACEOF 33478 cat confdefs.h >>conftest.$ac_ext 33479 cat >>conftest.$ac_ext <<_ACEOF 33480 /* end confdefs.h. */ 33481 /* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r. 33482 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33483 #define setservent_r innocuous_setservent_r 33484 33485 /* System header to define __stub macros and hopefully few prototypes, 33486 which can conflict with char setservent_r (); below. 33487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33488 <limits.h> exists even on freestanding compilers. */ 33489 33490 #ifdef __STDC__ 33491 # include <limits.h> 33492 #else 33493 # include <assert.h> 33494 #endif 33495 33496 #undef setservent_r 33497 33498 /* Override any GCC internal prototype to avoid an error. 33499 Use char because int might match the return type of a GCC 33500 builtin and then its argument prototype would still apply. */ 33501 #ifdef __cplusplus 33502 extern "C" 33503 #endif 33504 char setservent_r (); 33505 /* The GNU C library defines this for functions which it implements 33506 to always fail with ENOSYS. Some functions are actually named 33507 something starting with __ and the normal name is an alias. */ 33508 #if defined __stub_setservent_r || defined __stub___setservent_r 33509 choke me 33510 #endif 33511 33512 int 33513 main () 33514 { 33515 return setservent_r (); 33516 ; 33517 return 0; 33518 } 33519 _ACEOF 33520 rm -f conftest.$ac_objext conftest$ac_exeext 33521 if { (ac_try="$ac_link" 33522 case "(($ac_try" in 33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33524 *) ac_try_echo=$ac_try;; 33525 esac 33526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33527 (eval "$ac_link") 2>conftest.er1 33528 ac_status=$? 33529 grep -v '^ *+' conftest.er1 >conftest.err 33530 rm -f conftest.er1 33531 cat conftest.err >&5 33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33533 (exit $ac_status); } && { 33534 test -z "$ac_c_werror_flag" || 33535 test ! -s conftest.err 33536 } && test -s conftest$ac_exeext && 33537 $as_test_x conftest$ac_exeext; then 33538 ac_cv_func_setservent_r=yes 33539 else 33540 echo "$as_me: failed program was:" >&5 33541 sed 's/^/| /' conftest.$ac_ext >&5 33542 33543 ac_cv_func_setservent_r=no 33544 fi 33545 33546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33547 conftest$ac_exeext conftest.$ac_ext 33548 fi 33549 { echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5 33550 echo "${ECHO_T}$ac_cv_func_setservent_r" >&6; } 33551 if test $ac_cv_func_setservent_r = yes; then 33552 cat >conftest.$ac_ext <<_ACEOF 33553 /* confdefs.h. */ 33554 _ACEOF 33555 cat confdefs.h >>conftest.$ac_ext 33556 cat >>conftest.$ac_ext <<_ACEOF 33557 /* end confdefs.h. */ 33558 33559 #undef _REENTRANT 33560 #define _REENTRANT 33561 #undef __USE_MISC 33562 #define __USE_MISC 33563 #include <netdb.h> 33564 void setservent_r(int); 33565 33566 33567 int 33568 main () 33569 { 33570 33571 ; 33572 return 0; 33573 } 33574 _ACEOF 33575 rm -f conftest.$ac_objext 33576 if { (ac_try="$ac_compile" 33577 case "(($ac_try" in 33578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33579 *) ac_try_echo=$ac_try;; 33580 esac 33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33582 (eval "$ac_compile") 2>conftest.er1 33583 ac_status=$? 33584 grep -v '^ *+' conftest.er1 >conftest.err 33585 rm -f conftest.er1 33586 cat conftest.err >&5 33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33588 (exit $ac_status); } && { 33589 test -z "$ac_c_werror_flag" || 33590 test ! -s conftest.err 33591 } && test -s conftest.$ac_objext; then 33592 33593 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT" 33594 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void" 33595 33596 33597 else 33598 echo "$as_me: failed program was:" >&5 33599 sed 's/^/| /' conftest.$ac_ext >&5 33600 33601 cat >conftest.$ac_ext <<_ACEOF 33602 /* confdefs.h. */ 33603 _ACEOF 33604 cat confdefs.h >>conftest.$ac_ext 33605 cat >>conftest.$ac_ext <<_ACEOF 33606 /* end confdefs.h. */ 33607 33608 #undef _REENTRANT 33609 #define _REENTRANT 33610 #undef __USE_MISC 33611 #define __USE_MISC 33612 #include <netdb.h> 33613 int setservent_r(int, struct servent_data *); 33614 33615 33616 int 33617 main () 33618 { 33619 33620 ; 33621 return 0; 33622 } 33623 _ACEOF 33624 rm -f conftest.$ac_objext 33625 if { (ac_try="$ac_compile" 33626 case "(($ac_try" in 33627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33628 *) ac_try_echo=$ac_try;; 33629 esac 33630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33631 (eval "$ac_compile") 2>conftest.er1 33632 ac_status=$? 33633 grep -v '^ *+' conftest.er1 >conftest.err 33634 rm -f conftest.er1 33635 cat conftest.err >&5 33636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33637 (exit $ac_status); } && { 33638 test -z "$ac_c_werror_flag" || 33639 test ! -s conftest.err 33640 } && test -s conftest.$ac_objext; then 33641 33642 SERV_R_SET_RESULT="#define SERV_R_SET_RESULT (0)" 33643 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN int" 33644 33645 33646 else 33647 echo "$as_me: failed program was:" >&5 33648 sed 's/^/| /' conftest.$ac_ext >&5 33649 33650 33651 fi 33652 33653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33654 33655 fi 33656 33657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33658 33659 else 33660 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT" 33661 SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void" 33662 33663 fi 33664 33665 esac 33666 33667 33668 33669 cat >conftest.$ac_ext <<_ACEOF 33670 /* confdefs.h. */ 33671 _ACEOF 33672 cat confdefs.h >>conftest.$ac_ext 33673 cat >>conftest.$ac_ext <<_ACEOF 33674 /* end confdefs.h. */ 33675 33676 #undef _REENTRANT 33677 #define _REENTRANT 33678 #undef __USE_MISC 33679 #define __USE_MISC 33680 #include <unistd.h> 33681 #include <netdb.h> 33682 int innetgr(const char *netgroup, const char *host, const char *user, const char *domain); 33683 33684 33685 int 33686 main () 33687 { 33688 33689 ; 33690 return 0; 33691 } 33692 _ACEOF 33693 rm -f conftest.$ac_objext 33694 if { (ac_try="$ac_compile" 33695 case "(($ac_try" in 33696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33697 *) ac_try_echo=$ac_try;; 33698 esac 33699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33700 (eval "$ac_compile") 2>conftest.er1 33701 ac_status=$? 33702 grep -v '^ *+' conftest.er1 >conftest.err 33703 rm -f conftest.er1 33704 cat conftest.err >&5 33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33706 (exit $ac_status); } && { 33707 test -z "$ac_c_werror_flag" || 33708 test ! -s conftest.err 33709 } && test -s conftest.$ac_objext; then 33710 33711 INNETGR_ARGS="#undef INNETGR_ARGS" 33712 33713 33714 else 33715 echo "$as_me: failed program was:" >&5 33716 sed 's/^/| /' conftest.$ac_ext >&5 33717 33718 cat >conftest.$ac_ext <<_ACEOF 33719 /* confdefs.h. */ 33720 _ACEOF 33721 cat confdefs.h >>conftest.$ac_ext 33722 cat >>conftest.$ac_ext <<_ACEOF 33723 /* end confdefs.h. */ 33724 33725 #undef _REENTRANT 33726 #define _REENTRANT 33727 #undef __USE_MISC 33728 #define __USE_MISC 33729 #include <unistd.h> 33730 #include <netdb.h> 33731 int innetgr(char *netgroup, char *host, char *user, char *domain); 33732 33733 33734 int 33735 main () 33736 { 33737 33738 ; 33739 return 0; 33740 } 33741 _ACEOF 33742 rm -f conftest.$ac_objext 33743 if { (ac_try="$ac_compile" 33744 case "(($ac_try" in 33745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33746 *) ac_try_echo=$ac_try;; 33747 esac 33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33749 (eval "$ac_compile") 2>conftest.er1 33750 ac_status=$? 33751 grep -v '^ *+' conftest.er1 >conftest.err 33752 rm -f conftest.er1 33753 cat conftest.err >&5 33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33755 (exit $ac_status); } && { 33756 test -z "$ac_c_werror_flag" || 33757 test ! -s conftest.err 33758 } && test -s conftest.$ac_objext; then 33759 33760 INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain" 33761 33762 33763 else 33764 echo "$as_me: failed program was:" >&5 33765 sed 's/^/| /' conftest.$ac_ext >&5 33766 33767 33768 fi 33769 33770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33771 fi 33772 33773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33774 33775 cat >conftest.$ac_ext <<_ACEOF 33776 /* confdefs.h. */ 33777 _ACEOF 33778 cat confdefs.h >>conftest.$ac_ext 33779 cat >>conftest.$ac_ext <<_ACEOF 33780 /* end confdefs.h. */ 33781 33782 #undef _REENTRANT 33783 #define _REENTRANT 33784 #undef __USE_MISC 33785 #define __USE_MISC 33786 #include <unistd.h> 33787 #include <netdb.h> 33788 void setnetgrent(const char *); 33789 33790 33791 int 33792 main () 33793 { 33794 33795 ; 33796 return 0; 33797 } 33798 _ACEOF 33799 rm -f conftest.$ac_objext 33800 if { (ac_try="$ac_compile" 33801 case "(($ac_try" in 33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33803 *) ac_try_echo=$ac_try;; 33804 esac 33805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33806 (eval "$ac_compile") 2>conftest.er1 33807 ac_status=$? 33808 grep -v '^ *+' conftest.er1 >conftest.err 33809 rm -f conftest.er1 33810 cat conftest.err >&5 33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33812 (exit $ac_status); } && { 33813 test -z "$ac_c_werror_flag" || 33814 test ! -s conftest.err 33815 } && test -s conftest.$ac_objext; then 33816 33817 SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS" 33818 33819 33820 else 33821 echo "$as_me: failed program was:" >&5 33822 sed 's/^/| /' conftest.$ac_ext >&5 33823 33824 cat >conftest.$ac_ext <<_ACEOF 33825 /* confdefs.h. */ 33826 _ACEOF 33827 cat confdefs.h >>conftest.$ac_ext 33828 cat >>conftest.$ac_ext <<_ACEOF 33829 /* end confdefs.h. */ 33830 33831 #undef _REENTRANT 33832 #define _REENTRANT 33833 #undef __USE_MISC 33834 #define __USE_MISC 33835 #include <unistd.h> 33836 #include <netdb.h> 33837 void setnetgrent(char *); 33838 33839 33840 int 33841 main () 33842 { 33843 33844 ; 33845 return 0; 33846 } 33847 _ACEOF 33848 rm -f conftest.$ac_objext 33849 if { (ac_try="$ac_compile" 33850 case "(($ac_try" in 33851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33852 *) ac_try_echo=$ac_try;; 33853 esac 33854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33855 (eval "$ac_compile") 2>conftest.er1 33856 ac_status=$? 33857 grep -v '^ *+' conftest.er1 >conftest.err 33858 rm -f conftest.er1 33859 cat conftest.err >&5 33860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33861 (exit $ac_status); } && { 33862 test -z "$ac_c_werror_flag" || 33863 test ! -s conftest.err 33864 } && test -s conftest.$ac_objext; then 33865 33866 SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup" 33867 33868 33869 else 33870 echo "$as_me: failed program was:" >&5 33871 sed 's/^/| /' conftest.$ac_ext >&5 33872 33873 33874 fi 33875 33876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33877 fi 33878 33879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33880 33881 33882 33883 # 33884 # Random remaining OS-specific issues involving compiler warnings. 33885 # XXXDCL print messages to indicate some compensation is being done? 33886 # 33887 BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS" 33888 33889 case "$host" in 33890 *-aix5.1.*) 33891 hack_shutup_pthreadmutexinit=yes 33892 hack_shutup_in6addr_init_macros=yes 33893 ;; 33894 *-aix5.[23].*) 33895 hack_shutup_in6addr_init_macros=yes 33896 ;; 33897 *-bsdi3.1*) 33898 hack_shutup_sputaux=yes 33899 ;; 33900 *-bsdi4.0*) 33901 hack_shutup_sigwait=yes 33902 hack_shutup_sputaux=yes 33903 hack_shutup_in6addr_init_macros=yes 33904 ;; 33905 *-bsdi4.1*) 33906 hack_shutup_stdargcast=yes 33907 ;; 33908 *-hpux11.11) 33909 hack_shutup_in6addr_init_macros=yes 33910 ;; 33911 *-osf5.1|*-osf5.1b) 33912 hack_shutup_in6addr_init_macros=yes 33913 ;; 33914 *-solaris2.8) 33915 hack_shutup_in6addr_init_macros=yes 33916 ;; 33917 *-solaris2.9) 33918 hack_shutup_in6addr_init_macros=yes 33919 ;; 33920 *-solaris2.1[0-9]) 33921 hack_shutup_in6addr_init_macros=yes 33922 ;; 33923 esac 33924 33925 case "$hack_shutup_pthreadmutexinit" in 33926 yes) 33927 # 33928 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced 33929 # initializer warnings. 33930 # 33931 cat >>confdefs.h <<\_ACEOF 33932 #define SHUTUP_MUTEX_INITIALIZER 1 33933 _ACEOF 33934 33935 ;; 33936 esac 33937 33938 case "$hack_shutup_sigwait" in 33939 yes) 33940 # 33941 # Shut up a -Wmissing-prototypes warning for sigwait(). 33942 # 33943 cat >>confdefs.h <<\_ACEOF 33944 #define SHUTUP_SIGWAIT 1 33945 _ACEOF 33946 33947 ;; 33948 esac 33949 33950 case "$hack_shutup_sputaux" in 33951 yes) 33952 # 33953 # Shut up a -Wmissing-prototypes warning from <stdio.h>. 33954 # 33955 cat >>confdefs.h <<\_ACEOF 33956 #define SHUTUP_SPUTAUX 1 33957 _ACEOF 33958 33959 ;; 33960 esac 33961 33962 case "$hack_shutup_stdargcast" in 33963 yes) 33964 # 33965 # Shut up a -Wcast-qual warning from va_start(). 33966 # 33967 cat >>confdefs.h <<\_ACEOF 33968 #define SHUTUP_STDARG_CAST 1 33969 _ACEOF 33970 33971 ;; 33972 esac 33973 33974 case "$hack_shutup_in6addr_init_macros" in 33975 yes) 33976 33977 cat >>confdefs.h <<\_ACEOF 33978 #define BROKEN_IN6ADDR_INIT_MACROS 1 33979 _ACEOF 33980 33981 ;; 33982 esac 33983 33984 # 33985 # Substitutions 33986 # 33987 33988 BIND9_TOP_BUILDDIR=`pwd` 33989 33990 33991 BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes 33992 33993 33994 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules 33995 33996 33997 LIBBIND_API=$srcdir/api 33998 33999 ac_config_files="$ac_config_files make/rules make/mkdep make/includes Makefile bsd/Makefile doc/Makefile dst/Makefile include/Makefile inet/Makefile irs/Makefile isc/Makefile nameser/Makefile port_after.h port_before.h resolv/Makefile port/Makefile ${PORT_DIR}/Makefile ${PORT_INCLUDE}/Makefile include/isc/platform.h tests/Makefile" 34000 34001 cat >confcache <<\_ACEOF 34002 # This file is a shell script that caches the results of configure 34003 # tests run on this system so they can be shared between configure 34004 # scripts and configure runs, see configure's option --config-cache. 34005 # It is not useful on other systems. If it contains results you don't 34006 # want to keep, you may remove or edit it. 34007 # 34008 # config.status only pays attention to the cache file if you give it 34009 # the --recheck option to rerun configure. 34010 # 34011 # `ac_cv_env_foo' variables (set or unset) will be overridden when 34012 # loading this file, other *unset* `ac_cv_foo' will be assigned the 34013 # following values. 34014 34015 _ACEOF 34016 34017 # The following way of writing the cache mishandles newlines in values, 34018 # but we know of no workaround that is simple, portable, and efficient. 34019 # So, we kill variables containing newlines. 34020 # Ultrix sh set writes to stderr and can't be redirected directly, 34021 # and sets the high bit in the cache file unless we assign to the vars. 34022 ( 34023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 34024 eval ac_val=\$$ac_var 34025 case $ac_val in #( 34026 *${as_nl}*) 34027 case $ac_var in #( 34028 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 34029 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 34030 esac 34031 case $ac_var in #( 34032 _ | IFS | as_nl) ;; #( 34033 *) $as_unset $ac_var ;; 34034 esac ;; 34035 esac 34036 done 34037 34038 (set) 2>&1 | 34039 case $as_nl`(ac_space=' '; set) 2>&1` in #( 34040 *${as_nl}ac_space=\ *) 34041 # `set' does not quote correctly, so add quotes (double-quote 34042 # substitution turns \\\\ into \\, and sed turns \\ into \). 34043 sed -n \ 34044 "s/'/'\\\\''/g; 34045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34046 ;; #( 34047 *) 34048 # `set' quotes correctly as required by POSIX, so do not add quotes. 34049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 34050 ;; 34051 esac | 34052 sort 34053 ) | 34054 sed ' 34055 /^ac_cv_env_/b end 34056 t clear 34057 :clear 34058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 34059 t end 34060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34061 :end' >>confcache 34062 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 34063 if test -w "$cache_file"; then 34064 test "x$cache_file" != "x/dev/null" && 34065 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 34066 echo "$as_me: updating cache $cache_file" >&6;} 34067 cat confcache >$cache_file 34068 else 34069 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 34070 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 34071 fi 34072 fi 34073 rm -f confcache 34074 34075 test "x$prefix" = xNONE && prefix=$ac_default_prefix 34076 # Let make expand exec_prefix. 34077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34078 34079 DEFS=-DHAVE_CONFIG_H 34080 34081 ac_libobjs= 34082 ac_ltlibobjs= 34083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 34084 # 1. Remove the extension, and $U if already installed. 34085 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 34086 ac_i=`echo "$ac_i" | sed "$ac_script"` 34087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 34088 # will be set to the directory where LIBOBJS objects are built. 34089 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 34090 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 34091 done 34092 LIBOBJS=$ac_libobjs 34093 34094 LTLIBOBJS=$ac_ltlibobjs 34095 34096 34097 34098 : ${CONFIG_STATUS=./config.status} 34099 ac_clean_files_save=$ac_clean_files 34100 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 34101 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 34102 echo "$as_me: creating $CONFIG_STATUS" >&6;} 34103 cat >$CONFIG_STATUS <<_ACEOF 34104 #! $SHELL 34105 # Generated by $as_me. 34106 # Run this file to recreate the current configuration. 34107 # Compiler output produced by configure, useful for debugging 34108 # configure, is in config.log if it exists. 34109 34110 debug=false 34111 ac_cs_recheck=false 34112 ac_cs_silent=false 34113 SHELL=\${CONFIG_SHELL-$SHELL} 34114 _ACEOF 34115 34116 cat >>$CONFIG_STATUS <<\_ACEOF 34117 ## --------------------- ## 34118 ## M4sh Initialization. ## 34119 ## --------------------- ## 34120 34121 # Be more Bourne compatible 34122 DUALCASE=1; export DUALCASE # for MKS sh 34123 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 34124 emulate sh 34125 NULLCMD=: 34126 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 34127 # is contrary to our usage. Disable this feature. 34128 alias -g '${1+"$@"}'='"$@"' 34129 setopt NO_GLOB_SUBST 34130 else 34131 case `(set -o) 2>/dev/null` in 34132 *posix*) set -o posix ;; 34133 esac 34134 34135 fi 34136 34137 34138 34139 34140 # PATH needs CR 34141 # Avoid depending upon Character Ranges. 34142 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34145 as_cr_digits='0123456789' 34146 as_cr_alnum=$as_cr_Letters$as_cr_digits 34147 34148 # The user is always right. 34149 if test "${PATH_SEPARATOR+set}" != set; then 34150 echo "#! /bin/sh" >conf$$.sh 34151 echo "exit 0" >>conf$$.sh 34152 chmod +x conf$$.sh 34153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 34154 PATH_SEPARATOR=';' 34155 else 34156 PATH_SEPARATOR=: 34157 fi 34158 rm -f conf$$.sh 34159 fi 34160 34161 # Support unset when possible. 34162 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34163 as_unset=unset 34164 else 34165 as_unset=false 34166 fi 34167 34168 34169 # IFS 34170 # We need space, tab and new line, in precisely that order. Quoting is 34171 # there to prevent editors from complaining about space-tab. 34172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 34173 # splitting by setting IFS to empty value.) 34174 as_nl=' 34175 ' 34176 IFS=" "" $as_nl" 34177 34178 # Find who we are. Look in the path if we contain no directory separator. 34179 case $0 in 34180 *[\\/]* ) as_myself=$0 ;; 34181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34182 for as_dir in $PATH 34183 do 34184 IFS=$as_save_IFS 34185 test -z "$as_dir" && as_dir=. 34186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 34187 done 34188 IFS=$as_save_IFS 34189 34190 ;; 34191 esac 34192 # We did not find ourselves, most probably we were run as `sh COMMAND' 34193 # in which case we are not to be found in the path. 34194 if test "x$as_myself" = x; then 34195 as_myself=$0 34196 fi 34197 if test ! -f "$as_myself"; then 34198 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 34199 { (exit 1); exit 1; } 34200 fi 34201 34202 # Work around bugs in pre-3.0 UWIN ksh. 34203 for as_var in ENV MAIL MAILPATH 34204 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 34205 done 34206 PS1='$ ' 34207 PS2='> ' 34208 PS4='+ ' 34209 34210 # NLS nuisances. 34211 for as_var in \ 34212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 34213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 34214 LC_TELEPHONE LC_TIME 34215 do 34216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 34217 eval $as_var=C; export $as_var 34218 else 34219 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 34220 fi 34221 done 34222 34223 # Required to use basename. 34224 if expr a : '\(a\)' >/dev/null 2>&1 && 34225 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34226 as_expr=expr 34227 else 34228 as_expr=false 34229 fi 34230 34231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 34232 as_basename=basename 34233 else 34234 as_basename=false 34235 fi 34236 34237 34238 # Name of the executable. 34239 as_me=`$as_basename -- "$0" || 34240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34241 X"$0" : 'X\(//\)$' \| \ 34242 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34243 echo X/"$0" | 34244 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34245 s//\1/ 34246 q 34247 } 34248 /^X\/\(\/\/\)$/{ 34249 s//\1/ 34250 q 34251 } 34252 /^X\/\(\/\).*/{ 34253 s//\1/ 34254 q 34255 } 34256 s/.*/./; q'` 34257 34258 # CDPATH. 34259 $as_unset CDPATH 34260 34261 34262 34263 as_lineno_1=$LINENO 34264 as_lineno_2=$LINENO 34265 test "x$as_lineno_1" != "x$as_lineno_2" && 34266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 34267 34268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 34269 # uniformly replaced by the line number. The first 'sed' inserts a 34270 # line-number line after each line using $LINENO; the second 'sed' 34271 # does the real work. The second script uses 'N' to pair each 34272 # line-number line with the line containing $LINENO, and appends 34273 # trailing '-' during substitution so that $LINENO is not a special 34274 # case at line end. 34275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 34276 # scripts with optimization help from Paolo Bonzini. Blame Lee 34277 # E. McMahon (1931-1989) for sed's syntax. :-) 34278 sed -n ' 34279 p 34280 /[$]LINENO/= 34281 ' <$as_myself | 34282 sed ' 34283 s/[$]LINENO.*/&-/ 34284 t lineno 34285 b 34286 :lineno 34287 N 34288 :loop 34289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 34290 t loop 34291 s/-\n.*// 34292 ' >$as_me.lineno && 34293 chmod +x "$as_me.lineno" || 34294 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 34295 { (exit 1); exit 1; }; } 34296 34297 # Don't try to exec as it changes $[0], causing all sort of problems 34298 # (the dirname of $[0] is not the place where we might find the 34299 # original and so on. Autoconf is especially sensitive to this). 34300 . "./$as_me.lineno" 34301 # Exit status is that of the last command. 34302 exit 34303 } 34304 34305 34306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 34307 as_dirname=dirname 34308 else 34309 as_dirname=false 34310 fi 34311 34312 ECHO_C= ECHO_N= ECHO_T= 34313 case `echo -n x` in 34314 -n*) 34315 case `echo 'x\c'` in 34316 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34317 *) ECHO_C='\c';; 34318 esac;; 34319 *) 34320 ECHO_N='-n';; 34321 esac 34322 34323 if expr a : '\(a\)' >/dev/null 2>&1 && 34324 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34325 as_expr=expr 34326 else 34327 as_expr=false 34328 fi 34329 34330 rm -f conf$$ conf$$.exe conf$$.file 34331 if test -d conf$$.dir; then 34332 rm -f conf$$.dir/conf$$.file 34333 else 34334 rm -f conf$$.dir 34335 mkdir conf$$.dir 34336 fi 34337 echo >conf$$.file 34338 if ln -s conf$$.file conf$$ 2>/dev/null; then 34339 as_ln_s='ln -s' 34340 # ... but there are two gotchas: 34341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 34342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 34343 # In both cases, we have to default to `cp -p'. 34344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34345 as_ln_s='cp -p' 34346 elif ln conf$$.file conf$$ 2>/dev/null; then 34347 as_ln_s=ln 34348 else 34349 as_ln_s='cp -p' 34350 fi 34351 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34352 rmdir conf$$.dir 2>/dev/null 34353 34354 if mkdir -p . 2>/dev/null; then 34355 as_mkdir_p=: 34356 else 34357 test -d ./-p && rmdir ./-p 34358 as_mkdir_p=false 34359 fi 34360 34361 if test -x / >/dev/null 2>&1; then 34362 as_test_x='test -x' 34363 else 34364 if ls -dL / >/dev/null 2>&1; then 34365 as_ls_L_option=L 34366 else 34367 as_ls_L_option= 34368 fi 34369 as_test_x=' 34370 eval sh -c '\'' 34371 if test -d "$1"; then 34372 test -d "$1/."; 34373 else 34374 case $1 in 34375 -*)set "./$1";; 34376 esac; 34377 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 34378 ???[sx]*):;;*)false;;esac;fi 34379 '\'' sh 34380 ' 34381 fi 34382 as_executable_p=$as_test_x 34383 34384 # Sed expression to map a string onto a valid CPP name. 34385 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 34386 34387 # Sed expression to map a string onto a valid variable name. 34388 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 34389 34390 34391 exec 6>&1 34392 34393 # Save the log message, to keep $[0] and so on meaningful, and to 34394 # report actual input values of CONFIG_FILES etc. instead of their 34395 # values after options handling. 34396 ac_log=" 34397 This file was extended by $as_me, which was 34398 generated by GNU Autoconf 2.61. Invocation command line was 34399 34400 CONFIG_FILES = $CONFIG_FILES 34401 CONFIG_HEADERS = $CONFIG_HEADERS 34402 CONFIG_LINKS = $CONFIG_LINKS 34403 CONFIG_COMMANDS = $CONFIG_COMMANDS 34404 $ $0 $@ 34405 34406 on `(hostname || uname -n) 2>/dev/null | sed 1q` 34407 " 34408 34409 _ACEOF 34410 34411 cat >>$CONFIG_STATUS <<_ACEOF 34412 # Files that config.status was made for. 34413 config_files="$ac_config_files" 34414 config_headers="$ac_config_headers" 34415 34416 _ACEOF 34417 34418 cat >>$CONFIG_STATUS <<\_ACEOF 34419 ac_cs_usage="\ 34420 \`$as_me' instantiates files from templates according to the 34421 current configuration. 34422 34423 Usage: $0 [OPTIONS] [FILE]... 34424 34425 -h, --help print this help, then exit 34426 -V, --version print version number and configuration settings, then exit 34427 -q, --quiet do not print progress messages 34428 -d, --debug don't remove temporary files 34429 --recheck update $as_me by reconfiguring in the same conditions 34430 --file=FILE[:TEMPLATE] 34431 instantiate the configuration file FILE 34432 --header=FILE[:TEMPLATE] 34433 instantiate the configuration header FILE 34434 34435 Configuration files: 34436 $config_files 34437 34438 Configuration headers: 34439 $config_headers 34440 34441 Report bugs to <bug-autoconf (at] gnu.org>." 34442 34443 _ACEOF 34444 cat >>$CONFIG_STATUS <<_ACEOF 34445 ac_cs_version="\\ 34446 config.status 34447 configured by $0, generated by GNU Autoconf 2.61, 34448 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 34449 34450 Copyright (C) 2006 Free Software Foundation, Inc. 34451 This config.status script is free software; the Free Software Foundation 34452 gives unlimited permission to copy, distribute and modify it." 34453 34454 ac_pwd='$ac_pwd' 34455 srcdir='$srcdir' 34456 INSTALL='$INSTALL' 34457 _ACEOF 34458 34459 cat >>$CONFIG_STATUS <<\_ACEOF 34460 # If no file are specified by the user, then we need to provide default 34461 # value. By we need to know if files were specified by the user. 34462 ac_need_defaults=: 34463 while test $# != 0 34464 do 34465 case $1 in 34466 --*=*) 34467 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34469 ac_shift=: 34470 ;; 34471 *) 34472 ac_option=$1 34473 ac_optarg=$2 34474 ac_shift=shift 34475 ;; 34476 esac 34477 34478 case $ac_option in 34479 # Handling of the options. 34480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34481 ac_cs_recheck=: ;; 34482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34483 echo "$ac_cs_version"; exit ;; 34484 --debug | --debu | --deb | --de | --d | -d ) 34485 debug=: ;; 34486 --file | --fil | --fi | --f ) 34487 $ac_shift 34488 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 34489 ac_need_defaults=false;; 34490 --header | --heade | --head | --hea ) 34491 $ac_shift 34492 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 34493 ac_need_defaults=false;; 34494 --he | --h) 34495 # Conflict between --help and --header 34496 { echo "$as_me: error: ambiguous option: $1 34497 Try \`$0 --help' for more information." >&2 34498 { (exit 1); exit 1; }; };; 34499 --help | --hel | -h ) 34500 echo "$ac_cs_usage"; exit ;; 34501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34502 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34503 ac_cs_silent=: ;; 34504 34505 # This is an error. 34506 -*) { echo "$as_me: error: unrecognized option: $1 34507 Try \`$0 --help' for more information." >&2 34508 { (exit 1); exit 1; }; } ;; 34509 34510 *) ac_config_targets="$ac_config_targets $1" 34511 ac_need_defaults=false ;; 34512 34513 esac 34514 shift 34515 done 34516 34517 ac_configure_extra_args= 34518 34519 if $ac_cs_silent; then 34520 exec 6>/dev/null 34521 ac_configure_extra_args="$ac_configure_extra_args --silent" 34522 fi 34523 34524 _ACEOF 34525 cat >>$CONFIG_STATUS <<_ACEOF 34526 if \$ac_cs_recheck; then 34527 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 34528 CONFIG_SHELL=$SHELL 34529 export CONFIG_SHELL 34530 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34531 fi 34532 34533 _ACEOF 34534 cat >>$CONFIG_STATUS <<\_ACEOF 34535 exec 5>>config.log 34536 { 34537 echo 34538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34539 ## Running $as_me. ## 34540 _ASBOX 34541 echo "$ac_log" 34542 } >&5 34543 34544 _ACEOF 34545 cat >>$CONFIG_STATUS <<_ACEOF 34546 _ACEOF 34547 34548 cat >>$CONFIG_STATUS <<\_ACEOF 34549 34550 # Handling of arguments. 34551 for ac_config_target in $ac_config_targets 34552 do 34553 case $ac_config_target in 34554 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 34555 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;; 34556 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;; 34557 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;; 34558 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34559 "bsd/Makefile") CONFIG_FILES="$CONFIG_FILES bsd/Makefile" ;; 34560 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34561 "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;; 34562 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34563 "inet/Makefile") CONFIG_FILES="$CONFIG_FILES inet/Makefile" ;; 34564 "irs/Makefile") CONFIG_FILES="$CONFIG_FILES irs/Makefile" ;; 34565 "isc/Makefile") CONFIG_FILES="$CONFIG_FILES isc/Makefile" ;; 34566 "nameser/Makefile") CONFIG_FILES="$CONFIG_FILES nameser/Makefile" ;; 34567 "port_after.h") CONFIG_FILES="$CONFIG_FILES port_after.h" ;; 34568 "port_before.h") CONFIG_FILES="$CONFIG_FILES port_before.h" ;; 34569 "resolv/Makefile") CONFIG_FILES="$CONFIG_FILES resolv/Makefile" ;; 34570 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 34571 "${PORT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${PORT_DIR}/Makefile" ;; 34572 "${PORT_INCLUDE}/Makefile") CONFIG_FILES="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;; 34573 "include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES include/isc/platform.h" ;; 34574 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 34575 34576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 34577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 34578 { (exit 1); exit 1; }; };; 34579 esac 34580 done 34581 34582 34583 # If the user did not use the arguments to specify the items to instantiate, 34584 # then the envvar interface is used. Set only those that are not. 34585 # We use the long form for the default assignment because of an extremely 34586 # bizarre bug on SunOS 4.1.3. 34587 if $ac_need_defaults; then 34588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34590 fi 34591 34592 # Have a temporary directory for convenience. Make it in the build tree 34593 # simply because there is no reason against having it here, and in addition, 34594 # creating and moving files from /tmp can sometimes cause problems. 34595 # Hook for its removal unless debugging. 34596 # Note that there is a small window in which the directory will not be cleaned: 34597 # after its creation but before its name has been assigned to `$tmp'. 34598 $debug || 34599 { 34600 tmp= 34601 trap 'exit_status=$? 34602 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 34603 ' 0 34604 trap '{ (exit 1); exit 1; }' 1 2 13 15 34605 } 34606 # Create a (secure) tmp directory for tmp files. 34607 34608 { 34609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34610 test -n "$tmp" && test -d "$tmp" 34611 } || 34612 { 34613 tmp=./conf$$-$RANDOM 34614 (umask 077 && mkdir "$tmp") 34615 } || 34616 { 34617 echo "$me: cannot create a temporary directory in ." >&2 34618 { (exit 1); exit 1; } 34619 } 34620 34621 # 34622 # Set up the sed scripts for CONFIG_FILES section. 34623 # 34624 34625 # No need to generate the scripts if there are no CONFIG_FILES. 34626 # This happens for instance when ./config.status config.h 34627 if test -n "$CONFIG_FILES"; then 34628 34629 _ACEOF 34630 34631 # Create sed commands to just substitute file output variables. 34632 34633 # Remaining file output variables are in a fragment that also has non-file 34634 # output varibles. 34635 34636 34637 34638 ac_delim='%!_!# ' 34639 for ac_last_try in false false false false false :; do 34640 cat >conf$$subs.sed <<_ACEOF 34641 SHELL!$SHELL$ac_delim 34642 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 34643 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 34644 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 34645 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 34646 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 34647 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 34648 exec_prefix!$exec_prefix$ac_delim 34649 prefix!$prefix$ac_delim 34650 program_transform_name!$program_transform_name$ac_delim 34651 bindir!$bindir$ac_delim 34652 sbindir!$sbindir$ac_delim 34653 libexecdir!$libexecdir$ac_delim 34654 datarootdir!$datarootdir$ac_delim 34655 datadir!$datadir$ac_delim 34656 sysconfdir!$sysconfdir$ac_delim 34657 sharedstatedir!$sharedstatedir$ac_delim 34658 localstatedir!$localstatedir$ac_delim 34659 includedir!$includedir$ac_delim 34660 oldincludedir!$oldincludedir$ac_delim 34661 docdir!$docdir$ac_delim 34662 infodir!$infodir$ac_delim 34663 htmldir!$htmldir$ac_delim 34664 dvidir!$dvidir$ac_delim 34665 pdfdir!$pdfdir$ac_delim 34666 psdir!$psdir$ac_delim 34667 libdir!$libdir$ac_delim 34668 localedir!$localedir$ac_delim 34669 mandir!$mandir$ac_delim 34670 DEFS!$DEFS$ac_delim 34671 ECHO_C!$ECHO_C$ac_delim 34672 ECHO_N!$ECHO_N$ac_delim 34673 ECHO_T!$ECHO_T$ac_delim 34674 LIBS!$LIBS$ac_delim 34675 build_alias!$build_alias$ac_delim 34676 host_alias!$host_alias$ac_delim 34677 target_alias!$target_alias$ac_delim 34678 build!$build$ac_delim 34679 build_cpu!$build_cpu$ac_delim 34680 build_vendor!$build_vendor$ac_delim 34681 build_os!$build_os$ac_delim 34682 host!$host$ac_delim 34683 host_cpu!$host_cpu$ac_delim 34684 host_vendor!$host_vendor$ac_delim 34685 host_os!$host_os$ac_delim 34686 SET_MAKE!$SET_MAKE$ac_delim 34687 CC!$CC$ac_delim 34688 CFLAGS!$CFLAGS$ac_delim 34689 LDFLAGS!$LDFLAGS$ac_delim 34690 CPPFLAGS!$CPPFLAGS$ac_delim 34691 ac_ct_CC!$ac_ct_CC$ac_delim 34692 EXEEXT!$EXEEXT$ac_delim 34693 OBJEXT!$OBJEXT$ac_delim 34694 SED!$SED$ac_delim 34695 GREP!$GREP$ac_delim 34696 EGREP!$EGREP$ac_delim 34697 LN_S!$LN_S$ac_delim 34698 ECHO!$ECHO$ac_delim 34699 AR!$AR$ac_delim 34700 RANLIB!$RANLIB$ac_delim 34701 STRIP!$STRIP$ac_delim 34702 DSYMUTIL!$DSYMUTIL$ac_delim 34703 NMEDIT!$NMEDIT$ac_delim 34704 CPP!$CPP$ac_delim 34705 CXX!$CXX$ac_delim 34706 CXXFLAGS!$CXXFLAGS$ac_delim 34707 ac_ct_CXX!$ac_ct_CXX$ac_delim 34708 CXXCPP!$CXXCPP$ac_delim 34709 F77!$F77$ac_delim 34710 FFLAGS!$FFLAGS$ac_delim 34711 ac_ct_F77!$ac_ct_F77$ac_delim 34712 LIBTOOL!$LIBTOOL$ac_delim 34713 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 34714 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 34715 INSTALL_DATA!$INSTALL_DATA$ac_delim 34716 STD_CINCLUDES!$STD_CINCLUDES$ac_delim 34717 STD_CDEFINES!$STD_CDEFINES$ac_delim 34718 STD_CWARNINGS!$STD_CWARNINGS$ac_delim 34719 CCOPT!$CCOPT$ac_delim 34720 ARFLAGS!$ARFLAGS$ac_delim 34721 TBL!$TBL$ac_delim 34722 NROFF!$NROFF$ac_delim 34723 TR!$TR$ac_delim 34724 LN!$LN$ac_delim 34725 ETAGS!$ETAGS$ac_delim 34726 PERL!$PERL$ac_delim 34727 ISC_PLATFORM_NEEDSYSSELECTH!$ISC_PLATFORM_NEEDSYSSELECTH$ac_delim 34728 WANT_IRS_GR!$WANT_IRS_GR$ac_delim 34729 _ACEOF 34730 34731 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then 34732 break 34733 elif $ac_last_try; then 34734 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 34735 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 34736 { (exit 1); exit 1; }; } 34737 else 34738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34739 fi 34740 done 34741 34742 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 34743 if test -n "$ac_eof"; then 34744 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 34745 ac_eof=`expr $ac_eof + 1` 34746 fi 34747 34748 cat >>$CONFIG_STATUS <<_ACEOF 34749 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 34750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34751 /^[ ]*@BIND9_INCLUDES@[ ]*$/{ 34752 r $BIND9_INCLUDES 34753 d 34754 } 34755 /^[ ]*@BIND9_MAKE_RULES@[ ]*$/{ 34756 r $BIND9_MAKE_RULES 34757 d 34758 } 34759 /^[ ]*@LIBBIND_API@[ ]*$/{ 34760 r $LIBBIND_API 34761 d 34762 } 34763 _ACEOF 34764 sed ' 34765 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 34766 s/^/s,@/; s/!/@,|#_!!_#|/ 34767 :n 34768 t n 34769 s/'"$ac_delim"'$/,g/; t 34770 s/$/\\/; p 34771 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 34772 ' >>$CONFIG_STATUS <conf$$subs.sed 34773 rm -f conf$$subs.sed 34774 cat >>$CONFIG_STATUS <<_ACEOF 34775 CEOF$ac_eof 34776 _ACEOF 34777 34778 34779 ac_delim='%!_!# ' 34780 for ac_last_try in false false false false false :; do 34781 cat >conf$$subs.sed <<_ACEOF 34782 WANT_IRS_GR_OBJS!$WANT_IRS_GR_OBJS$ac_delim 34783 WANT_IRS_PW!$WANT_IRS_PW$ac_delim 34784 WANT_IRS_PW_OBJS!$WANT_IRS_PW_OBJS$ac_delim 34785 WANT_IRS_NIS!$WANT_IRS_NIS$ac_delim 34786 WANT_IRS_NIS_OBJS!$WANT_IRS_NIS_OBJS$ac_delim 34787 WANT_IRS_NISGR_OBJS!$WANT_IRS_NISGR_OBJS$ac_delim 34788 WANT_IRS_NISPW_OBJS!$WANT_IRS_NISPW_OBJS$ac_delim 34789 WANT_IRS_DBPW_OBJS!$WANT_IRS_DBPW_OBJS$ac_delim 34790 ALWAYS_DEFINES!$ALWAYS_DEFINES$ac_delim 34791 DO_PTHREADS!$DO_PTHREADS$ac_delim 34792 WANT_IRS_THREADSGR_OBJS!$WANT_IRS_THREADSGR_OBJS$ac_delim 34793 WANT_IRS_THREADSPW_OBJS!$WANT_IRS_THREADSPW_OBJS$ac_delim 34794 WANT_IRS_THREADS_OBJS!$WANT_IRS_THREADS_OBJS$ac_delim 34795 WANT_THREADS_OBJS!$WANT_THREADS_OBJS$ac_delim 34796 USE_IFNAMELINKID!$USE_IFNAMELINKID$ac_delim 34797 ISC_THREAD_DIR!$ISC_THREAD_DIR$ac_delim 34798 DAEMON_OBJS!$DAEMON_OBJS$ac_delim 34799 NEED_DAEMON!$NEED_DAEMON$ac_delim 34800 STRSEP_OBJS!$STRSEP_OBJS$ac_delim 34801 NEED_STRSEP!$NEED_STRSEP$ac_delim 34802 NEED_STRERROR!$NEED_STRERROR$ac_delim 34803 MKDEPCC!$MKDEPCC$ac_delim 34804 MKDEPCFLAGS!$MKDEPCFLAGS$ac_delim 34805 MKDEPPROG!$MKDEPPROG$ac_delim 34806 IRIX_DNSSEC_WARNINGS_HACK!$IRIX_DNSSEC_WARNINGS_HACK$ac_delim 34807 purify_path!$purify_path$ac_delim 34808 PURIFY!$PURIFY$ac_delim 34809 O!$O$ac_delim 34810 A!$A$ac_delim 34811 SA!$SA$ac_delim 34812 LIBTOOL_MKDEP_SED!$LIBTOOL_MKDEP_SED$ac_delim 34813 LIBTOOL_MODE_COMPILE!$LIBTOOL_MODE_COMPILE$ac_delim 34814 LIBTOOL_MODE_INSTALL!$LIBTOOL_MODE_INSTALL$ac_delim 34815 LIBTOOL_MODE_LINK!$LIBTOOL_MODE_LINK$ac_delim 34816 HAS_INET6_STRUCTS!$HAS_INET6_STRUCTS$ac_delim 34817 ISC_PLATFORM_NEEDNETINETIN6H!$ISC_PLATFORM_NEEDNETINETIN6H$ac_delim 34818 ISC_PLATFORM_NEEDNETINET6IN6H!$ISC_PLATFORM_NEEDNETINET6IN6H$ac_delim 34819 HAS_IN_ADDR6!$HAS_IN_ADDR6$ac_delim 34820 NEED_IN6ADDR_ANY!$NEED_IN6ADDR_ANY$ac_delim 34821 ISC_PLATFORM_HAVEIN6PKTINFO!$ISC_PLATFORM_HAVEIN6PKTINFO$ac_delim 34822 ISC_PLATFORM_FIXIN6ISADDR!$ISC_PLATFORM_FIXIN6ISADDR$ac_delim 34823 ISC_IPV6_H!$ISC_IPV6_H$ac_delim 34824 ISC_IPV6_O!$ISC_IPV6_O$ac_delim 34825 ISC_ISCIPV6_O!$ISC_ISCIPV6_O$ac_delim 34826 ISC_IPV6_C!$ISC_IPV6_C$ac_delim 34827 HAVE_SIN6_SCOPE_ID!$HAVE_SIN6_SCOPE_ID$ac_delim 34828 HAVE_SOCKADDR_STORAGE!$HAVE_SOCKADDR_STORAGE$ac_delim 34829 ISC_PLATFORM_NEEDNTOP!$ISC_PLATFORM_NEEDNTOP$ac_delim 34830 ISC_PLATFORM_NEEDPTON!$ISC_PLATFORM_NEEDPTON$ac_delim 34831 ISC_PLATFORM_NEEDATON!$ISC_PLATFORM_NEEDATON$ac_delim 34832 HAVE_SA_LEN!$HAVE_SA_LEN$ac_delim 34833 HAVE_MINIMUM_IFREQ!$HAVE_MINIMUM_IFREQ$ac_delim 34834 BSD_COMP!$BSD_COMP$ac_delim 34835 SOLARIS_BITTYPES!$SOLARIS_BITTYPES$ac_delim 34836 USE_FIONBIO_IOCTL!$USE_FIONBIO_IOCTL$ac_delim 34837 PORT_NONBLOCK!$PORT_NONBLOCK$ac_delim 34838 PORT_DIR!$PORT_DIR$ac_delim 34839 USE_POLL!$USE_POLL$ac_delim 34840 HAVE_MD5!$HAVE_MD5$ac_delim 34841 SOLARIS2!$SOLARIS2$ac_delim 34842 PORT_INCLUDE!$PORT_INCLUDE$ac_delim 34843 ISC_PLATFORM_MSGHDRFLAVOR!$ISC_PLATFORM_MSGHDRFLAVOR$ac_delim 34844 ISC_PLATFORM_NEEDPORTT!$ISC_PLATFORM_NEEDPORTT$ac_delim 34845 ISC_PLATFORM_NEEDTIMESPEC!$ISC_PLATFORM_NEEDTIMESPEC$ac_delim 34846 ISC_LWRES_ENDHOSTENTINT!$ISC_LWRES_ENDHOSTENTINT$ac_delim 34847 ISC_LWRES_SETNETENTINT!$ISC_LWRES_SETNETENTINT$ac_delim 34848 ISC_LWRES_ENDNETENTINT!$ISC_LWRES_ENDNETENTINT$ac_delim 34849 ISC_LWRES_GETHOSTBYADDRVOID!$ISC_LWRES_GETHOSTBYADDRVOID$ac_delim 34850 ISC_LWRES_NEEDHERRNO!$ISC_LWRES_NEEDHERRNO$ac_delim 34851 ISC_LWRES_GETIPNODEPROTO!$ISC_LWRES_GETIPNODEPROTO$ac_delim 34852 ISC_LWRES_GETADDRINFOPROTO!$ISC_LWRES_GETADDRINFOPROTO$ac_delim 34853 ISC_LWRES_GETNAMEINFOPROTO!$ISC_LWRES_GETNAMEINFOPROTO$ac_delim 34854 NEED_PSELECT!$NEED_PSELECT$ac_delim 34855 NEED_GETTIMEOFDAY!$NEED_GETTIMEOFDAY$ac_delim 34856 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim 34857 ISC_PLATFORM_NEEDSTRSEP!$ISC_PLATFORM_NEEDSTRSEP$ac_delim 34858 ISC_PLATFORM_NEEDVSNPRINTF!$ISC_PLATFORM_NEEDVSNPRINTF$ac_delim 34859 ISC_EXTRA_OBJS!$ISC_EXTRA_OBJS$ac_delim 34860 ISC_EXTRA_SRCS!$ISC_EXTRA_SRCS$ac_delim 34861 ISC_PLATFORM_QUADFORMAT!$ISC_PLATFORM_QUADFORMAT$ac_delim 34862 ISC_SOCKLEN_T!$ISC_SOCKLEN_T$ac_delim 34863 GETGROUPLIST_ARGS!$GETGROUPLIST_ARGS$ac_delim 34864 NET_R_ARGS!$NET_R_ARGS$ac_delim 34865 NET_R_BAD!$NET_R_BAD$ac_delim 34866 NET_R_COPY!$NET_R_COPY$ac_delim 34867 NET_R_COPY_ARGS!$NET_R_COPY_ARGS$ac_delim 34868 NET_R_OK!$NET_R_OK$ac_delim 34869 NET_R_SETANSWER!$NET_R_SETANSWER$ac_delim 34870 NET_R_RETURN!$NET_R_RETURN$ac_delim 34871 GETNETBYADDR_ADDR_T!$GETNETBYADDR_ADDR_T$ac_delim 34872 NETENT_DATA!$NETENT_DATA$ac_delim 34873 NET_R_ENT_ARGS!$NET_R_ENT_ARGS$ac_delim 34874 NET_R_SET_RESULT!$NET_R_SET_RESULT$ac_delim 34875 NET_R_SET_RETURN!$NET_R_SET_RETURN$ac_delim 34876 NET_R_END_RESULT!$NET_R_END_RESULT$ac_delim 34877 NET_R_END_RETURN!$NET_R_END_RETURN$ac_delim 34878 GROUP_R_ARGS!$GROUP_R_ARGS$ac_delim 34879 _ACEOF 34880 34881 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 34882 break 34883 elif $ac_last_try; then 34884 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 34885 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 34886 { (exit 1); exit 1; }; } 34887 else 34888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34889 fi 34890 done 34891 34892 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 34893 if test -n "$ac_eof"; then 34894 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 34895 ac_eof=`expr $ac_eof + 1` 34896 fi 34897 34898 cat >>$CONFIG_STATUS <<_ACEOF 34899 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 34900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34901 _ACEOF 34902 sed ' 34903 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 34904 s/^/s,@/; s/!/@,|#_!!_#|/ 34905 :n 34906 t n 34907 s/'"$ac_delim"'$/,g/; t 34908 s/$/\\/; p 34909 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 34910 ' >>$CONFIG_STATUS <conf$$subs.sed 34911 rm -f conf$$subs.sed 34912 cat >>$CONFIG_STATUS <<_ACEOF 34913 CEOF$ac_eof 34914 _ACEOF 34915 34916 34917 ac_delim='%!_!# ' 34918 for ac_last_try in false false false false false :; do 34919 cat >conf$$subs.sed <<_ACEOF 34920 GROUP_R_BAD!$GROUP_R_BAD$ac_delim 34921 GROUP_R_OK!$GROUP_R_OK$ac_delim 34922 GROUP_R_RETURN!$GROUP_R_RETURN$ac_delim 34923 GROUP_R_END_RESULT!$GROUP_R_END_RESULT$ac_delim 34924 GROUP_R_END_RETURN!$GROUP_R_END_RETURN$ac_delim 34925 GROUP_R_ENT_ARGS!$GROUP_R_ENT_ARGS$ac_delim 34926 GROUP_R_SET_RESULT!$GROUP_R_SET_RESULT$ac_delim 34927 GROUP_R_SET_RETURN!$GROUP_R_SET_RETURN$ac_delim 34928 HOST_R_ARGS!$HOST_R_ARGS$ac_delim 34929 HOST_R_BAD!$HOST_R_BAD$ac_delim 34930 HOST_R_COPY!$HOST_R_COPY$ac_delim 34931 HOST_R_COPY_ARGS!$HOST_R_COPY_ARGS$ac_delim 34932 HOST_R_ERRNO!$HOST_R_ERRNO$ac_delim 34933 HOST_R_OK!$HOST_R_OK$ac_delim 34934 HOST_R_RETURN!$HOST_R_RETURN$ac_delim 34935 HOST_R_SETANSWER!$HOST_R_SETANSWER$ac_delim 34936 HOSTENT_DATA!$HOSTENT_DATA$ac_delim 34937 HOST_R_END_RESULT!$HOST_R_END_RESULT$ac_delim 34938 HOST_R_END_RETURN!$HOST_R_END_RETURN$ac_delim 34939 HOST_R_ENT_ARGS!$HOST_R_ENT_ARGS$ac_delim 34940 HOST_R_SET_RESULT!$HOST_R_SET_RESULT$ac_delim 34941 HOST_R_SET_RETURN!$HOST_R_SET_RETURN$ac_delim 34942 SETPWENT_VOID!$SETPWENT_VOID$ac_delim 34943 SETGRENT_VOID!$SETGRENT_VOID$ac_delim 34944 NGR_R_CONST!$NGR_R_CONST$ac_delim 34945 NGR_R_ARGS!$NGR_R_ARGS$ac_delim 34946 NGR_R_BAD!$NGR_R_BAD$ac_delim 34947 NGR_R_COPY!$NGR_R_COPY$ac_delim 34948 NGR_R_COPY_ARGS!$NGR_R_COPY_ARGS$ac_delim 34949 NGR_R_OK!$NGR_R_OK$ac_delim 34950 NGR_R_RETURN!$NGR_R_RETURN$ac_delim 34951 NGR_R_PRIVATE!$NGR_R_PRIVATE$ac_delim 34952 NGR_R_END_RESULT!$NGR_R_END_RESULT$ac_delim 34953 NGR_R_END_RETURN!$NGR_R_END_RETURN$ac_delim 34954 NGR_R_END_ARGS!$NGR_R_END_ARGS$ac_delim 34955 NGR_R_SET_RESULT!$NGR_R_SET_RESULT$ac_delim 34956 NGR_R_SET_RETURN!$NGR_R_SET_RETURN$ac_delim 34957 NGR_R_SET_ARGS!$NGR_R_SET_ARGS$ac_delim 34958 NGR_R_SET_CONST!$NGR_R_SET_CONST$ac_delim 34959 PROTO_R_ARGS!$PROTO_R_ARGS$ac_delim 34960 PROTO_R_BAD!$PROTO_R_BAD$ac_delim 34961 PROTO_R_COPY!$PROTO_R_COPY$ac_delim 34962 PROTO_R_COPY_ARGS!$PROTO_R_COPY_ARGS$ac_delim 34963 PROTO_R_OK!$PROTO_R_OK$ac_delim 34964 PROTO_R_SETANSWER!$PROTO_R_SETANSWER$ac_delim 34965 PROTO_R_RETURN!$PROTO_R_RETURN$ac_delim 34966 PROTOENT_DATA!$PROTOENT_DATA$ac_delim 34967 PROTO_R_END_RESULT!$PROTO_R_END_RESULT$ac_delim 34968 PROTO_R_END_RETURN!$PROTO_R_END_RETURN$ac_delim 34969 PROTO_R_ENT_ARGS!$PROTO_R_ENT_ARGS$ac_delim 34970 PROTO_R_ENT_UNUSED!$PROTO_R_ENT_UNUSED$ac_delim 34971 PROTO_R_SET_RESULT!$PROTO_R_SET_RESULT$ac_delim 34972 PROTO_R_SET_RETURN!$PROTO_R_SET_RETURN$ac_delim 34973 PASS_R_ARGS!$PASS_R_ARGS$ac_delim 34974 PASS_R_BAD!$PASS_R_BAD$ac_delim 34975 PASS_R_COPY!$PASS_R_COPY$ac_delim 34976 PASS_R_COPY_ARGS!$PASS_R_COPY_ARGS$ac_delim 34977 PASS_R_OK!$PASS_R_OK$ac_delim 34978 PASS_R_RETURN!$PASS_R_RETURN$ac_delim 34979 PASS_R_END_RESULT!$PASS_R_END_RESULT$ac_delim 34980 PASS_R_END_RETURN!$PASS_R_END_RETURN$ac_delim 34981 PASS_R_ENT_ARGS!$PASS_R_ENT_ARGS$ac_delim 34982 PASS_R_SET_RESULT!$PASS_R_SET_RESULT$ac_delim 34983 PASS_R_SET_RETURN!$PASS_R_SET_RETURN$ac_delim 34984 SERV_R_ARGS!$SERV_R_ARGS$ac_delim 34985 SERV_R_BAD!$SERV_R_BAD$ac_delim 34986 SERV_R_COPY!$SERV_R_COPY$ac_delim 34987 SERV_R_COPY_ARGS!$SERV_R_COPY_ARGS$ac_delim 34988 SERV_R_OK!$SERV_R_OK$ac_delim 34989 SERV_R_SETANSWER!$SERV_R_SETANSWER$ac_delim 34990 SERV_R_RETURN!$SERV_R_RETURN$ac_delim 34991 SERVENT_DATA!$SERVENT_DATA$ac_delim 34992 SERV_R_END_RESULT!$SERV_R_END_RESULT$ac_delim 34993 SERV_R_END_RETURN!$SERV_R_END_RETURN$ac_delim 34994 SERV_R_ENT_ARGS!$SERV_R_ENT_ARGS$ac_delim 34995 SERV_R_ENT_UNUSED!$SERV_R_ENT_UNUSED$ac_delim 34996 SERV_R_SET_RESULT!$SERV_R_SET_RESULT$ac_delim 34997 SERV_R_SET_RETURN!$SERV_R_SET_RETURN$ac_delim 34998 SETNETGRENT_ARGS!$SETNETGRENT_ARGS$ac_delim 34999 INNETGR_ARGS!$INNETGR_ARGS$ac_delim 35000 BIND9_TOP_BUILDDIR!$BIND9_TOP_BUILDDIR$ac_delim 35001 LIBOBJS!$LIBOBJS$ac_delim 35002 LTLIBOBJS!$LTLIBOBJS$ac_delim 35003 _ACEOF 35004 35005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then 35006 break 35007 elif $ac_last_try; then 35008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 35009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 35010 { (exit 1); exit 1; }; } 35011 else 35012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35013 fi 35014 done 35015 35016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 35017 if test -n "$ac_eof"; then 35018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 35019 ac_eof=`expr $ac_eof + 1` 35020 fi 35021 35022 cat >>$CONFIG_STATUS <<_ACEOF 35023 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 35024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 35025 _ACEOF 35026 sed ' 35027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 35028 s/^/s,@/; s/!/@,|#_!!_#|/ 35029 :n 35030 t n 35031 s/'"$ac_delim"'$/,g/; t 35032 s/$/\\/; p 35033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 35034 ' >>$CONFIG_STATUS <conf$$subs.sed 35035 rm -f conf$$subs.sed 35036 cat >>$CONFIG_STATUS <<_ACEOF 35037 :end 35038 s/|#_!!_#|//g 35039 CEOF$ac_eof 35040 _ACEOF 35041 35042 35043 # VPATH may cause trouble with some makes, so we remove $(srcdir), 35044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 35045 # trailing colons and then remove the whole line if VPATH becomes empty 35046 # (actually we leave an empty line to preserve line numbers). 35047 if test "x$srcdir" = x.; then 35048 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 35049 s/:*\$(srcdir):*/:/ 35050 s/:*\${srcdir}:*/:/ 35051 s/:*@srcdir@:*/:/ 35052 s/^\([^=]*=[ ]*\):*/\1/ 35053 s/:*$// 35054 s/^[^=]*=[ ]*$// 35055 }' 35056 fi 35057 35058 cat >>$CONFIG_STATUS <<\_ACEOF 35059 fi # test -n "$CONFIG_FILES" 35060 35061 35062 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 35063 do 35064 case $ac_tag in 35065 :[FHLC]) ac_mode=$ac_tag; continue;; 35066 esac 35067 case $ac_mode$ac_tag in 35068 :[FHL]*:*);; 35069 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 35070 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 35071 { (exit 1); exit 1; }; };; 35072 :[FH]-) ac_tag=-:-;; 35073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35074 esac 35075 ac_save_IFS=$IFS 35076 IFS=: 35077 set x $ac_tag 35078 IFS=$ac_save_IFS 35079 shift 35080 ac_file=$1 35081 shift 35082 35083 case $ac_mode in 35084 :L) ac_source=$1;; 35085 :[FH]) 35086 ac_file_inputs= 35087 for ac_f 35088 do 35089 case $ac_f in 35090 -) ac_f="$tmp/stdin";; 35091 *) # Look for the file first in the build tree, then in the source tree 35092 # (if the path is not absolute). The absolute path cannot be DOS-style, 35093 # because $ac_f cannot contain `:'. 35094 test -f "$ac_f" || 35095 case $ac_f in 35096 [\\/$]*) false;; 35097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35098 esac || 35099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 35100 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 35101 { (exit 1); exit 1; }; };; 35102 esac 35103 ac_file_inputs="$ac_file_inputs $ac_f" 35104 done 35105 35106 # Let's still pretend it is `configure' which instantiates (i.e., don't 35107 # use $as_me), people would be surprised to read: 35108 # /* config.h. Generated by config.status. */ 35109 configure_input="Generated from "`IFS=: 35110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 35111 if test x"$ac_file" != x-; then 35112 configure_input="$ac_file. $configure_input" 35113 { echo "$as_me:$LINENO: creating $ac_file" >&5 35114 echo "$as_me: creating $ac_file" >&6;} 35115 fi 35116 35117 case $ac_tag in 35118 *:-:* | *:-) cat >"$tmp/stdin";; 35119 esac 35120 ;; 35121 esac 35122 35123 ac_dir=`$as_dirname -- "$ac_file" || 35124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35125 X"$ac_file" : 'X\(//\)[^/]' \| \ 35126 X"$ac_file" : 'X\(//\)$' \| \ 35127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35128 echo X"$ac_file" | 35129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35130 s//\1/ 35131 q 35132 } 35133 /^X\(\/\/\)[^/].*/{ 35134 s//\1/ 35135 q 35136 } 35137 /^X\(\/\/\)$/{ 35138 s//\1/ 35139 q 35140 } 35141 /^X\(\/\).*/{ 35142 s//\1/ 35143 q 35144 } 35145 s/.*/./; q'` 35146 { as_dir="$ac_dir" 35147 case $as_dir in #( 35148 -*) as_dir=./$as_dir;; 35149 esac 35150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 35151 as_dirs= 35152 while :; do 35153 case $as_dir in #( 35154 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 35155 *) as_qdir=$as_dir;; 35156 esac 35157 as_dirs="'$as_qdir' $as_dirs" 35158 as_dir=`$as_dirname -- "$as_dir" || 35159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35160 X"$as_dir" : 'X\(//\)[^/]' \| \ 35161 X"$as_dir" : 'X\(//\)$' \| \ 35162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 35163 echo X"$as_dir" | 35164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35165 s//\1/ 35166 q 35167 } 35168 /^X\(\/\/\)[^/].*/{ 35169 s//\1/ 35170 q 35171 } 35172 /^X\(\/\/\)$/{ 35173 s//\1/ 35174 q 35175 } 35176 /^X\(\/\).*/{ 35177 s//\1/ 35178 q 35179 } 35180 s/.*/./; q'` 35181 test -d "$as_dir" && break 35182 done 35183 test -z "$as_dirs" || eval "mkdir $as_dirs" 35184 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 35185 echo "$as_me: error: cannot create directory $as_dir" >&2;} 35186 { (exit 1); exit 1; }; }; } 35187 ac_builddir=. 35188 35189 case "$ac_dir" in 35190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35191 *) 35192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 35193 # A ".." for each directory in $ac_dir_suffix. 35194 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 35195 case $ac_top_builddir_sub in 35196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35198 esac ;; 35199 esac 35200 ac_abs_top_builddir=$ac_pwd 35201 ac_abs_builddir=$ac_pwd$ac_dir_suffix 35202 # for backward compatibility: 35203 ac_top_builddir=$ac_top_build_prefix 35204 35205 case $srcdir in 35206 .) # We are building in place. 35207 ac_srcdir=. 35208 ac_top_srcdir=$ac_top_builddir_sub 35209 ac_abs_top_srcdir=$ac_pwd ;; 35210 [\\/]* | ?:[\\/]* ) # Absolute name. 35211 ac_srcdir=$srcdir$ac_dir_suffix; 35212 ac_top_srcdir=$srcdir 35213 ac_abs_top_srcdir=$srcdir ;; 35214 *) # Relative name. 35215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35216 ac_top_srcdir=$ac_top_build_prefix$srcdir 35217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35218 esac 35219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35220 35221 35222 case $ac_mode in 35223 :F) 35224 # 35225 # CONFIG_FILE 35226 # 35227 35228 case $INSTALL in 35229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35231 esac 35232 _ACEOF 35233 35234 cat >>$CONFIG_STATUS <<\_ACEOF 35235 # If the template does not know about datarootdir, expand it. 35236 # FIXME: This hack should be removed a few years after 2.60. 35237 ac_datarootdir_hack=; ac_datarootdir_seen= 35238 35239 case `sed -n '/datarootdir/ { 35240 p 35241 q 35242 } 35243 /@datadir@/p 35244 /@docdir@/p 35245 /@infodir@/p 35246 /@localedir@/p 35247 /@mandir@/p 35248 ' $ac_file_inputs` in 35249 *datarootdir*) ac_datarootdir_seen=yes;; 35250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35251 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35252 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35253 _ACEOF 35254 cat >>$CONFIG_STATUS <<_ACEOF 35255 ac_datarootdir_hack=' 35256 s&@datadir@&$datadir&g 35257 s&@docdir@&$docdir&g 35258 s&@infodir@&$infodir&g 35259 s&@localedir@&$localedir&g 35260 s&@mandir@&$mandir&g 35261 s&\\\${datarootdir}&$datarootdir&g' ;; 35262 esac 35263 _ACEOF 35264 35265 # Neutralize VPATH when `$srcdir' = `.'. 35266 # Shell code in configure.ac might set extrasub. 35267 # FIXME: do we really want to maintain this feature? 35268 cat >>$CONFIG_STATUS <<_ACEOF 35269 sed "$ac_vpsub 35270 $extrasub 35271 _ACEOF 35272 cat >>$CONFIG_STATUS <<\_ACEOF 35273 :t 35274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35275 s&@configure_input@&$configure_input&;t t 35276 s&@top_builddir@&$ac_top_builddir_sub&;t t 35277 s&@srcdir@&$ac_srcdir&;t t 35278 s&@abs_srcdir@&$ac_abs_srcdir&;t t 35279 s&@top_srcdir@&$ac_top_srcdir&;t t 35280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35281 s&@builddir@&$ac_builddir&;t t 35282 s&@abs_builddir@&$ac_abs_builddir&;t t 35283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35284 s&@INSTALL@&$ac_INSTALL&;t t 35285 $ac_datarootdir_hack 35286 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 35287 35288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 35290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 35291 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35292 which seems to be undefined. Please make sure it is defined." >&5 35293 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35294 which seems to be undefined. Please make sure it is defined." >&2;} 35295 35296 rm -f "$tmp/stdin" 35297 case $ac_file in 35298 -) cat "$tmp/out"; rm -f "$tmp/out";; 35299 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 35300 esac 35301 ;; 35302 :H) 35303 # 35304 # CONFIG_HEADER 35305 # 35306 _ACEOF 35307 35308 # Transform confdefs.h into a sed script `conftest.defines', that 35309 # substitutes the proper values into config.h.in to produce config.h. 35310 rm -f conftest.defines conftest.tail 35311 # First, append a space to every undef/define line, to ease matching. 35312 echo 's/$/ /' >conftest.defines 35313 # Then, protect against being on the right side of a sed subst, or in 35314 # an unquoted here document, in config.status. If some macros were 35315 # called several times there might be several #defines for the same 35316 # symbol, which is useless. But do not sort them, since the last 35317 # AC_DEFINE must be honored. 35318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 35319 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 35320 # NAME is the cpp macro being defined, VALUE is the value it is being given. 35321 # PARAMS is the parameter list in the macro definition--in most cases, it's 35322 # just an empty string. 35323 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 35324 ac_dB='\\)[ (].*,\\1define\\2' 35325 ac_dC=' ' 35326 ac_dD=' ,' 35327 35328 uniq confdefs.h | 35329 sed -n ' 35330 t rset 35331 :rset 35332 s/^[ ]*#[ ]*define[ ][ ]*// 35333 t ok 35334 d 35335 :ok 35336 s/[\\&,]/\\&/g 35337 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 35338 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 35339 ' >>conftest.defines 35340 35341 # Remove the space that was appended to ease matching. 35342 # Then replace #undef with comments. This is necessary, for 35343 # example, in the case of _POSIX_SOURCE, which is predefined and required 35344 # on some systems where configure will not decide to define it. 35345 # (The regexp can be short, since the line contains either #define or #undef.) 35346 echo 's/ $// 35347 s,^[ #]*u.*,/* & */,' >>conftest.defines 35348 35349 # Break up conftest.defines: 35350 ac_max_sed_lines=50 35351 35352 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 35353 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 35354 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 35355 # et cetera. 35356 ac_in='$ac_file_inputs' 35357 ac_out='"$tmp/out1"' 35358 ac_nxt='"$tmp/out2"' 35359 35360 while : 35361 do 35362 # Write a here document: 35363 cat >>$CONFIG_STATUS <<_ACEOF 35364 # First, check the format of the line: 35365 cat >"\$tmp/defines.sed" <<\\CEOF 35366 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 35367 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 35368 b 35369 :def 35370 _ACEOF 35371 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 35372 echo 'CEOF 35373 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 35374 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 35375 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 35376 grep . conftest.tail >/dev/null || break 35377 rm -f conftest.defines 35378 mv conftest.tail conftest.defines 35379 done 35380 rm -f conftest.defines conftest.tail 35381 35382 echo "ac_result=$ac_in" >>$CONFIG_STATUS 35383 cat >>$CONFIG_STATUS <<\_ACEOF 35384 if test x"$ac_file" != x-; then 35385 echo "/* $configure_input */" >"$tmp/config.h" 35386 cat "$ac_result" >>"$tmp/config.h" 35387 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 35388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 35389 echo "$as_me: $ac_file is unchanged" >&6;} 35390 else 35391 rm -f $ac_file 35392 mv "$tmp/config.h" $ac_file 35393 fi 35394 else 35395 echo "/* $configure_input */" 35396 cat "$ac_result" 35397 fi 35398 rm -f "$tmp/out12" 35399 ;; 35400 35401 35402 esac 35403 35404 done # for ac_tag 35405 35406 35407 { (exit 0); exit 0; } 35408 _ACEOF 35409 chmod +x $CONFIG_STATUS 35410 ac_clean_files=$ac_clean_files_save 35411 35412 35413 # configure is writing to config.log, and then calls config.status. 35414 # config.status does its own redirection, appending to config.log. 35415 # Unfortunately, on DOS this fails, as config.log is still kept open 35416 # by configure, so config.status won't be able to write to it; its 35417 # output is simply discarded. So we exec the FD to /dev/null, 35418 # effectively closing config.log, so it can be properly (re)opened and 35419 # appended to by config.status. When coming back to configure, we 35420 # need to make the FD available again. 35421 if test "$no_create" != yes; then 35422 ac_cs_success=: 35423 ac_config_status_args= 35424 test "$silent" = yes && 35425 ac_config_status_args="$ac_config_status_args --quiet" 35426 exec 5>/dev/null 35427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35428 exec 5>>config.log 35429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35430 # would make configure fail if this is the last instruction. 35431 $ac_cs_success || { (exit 1); exit 1; } 35432 fi 35433 35434 35435 # Tell Emacs to edit this file in shell mode. 35436 # Local Variables: 35437 # mode: sh 35438 # End: 35439