1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.61 for top 3.8beta1. 4 # 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22 else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40 # The user is always right. 41 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74 for as_dir in $PATH 75 do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463 } 464 465 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468 else 469 as_dirname=false 470 fi 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 474 -n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479 *) 480 ECHO_N='-n';; 481 esac 482 483 if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486 else 487 as_expr=false 488 fi 489 490 rm -f conf$$ conf$$.exe conf$$.file 491 if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493 else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 497 echo >conf$$.file 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506 elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508 else 509 as_ln_s='cp -p' 510 fi 511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512 rmdir conf$$.dir 2>/dev/null 513 514 if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516 else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519 fi 520 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 543 544 # Sed expression to map a string onto a valid CPP name. 545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547 # Sed expression to map a string onto a valid variable name. 548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 exec 7<&0 </dev/null 6>&1 553 554 # Name of the host. 555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556 # so uname gets run too. 557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559 # 560 # Initializations. 561 # 562 ac_default_prefix=/usr/local 563 ac_clean_files= 564 ac_config_libobj_dir=. 565 LIBOBJS= 566 cross_compiling=no 567 subdirs= 568 MFLAGS= 569 MAKEFLAGS= 570 SHELL=${CONFIG_SHELL-/bin/sh} 571 572 # Identity of this package. 573 PACKAGE_NAME='top' 574 PACKAGE_TARNAME='top' 575 PACKAGE_VERSION='3.8beta1' 576 PACKAGE_STRING='top 3.8beta1' 577 PACKAGE_BUGREPORT='' 578 579 # Factoring default headers for most tests. 580 ac_includes_default="\ 581 #include <stdio.h> 582 #ifdef HAVE_SYS_TYPES_H 583 # include <sys/types.h> 584 #endif 585 #ifdef HAVE_SYS_STAT_H 586 # include <sys/stat.h> 587 #endif 588 #ifdef STDC_HEADERS 589 # include <stdlib.h> 590 # include <stddef.h> 591 #else 592 # ifdef HAVE_STDLIB_H 593 # include <stdlib.h> 594 # endif 595 #endif 596 #ifdef HAVE_STRING_H 597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598 # include <memory.h> 599 # endif 600 # include <string.h> 601 #endif 602 #ifdef HAVE_STRINGS_H 603 # include <strings.h> 604 #endif 605 #ifdef HAVE_INTTYPES_H 606 # include <inttypes.h> 607 #endif 608 #ifdef HAVE_STDINT_H 609 # include <stdint.h> 610 #endif 611 #ifdef HAVE_UNISTD_H 612 # include <unistd.h> 613 #endif" 614 615 ac_subst_vars='SHELL 616 PATH_SEPARATOR 617 PACKAGE_NAME 618 PACKAGE_TARNAME 619 PACKAGE_VERSION 620 PACKAGE_STRING 621 PACKAGE_BUGREPORT 622 exec_prefix 623 prefix 624 program_transform_name 625 bindir 626 sbindir 627 libexecdir 628 datarootdir 629 datadir 630 sysconfdir 631 sharedstatedir 632 localstatedir 633 includedir 634 oldincludedir 635 docdir 636 infodir 637 htmldir 638 dvidir 639 pdfdir 640 psdir 641 libdir 642 localedir 643 mandir 644 DEFS 645 ECHO_C 646 ECHO_N 647 ECHO_T 648 LIBS 649 build_alias 650 host_alias 651 target_alias 652 build 653 build_cpu 654 build_vendor 655 build_os 656 host 657 host_cpu 658 host_vendor 659 host_os 660 target 661 target_cpu 662 target_vendor 663 target_os 664 DEFAULT_TOPN 665 NOMINAL_TOPN 666 DEFAULT_DELAY 667 ENABLE_KILL 668 MAKE 669 CC 670 CFLAGS 671 LDFLAGS 672 CPPFLAGS 673 ac_ct_CC 674 EXEEXT 675 OBJEXT 676 AWK 677 INSTALL_PROGRAM 678 INSTALL_SCRIPT 679 INSTALL_DATA 680 ISAINFO 681 ISAEXEC 682 UNAME 683 CPP 684 GREP 685 EGREP 686 SIGNAL_H 687 HAVE_GETOPT_LONG 688 SRC 689 OBJ 690 CLEAN_EXTRA 691 ARCHFLAG 692 MODULE 693 MODULE_CFLAGS 694 INSTALL_OPTS_PROG 695 LIBOBJS 696 LTLIBOBJS' 697 ac_subst_files='FIRST_RULE 698 INSTALL_RULE 699 MAN_SUPPLEMENT' 700 ac_precious_vars='build_alias 701 host_alias 702 target_alias 703 CC 704 CFLAGS 705 LDFLAGS 706 LIBS 707 CPPFLAGS 708 CPP' 709 710 711 # Initialize some variables set by options. 712 ac_init_help= 713 ac_init_version=false 714 # The variables have the same names as the options, with 715 # dashes changed to underlines. 716 cache_file=/dev/null 717 exec_prefix=NONE 718 no_create= 719 no_recursion= 720 prefix=NONE 721 program_prefix=NONE 722 program_suffix=NONE 723 program_transform_name=s,x,x, 724 silent= 725 site= 726 srcdir= 727 verbose= 728 x_includes=NONE 729 x_libraries=NONE 730 731 # Installation directory options. 732 # These are left unexpanded so users can "make install exec_prefix=/foo" 733 # and all the variables that are supposed to be based on exec_prefix 734 # by default will actually change. 735 # Use braces instead of parens because sh, perl, etc. also accept them. 736 # (The list follows the same order as the GNU Coding Standards.) 737 bindir='${exec_prefix}/bin' 738 sbindir='${exec_prefix}/sbin' 739 libexecdir='${exec_prefix}/libexec' 740 datarootdir='${prefix}/share' 741 datadir='${datarootdir}' 742 sysconfdir='${prefix}/etc' 743 sharedstatedir='${prefix}/com' 744 localstatedir='${prefix}/var' 745 includedir='${prefix}/include' 746 oldincludedir='/usr/include' 747 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 748 infodir='${datarootdir}/info' 749 htmldir='${docdir}' 750 dvidir='${docdir}' 751 pdfdir='${docdir}' 752 psdir='${docdir}' 753 libdir='${exec_prefix}/lib' 754 localedir='${datarootdir}/locale' 755 mandir='${datarootdir}/man' 756 757 ac_prev= 758 ac_dashdash= 759 for ac_option 760 do 761 # If the previous option needs an argument, assign it. 762 if test -n "$ac_prev"; then 763 eval $ac_prev=\$ac_option 764 ac_prev= 765 continue 766 fi 767 768 case $ac_option in 769 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 770 *) ac_optarg=yes ;; 771 esac 772 773 # Accept the important Cygnus configure options, so we can diagnose typos. 774 775 case $ac_dashdash$ac_option in 776 --) 777 ac_dashdash=yes ;; 778 779 -bindir | --bindir | --bindi | --bind | --bin | --bi) 780 ac_prev=bindir ;; 781 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 782 bindir=$ac_optarg ;; 783 784 -build | --build | --buil | --bui | --bu) 785 ac_prev=build_alias ;; 786 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 787 build_alias=$ac_optarg ;; 788 789 -cache-file | --cache-file | --cache-fil | --cache-fi \ 790 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 791 ac_prev=cache_file ;; 792 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 793 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 794 cache_file=$ac_optarg ;; 795 796 --config-cache | -C) 797 cache_file=config.cache ;; 798 799 -datadir | --datadir | --datadi | --datad) 800 ac_prev=datadir ;; 801 -datadir=* | --datadir=* | --datadi=* | --datad=*) 802 datadir=$ac_optarg ;; 803 804 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 805 | --dataroo | --dataro | --datar) 806 ac_prev=datarootdir ;; 807 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 808 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 809 datarootdir=$ac_optarg ;; 810 811 -disable-* | --disable-*) 812 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 813 # Reject names that are not valid shell variable names. 814 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 815 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 816 { (exit 1); exit 1; }; } 817 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 818 eval enable_$ac_feature=no ;; 819 820 -docdir | --docdir | --docdi | --doc | --do) 821 ac_prev=docdir ;; 822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 823 docdir=$ac_optarg ;; 824 825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 826 ac_prev=dvidir ;; 827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 828 dvidir=$ac_optarg ;; 829 830 -enable-* | --enable-*) 831 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 832 # Reject names that are not valid shell variable names. 833 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 834 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 835 { (exit 1); exit 1; }; } 836 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 837 eval enable_$ac_feature=\$ac_optarg ;; 838 839 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 840 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 841 | --exec | --exe | --ex) 842 ac_prev=exec_prefix ;; 843 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 844 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 845 | --exec=* | --exe=* | --ex=*) 846 exec_prefix=$ac_optarg ;; 847 848 -gas | --gas | --ga | --g) 849 # Obsolete; use --with-gas. 850 with_gas=yes ;; 851 852 -help | --help | --hel | --he | -h) 853 ac_init_help=long ;; 854 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 855 ac_init_help=recursive ;; 856 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 857 ac_init_help=short ;; 858 859 -host | --host | --hos | --ho) 860 ac_prev=host_alias ;; 861 -host=* | --host=* | --hos=* | --ho=*) 862 host_alias=$ac_optarg ;; 863 864 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 865 ac_prev=htmldir ;; 866 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 867 | --ht=*) 868 htmldir=$ac_optarg ;; 869 870 -includedir | --includedir | --includedi | --included | --include \ 871 | --includ | --inclu | --incl | --inc) 872 ac_prev=includedir ;; 873 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 874 | --includ=* | --inclu=* | --incl=* | --inc=*) 875 includedir=$ac_optarg ;; 876 877 -infodir | --infodir | --infodi | --infod | --info | --inf) 878 ac_prev=infodir ;; 879 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 880 infodir=$ac_optarg ;; 881 882 -libdir | --libdir | --libdi | --libd) 883 ac_prev=libdir ;; 884 -libdir=* | --libdir=* | --libdi=* | --libd=*) 885 libdir=$ac_optarg ;; 886 887 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 888 | --libexe | --libex | --libe) 889 ac_prev=libexecdir ;; 890 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 891 | --libexe=* | --libex=* | --libe=*) 892 libexecdir=$ac_optarg ;; 893 894 -localedir | --localedir | --localedi | --localed | --locale) 895 ac_prev=localedir ;; 896 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 897 localedir=$ac_optarg ;; 898 899 -localstatedir | --localstatedir | --localstatedi | --localstated \ 900 | --localstate | --localstat | --localsta | --localst | --locals) 901 ac_prev=localstatedir ;; 902 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 903 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 904 localstatedir=$ac_optarg ;; 905 906 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 907 ac_prev=mandir ;; 908 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 909 mandir=$ac_optarg ;; 910 911 -nfp | --nfp | --nf) 912 # Obsolete; use --without-fp. 913 with_fp=no ;; 914 915 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 916 | --no-cr | --no-c | -n) 917 no_create=yes ;; 918 919 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 920 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 921 no_recursion=yes ;; 922 923 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 924 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 925 | --oldin | --oldi | --old | --ol | --o) 926 ac_prev=oldincludedir ;; 927 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 928 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 929 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 930 oldincludedir=$ac_optarg ;; 931 932 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 933 ac_prev=prefix ;; 934 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 935 prefix=$ac_optarg ;; 936 937 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 938 | --program-pre | --program-pr | --program-p) 939 ac_prev=program_prefix ;; 940 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 941 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 942 program_prefix=$ac_optarg ;; 943 944 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 945 | --program-suf | --program-su | --program-s) 946 ac_prev=program_suffix ;; 947 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 948 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 949 program_suffix=$ac_optarg ;; 950 951 -program-transform-name | --program-transform-name \ 952 | --program-transform-nam | --program-transform-na \ 953 | --program-transform-n | --program-transform- \ 954 | --program-transform | --program-transfor \ 955 | --program-transfo | --program-transf \ 956 | --program-trans | --program-tran \ 957 | --progr-tra | --program-tr | --program-t) 958 ac_prev=program_transform_name ;; 959 -program-transform-name=* | --program-transform-name=* \ 960 | --program-transform-nam=* | --program-transform-na=* \ 961 | --program-transform-n=* | --program-transform-=* \ 962 | --program-transform=* | --program-transfor=* \ 963 | --program-transfo=* | --program-transf=* \ 964 | --program-trans=* | --program-tran=* \ 965 | --progr-tra=* | --program-tr=* | --program-t=*) 966 program_transform_name=$ac_optarg ;; 967 968 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 969 ac_prev=pdfdir ;; 970 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 971 pdfdir=$ac_optarg ;; 972 973 -psdir | --psdir | --psdi | --psd | --ps) 974 ac_prev=psdir ;; 975 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 976 psdir=$ac_optarg ;; 977 978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 979 | -silent | --silent | --silen | --sile | --sil) 980 silent=yes ;; 981 982 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 983 ac_prev=sbindir ;; 984 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 985 | --sbi=* | --sb=*) 986 sbindir=$ac_optarg ;; 987 988 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 989 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 990 | --sharedst | --shareds | --shared | --share | --shar \ 991 | --sha | --sh) 992 ac_prev=sharedstatedir ;; 993 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 994 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 995 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 996 | --sha=* | --sh=*) 997 sharedstatedir=$ac_optarg ;; 998 999 -site | --site | --sit) 1000 ac_prev=site ;; 1001 -site=* | --site=* | --sit=*) 1002 site=$ac_optarg ;; 1003 1004 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1005 ac_prev=srcdir ;; 1006 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1007 srcdir=$ac_optarg ;; 1008 1009 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1010 | --syscon | --sysco | --sysc | --sys | --sy) 1011 ac_prev=sysconfdir ;; 1012 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1013 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1014 sysconfdir=$ac_optarg ;; 1015 1016 -target | --target | --targe | --targ | --tar | --ta | --t) 1017 ac_prev=target_alias ;; 1018 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1019 target_alias=$ac_optarg ;; 1020 1021 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1022 verbose=yes ;; 1023 1024 -version | --version | --versio | --versi | --vers | -V) 1025 ac_init_version=: ;; 1026 1027 -with-* | --with-*) 1028 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1031 { echo "$as_me: error: invalid package name: $ac_package" >&2 1032 { (exit 1); exit 1; }; } 1033 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1034 eval with_$ac_package=\$ac_optarg ;; 1035 1036 -without-* | --without-*) 1037 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1040 { echo "$as_me: error: invalid package name: $ac_package" >&2 1041 { (exit 1); exit 1; }; } 1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1043 eval with_$ac_package=no ;; 1044 1045 --x) 1046 # Obsolete; use --with-x. 1047 with_x=yes ;; 1048 1049 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1050 | --x-incl | --x-inc | --x-in | --x-i) 1051 ac_prev=x_includes ;; 1052 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1053 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1054 x_includes=$ac_optarg ;; 1055 1056 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1057 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1058 ac_prev=x_libraries ;; 1059 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1060 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1061 x_libraries=$ac_optarg ;; 1062 1063 -*) { echo "$as_me: error: unrecognized option: $ac_option 1064 Try \`$0 --help' for more information." >&2 1065 { (exit 1); exit 1; }; } 1066 ;; 1067 1068 *=*) 1069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1070 # Reject names that are not valid shell variable names. 1071 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1072 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1073 { (exit 1); exit 1; }; } 1074 eval $ac_envvar=\$ac_optarg 1075 export $ac_envvar ;; 1076 1077 *) 1078 # FIXME: should be removed in autoconf 3.0. 1079 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1080 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1081 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1082 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1083 ;; 1084 1085 esac 1086 done 1087 1088 if test -n "$ac_prev"; then 1089 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1090 { echo "$as_me: error: missing argument to $ac_option" >&2 1091 { (exit 1); exit 1; }; } 1092 fi 1093 1094 # Be sure to have absolute directory names. 1095 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1096 datadir sysconfdir sharedstatedir localstatedir includedir \ 1097 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1098 libdir localedir mandir 1099 do 1100 eval ac_val=\$$ac_var 1101 case $ac_val in 1102 [\\/$]* | ?:[\\/]* ) continue;; 1103 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1104 esac 1105 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1106 { (exit 1); exit 1; }; } 1107 done 1108 1109 # There might be people who depend on the old broken behavior: `$host' 1110 # used to hold the argument of --host etc. 1111 # FIXME: To remove some day. 1112 build=$build_alias 1113 host=$host_alias 1114 target=$target_alias 1115 1116 # FIXME: To remove some day. 1117 if test "x$host_alias" != x; then 1118 if test "x$build_alias" = x; then 1119 cross_compiling=maybe 1120 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1121 If a cross compiler is detected then cross compile mode will be used." >&2 1122 elif test "x$build_alias" != "x$host_alias"; then 1123 cross_compiling=yes 1124 fi 1125 fi 1126 1127 ac_tool_prefix= 1128 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1129 1130 test "$silent" = yes && exec 6>/dev/null 1131 1132 1133 ac_pwd=`pwd` && test -n "$ac_pwd" && 1134 ac_ls_di=`ls -di .` && 1135 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1136 { echo "$as_me: error: Working directory cannot be determined" >&2 1137 { (exit 1); exit 1; }; } 1138 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1139 { echo "$as_me: error: pwd does not report name of working directory" >&2 1140 { (exit 1); exit 1; }; } 1141 1142 1143 # Find the source files, if location was not specified. 1144 if test -z "$srcdir"; then 1145 ac_srcdir_defaulted=yes 1146 # Try the directory containing this script, then the parent directory. 1147 ac_confdir=`$as_dirname -- "$0" || 1148 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1149 X"$0" : 'X\(//\)[^/]' \| \ 1150 X"$0" : 'X\(//\)$' \| \ 1151 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1152 echo X"$0" | 1153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1154 s//\1/ 1155 q 1156 } 1157 /^X\(\/\/\)[^/].*/{ 1158 s//\1/ 1159 q 1160 } 1161 /^X\(\/\/\)$/{ 1162 s//\1/ 1163 q 1164 } 1165 /^X\(\/\).*/{ 1166 s//\1/ 1167 q 1168 } 1169 s/.*/./; q'` 1170 srcdir=$ac_confdir 1171 if test ! -r "$srcdir/$ac_unique_file"; then 1172 srcdir=.. 1173 fi 1174 else 1175 ac_srcdir_defaulted=no 1176 fi 1177 if test ! -r "$srcdir/$ac_unique_file"; then 1178 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1179 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1180 { (exit 1); exit 1; }; } 1181 fi 1182 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1183 ac_abs_confdir=`( 1184 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1185 { (exit 1); exit 1; }; } 1186 pwd)` 1187 # When building in place, set srcdir=. 1188 if test "$ac_abs_confdir" = "$ac_pwd"; then 1189 srcdir=. 1190 fi 1191 # Remove unnecessary trailing slashes from srcdir. 1192 # Double slashes in file names in object file debugging info 1193 # mess up M-x gdb in Emacs. 1194 case $srcdir in 1195 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1196 esac 1197 for ac_var in $ac_precious_vars; do 1198 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1199 eval ac_env_${ac_var}_value=\$${ac_var} 1200 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1201 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1202 done 1203 1204 # 1205 # Report the --help message. 1206 # 1207 if test "$ac_init_help" = "long"; then 1208 # Omit some internal or obsolete options to make the list less imposing. 1209 # This message is too long to be a string in the A/UX 3.1 sh. 1210 cat <<_ACEOF 1211 \`configure' configures top 3.8beta1 to adapt to many kinds of systems. 1212 1213 Usage: $0 [OPTION]... [VAR=VALUE]... 1214 1215 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1216 VAR=VALUE. See below for descriptions of some of the useful variables. 1217 1218 Defaults for the options are specified in brackets. 1219 1220 Configuration: 1221 -h, --help display this help and exit 1222 --help=short display options specific to this package 1223 --help=recursive display the short help of all the included packages 1224 -V, --version display version information and exit 1225 -q, --quiet, --silent do not print \`checking...' messages 1226 --cache-file=FILE cache test results in FILE [disabled] 1227 -C, --config-cache alias for \`--cache-file=config.cache' 1228 -n, --no-create do not create output files 1229 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1230 1231 Installation directories: 1232 --prefix=PREFIX install architecture-independent files in PREFIX 1233 [$ac_default_prefix] 1234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1235 [PREFIX] 1236 1237 By default, \`make install' will install all the files in 1238 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1239 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1240 for instance \`--prefix=\$HOME'. 1241 1242 For better control, use the options below. 1243 1244 Fine tuning of the installation directories: 1245 --bindir=DIR user executables [EPREFIX/bin] 1246 --sbindir=DIR system admin executables [EPREFIX/sbin] 1247 --libexecdir=DIR program executables [EPREFIX/libexec] 1248 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1249 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1250 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1251 --libdir=DIR object code libraries [EPREFIX/lib] 1252 --includedir=DIR C header files [PREFIX/include] 1253 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1254 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1255 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1256 --infodir=DIR info documentation [DATAROOTDIR/info] 1257 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1258 --mandir=DIR man documentation [DATAROOTDIR/man] 1259 --docdir=DIR documentation root [DATAROOTDIR/doc/top] 1260 --htmldir=DIR html documentation [DOCDIR] 1261 --dvidir=DIR dvi documentation [DOCDIR] 1262 --pdfdir=DIR pdf documentation [DOCDIR] 1263 --psdir=DIR ps documentation [DOCDIR] 1264 _ACEOF 1265 1266 cat <<\_ACEOF 1267 1268 System types: 1269 --build=BUILD configure for building on BUILD [guessed] 1270 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1271 --target=TARGET configure for building compilers for TARGET [HOST] 1272 _ACEOF 1273 fi 1274 1275 if test -n "$ac_init_help"; then 1276 case $ac_init_help in 1277 short | recursive ) echo "Configuration of top 3.8beta1:";; 1278 esac 1279 cat <<\_ACEOF 1280 1281 Optional Features: 1282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1284 --enable-debug enable support for debugging output 1285 --disable-kill disable kill and renice commands 1286 --disable-color disable the use of color 1287 --disable-colour synonym for --disable-color 1288 --enable-dualarch enable or disable a dual architecture (32-bit and 1289 64-bit) compile 1290 1291 Optional Packages: 1292 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1293 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1294 --with-module=NAME use the platform module NAME 1295 --with-ext=EXT use the extension EXT 1296 --with-default-topn=N use N as the default for number of processes 1297 --with-nominal-topn=N use N as the default number of processes for 1298 non-terminals 1299 --with-default-delay=SEC 1300 use a default delay of SEC seconds 1301 1302 Some influential environment variables: 1303 CC C compiler command 1304 CFLAGS C compiler flags 1305 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1306 nonstandard directory <lib dir> 1307 LIBS libraries to pass to the linker, e.g. -l<library> 1308 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1309 you have headers in a nonstandard directory <include dir> 1310 CPP C preprocessor 1311 1312 Use these variables to override the choices made by `configure' or to help 1313 it to find libraries and programs with nonstandard names/locations. 1314 1315 _ACEOF 1316 ac_status=$? 1317 fi 1318 1319 if test "$ac_init_help" = "recursive"; then 1320 # If there are subdirs, report their specific --help. 1321 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1322 test -d "$ac_dir" || continue 1323 ac_builddir=. 1324 1325 case "$ac_dir" in 1326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1327 *) 1328 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1329 # A ".." for each directory in $ac_dir_suffix. 1330 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1331 case $ac_top_builddir_sub in 1332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1334 esac ;; 1335 esac 1336 ac_abs_top_builddir=$ac_pwd 1337 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1338 # for backward compatibility: 1339 ac_top_builddir=$ac_top_build_prefix 1340 1341 case $srcdir in 1342 .) # We are building in place. 1343 ac_srcdir=. 1344 ac_top_srcdir=$ac_top_builddir_sub 1345 ac_abs_top_srcdir=$ac_pwd ;; 1346 [\\/]* | ?:[\\/]* ) # Absolute name. 1347 ac_srcdir=$srcdir$ac_dir_suffix; 1348 ac_top_srcdir=$srcdir 1349 ac_abs_top_srcdir=$srcdir ;; 1350 *) # Relative name. 1351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1352 ac_top_srcdir=$ac_top_build_prefix$srcdir 1353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1354 esac 1355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1356 1357 cd "$ac_dir" || { ac_status=$?; continue; } 1358 # Check for guested configure. 1359 if test -f "$ac_srcdir/configure.gnu"; then 1360 echo && 1361 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1362 elif test -f "$ac_srcdir/configure"; then 1363 echo && 1364 $SHELL "$ac_srcdir/configure" --help=recursive 1365 else 1366 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1367 fi || ac_status=$? 1368 cd "$ac_pwd" || { ac_status=$?; break; } 1369 done 1370 fi 1371 1372 test -n "$ac_init_help" && exit $ac_status 1373 if $ac_init_version; then 1374 cat <<\_ACEOF 1375 top configure 3.8beta1 1376 generated by GNU Autoconf 2.61 1377 1378 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1379 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1380 This configure script is free software; the Free Software Foundation 1381 gives unlimited permission to copy, distribute and modify it. 1382 _ACEOF 1383 exit 1384 fi 1385 cat >config.log <<_ACEOF 1386 This file contains any messages produced by compilers while 1387 running configure, to aid debugging if configure makes a mistake. 1388 1389 It was created by top $as_me 3.8beta1, which was 1390 generated by GNU Autoconf 2.61. Invocation command line was 1391 1392 $ $0 $@ 1393 1394 _ACEOF 1395 exec 5>>config.log 1396 { 1397 cat <<_ASUNAME 1398 ## --------- ## 1399 ## Platform. ## 1400 ## --------- ## 1401 1402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1403 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1404 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1405 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1406 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1407 1408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1409 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1410 1411 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1412 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1414 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1415 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1416 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1417 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1418 1419 _ASUNAME 1420 1421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1422 for as_dir in $PATH 1423 do 1424 IFS=$as_save_IFS 1425 test -z "$as_dir" && as_dir=. 1426 echo "PATH: $as_dir" 1427 done 1428 IFS=$as_save_IFS 1429 1430 } >&5 1431 1432 cat >&5 <<_ACEOF 1433 1434 1435 ## ----------- ## 1436 ## Core tests. ## 1437 ## ----------- ## 1438 1439 _ACEOF 1440 1441 1442 # Keep a trace of the command line. 1443 # Strip out --no-create and --no-recursion so they do not pile up. 1444 # Strip out --silent because we don't want to record it for future runs. 1445 # Also quote any args containing shell meta-characters. 1446 # Make two passes to allow for proper duplicate-argument suppression. 1447 ac_configure_args= 1448 ac_configure_args0= 1449 ac_configure_args1= 1450 ac_must_keep_next=false 1451 for ac_pass in 1 2 1452 do 1453 for ac_arg 1454 do 1455 case $ac_arg in 1456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1458 | -silent | --silent | --silen | --sile | --sil) 1459 continue ;; 1460 *\'*) 1461 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1462 esac 1463 case $ac_pass in 1464 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1465 2) 1466 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1467 if test $ac_must_keep_next = true; then 1468 ac_must_keep_next=false # Got value, back to normal. 1469 else 1470 case $ac_arg in 1471 *=* | --config-cache | -C | -disable-* | --disable-* \ 1472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1474 | -with-* | --with-* | -without-* | --without-* | --x) 1475 case "$ac_configure_args0 " in 1476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1477 esac 1478 ;; 1479 -* ) ac_must_keep_next=true ;; 1480 esac 1481 fi 1482 ac_configure_args="$ac_configure_args '$ac_arg'" 1483 ;; 1484 esac 1485 done 1486 done 1487 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1488 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1489 1490 # When interrupted or exit'd, cleanup temporary files, and complete 1491 # config.log. We remove comments because anyway the quotes in there 1492 # would cause problems or look ugly. 1493 # WARNING: Use '\'' to represent an apostrophe within the trap. 1494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1495 trap 'exit_status=$? 1496 # Save into config.log some information that might help in debugging. 1497 { 1498 echo 1499 1500 cat <<\_ASBOX 1501 ## ---------------- ## 1502 ## Cache variables. ## 1503 ## ---------------- ## 1504 _ASBOX 1505 echo 1506 # The following way of writing the cache mishandles newlines in values, 1507 ( 1508 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1509 eval ac_val=\$$ac_var 1510 case $ac_val in #( 1511 *${as_nl}*) 1512 case $ac_var in #( 1513 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1514 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1515 esac 1516 case $ac_var in #( 1517 _ | IFS | as_nl) ;; #( 1518 *) $as_unset $ac_var ;; 1519 esac ;; 1520 esac 1521 done 1522 (set) 2>&1 | 1523 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1524 *${as_nl}ac_space=\ *) 1525 sed -n \ 1526 "s/'\''/'\''\\\\'\'''\''/g; 1527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1528 ;; #( 1529 *) 1530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1531 ;; 1532 esac | 1533 sort 1534 ) 1535 echo 1536 1537 cat <<\_ASBOX 1538 ## ----------------- ## 1539 ## Output variables. ## 1540 ## ----------------- ## 1541 _ASBOX 1542 echo 1543 for ac_var in $ac_subst_vars 1544 do 1545 eval ac_val=\$$ac_var 1546 case $ac_val in 1547 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1548 esac 1549 echo "$ac_var='\''$ac_val'\''" 1550 done | sort 1551 echo 1552 1553 if test -n "$ac_subst_files"; then 1554 cat <<\_ASBOX 1555 ## ------------------- ## 1556 ## File substitutions. ## 1557 ## ------------------- ## 1558 _ASBOX 1559 echo 1560 for ac_var in $ac_subst_files 1561 do 1562 eval ac_val=\$$ac_var 1563 case $ac_val in 1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1565 esac 1566 echo "$ac_var='\''$ac_val'\''" 1567 done | sort 1568 echo 1569 fi 1570 1571 if test -s confdefs.h; then 1572 cat <<\_ASBOX 1573 ## ----------- ## 1574 ## confdefs.h. ## 1575 ## ----------- ## 1576 _ASBOX 1577 echo 1578 cat confdefs.h 1579 echo 1580 fi 1581 test "$ac_signal" != 0 && 1582 echo "$as_me: caught signal $ac_signal" 1583 echo "$as_me: exit $exit_status" 1584 } >&5 1585 rm -f core *.core core.conftest.* && 1586 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1587 exit $exit_status 1588 ' 0 1589 for ac_signal in 1 2 13 15; do 1590 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1591 done 1592 ac_signal=0 1593 1594 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1595 rm -f -r conftest* confdefs.h 1596 1597 # Predefined preprocessor variables. 1598 1599 cat >>confdefs.h <<_ACEOF 1600 #define PACKAGE_NAME "$PACKAGE_NAME" 1601 _ACEOF 1602 1603 1604 cat >>confdefs.h <<_ACEOF 1605 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1606 _ACEOF 1607 1608 1609 cat >>confdefs.h <<_ACEOF 1610 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1611 _ACEOF 1612 1613 1614 cat >>confdefs.h <<_ACEOF 1615 #define PACKAGE_STRING "$PACKAGE_STRING" 1616 _ACEOF 1617 1618 1619 cat >>confdefs.h <<_ACEOF 1620 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1621 _ACEOF 1622 1623 1624 # Let the site file select an alternate cache file if it wants to. 1625 # Prefer explicitly selected file to automatically selected ones. 1626 if test -n "$CONFIG_SITE"; then 1627 set x "$CONFIG_SITE" 1628 elif test "x$prefix" != xNONE; then 1629 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1630 else 1631 set x "$ac_default_prefix/share/config.site" \ 1632 "$ac_default_prefix/etc/config.site" 1633 fi 1634 shift 1635 for ac_site_file 1636 do 1637 if test -r "$ac_site_file"; then 1638 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1639 echo "$as_me: loading site script $ac_site_file" >&6;} 1640 sed 's/^/| /' "$ac_site_file" >&5 1641 . "$ac_site_file" 1642 fi 1643 done 1644 1645 if test -r "$cache_file"; then 1646 # Some versions of bash will fail to source /dev/null (special 1647 # files actually), so we avoid doing that. 1648 if test -f "$cache_file"; then 1649 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1650 echo "$as_me: loading cache $cache_file" >&6;} 1651 case $cache_file in 1652 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1653 *) . "./$cache_file";; 1654 esac 1655 fi 1656 else 1657 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1658 echo "$as_me: creating cache $cache_file" >&6;} 1659 >$cache_file 1660 fi 1661 1662 # Check that the precious variables saved in the cache have kept the same 1663 # value. 1664 ac_cache_corrupted=false 1665 for ac_var in $ac_precious_vars; do 1666 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1667 eval ac_new_set=\$ac_env_${ac_var}_set 1668 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1669 eval ac_new_val=\$ac_env_${ac_var}_value 1670 case $ac_old_set,$ac_new_set in 1671 set,) 1672 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1673 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1674 ac_cache_corrupted=: ;; 1675 ,set) 1676 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1677 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1678 ac_cache_corrupted=: ;; 1679 ,);; 1680 *) 1681 if test "x$ac_old_val" != "x$ac_new_val"; then 1682 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1683 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1684 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1685 echo "$as_me: former value: $ac_old_val" >&2;} 1686 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1687 echo "$as_me: current value: $ac_new_val" >&2;} 1688 ac_cache_corrupted=: 1689 fi;; 1690 esac 1691 # Pass precious variables to config.status. 1692 if test "$ac_new_set" = set; then 1693 case $ac_new_val in 1694 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1695 *) ac_arg=$ac_var=$ac_new_val ;; 1696 esac 1697 case " $ac_configure_args " in 1698 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1699 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1700 esac 1701 fi 1702 done 1703 if $ac_cache_corrupted; then 1704 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1705 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1706 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1707 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1708 { (exit 1); exit 1; }; } 1709 fi 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 ac_ext=c 1736 ac_cpp='$CPP $CPPFLAGS' 1737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1739 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1740 1741 1742 1743 # AX_CHECK_VARIADIC_MACROS... 1744 # ----- 1745 1746 1747 # AC_CHECK_CFLAG... 1748 # ----- 1749 # AC_CHECK_CFLAG 1750 1751 echo "Configuring $PACKAGE_STRING" 1752 1753 ac_config_headers="$ac_config_headers config.h" 1754 1755 ac_aux_dir= 1756 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1757 if test -f "$ac_dir/install-sh"; then 1758 ac_aux_dir=$ac_dir 1759 ac_install_sh="$ac_aux_dir/install-sh -c" 1760 break 1761 elif test -f "$ac_dir/install.sh"; then 1762 ac_aux_dir=$ac_dir 1763 ac_install_sh="$ac_aux_dir/install.sh -c" 1764 break 1765 elif test -f "$ac_dir/shtool"; then 1766 ac_aux_dir=$ac_dir 1767 ac_install_sh="$ac_aux_dir/shtool install -c" 1768 break 1769 fi 1770 done 1771 if test -z "$ac_aux_dir"; then 1772 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1773 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1774 { (exit 1); exit 1; }; } 1775 fi 1776 1777 # These three variables are undocumented and unsupported, 1778 # and are intended to be withdrawn in a future Autoconf release. 1779 # They can cause serious problems if a builder's source tree is in a directory 1780 # whose full name contains unusual characters. 1781 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1782 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1783 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1784 1785 1786 # Make sure we can run config.sub. 1787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1788 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1790 { (exit 1); exit 1; }; } 1791 1792 { echo "$as_me:$LINENO: checking build system type" >&5 1793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1794 if test "${ac_cv_build+set}" = set; then 1795 echo $ECHO_N "(cached) $ECHO_C" >&6 1796 else 1797 ac_build_alias=$build_alias 1798 test "x$ac_build_alias" = x && 1799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1800 test "x$ac_build_alias" = x && 1801 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1803 { (exit 1); exit 1; }; } 1804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1807 { (exit 1); exit 1; }; } 1808 1809 fi 1810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1811 echo "${ECHO_T}$ac_cv_build" >&6; } 1812 case $ac_cv_build in 1813 *-*-*) ;; 1814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1815 echo "$as_me: error: invalid value of canonical build" >&2;} 1816 { (exit 1); exit 1; }; };; 1817 esac 1818 build=$ac_cv_build 1819 ac_save_IFS=$IFS; IFS='-' 1820 set x $ac_cv_build 1821 shift 1822 build_cpu=$1 1823 build_vendor=$2 1824 shift; shift 1825 # Remember, the first character of IFS is used to create $*, 1826 # except with old shells: 1827 build_os=$* 1828 IFS=$ac_save_IFS 1829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1830 1831 1832 { echo "$as_me:$LINENO: checking host system type" >&5 1833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1834 if test "${ac_cv_host+set}" = set; then 1835 echo $ECHO_N "(cached) $ECHO_C" >&6 1836 else 1837 if test "x$host_alias" = x; then 1838 ac_cv_host=$ac_cv_build 1839 else 1840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1841 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1843 { (exit 1); exit 1; }; } 1844 fi 1845 1846 fi 1847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1848 echo "${ECHO_T}$ac_cv_host" >&6; } 1849 case $ac_cv_host in 1850 *-*-*) ;; 1851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1852 echo "$as_me: error: invalid value of canonical host" >&2;} 1853 { (exit 1); exit 1; }; };; 1854 esac 1855 host=$ac_cv_host 1856 ac_save_IFS=$IFS; IFS='-' 1857 set x $ac_cv_host 1858 shift 1859 host_cpu=$1 1860 host_vendor=$2 1861 shift; shift 1862 # Remember, the first character of IFS is used to create $*, 1863 # except with old shells: 1864 host_os=$* 1865 IFS=$ac_save_IFS 1866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1867 1868 1869 { echo "$as_me:$LINENO: checking target system type" >&5 1870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 1871 if test "${ac_cv_target+set}" = set; then 1872 echo $ECHO_N "(cached) $ECHO_C" >&6 1873 else 1874 if test "x$target_alias" = x; then 1875 ac_cv_target=$ac_cv_host 1876 else 1877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 1878 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1880 { (exit 1); exit 1; }; } 1881 fi 1882 1883 fi 1884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1885 echo "${ECHO_T}$ac_cv_target" >&6; } 1886 case $ac_cv_target in 1887 *-*-*) ;; 1888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1889 echo "$as_me: error: invalid value of canonical target" >&2;} 1890 { (exit 1); exit 1; }; };; 1891 esac 1892 target=$ac_cv_target 1893 ac_save_IFS=$IFS; IFS='-' 1894 set x $ac_cv_target 1895 shift 1896 target_cpu=$1 1897 target_vendor=$2 1898 shift; shift 1899 # Remember, the first character of IFS is used to create $*, 1900 # except with old shells: 1901 target_os=$* 1902 IFS=$ac_save_IFS 1903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 1904 1905 1906 # The aliases save the names the user supplied, while $host etc. 1907 # will get canonicalized. 1908 test -n "$target_alias" && 1909 test "$program_prefix$program_suffix$program_transform_name" = \ 1910 NONENONEs,x,x, && 1911 program_prefix=${target_alias}- 1912 1913 # options processing 1914 1915 # Check whether --with-module was given. 1916 if test "${with_module+set}" = set; then 1917 withval=$with_module; if test ! -f machine/m_$withval.c; 1918 then { { echo "$as_me:$LINENO: error: No such module $withval" >&5 1919 echo "$as_me: error: No such module $withval" >&2;} 1920 { (exit 1); exit 1; }; }; fi 1921 fi 1922 1923 1924 1925 # Check whether --with-ext was given. 1926 if test "${with_ext+set}" = set; then 1927 withval=$with_ext; if test -f ext/$withval.c; then 1928 1929 cat >>confdefs.h <<\_ACEOF 1930 #define WITH_EXT 1 1931 _ACEOF 1932 1933 SRC="$SRC ext/$withval.c" 1934 OBJ="$OBJ $withval.o" 1935 else 1936 { { echo "$as_me:$LINENO: error: No such extension $withval" >&5 1937 echo "$as_me: error: No such extension $withval" >&2;} 1938 { (exit 1); exit 1; }; } 1939 fi 1940 fi 1941 1942 1943 DEFAULT_TOPN=30 1944 1945 # Check whether --with-default-topn was given. 1946 if test "${with_default_topn+set}" = set; then 1947 withval=$with_default_topn; if test x"$with_default_topn" = xall; then 1948 DEFAULT_TOPN="-1" 1949 elif test x`echo $with_default_topn | tr -d '0-9+-'` = x; then 1950 DEFAULT_TOPN=$with_default_topn 1951 fi 1952 fi 1953 1954 1955 cat >>confdefs.h <<_ACEOF 1956 #define DEFAULT_TOPN $DEFAULT_TOPN 1957 _ACEOF 1958 1959 1960 1961 NOMINAL_TOPN=40 1962 1963 # Check whether --with-nominal-topn was given. 1964 if test "${with_nominal_topn+set}" = set; then 1965 withval=$with_nominal_topn; if test x"$with_nominal_topn" = xall; then 1966 NOMINAL_TOPN="-1" 1967 elif test x`echo $with_nominal_topn | tr -d '0-9+-'` = x; then 1968 NOMINAL_TOPN=$with_nominal_topn 1969 fi 1970 fi 1971 1972 1973 cat >>confdefs.h <<_ACEOF 1974 #define NOMINAL_TOPN $NOMINAL_TOPN 1975 _ACEOF 1976 1977 1978 1979 DEFAULT_DELAY=5 1980 1981 # Check whether --with-default-delay was given. 1982 if test "${with_default_delay+set}" = set; then 1983 withval=$with_default_delay; if test x`echo $with_default_delay | tr -d '0-9+-'` = x; then 1984 DEFAULT_DELAY=$with_default_delay 1985 fi 1986 fi 1987 1988 1989 cat >>confdefs.h <<_ACEOF 1990 #define DEFAULT_DELAY $DEFAULT_DELAY 1991 _ACEOF 1992 1993 1994 1995 # Check whether --enable-debug was given. 1996 if test "${enable_debug+set}" = set; then 1997 enableval=$enable_debug; 1998 fi 1999 2000 if test "x$enable_debug" = xyes; then 2001 2002 cat >>confdefs.h <<\_ACEOF 2003 #define DEBUG 1 2004 _ACEOF 2005 2006 fi 2007 2008 ENABLE_KILL=0 2009 # Check whether --enable-kill was given. 2010 if test "${enable_kill+set}" = set; then 2011 enableval=$enable_kill; 2012 fi 2013 2014 if test x$enable_kill != xno; then 2015 2016 cat >>confdefs.h <<\_ACEOF 2017 #define ENABLE_KILL 1 2018 _ACEOF 2019 2020 ENABLE_KILL=1 2021 fi 2022 2023 2024 2025 # Check whether --enable-color was given. 2026 if test "${enable_color+set}" = set; then 2027 enableval=$enable_color; 2028 fi 2029 2030 # Check whether --enable-colour was given. 2031 if test "${enable_colour+set}" = set; then 2032 enableval=$enable_colour; 2033 fi 2034 2035 if test x$enable_color != xno -a x$enable_colour != xno; then 2036 2037 cat >>confdefs.h <<\_ACEOF 2038 #define ENABLE_COLOR 1 2039 _ACEOF 2040 2041 fi 2042 2043 # Check whether --enable-dualarch was given. 2044 if test "${enable_dualarch+set}" = set; then 2045 enableval=$enable_dualarch; 2046 fi 2047 2048 2049 # check for needed programs 2050 for ac_prog in make 2051 do 2052 # Extract the first word of "$ac_prog", so it can be a program name with args. 2053 set dummy $ac_prog; ac_word=$2 2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2056 if test "${ac_cv_prog_MAKE+set}" = set; then 2057 echo $ECHO_N "(cached) $ECHO_C" >&6 2058 else 2059 if test -n "$MAKE"; then 2060 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. 2061 else 2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2063 for as_dir in $PATH 2064 do 2065 IFS=$as_save_IFS 2066 test -z "$as_dir" && as_dir=. 2067 for ac_exec_ext in '' $ac_executable_extensions; do 2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2069 ac_cv_prog_MAKE="$ac_prog" 2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2071 break 2 2072 fi 2073 done 2074 done 2075 IFS=$as_save_IFS 2076 2077 fi 2078 fi 2079 MAKE=$ac_cv_prog_MAKE 2080 if test -n "$MAKE"; then 2081 { echo "$as_me:$LINENO: result: $MAKE" >&5 2082 echo "${ECHO_T}$MAKE" >&6; } 2083 else 2084 { echo "$as_me:$LINENO: result: no" >&5 2085 echo "${ECHO_T}no" >&6; } 2086 fi 2087 2088 2089 test -n "$MAKE" && break 2090 done 2091 2092 ac_ext=c 2093 ac_cpp='$CPP $CPPFLAGS' 2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2097 if test -n "$ac_tool_prefix"; then 2098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2099 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2100 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2102 if test "${ac_cv_prog_CC+set}" = set; then 2103 echo $ECHO_N "(cached) $ECHO_C" >&6 2104 else 2105 if test -n "$CC"; then 2106 ac_cv_prog_CC="$CC" # Let the user override the test. 2107 else 2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2109 for as_dir in $PATH 2110 do 2111 IFS=$as_save_IFS 2112 test -z "$as_dir" && as_dir=. 2113 for ac_exec_ext in '' $ac_executable_extensions; do 2114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2115 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2117 break 2 2118 fi 2119 done 2120 done 2121 IFS=$as_save_IFS 2122 2123 fi 2124 fi 2125 CC=$ac_cv_prog_CC 2126 if test -n "$CC"; then 2127 { echo "$as_me:$LINENO: result: $CC" >&5 2128 echo "${ECHO_T}$CC" >&6; } 2129 else 2130 { echo "$as_me:$LINENO: result: no" >&5 2131 echo "${ECHO_T}no" >&6; } 2132 fi 2133 2134 2135 fi 2136 if test -z "$ac_cv_prog_CC"; then 2137 ac_ct_CC=$CC 2138 # Extract the first word of "gcc", so it can be a program name with args. 2139 set dummy gcc; ac_word=$2 2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2143 echo $ECHO_N "(cached) $ECHO_C" >&6 2144 else 2145 if test -n "$ac_ct_CC"; then 2146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2147 else 2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2149 for as_dir in $PATH 2150 do 2151 IFS=$as_save_IFS 2152 test -z "$as_dir" && as_dir=. 2153 for ac_exec_ext in '' $ac_executable_extensions; do 2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2155 ac_cv_prog_ac_ct_CC="gcc" 2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2157 break 2 2158 fi 2159 done 2160 done 2161 IFS=$as_save_IFS 2162 2163 fi 2164 fi 2165 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2166 if test -n "$ac_ct_CC"; then 2167 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2168 echo "${ECHO_T}$ac_ct_CC" >&6; } 2169 else 2170 { echo "$as_me:$LINENO: result: no" >&5 2171 echo "${ECHO_T}no" >&6; } 2172 fi 2173 2174 if test "x$ac_ct_CC" = x; then 2175 CC="" 2176 else 2177 case $cross_compiling:$ac_tool_warned in 2178 yes:) 2179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2180 whose name does not start with the host triplet. If you think this 2181 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2183 whose name does not start with the host triplet. If you think this 2184 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2185 ac_tool_warned=yes ;; 2186 esac 2187 CC=$ac_ct_CC 2188 fi 2189 else 2190 CC="$ac_cv_prog_CC" 2191 fi 2192 2193 if test -z "$CC"; then 2194 if test -n "$ac_tool_prefix"; then 2195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2196 set dummy ${ac_tool_prefix}cc; ac_word=$2 2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2199 if test "${ac_cv_prog_CC+set}" = set; then 2200 echo $ECHO_N "(cached) $ECHO_C" >&6 2201 else 2202 if test -n "$CC"; then 2203 ac_cv_prog_CC="$CC" # Let the user override the test. 2204 else 2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2206 for as_dir in $PATH 2207 do 2208 IFS=$as_save_IFS 2209 test -z "$as_dir" && as_dir=. 2210 for ac_exec_ext in '' $ac_executable_extensions; do 2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2212 ac_cv_prog_CC="${ac_tool_prefix}cc" 2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2214 break 2 2215 fi 2216 done 2217 done 2218 IFS=$as_save_IFS 2219 2220 fi 2221 fi 2222 CC=$ac_cv_prog_CC 2223 if test -n "$CC"; then 2224 { echo "$as_me:$LINENO: result: $CC" >&5 2225 echo "${ECHO_T}$CC" >&6; } 2226 else 2227 { echo "$as_me:$LINENO: result: no" >&5 2228 echo "${ECHO_T}no" >&6; } 2229 fi 2230 2231 2232 fi 2233 fi 2234 if test -z "$CC"; then 2235 # Extract the first word of "cc", so it can be a program name with args. 2236 set dummy cc; ac_word=$2 2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2239 if test "${ac_cv_prog_CC+set}" = set; then 2240 echo $ECHO_N "(cached) $ECHO_C" >&6 2241 else 2242 if test -n "$CC"; then 2243 ac_cv_prog_CC="$CC" # Let the user override the test. 2244 else 2245 ac_prog_rejected=no 2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2247 for as_dir in $PATH 2248 do 2249 IFS=$as_save_IFS 2250 test -z "$as_dir" && as_dir=. 2251 for ac_exec_ext in '' $ac_executable_extensions; do 2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2253 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2254 ac_prog_rejected=yes 2255 continue 2256 fi 2257 ac_cv_prog_CC="cc" 2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2259 break 2 2260 fi 2261 done 2262 done 2263 IFS=$as_save_IFS 2264 2265 if test $ac_prog_rejected = yes; then 2266 # We found a bogon in the path, so make sure we never use it. 2267 set dummy $ac_cv_prog_CC 2268 shift 2269 if test $# != 0; then 2270 # We chose a different compiler from the bogus one. 2271 # However, it has the same basename, so the bogon will be chosen 2272 # first if we set CC to just the basename; use the full file name. 2273 shift 2274 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2275 fi 2276 fi 2277 fi 2278 fi 2279 CC=$ac_cv_prog_CC 2280 if test -n "$CC"; then 2281 { echo "$as_me:$LINENO: result: $CC" >&5 2282 echo "${ECHO_T}$CC" >&6; } 2283 else 2284 { echo "$as_me:$LINENO: result: no" >&5 2285 echo "${ECHO_T}no" >&6; } 2286 fi 2287 2288 2289 fi 2290 if test -z "$CC"; then 2291 if test -n "$ac_tool_prefix"; then 2292 for ac_prog in cl.exe 2293 do 2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2296 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2298 if test "${ac_cv_prog_CC+set}" = set; then 2299 echo $ECHO_N "(cached) $ECHO_C" >&6 2300 else 2301 if test -n "$CC"; then 2302 ac_cv_prog_CC="$CC" # Let the user override the test. 2303 else 2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2305 for as_dir in $PATH 2306 do 2307 IFS=$as_save_IFS 2308 test -z "$as_dir" && as_dir=. 2309 for ac_exec_ext in '' $ac_executable_extensions; do 2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2313 break 2 2314 fi 2315 done 2316 done 2317 IFS=$as_save_IFS 2318 2319 fi 2320 fi 2321 CC=$ac_cv_prog_CC 2322 if test -n "$CC"; then 2323 { echo "$as_me:$LINENO: result: $CC" >&5 2324 echo "${ECHO_T}$CC" >&6; } 2325 else 2326 { echo "$as_me:$LINENO: result: no" >&5 2327 echo "${ECHO_T}no" >&6; } 2328 fi 2329 2330 2331 test -n "$CC" && break 2332 done 2333 fi 2334 if test -z "$CC"; then 2335 ac_ct_CC=$CC 2336 for ac_prog in cl.exe 2337 do 2338 # Extract the first word of "$ac_prog", so it can be a program name with args. 2339 set dummy $ac_prog; ac_word=$2 2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2343 echo $ECHO_N "(cached) $ECHO_C" >&6 2344 else 2345 if test -n "$ac_ct_CC"; then 2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2347 else 2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349 for as_dir in $PATH 2350 do 2351 IFS=$as_save_IFS 2352 test -z "$as_dir" && as_dir=. 2353 for ac_exec_ext in '' $ac_executable_extensions; do 2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2355 ac_cv_prog_ac_ct_CC="$ac_prog" 2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2357 break 2 2358 fi 2359 done 2360 done 2361 IFS=$as_save_IFS 2362 2363 fi 2364 fi 2365 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2366 if test -n "$ac_ct_CC"; then 2367 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2368 echo "${ECHO_T}$ac_ct_CC" >&6; } 2369 else 2370 { echo "$as_me:$LINENO: result: no" >&5 2371 echo "${ECHO_T}no" >&6; } 2372 fi 2373 2374 2375 test -n "$ac_ct_CC" && break 2376 done 2377 2378 if test "x$ac_ct_CC" = x; then 2379 CC="" 2380 else 2381 case $cross_compiling:$ac_tool_warned in 2382 yes:) 2383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2384 whose name does not start with the host triplet. If you think this 2385 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2387 whose name does not start with the host triplet. If you think this 2388 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2389 ac_tool_warned=yes ;; 2390 esac 2391 CC=$ac_ct_CC 2392 fi 2393 fi 2394 2395 fi 2396 2397 2398 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2399 See \`config.log' for more details." >&5 2400 echo "$as_me: error: no acceptable C compiler found in \$PATH 2401 See \`config.log' for more details." >&2;} 2402 { (exit 1); exit 1; }; } 2403 2404 # Provide some information about the compiler. 2405 echo "$as_me:$LINENO: checking for C compiler version" >&5 2406 ac_compiler=`set X $ac_compile; echo $2` 2407 { (ac_try="$ac_compiler --version >&5" 2408 case "(($ac_try" in 2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2410 *) ac_try_echo=$ac_try;; 2411 esac 2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2413 (eval "$ac_compiler --version >&5") 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); } 2417 { (ac_try="$ac_compiler -v >&5" 2418 case "(($ac_try" in 2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2420 *) ac_try_echo=$ac_try;; 2421 esac 2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2423 (eval "$ac_compiler -v >&5") 2>&5 2424 ac_status=$? 2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2426 (exit $ac_status); } 2427 { (ac_try="$ac_compiler -V >&5" 2428 case "(($ac_try" in 2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2430 *) ac_try_echo=$ac_try;; 2431 esac 2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2433 (eval "$ac_compiler -V >&5") 2>&5 2434 ac_status=$? 2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2436 (exit $ac_status); } 2437 2438 cat >conftest.$ac_ext <<_ACEOF 2439 /* confdefs.h. */ 2440 _ACEOF 2441 cat confdefs.h >>conftest.$ac_ext 2442 cat >>conftest.$ac_ext <<_ACEOF 2443 /* end confdefs.h. */ 2444 2445 int 2446 main () 2447 { 2448 2449 ; 2450 return 0; 2451 } 2452 _ACEOF 2453 ac_clean_files_save=$ac_clean_files 2454 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2455 # Try to create an executable without -o first, disregard a.out. 2456 # It will help us diagnose broken compilers, and finding out an intuition 2457 # of exeext. 2458 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2459 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2460 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2461 # 2462 # List of possible output files, starting from the most likely. 2463 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2464 # only as a last resort. b.out is created by i960 compilers. 2465 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2466 # 2467 # The IRIX 6 linker writes into existing files which may not be 2468 # executable, retaining their permissions. Remove them first so a 2469 # subsequent execution test works. 2470 ac_rmfiles= 2471 for ac_file in $ac_files 2472 do 2473 case $ac_file in 2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2475 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2476 esac 2477 done 2478 rm -f $ac_rmfiles 2479 2480 if { (ac_try="$ac_link_default" 2481 case "(($ac_try" in 2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2483 *) ac_try_echo=$ac_try;; 2484 esac 2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2486 (eval "$ac_link_default") 2>&5 2487 ac_status=$? 2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2489 (exit $ac_status); }; then 2490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2492 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2493 # so that the user can short-circuit this test for compilers unknown to 2494 # Autoconf. 2495 for ac_file in $ac_files '' 2496 do 2497 test -f "$ac_file" || continue 2498 case $ac_file in 2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2500 ;; 2501 [ab].out ) 2502 # We found the default executable, but exeext='' is most 2503 # certainly right. 2504 break;; 2505 *.* ) 2506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2507 then :; else 2508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2509 fi 2510 # We set ac_cv_exeext here because the later test for it is not 2511 # safe: cross compilers may not add the suffix if given an `-o' 2512 # argument, so we may need to know it at that point already. 2513 # Even if this section looks crufty: it has the advantage of 2514 # actually working. 2515 break;; 2516 * ) 2517 break;; 2518 esac 2519 done 2520 test "$ac_cv_exeext" = no && ac_cv_exeext= 2521 2522 else 2523 ac_file='' 2524 fi 2525 2526 { echo "$as_me:$LINENO: result: $ac_file" >&5 2527 echo "${ECHO_T}$ac_file" >&6; } 2528 if test -z "$ac_file"; then 2529 echo "$as_me: failed program was:" >&5 2530 sed 's/^/| /' conftest.$ac_ext >&5 2531 2532 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2533 See \`config.log' for more details." >&5 2534 echo "$as_me: error: C compiler cannot create executables 2535 See \`config.log' for more details." >&2;} 2536 { (exit 77); exit 77; }; } 2537 fi 2538 2539 ac_exeext=$ac_cv_exeext 2540 2541 # Check that the compiler produces executables we can run. If not, either 2542 # the compiler is broken, or we cross compile. 2543 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2544 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2545 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2546 # If not cross compiling, check that we can run a simple program. 2547 if test "$cross_compiling" != yes; then 2548 if { ac_try='./$ac_file' 2549 { (case "(($ac_try" in 2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2551 *) ac_try_echo=$ac_try;; 2552 esac 2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2554 (eval "$ac_try") 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); }; }; then 2558 cross_compiling=no 2559 else 2560 if test "$cross_compiling" = maybe; then 2561 cross_compiling=yes 2562 else 2563 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2564 If you meant to cross compile, use \`--host'. 2565 See \`config.log' for more details." >&5 2566 echo "$as_me: error: cannot run C compiled programs. 2567 If you meant to cross compile, use \`--host'. 2568 See \`config.log' for more details." >&2;} 2569 { (exit 1); exit 1; }; } 2570 fi 2571 fi 2572 fi 2573 { echo "$as_me:$LINENO: result: yes" >&5 2574 echo "${ECHO_T}yes" >&6; } 2575 2576 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2577 ac_clean_files=$ac_clean_files_save 2578 # Check that the compiler produces executables we can run. If not, either 2579 # the compiler is broken, or we cross compile. 2580 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2582 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2583 echo "${ECHO_T}$cross_compiling" >&6; } 2584 2585 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2586 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2587 if { (ac_try="$ac_link" 2588 case "(($ac_try" in 2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2590 *) ac_try_echo=$ac_try;; 2591 esac 2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2593 (eval "$ac_link") 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; then 2597 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2599 # work properly (i.e., refer to `conftest.exe'), while it won't with 2600 # `rm'. 2601 for ac_file in conftest.exe conftest conftest.*; do 2602 test -f "$ac_file" || continue 2603 case $ac_file in 2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2606 break;; 2607 * ) break;; 2608 esac 2609 done 2610 else 2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2612 See \`config.log' for more details." >&5 2613 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2614 See \`config.log' for more details." >&2;} 2615 { (exit 1); exit 1; }; } 2616 fi 2617 2618 rm -f conftest$ac_cv_exeext 2619 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2620 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2621 2622 rm -f conftest.$ac_ext 2623 EXEEXT=$ac_cv_exeext 2624 ac_exeext=$EXEEXT 2625 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2626 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2627 if test "${ac_cv_objext+set}" = set; then 2628 echo $ECHO_N "(cached) $ECHO_C" >&6 2629 else 2630 cat >conftest.$ac_ext <<_ACEOF 2631 /* confdefs.h. */ 2632 _ACEOF 2633 cat confdefs.h >>conftest.$ac_ext 2634 cat >>conftest.$ac_ext <<_ACEOF 2635 /* end confdefs.h. */ 2636 2637 int 2638 main () 2639 { 2640 2641 ; 2642 return 0; 2643 } 2644 _ACEOF 2645 rm -f conftest.o conftest.obj 2646 if { (ac_try="$ac_compile" 2647 case "(($ac_try" in 2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2649 *) ac_try_echo=$ac_try;; 2650 esac 2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2652 (eval "$ac_compile") 2>&5 2653 ac_status=$? 2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2655 (exit $ac_status); }; then 2656 for ac_file in conftest.o conftest.obj conftest.*; do 2657 test -f "$ac_file" || continue; 2658 case $ac_file in 2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2660 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2661 break;; 2662 esac 2663 done 2664 else 2665 echo "$as_me: failed program was:" >&5 2666 sed 's/^/| /' conftest.$ac_ext >&5 2667 2668 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2669 See \`config.log' for more details." >&5 2670 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2671 See \`config.log' for more details." >&2;} 2672 { (exit 1); exit 1; }; } 2673 fi 2674 2675 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2676 fi 2677 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2678 echo "${ECHO_T}$ac_cv_objext" >&6; } 2679 OBJEXT=$ac_cv_objext 2680 ac_objext=$OBJEXT 2681 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2682 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2683 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2684 echo $ECHO_N "(cached) $ECHO_C" >&6 2685 else 2686 cat >conftest.$ac_ext <<_ACEOF 2687 /* confdefs.h. */ 2688 _ACEOF 2689 cat confdefs.h >>conftest.$ac_ext 2690 cat >>conftest.$ac_ext <<_ACEOF 2691 /* end confdefs.h. */ 2692 2693 int 2694 main () 2695 { 2696 #ifndef __GNUC__ 2697 choke me 2698 #endif 2699 2700 ; 2701 return 0; 2702 } 2703 _ACEOF 2704 rm -f conftest.$ac_objext 2705 if { (ac_try="$ac_compile" 2706 case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709 esac 2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2711 (eval "$ac_compile") 2>conftest.er1 2712 ac_status=$? 2713 grep -v '^ *+' conftest.er1 >conftest.err 2714 rm -f conftest.er1 2715 cat conftest.err >&5 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); } && { 2718 test -z "$ac_c_werror_flag" || 2719 test ! -s conftest.err 2720 } && test -s conftest.$ac_objext; then 2721 ac_compiler_gnu=yes 2722 else 2723 echo "$as_me: failed program was:" >&5 2724 sed 's/^/| /' conftest.$ac_ext >&5 2725 2726 ac_compiler_gnu=no 2727 fi 2728 2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2730 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2731 2732 fi 2733 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2734 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2735 GCC=`test $ac_compiler_gnu = yes && echo yes` 2736 ac_test_CFLAGS=${CFLAGS+set} 2737 ac_save_CFLAGS=$CFLAGS 2738 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2739 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2740 if test "${ac_cv_prog_cc_g+set}" = set; then 2741 echo $ECHO_N "(cached) $ECHO_C" >&6 2742 else 2743 ac_save_c_werror_flag=$ac_c_werror_flag 2744 ac_c_werror_flag=yes 2745 ac_cv_prog_cc_g=no 2746 CFLAGS="-g" 2747 cat >conftest.$ac_ext <<_ACEOF 2748 /* confdefs.h. */ 2749 _ACEOF 2750 cat confdefs.h >>conftest.$ac_ext 2751 cat >>conftest.$ac_ext <<_ACEOF 2752 /* end confdefs.h. */ 2753 2754 int 2755 main () 2756 { 2757 2758 ; 2759 return 0; 2760 } 2761 _ACEOF 2762 rm -f conftest.$ac_objext 2763 if { (ac_try="$ac_compile" 2764 case "(($ac_try" in 2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2766 *) ac_try_echo=$ac_try;; 2767 esac 2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2769 (eval "$ac_compile") 2>conftest.er1 2770 ac_status=$? 2771 grep -v '^ *+' conftest.er1 >conftest.err 2772 rm -f conftest.er1 2773 cat conftest.err >&5 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); } && { 2776 test -z "$ac_c_werror_flag" || 2777 test ! -s conftest.err 2778 } && test -s conftest.$ac_objext; then 2779 ac_cv_prog_cc_g=yes 2780 else 2781 echo "$as_me: failed program was:" >&5 2782 sed 's/^/| /' conftest.$ac_ext >&5 2783 2784 CFLAGS="" 2785 cat >conftest.$ac_ext <<_ACEOF 2786 /* confdefs.h. */ 2787 _ACEOF 2788 cat confdefs.h >>conftest.$ac_ext 2789 cat >>conftest.$ac_ext <<_ACEOF 2790 /* end confdefs.h. */ 2791 2792 int 2793 main () 2794 { 2795 2796 ; 2797 return 0; 2798 } 2799 _ACEOF 2800 rm -f conftest.$ac_objext 2801 if { (ac_try="$ac_compile" 2802 case "(($ac_try" in 2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2804 *) ac_try_echo=$ac_try;; 2805 esac 2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2807 (eval "$ac_compile") 2>conftest.er1 2808 ac_status=$? 2809 grep -v '^ *+' conftest.er1 >conftest.err 2810 rm -f conftest.er1 2811 cat conftest.err >&5 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); } && { 2814 test -z "$ac_c_werror_flag" || 2815 test ! -s conftest.err 2816 } && test -s conftest.$ac_objext; then 2817 : 2818 else 2819 echo "$as_me: failed program was:" >&5 2820 sed 's/^/| /' conftest.$ac_ext >&5 2821 2822 ac_c_werror_flag=$ac_save_c_werror_flag 2823 CFLAGS="-g" 2824 cat >conftest.$ac_ext <<_ACEOF 2825 /* confdefs.h. */ 2826 _ACEOF 2827 cat confdefs.h >>conftest.$ac_ext 2828 cat >>conftest.$ac_ext <<_ACEOF 2829 /* end confdefs.h. */ 2830 2831 int 2832 main () 2833 { 2834 2835 ; 2836 return 0; 2837 } 2838 _ACEOF 2839 rm -f conftest.$ac_objext 2840 if { (ac_try="$ac_compile" 2841 case "(($ac_try" in 2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 *) ac_try_echo=$ac_try;; 2844 esac 2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2846 (eval "$ac_compile") 2>conftest.er1 2847 ac_status=$? 2848 grep -v '^ *+' conftest.er1 >conftest.err 2849 rm -f conftest.er1 2850 cat conftest.err >&5 2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2852 (exit $ac_status); } && { 2853 test -z "$ac_c_werror_flag" || 2854 test ! -s conftest.err 2855 } && test -s conftest.$ac_objext; then 2856 ac_cv_prog_cc_g=yes 2857 else 2858 echo "$as_me: failed program was:" >&5 2859 sed 's/^/| /' conftest.$ac_ext >&5 2860 2861 2862 fi 2863 2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2865 fi 2866 2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2868 fi 2869 2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2871 ac_c_werror_flag=$ac_save_c_werror_flag 2872 fi 2873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2875 if test "$ac_test_CFLAGS" = set; then 2876 CFLAGS=$ac_save_CFLAGS 2877 elif test $ac_cv_prog_cc_g = yes; then 2878 if test "$GCC" = yes; then 2879 CFLAGS="-g -O2" 2880 else 2881 CFLAGS="-g" 2882 fi 2883 else 2884 if test "$GCC" = yes; then 2885 CFLAGS="-O2" 2886 else 2887 CFLAGS= 2888 fi 2889 fi 2890 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2891 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2892 if test "${ac_cv_prog_cc_c89+set}" = set; then 2893 echo $ECHO_N "(cached) $ECHO_C" >&6 2894 else 2895 ac_cv_prog_cc_c89=no 2896 ac_save_CC=$CC 2897 cat >conftest.$ac_ext <<_ACEOF 2898 /* confdefs.h. */ 2899 _ACEOF 2900 cat confdefs.h >>conftest.$ac_ext 2901 cat >>conftest.$ac_ext <<_ACEOF 2902 /* end confdefs.h. */ 2903 #include <stdarg.h> 2904 #include <stdio.h> 2905 #include <sys/types.h> 2906 #include <sys/stat.h> 2907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2908 struct buf { int x; }; 2909 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2910 static char *e (p, i) 2911 char **p; 2912 int i; 2913 { 2914 return p[i]; 2915 } 2916 static char *f (char * (*g) (char **, int), char **p, ...) 2917 { 2918 char *s; 2919 va_list v; 2920 va_start (v,p); 2921 s = g (p, va_arg (v,int)); 2922 va_end (v); 2923 return s; 2924 } 2925 2926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2927 function prototypes and stuff, but not '\xHH' hex character constants. 2928 These don't provoke an error unfortunately, instead are silently treated 2929 as 'x'. The following induces an error, until -std is added to get 2930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2931 array size at least. It's necessary to write '\x00'==0 to get something 2932 that's true only with -std. */ 2933 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2934 2935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2936 inside strings and character constants. */ 2937 #define FOO(x) 'x' 2938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2939 2940 int test (int i, double x); 2941 struct s1 {int (*f) (int a);}; 2942 struct s2 {int (*f) (double a);}; 2943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2944 int argc; 2945 char **argv; 2946 int 2947 main () 2948 { 2949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2950 ; 2951 return 0; 2952 } 2953 _ACEOF 2954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2956 do 2957 CC="$ac_save_CC $ac_arg" 2958 rm -f conftest.$ac_objext 2959 if { (ac_try="$ac_compile" 2960 case "(($ac_try" in 2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2962 *) ac_try_echo=$ac_try;; 2963 esac 2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2965 (eval "$ac_compile") 2>conftest.er1 2966 ac_status=$? 2967 grep -v '^ *+' conftest.er1 >conftest.err 2968 rm -f conftest.er1 2969 cat conftest.err >&5 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); } && { 2972 test -z "$ac_c_werror_flag" || 2973 test ! -s conftest.err 2974 } && test -s conftest.$ac_objext; then 2975 ac_cv_prog_cc_c89=$ac_arg 2976 else 2977 echo "$as_me: failed program was:" >&5 2978 sed 's/^/| /' conftest.$ac_ext >&5 2979 2980 2981 fi 2982 2983 rm -f core conftest.err conftest.$ac_objext 2984 test "x$ac_cv_prog_cc_c89" != "xno" && break 2985 done 2986 rm -f conftest.$ac_ext 2987 CC=$ac_save_CC 2988 2989 fi 2990 # AC_CACHE_VAL 2991 case "x$ac_cv_prog_cc_c89" in 2992 x) 2993 { echo "$as_me:$LINENO: result: none needed" >&5 2994 echo "${ECHO_T}none needed" >&6; } ;; 2995 xno) 2996 { echo "$as_me:$LINENO: result: unsupported" >&5 2997 echo "${ECHO_T}unsupported" >&6; } ;; 2998 *) 2999 CC="$CC $ac_cv_prog_cc_c89" 3000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3001 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3002 esac 3003 3004 3005 ac_ext=c 3006 ac_cpp='$CPP $CPPFLAGS' 3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3010 3011 if test "$ac_cv_c_compiler_gnu" = "yes"; then 3012 ax_cv_c_compiler_vendor="gnu" 3013 else 3014 3015 3016 { echo "$as_me:$LINENO: checking for C compiler vendor" >&5 3017 echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6; } 3018 if test "${ax_cv_c_compiler_vendor+set}" = set; then 3019 echo $ECHO_N "(cached) $ECHO_C" >&6 3020 else 3021 ax_cv_c_compiler_vendor=unknown 3022 # note: don't check for gcc first since some other compilers define __GNUC__ 3023 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do 3024 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 3025 cat >conftest.$ac_ext <<_ACEOF 3026 /* confdefs.h. */ 3027 _ACEOF 3028 cat confdefs.h >>conftest.$ac_ext 3029 cat >>conftest.$ac_ext <<_ACEOF 3030 /* end confdefs.h. */ 3031 3032 int 3033 main () 3034 { 3035 3036 #if !($vencpp) 3037 thisisanerror; 3038 #endif 3039 3040 ; 3041 return 0; 3042 } 3043 _ACEOF 3044 rm -f conftest.$ac_objext 3045 if { (ac_try="$ac_compile" 3046 case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049 esac 3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_compile") 2>conftest.er1 3052 ac_status=$? 3053 grep -v '^ *+' conftest.er1 >conftest.err 3054 rm -f conftest.er1 3055 cat conftest.err >&5 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); } && { 3058 test -z "$ac_c_werror_flag" || 3059 test ! -s conftest.err 3060 } && test -s conftest.$ac_objext; then 3061 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 3062 else 3063 echo "$as_me: failed program was:" >&5 3064 sed 's/^/| /' conftest.$ac_ext >&5 3065 3066 3067 fi 3068 3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3070 done 3071 3072 fi 3073 { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5 3074 echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6; } 3075 3076 fi 3077 for ac_prog in gawk mawk nawk awk 3078 do 3079 # Extract the first word of "$ac_prog", so it can be a program name with args. 3080 set dummy $ac_prog; ac_word=$2 3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3083 if test "${ac_cv_prog_AWK+set}" = set; then 3084 echo $ECHO_N "(cached) $ECHO_C" >&6 3085 else 3086 if test -n "$AWK"; then 3087 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3088 else 3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090 for as_dir in $PATH 3091 do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3096 ac_cv_prog_AWK="$ac_prog" 3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100 done 3101 done 3102 IFS=$as_save_IFS 3103 3104 fi 3105 fi 3106 AWK=$ac_cv_prog_AWK 3107 if test -n "$AWK"; then 3108 { echo "$as_me:$LINENO: result: $AWK" >&5 3109 echo "${ECHO_T}$AWK" >&6; } 3110 else 3111 { echo "$as_me:$LINENO: result: no" >&5 3112 echo "${ECHO_T}no" >&6; } 3113 fi 3114 3115 3116 test -n "$AWK" && break 3117 done 3118 3119 # Find a good install program. We prefer a C program (faster), 3120 # so one script is as good as another. But avoid the broken or 3121 # incompatible versions: 3122 # SysV /etc/install, /usr/sbin/install 3123 # SunOS /usr/etc/install 3124 # IRIX /sbin/install 3125 # AIX /bin/install 3126 # AmigaOS /C/install, which installs bootblocks on floppy discs 3127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3130 # OS/2's system install, which has a completely different semantic 3131 # ./install, which can be erroneously created by make from ./install.sh. 3132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3134 if test -z "$INSTALL"; then 3135 if test "${ac_cv_path_install+set}" = set; then 3136 echo $ECHO_N "(cached) $ECHO_C" >&6 3137 else 3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3139 for as_dir in $PATH 3140 do 3141 IFS=$as_save_IFS 3142 test -z "$as_dir" && as_dir=. 3143 # Account for people who put trailing slashes in PATH elements. 3144 case $as_dir/ in 3145 ./ | .// | /cC/* | \ 3146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3148 /usr/ucb/* ) ;; 3149 *) 3150 # OSF1 and SCO ODT 3.0 have their own names for install. 3151 # Don't use installbsd from OSF since it installs stuff as root 3152 # by default. 3153 for ac_prog in ginstall scoinst install; do 3154 for ac_exec_ext in '' $ac_executable_extensions; do 3155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3156 if test $ac_prog = install && 3157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3158 # AIX install. It has an incompatible calling convention. 3159 : 3160 elif test $ac_prog = install && 3161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3162 # program-specific install script used by HP pwplus--don't use. 3163 : 3164 else 3165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3166 break 3 3167 fi 3168 fi 3169 done 3170 done 3171 ;; 3172 esac 3173 done 3174 IFS=$as_save_IFS 3175 3176 3177 fi 3178 if test "${ac_cv_path_install+set}" = set; then 3179 INSTALL=$ac_cv_path_install 3180 else 3181 # As a last resort, use the slow shell script. Don't cache a 3182 # value for INSTALL within a source directory, because that will 3183 # break other packages using the cache if that directory is 3184 # removed, or if the value is a relative name. 3185 INSTALL=$ac_install_sh 3186 fi 3187 fi 3188 { echo "$as_me:$LINENO: result: $INSTALL" >&5 3189 echo "${ECHO_T}$INSTALL" >&6; } 3190 3191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3192 # It thinks the first close brace ends the variable substitution. 3193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3194 3195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3196 3197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3198 3199 for ac_prog in isainfo 3200 do 3201 # Extract the first word of "$ac_prog", so it can be a program name with args. 3202 set dummy $ac_prog; ac_word=$2 3203 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3205 if test "${ac_cv_path_ISAINFO+set}" = set; then 3206 echo $ECHO_N "(cached) $ECHO_C" >&6 3207 else 3208 case $ISAINFO in 3209 [\\/]* | ?:[\\/]*) 3210 ac_cv_path_ISAINFO="$ISAINFO" # Let the user override the test with a path. 3211 ;; 3212 *) 3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3214 for as_dir in $PATH 3215 do 3216 IFS=$as_save_IFS 3217 test -z "$as_dir" && as_dir=. 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3220 ac_cv_path_ISAINFO="$as_dir/$ac_word$ac_exec_ext" 3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3222 break 2 3223 fi 3224 done 3225 done 3226 IFS=$as_save_IFS 3227 3228 ;; 3229 esac 3230 fi 3231 ISAINFO=$ac_cv_path_ISAINFO 3232 if test -n "$ISAINFO"; then 3233 { echo "$as_me:$LINENO: result: $ISAINFO" >&5 3234 echo "${ECHO_T}$ISAINFO" >&6; } 3235 else 3236 { echo "$as_me:$LINENO: result: no" >&5 3237 echo "${ECHO_T}no" >&6; } 3238 fi 3239 3240 3241 test -n "$ISAINFO" && break 3242 done 3243 3244 for ac_prog in isaexec 3245 do 3246 # Extract the first word of "$ac_prog", so it can be a program name with args. 3247 set dummy $ac_prog; ac_word=$2 3248 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3250 if test "${ac_cv_path_ISAEXEC+set}" = set; then 3251 echo $ECHO_N "(cached) $ECHO_C" >&6 3252 else 3253 case $ISAEXEC in 3254 [\\/]* | ?:[\\/]*) 3255 ac_cv_path_ISAEXEC="$ISAEXEC" # Let the user override the test with a path. 3256 ;; 3257 *) 3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3259 as_dummy="$PATH:/usr/lib:/lib" 3260 for as_dir in $as_dummy 3261 do 3262 IFS=$as_save_IFS 3263 test -z "$as_dir" && as_dir=. 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3266 ac_cv_path_ISAEXEC="$as_dir/$ac_word$ac_exec_ext" 3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270 done 3271 done 3272 IFS=$as_save_IFS 3273 3274 ;; 3275 esac 3276 fi 3277 ISAEXEC=$ac_cv_path_ISAEXEC 3278 if test -n "$ISAEXEC"; then 3279 { echo "$as_me:$LINENO: result: $ISAEXEC" >&5 3280 echo "${ECHO_T}$ISAEXEC" >&6; } 3281 else 3282 { echo "$as_me:$LINENO: result: no" >&5 3283 echo "${ECHO_T}no" >&6; } 3284 fi 3285 3286 3287 test -n "$ISAEXEC" && break 3288 done 3289 3290 for ac_prog in uname 3291 do 3292 # Extract the first word of "$ac_prog", so it can be a program name with args. 3293 set dummy $ac_prog; ac_word=$2 3294 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3296 if test "${ac_cv_path_UNAME+set}" = set; then 3297 echo $ECHO_N "(cached) $ECHO_C" >&6 3298 else 3299 case $UNAME in 3300 [\\/]* | ?:[\\/]*) 3301 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 3302 ;; 3303 *) 3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305 for as_dir in $PATH 3306 do 3307 IFS=$as_save_IFS 3308 test -z "$as_dir" && as_dir=. 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3311 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315 done 3316 done 3317 IFS=$as_save_IFS 3318 3319 ;; 3320 esac 3321 fi 3322 UNAME=$ac_cv_path_UNAME 3323 if test -n "$UNAME"; then 3324 { echo "$as_me:$LINENO: result: $UNAME" >&5 3325 echo "${ECHO_T}$UNAME" >&6; } 3326 else 3327 { echo "$as_me:$LINENO: result: no" >&5 3328 echo "${ECHO_T}no" >&6; } 3329 fi 3330 3331 3332 test -n "$UNAME" && break 3333 done 3334 3335 3336 3337 # system checks require uname 3338 if test "$UNAME"; then 3339 # we make the version number available as a C preprocessor definition 3340 { echo "$as_me:$LINENO: checking OS revision number" >&5 3341 echo $ECHO_N "checking OS revision number... $ECHO_C" >&6; } 3342 osrev=`$UNAME -r | tr -cd ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789` 3343 3344 if test "$osrev" != "unknown" ; then 3345 3346 cat >>confdefs.h <<_ACEOF 3347 #define OSREV $osrev 3348 _ACEOF 3349 3350 osmajor=`$UNAME -r | sed 's/^\([0-9]*\).*$/\1/'` 3351 if test -n "$osmajor"; then 3352 3353 cat >>confdefs.h <<_ACEOF 3354 #define OSMAJOR $osmajor 3355 _ACEOF 3356 3357 fi 3358 else 3359 cat >>confdefs.h <<\_ACEOF 3360 #define OSREV "" 3361 _ACEOF 3362 3363 fi 3364 { echo "$as_me:$LINENO: result: $osrev" >&5 3365 echo "${ECHO_T}$osrev" >&6; } 3366 3367 # we make the non-canonicalized hardware type available 3368 { echo "$as_me:$LINENO: checking hardware platform" >&5 3369 echo $ECHO_N "checking hardware platform... $ECHO_C" >&6; } 3370 UNAME_HARDWARE=`$UNAME -m` 3371 if test "$UNAME_HARDWARE" != "unknown"; then 3372 3373 cat >>confdefs.h <<_ACEOF 3374 #define UNAME_HARDWARE "$UNAME_HARDWARE" 3375 _ACEOF 3376 3377 fi 3378 { echo "$as_me:$LINENO: result: $UNAME_HARDWARE" >&5 3379 echo "${ECHO_T}$UNAME_HARDWARE" >&6; } 3380 fi 3381 3382 # checks for libraries 3383 3384 { echo "$as_me:$LINENO: checking for elf32_getphdr in -lelf" >&5 3385 echo $ECHO_N "checking for elf32_getphdr in -lelf... $ECHO_C" >&6; } 3386 if test "${ac_cv_lib_elf_elf32_getphdr+set}" = set; then 3387 echo $ECHO_N "(cached) $ECHO_C" >&6 3388 else 3389 ac_check_lib_save_LIBS=$LIBS 3390 LIBS="-lelf $LIBS" 3391 cat >conftest.$ac_ext <<_ACEOF 3392 /* confdefs.h. */ 3393 _ACEOF 3394 cat confdefs.h >>conftest.$ac_ext 3395 cat >>conftest.$ac_ext <<_ACEOF 3396 /* end confdefs.h. */ 3397 3398 /* Override any GCC internal prototype to avoid an error. 3399 Use char because int might match the return type of a GCC 3400 builtin and then its argument prototype would still apply. */ 3401 #ifdef __cplusplus 3402 extern "C" 3403 #endif 3404 char elf32_getphdr (); 3405 int 3406 main () 3407 { 3408 return elf32_getphdr (); 3409 ; 3410 return 0; 3411 } 3412 _ACEOF 3413 rm -f conftest.$ac_objext conftest$ac_exeext 3414 if { (ac_try="$ac_link" 3415 case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418 esac 3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3420 (eval "$ac_link") 2>conftest.er1 3421 ac_status=$? 3422 grep -v '^ *+' conftest.er1 >conftest.err 3423 rm -f conftest.er1 3424 cat conftest.err >&5 3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3426 (exit $ac_status); } && { 3427 test -z "$ac_c_werror_flag" || 3428 test ! -s conftest.err 3429 } && test -s conftest$ac_exeext && 3430 $as_test_x conftest$ac_exeext; then 3431 ac_cv_lib_elf_elf32_getphdr=yes 3432 else 3433 echo "$as_me: failed program was:" >&5 3434 sed 's/^/| /' conftest.$ac_ext >&5 3435 3436 ac_cv_lib_elf_elf32_getphdr=no 3437 fi 3438 3439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3440 conftest$ac_exeext conftest.$ac_ext 3441 LIBS=$ac_check_lib_save_LIBS 3442 fi 3443 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf32_getphdr" >&5 3444 echo "${ECHO_T}$ac_cv_lib_elf_elf32_getphdr" >&6; } 3445 if test $ac_cv_lib_elf_elf32_getphdr = yes; then 3446 cat >>confdefs.h <<_ACEOF 3447 #define HAVE_LIBELF 1 3448 _ACEOF 3449 3450 LIBS="-lelf $LIBS" 3451 3452 fi 3453 3454 3455 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 3456 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; } 3457 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 3458 echo $ECHO_N "(cached) $ECHO_C" >&6 3459 else 3460 ac_check_lib_save_LIBS=$LIBS 3461 LIBS="-lkstat $LIBS" 3462 cat >conftest.$ac_ext <<_ACEOF 3463 /* confdefs.h. */ 3464 _ACEOF 3465 cat confdefs.h >>conftest.$ac_ext 3466 cat >>conftest.$ac_ext <<_ACEOF 3467 /* end confdefs.h. */ 3468 3469 /* Override any GCC internal prototype to avoid an error. 3470 Use char because int might match the return type of a GCC 3471 builtin and then its argument prototype would still apply. */ 3472 #ifdef __cplusplus 3473 extern "C" 3474 #endif 3475 char kstat_open (); 3476 int 3477 main () 3478 { 3479 return kstat_open (); 3480 ; 3481 return 0; 3482 } 3483 _ACEOF 3484 rm -f conftest.$ac_objext conftest$ac_exeext 3485 if { (ac_try="$ac_link" 3486 case "(($ac_try" in 3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3488 *) ac_try_echo=$ac_try;; 3489 esac 3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3491 (eval "$ac_link") 2>conftest.er1 3492 ac_status=$? 3493 grep -v '^ *+' conftest.er1 >conftest.err 3494 rm -f conftest.er1 3495 cat conftest.err >&5 3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3497 (exit $ac_status); } && { 3498 test -z "$ac_c_werror_flag" || 3499 test ! -s conftest.err 3500 } && test -s conftest$ac_exeext && 3501 $as_test_x conftest$ac_exeext; then 3502 ac_cv_lib_kstat_kstat_open=yes 3503 else 3504 echo "$as_me: failed program was:" >&5 3505 sed 's/^/| /' conftest.$ac_ext >&5 3506 3507 ac_cv_lib_kstat_kstat_open=no 3508 fi 3509 3510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3511 conftest$ac_exeext conftest.$ac_ext 3512 LIBS=$ac_check_lib_save_LIBS 3513 fi 3514 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 3515 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; } 3516 if test $ac_cv_lib_kstat_kstat_open = yes; then 3517 cat >>confdefs.h <<_ACEOF 3518 #define HAVE_LIBKSTAT 1 3519 _ACEOF 3520 3521 LIBS="-lkstat $LIBS" 3522 3523 fi 3524 3525 3526 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 3527 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; } 3528 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 3529 echo $ECHO_N "(cached) $ECHO_C" >&6 3530 else 3531 ac_check_lib_save_LIBS=$LIBS 3532 LIBS="-lkvm $LIBS" 3533 cat >conftest.$ac_ext <<_ACEOF 3534 /* confdefs.h. */ 3535 _ACEOF 3536 cat confdefs.h >>conftest.$ac_ext 3537 cat >>conftest.$ac_ext <<_ACEOF 3538 /* end confdefs.h. */ 3539 3540 /* Override any GCC internal prototype to avoid an error. 3541 Use char because int might match the return type of a GCC 3542 builtin and then its argument prototype would still apply. */ 3543 #ifdef __cplusplus 3544 extern "C" 3545 #endif 3546 char kvm_open (); 3547 int 3548 main () 3549 { 3550 return kvm_open (); 3551 ; 3552 return 0; 3553 } 3554 _ACEOF 3555 rm -f conftest.$ac_objext conftest$ac_exeext 3556 if { (ac_try="$ac_link" 3557 case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560 esac 3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3562 (eval "$ac_link") 2>conftest.er1 3563 ac_status=$? 3564 grep -v '^ *+' conftest.er1 >conftest.err 3565 rm -f conftest.er1 3566 cat conftest.err >&5 3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 (exit $ac_status); } && { 3569 test -z "$ac_c_werror_flag" || 3570 test ! -s conftest.err 3571 } && test -s conftest$ac_exeext && 3572 $as_test_x conftest$ac_exeext; then 3573 ac_cv_lib_kvm_kvm_open=yes 3574 else 3575 echo "$as_me: failed program was:" >&5 3576 sed 's/^/| /' conftest.$ac_ext >&5 3577 3578 ac_cv_lib_kvm_kvm_open=no 3579 fi 3580 3581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3582 conftest$ac_exeext conftest.$ac_ext 3583 LIBS=$ac_check_lib_save_LIBS 3584 fi 3585 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 3586 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; } 3587 if test $ac_cv_lib_kvm_kvm_open = yes; then 3588 cat >>confdefs.h <<_ACEOF 3589 #define HAVE_LIBKVM 1 3590 _ACEOF 3591 3592 LIBS="-lkvm $LIBS" 3593 3594 fi 3595 3596 # -lmld -lmach 3597 3598 { echo "$as_me:$LINENO: checking for vm_statistics in -lmach" >&5 3599 echo $ECHO_N "checking for vm_statistics in -lmach... $ECHO_C" >&6; } 3600 if test "${ac_cv_lib_mach_vm_statistics+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602 else 3603 ac_check_lib_save_LIBS=$LIBS 3604 LIBS="-lmach $LIBS" 3605 cat >conftest.$ac_ext <<_ACEOF 3606 /* confdefs.h. */ 3607 _ACEOF 3608 cat confdefs.h >>conftest.$ac_ext 3609 cat >>conftest.$ac_ext <<_ACEOF 3610 /* end confdefs.h. */ 3611 3612 /* Override any GCC internal prototype to avoid an error. 3613 Use char because int might match the return type of a GCC 3614 builtin and then its argument prototype would still apply. */ 3615 #ifdef __cplusplus 3616 extern "C" 3617 #endif 3618 char vm_statistics (); 3619 int 3620 main () 3621 { 3622 return vm_statistics (); 3623 ; 3624 return 0; 3625 } 3626 _ACEOF 3627 rm -f conftest.$ac_objext conftest$ac_exeext 3628 if { (ac_try="$ac_link" 3629 case "(($ac_try" in 3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3631 *) ac_try_echo=$ac_try;; 3632 esac 3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3634 (eval "$ac_link") 2>conftest.er1 3635 ac_status=$? 3636 grep -v '^ *+' conftest.er1 >conftest.err 3637 rm -f conftest.er1 3638 cat conftest.err >&5 3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3640 (exit $ac_status); } && { 3641 test -z "$ac_c_werror_flag" || 3642 test ! -s conftest.err 3643 } && test -s conftest$ac_exeext && 3644 $as_test_x conftest$ac_exeext; then 3645 ac_cv_lib_mach_vm_statistics=yes 3646 else 3647 echo "$as_me: failed program was:" >&5 3648 sed 's/^/| /' conftest.$ac_ext >&5 3649 3650 ac_cv_lib_mach_vm_statistics=no 3651 fi 3652 3653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3654 conftest$ac_exeext conftest.$ac_ext 3655 LIBS=$ac_check_lib_save_LIBS 3656 fi 3657 { echo "$as_me:$LINENO: result: $ac_cv_lib_mach_vm_statistics" >&5 3658 echo "${ECHO_T}$ac_cv_lib_mach_vm_statistics" >&6; } 3659 if test $ac_cv_lib_mach_vm_statistics = yes; then 3660 cat >>confdefs.h <<_ACEOF 3661 #define HAVE_LIBMACH 1 3662 _ACEOF 3663 3664 LIBS="-lmach $LIBS" 3665 3666 fi 3667 3668 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 3669 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } 3670 if test "${ac_cv_search_tgetent+set}" = set; then 3671 echo $ECHO_N "(cached) $ECHO_C" >&6 3672 else 3673 ac_func_search_save_LIBS=$LIBS 3674 cat >conftest.$ac_ext <<_ACEOF 3675 /* confdefs.h. */ 3676 _ACEOF 3677 cat confdefs.h >>conftest.$ac_ext 3678 cat >>conftest.$ac_ext <<_ACEOF 3679 /* end confdefs.h. */ 3680 3681 /* Override any GCC internal prototype to avoid an error. 3682 Use char because int might match the return type of a GCC 3683 builtin and then its argument prototype would still apply. */ 3684 #ifdef __cplusplus 3685 extern "C" 3686 #endif 3687 char tgetent (); 3688 int 3689 main () 3690 { 3691 return tgetent (); 3692 ; 3693 return 0; 3694 } 3695 _ACEOF 3696 for ac_lib in '' termcap curses ncurses; do 3697 if test -z "$ac_lib"; then 3698 ac_res="none required" 3699 else 3700 ac_res=-l$ac_lib 3701 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3702 fi 3703 rm -f conftest.$ac_objext conftest$ac_exeext 3704 if { (ac_try="$ac_link" 3705 case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708 esac 3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3710 (eval "$ac_link") 2>conftest.er1 3711 ac_status=$? 3712 grep -v '^ *+' conftest.er1 >conftest.err 3713 rm -f conftest.er1 3714 cat conftest.err >&5 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); } && { 3717 test -z "$ac_c_werror_flag" || 3718 test ! -s conftest.err 3719 } && test -s conftest$ac_exeext && 3720 $as_test_x conftest$ac_exeext; then 3721 ac_cv_search_tgetent=$ac_res 3722 else 3723 echo "$as_me: failed program was:" >&5 3724 sed 's/^/| /' conftest.$ac_ext >&5 3725 3726 3727 fi 3728 3729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3730 conftest$ac_exeext 3731 if test "${ac_cv_search_tgetent+set}" = set; then 3732 break 3733 fi 3734 done 3735 if test "${ac_cv_search_tgetent+set}" = set; then 3736 : 3737 else 3738 ac_cv_search_tgetent=no 3739 fi 3740 rm conftest.$ac_ext 3741 LIBS=$ac_func_search_save_LIBS 3742 fi 3743 { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 3744 echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } 3745 ac_res=$ac_cv_search_tgetent 3746 if test "$ac_res" != no; then 3747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3748 3749 fi 3750 3751 3752 { echo "$as_me:$LINENO: checking for exp in -lm" >&5 3753 echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6; } 3754 if test "${ac_cv_lib_m_exp+set}" = set; then 3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3756 else 3757 ac_check_lib_save_LIBS=$LIBS 3758 LIBS="-lm $LIBS" 3759 cat >conftest.$ac_ext <<_ACEOF 3760 /* confdefs.h. */ 3761 _ACEOF 3762 cat confdefs.h >>conftest.$ac_ext 3763 cat >>conftest.$ac_ext <<_ACEOF 3764 /* end confdefs.h. */ 3765 3766 /* Override any GCC internal prototype to avoid an error. 3767 Use char because int might match the return type of a GCC 3768 builtin and then its argument prototype would still apply. */ 3769 #ifdef __cplusplus 3770 extern "C" 3771 #endif 3772 char exp (); 3773 int 3774 main () 3775 { 3776 return exp (); 3777 ; 3778 return 0; 3779 } 3780 _ACEOF 3781 rm -f conftest.$ac_objext conftest$ac_exeext 3782 if { (ac_try="$ac_link" 3783 case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786 esac 3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3788 (eval "$ac_link") 2>conftest.er1 3789 ac_status=$? 3790 grep -v '^ *+' conftest.er1 >conftest.err 3791 rm -f conftest.er1 3792 cat conftest.err >&5 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); } && { 3795 test -z "$ac_c_werror_flag" || 3796 test ! -s conftest.err 3797 } && test -s conftest$ac_exeext && 3798 $as_test_x conftest$ac_exeext; then 3799 ac_cv_lib_m_exp=yes 3800 else 3801 echo "$as_me: failed program was:" >&5 3802 sed 's/^/| /' conftest.$ac_ext >&5 3803 3804 ac_cv_lib_m_exp=no 3805 fi 3806 3807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3808 conftest$ac_exeext conftest.$ac_ext 3809 LIBS=$ac_check_lib_save_LIBS 3810 fi 3811 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5 3812 echo "${ECHO_T}$ac_cv_lib_m_exp" >&6; } 3813 if test $ac_cv_lib_m_exp = yes; then 3814 cat >>confdefs.h <<_ACEOF 3815 #define HAVE_LIBM 1 3816 _ACEOF 3817 3818 LIBS="-lm $LIBS" 3819 3820 fi 3821 3822 3823 # check for libraries required by extension 3824 extlibs="" 3825 if test -n "$with_ext" -a -f "${srcdir}/ext/$with_ext.libs"; then 3826 { echo "$as_me:$LINENO: checking for libraries needed by extensions" >&5 3827 echo $ECHO_N "checking for libraries needed by extensions... $ECHO_C" >&6; } 3828 for lib in `cat "${srcdir}/ext/$with_ext.libs"` 3829 do 3830 saveLIBS=$LIBS 3831 LIBS="$LIBS -l$lib" 3832 cat >conftest.$ac_ext <<_ACEOF 3833 /* confdefs.h. */ 3834 _ACEOF 3835 cat confdefs.h >>conftest.$ac_ext 3836 cat >>conftest.$ac_ext <<_ACEOF 3837 /* end confdefs.h. */ 3838 3839 int 3840 main () 3841 { 3842 exit(0); 3843 ; 3844 return 0; 3845 } 3846 _ACEOF 3847 rm -f conftest.$ac_objext conftest$ac_exeext 3848 if { (ac_try="$ac_link" 3849 case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852 esac 3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3854 (eval "$ac_link") 2>conftest.er1 3855 ac_status=$? 3856 grep -v '^ *+' conftest.er1 >conftest.err 3857 rm -f conftest.er1 3858 cat conftest.err >&5 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); } && { 3861 test -z "$ac_c_werror_flag" || 3862 test ! -s conftest.err 3863 } && test -s conftest$ac_exeext && 3864 $as_test_x conftest$ac_exeext; then 3865 extlibs="$extlibs -l$lib" 3866 else 3867 echo "$as_me: failed program was:" >&5 3868 sed 's/^/| /' conftest.$ac_ext >&5 3869 3870 3871 fi 3872 3873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3874 conftest$ac_exeext conftest.$ac_ext 3875 LIBS=$saveLIBS 3876 done 3877 { echo "$as_me:$LINENO: result: $extlibs" >&5 3878 echo "${ECHO_T}$extlibs" >&6; } 3879 LIBS="$LIBS$extlibs" 3880 fi 3881 3882 # checks for header files 3883 ac_ext=c 3884 ac_cpp='$CPP $CPPFLAGS' 3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3888 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3890 # On Suns, sometimes $CPP names a directory. 3891 if test -n "$CPP" && test -d "$CPP"; then 3892 CPP= 3893 fi 3894 if test -z "$CPP"; then 3895 if test "${ac_cv_prog_CPP+set}" = set; then 3896 echo $ECHO_N "(cached) $ECHO_C" >&6 3897 else 3898 # Double quotes because CPP needs to be expanded 3899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3900 do 3901 ac_preproc_ok=false 3902 for ac_c_preproc_warn_flag in '' yes 3903 do 3904 # Use a header file that comes with gcc, so configuring glibc 3905 # with a fresh cross-compiler works. 3906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3907 # <limits.h> exists even on freestanding compilers. 3908 # On the NeXT, cc -E runs the code through the compiler's parser, 3909 # not just through cpp. "Syntax error" is here to catch this case. 3910 cat >conftest.$ac_ext <<_ACEOF 3911 /* confdefs.h. */ 3912 _ACEOF 3913 cat confdefs.h >>conftest.$ac_ext 3914 cat >>conftest.$ac_ext <<_ACEOF 3915 /* end confdefs.h. */ 3916 #ifdef __STDC__ 3917 # include <limits.h> 3918 #else 3919 # include <assert.h> 3920 #endif 3921 Syntax error 3922 _ACEOF 3923 if { (ac_try="$ac_cpp conftest.$ac_ext" 3924 case "(($ac_try" in 3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3926 *) ac_try_echo=$ac_try;; 3927 esac 3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3930 ac_status=$? 3931 grep -v '^ *+' conftest.er1 >conftest.err 3932 rm -f conftest.er1 3933 cat conftest.err >&5 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); } >/dev/null && { 3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3937 test ! -s conftest.err 3938 }; then 3939 : 3940 else 3941 echo "$as_me: failed program was:" >&5 3942 sed 's/^/| /' conftest.$ac_ext >&5 3943 3944 # Broken: fails on valid input. 3945 continue 3946 fi 3947 3948 rm -f conftest.err conftest.$ac_ext 3949 3950 # OK, works on sane cases. Now check whether nonexistent headers 3951 # can be detected and how. 3952 cat >conftest.$ac_ext <<_ACEOF 3953 /* confdefs.h. */ 3954 _ACEOF 3955 cat confdefs.h >>conftest.$ac_ext 3956 cat >>conftest.$ac_ext <<_ACEOF 3957 /* end confdefs.h. */ 3958 #include <ac_nonexistent.h> 3959 _ACEOF 3960 if { (ac_try="$ac_cpp conftest.$ac_ext" 3961 case "(($ac_try" in 3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3963 *) ac_try_echo=$ac_try;; 3964 esac 3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3967 ac_status=$? 3968 grep -v '^ *+' conftest.er1 >conftest.err 3969 rm -f conftest.er1 3970 cat conftest.err >&5 3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3972 (exit $ac_status); } >/dev/null && { 3973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3974 test ! -s conftest.err 3975 }; then 3976 # Broken: success on invalid input. 3977 continue 3978 else 3979 echo "$as_me: failed program was:" >&5 3980 sed 's/^/| /' conftest.$ac_ext >&5 3981 3982 # Passes both tests. 3983 ac_preproc_ok=: 3984 break 3985 fi 3986 3987 rm -f conftest.err conftest.$ac_ext 3988 3989 done 3990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3991 rm -f conftest.err conftest.$ac_ext 3992 if $ac_preproc_ok; then 3993 break 3994 fi 3995 3996 done 3997 ac_cv_prog_CPP=$CPP 3998 3999 fi 4000 CPP=$ac_cv_prog_CPP 4001 else 4002 ac_cv_prog_CPP=$CPP 4003 fi 4004 { echo "$as_me:$LINENO: result: $CPP" >&5 4005 echo "${ECHO_T}$CPP" >&6; } 4006 ac_preproc_ok=false 4007 for ac_c_preproc_warn_flag in '' yes 4008 do 4009 # Use a header file that comes with gcc, so configuring glibc 4010 # with a fresh cross-compiler works. 4011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4012 # <limits.h> exists even on freestanding compilers. 4013 # On the NeXT, cc -E runs the code through the compiler's parser, 4014 # not just through cpp. "Syntax error" is here to catch this case. 4015 cat >conftest.$ac_ext <<_ACEOF 4016 /* confdefs.h. */ 4017 _ACEOF 4018 cat confdefs.h >>conftest.$ac_ext 4019 cat >>conftest.$ac_ext <<_ACEOF 4020 /* end confdefs.h. */ 4021 #ifdef __STDC__ 4022 # include <limits.h> 4023 #else 4024 # include <assert.h> 4025 #endif 4026 Syntax error 4027 _ACEOF 4028 if { (ac_try="$ac_cpp conftest.$ac_ext" 4029 case "(($ac_try" in 4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4031 *) ac_try_echo=$ac_try;; 4032 esac 4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4035 ac_status=$? 4036 grep -v '^ *+' conftest.er1 >conftest.err 4037 rm -f conftest.er1 4038 cat conftest.err >&5 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4040 (exit $ac_status); } >/dev/null && { 4041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4042 test ! -s conftest.err 4043 }; then 4044 : 4045 else 4046 echo "$as_me: failed program was:" >&5 4047 sed 's/^/| /' conftest.$ac_ext >&5 4048 4049 # Broken: fails on valid input. 4050 continue 4051 fi 4052 4053 rm -f conftest.err conftest.$ac_ext 4054 4055 # OK, works on sane cases. Now check whether nonexistent headers 4056 # can be detected and how. 4057 cat >conftest.$ac_ext <<_ACEOF 4058 /* confdefs.h. */ 4059 _ACEOF 4060 cat confdefs.h >>conftest.$ac_ext 4061 cat >>conftest.$ac_ext <<_ACEOF 4062 /* end confdefs.h. */ 4063 #include <ac_nonexistent.h> 4064 _ACEOF 4065 if { (ac_try="$ac_cpp conftest.$ac_ext" 4066 case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069 esac 4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4072 ac_status=$? 4073 grep -v '^ *+' conftest.er1 >conftest.err 4074 rm -f conftest.er1 4075 cat conftest.err >&5 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); } >/dev/null && { 4078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4079 test ! -s conftest.err 4080 }; then 4081 # Broken: success on invalid input. 4082 continue 4083 else 4084 echo "$as_me: failed program was:" >&5 4085 sed 's/^/| /' conftest.$ac_ext >&5 4086 4087 # Passes both tests. 4088 ac_preproc_ok=: 4089 break 4090 fi 4091 4092 rm -f conftest.err conftest.$ac_ext 4093 4094 done 4095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4096 rm -f conftest.err conftest.$ac_ext 4097 if $ac_preproc_ok; then 4098 : 4099 else 4100 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4101 See \`config.log' for more details." >&5 4102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4103 See \`config.log' for more details." >&2;} 4104 { (exit 1); exit 1; }; } 4105 fi 4106 4107 ac_ext=c 4108 ac_cpp='$CPP $CPPFLAGS' 4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4112 4113 4114 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4115 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4116 if test "${ac_cv_path_GREP+set}" = set; then 4117 echo $ECHO_N "(cached) $ECHO_C" >&6 4118 else 4119 # Extract the first word of "grep ggrep" to use in msg output 4120 if test -z "$GREP"; then 4121 set dummy grep ggrep; ac_prog_name=$2 4122 if test "${ac_cv_path_GREP+set}" = set; then 4123 echo $ECHO_N "(cached) $ECHO_C" >&6 4124 else 4125 ac_path_GREP_found=false 4126 # Loop through the user's path and test for each of PROGNAME-LIST 4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4129 do 4130 IFS=$as_save_IFS 4131 test -z "$as_dir" && as_dir=. 4132 for ac_prog in grep ggrep; do 4133 for ac_exec_ext in '' $ac_executable_extensions; do 4134 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4135 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4136 # Check for GNU ac_path_GREP and select it if it is found. 4137 # Check for GNU $ac_path_GREP 4138 case `"$ac_path_GREP" --version 2>&1` in 4139 *GNU*) 4140 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4141 *) 4142 ac_count=0 4143 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4144 while : 4145 do 4146 cat "conftest.in" "conftest.in" >"conftest.tmp" 4147 mv "conftest.tmp" "conftest.in" 4148 cp "conftest.in" "conftest.nl" 4149 echo 'GREP' >> "conftest.nl" 4150 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4152 ac_count=`expr $ac_count + 1` 4153 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4154 # Best one so far, save it but keep looking for a better one 4155 ac_cv_path_GREP="$ac_path_GREP" 4156 ac_path_GREP_max=$ac_count 4157 fi 4158 # 10*(2^10) chars as input seems more than enough 4159 test $ac_count -gt 10 && break 4160 done 4161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4162 esac 4163 4164 4165 $ac_path_GREP_found && break 3 4166 done 4167 done 4168 4169 done 4170 IFS=$as_save_IFS 4171 4172 4173 fi 4174 4175 GREP="$ac_cv_path_GREP" 4176 if test -z "$GREP"; then 4177 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4178 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4179 { (exit 1); exit 1; }; } 4180 fi 4181 4182 else 4183 ac_cv_path_GREP=$GREP 4184 fi 4185 4186 4187 fi 4188 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4189 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4190 GREP="$ac_cv_path_GREP" 4191 4192 4193 { echo "$as_me:$LINENO: checking for egrep" >&5 4194 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4195 if test "${ac_cv_path_EGREP+set}" = set; then 4196 echo $ECHO_N "(cached) $ECHO_C" >&6 4197 else 4198 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4199 then ac_cv_path_EGREP="$GREP -E" 4200 else 4201 # Extract the first word of "egrep" to use in msg output 4202 if test -z "$EGREP"; then 4203 set dummy egrep; ac_prog_name=$2 4204 if test "${ac_cv_path_EGREP+set}" = set; then 4205 echo $ECHO_N "(cached) $ECHO_C" >&6 4206 else 4207 ac_path_EGREP_found=false 4208 # Loop through the user's path and test for each of PROGNAME-LIST 4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4211 do 4212 IFS=$as_save_IFS 4213 test -z "$as_dir" && as_dir=. 4214 for ac_prog in egrep; do 4215 for ac_exec_ext in '' $ac_executable_extensions; do 4216 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4217 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4218 # Check for GNU ac_path_EGREP and select it if it is found. 4219 # Check for GNU $ac_path_EGREP 4220 case `"$ac_path_EGREP" --version 2>&1` in 4221 *GNU*) 4222 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4223 *) 4224 ac_count=0 4225 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4226 while : 4227 do 4228 cat "conftest.in" "conftest.in" >"conftest.tmp" 4229 mv "conftest.tmp" "conftest.in" 4230 cp "conftest.in" "conftest.nl" 4231 echo 'EGREP' >> "conftest.nl" 4232 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4234 ac_count=`expr $ac_count + 1` 4235 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4236 # Best one so far, save it but keep looking for a better one 4237 ac_cv_path_EGREP="$ac_path_EGREP" 4238 ac_path_EGREP_max=$ac_count 4239 fi 4240 # 10*(2^10) chars as input seems more than enough 4241 test $ac_count -gt 10 && break 4242 done 4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4244 esac 4245 4246 4247 $ac_path_EGREP_found && break 3 4248 done 4249 done 4250 4251 done 4252 IFS=$as_save_IFS 4253 4254 4255 fi 4256 4257 EGREP="$ac_cv_path_EGREP" 4258 if test -z "$EGREP"; then 4259 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4260 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4261 { (exit 1); exit 1; }; } 4262 fi 4263 4264 else 4265 ac_cv_path_EGREP=$EGREP 4266 fi 4267 4268 4269 fi 4270 fi 4271 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4272 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4273 EGREP="$ac_cv_path_EGREP" 4274 4275 4276 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4278 if test "${ac_cv_header_stdc+set}" = set; then 4279 echo $ECHO_N "(cached) $ECHO_C" >&6 4280 else 4281 cat >conftest.$ac_ext <<_ACEOF 4282 /* confdefs.h. */ 4283 _ACEOF 4284 cat confdefs.h >>conftest.$ac_ext 4285 cat >>conftest.$ac_ext <<_ACEOF 4286 /* end confdefs.h. */ 4287 #include <stdlib.h> 4288 #include <stdarg.h> 4289 #include <string.h> 4290 #include <float.h> 4291 4292 int 4293 main () 4294 { 4295 4296 ; 4297 return 0; 4298 } 4299 _ACEOF 4300 rm -f conftest.$ac_objext 4301 if { (ac_try="$ac_compile" 4302 case "(($ac_try" in 4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4304 *) ac_try_echo=$ac_try;; 4305 esac 4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4307 (eval "$ac_compile") 2>conftest.er1 4308 ac_status=$? 4309 grep -v '^ *+' conftest.er1 >conftest.err 4310 rm -f conftest.er1 4311 cat conftest.err >&5 4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4313 (exit $ac_status); } && { 4314 test -z "$ac_c_werror_flag" || 4315 test ! -s conftest.err 4316 } && test -s conftest.$ac_objext; then 4317 ac_cv_header_stdc=yes 4318 else 4319 echo "$as_me: failed program was:" >&5 4320 sed 's/^/| /' conftest.$ac_ext >&5 4321 4322 ac_cv_header_stdc=no 4323 fi 4324 4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4326 4327 if test $ac_cv_header_stdc = yes; then 4328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4329 cat >conftest.$ac_ext <<_ACEOF 4330 /* confdefs.h. */ 4331 _ACEOF 4332 cat confdefs.h >>conftest.$ac_ext 4333 cat >>conftest.$ac_ext <<_ACEOF 4334 /* end confdefs.h. */ 4335 #include <string.h> 4336 4337 _ACEOF 4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4339 $EGREP "memchr" >/dev/null 2>&1; then 4340 : 4341 else 4342 ac_cv_header_stdc=no 4343 fi 4344 rm -f conftest* 4345 4346 fi 4347 4348 if test $ac_cv_header_stdc = yes; then 4349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4350 cat >conftest.$ac_ext <<_ACEOF 4351 /* confdefs.h. */ 4352 _ACEOF 4353 cat confdefs.h >>conftest.$ac_ext 4354 cat >>conftest.$ac_ext <<_ACEOF 4355 /* end confdefs.h. */ 4356 #include <stdlib.h> 4357 4358 _ACEOF 4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4360 $EGREP "free" >/dev/null 2>&1; then 4361 : 4362 else 4363 ac_cv_header_stdc=no 4364 fi 4365 rm -f conftest* 4366 4367 fi 4368 4369 if test $ac_cv_header_stdc = yes; then 4370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4371 if test "$cross_compiling" = yes; then 4372 : 4373 else 4374 cat >conftest.$ac_ext <<_ACEOF 4375 /* confdefs.h. */ 4376 _ACEOF 4377 cat confdefs.h >>conftest.$ac_ext 4378 cat >>conftest.$ac_ext <<_ACEOF 4379 /* end confdefs.h. */ 4380 #include <ctype.h> 4381 #include <stdlib.h> 4382 #if ((' ' & 0x0FF) == 0x020) 4383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4385 #else 4386 # define ISLOWER(c) \ 4387 (('a' <= (c) && (c) <= 'i') \ 4388 || ('j' <= (c) && (c) <= 'r') \ 4389 || ('s' <= (c) && (c) <= 'z')) 4390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4391 #endif 4392 4393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4394 int 4395 main () 4396 { 4397 int i; 4398 for (i = 0; i < 256; i++) 4399 if (XOR (islower (i), ISLOWER (i)) 4400 || toupper (i) != TOUPPER (i)) 4401 return 2; 4402 return 0; 4403 } 4404 _ACEOF 4405 rm -f conftest$ac_exeext 4406 if { (ac_try="$ac_link" 4407 case "(($ac_try" in 4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4409 *) ac_try_echo=$ac_try;; 4410 esac 4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4412 (eval "$ac_link") 2>&5 4413 ac_status=$? 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4416 { (case "(($ac_try" in 4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4418 *) ac_try_echo=$ac_try;; 4419 esac 4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4421 (eval "$ac_try") 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); }; }; then 4425 : 4426 else 4427 echo "$as_me: program exited with status $ac_status" >&5 4428 echo "$as_me: failed program was:" >&5 4429 sed 's/^/| /' conftest.$ac_ext >&5 4430 4431 ( exit $ac_status ) 4432 ac_cv_header_stdc=no 4433 fi 4434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4435 fi 4436 4437 4438 fi 4439 fi 4440 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4441 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4442 if test $ac_cv_header_stdc = yes; then 4443 4444 cat >>confdefs.h <<\_ACEOF 4445 #define STDC_HEADERS 1 4446 _ACEOF 4447 4448 fi 4449 4450 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4461 inttypes.h stdint.h unistd.h 4462 do 4463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4464 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468 else 4469 cat >conftest.$ac_ext <<_ACEOF 4470 /* confdefs.h. */ 4471 _ACEOF 4472 cat confdefs.h >>conftest.$ac_ext 4473 cat >>conftest.$ac_ext <<_ACEOF 4474 /* end confdefs.h. */ 4475 $ac_includes_default 4476 4477 #include <$ac_header> 4478 _ACEOF 4479 rm -f conftest.$ac_objext 4480 if { (ac_try="$ac_compile" 4481 case "(($ac_try" in 4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4483 *) ac_try_echo=$ac_try;; 4484 esac 4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4486 (eval "$ac_compile") 2>conftest.er1 4487 ac_status=$? 4488 grep -v '^ *+' conftest.er1 >conftest.err 4489 rm -f conftest.er1 4490 cat conftest.err >&5 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); } && { 4493 test -z "$ac_c_werror_flag" || 4494 test ! -s conftest.err 4495 } && test -s conftest.$ac_objext; then 4496 eval "$as_ac_Header=yes" 4497 else 4498 echo "$as_me: failed program was:" >&5 4499 sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 eval "$as_ac_Header=no" 4502 fi 4503 4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505 fi 4506 ac_res=`eval echo '${'$as_ac_Header'}'` 4507 { echo "$as_me:$LINENO: result: $ac_res" >&5 4508 echo "${ECHO_T}$ac_res" >&6; } 4509 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4510 cat >>confdefs.h <<_ACEOF 4511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4512 _ACEOF 4513 4514 fi 4515 4516 done 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 for ac_header in curses.h getopt.h limits.h math.h stdarg.h sysexits.h termcap.h unistd.h sys/resource.h sys/time.h sys/utsname.h 4531 do 4532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4534 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4537 echo $ECHO_N "(cached) $ECHO_C" >&6 4538 fi 4539 ac_res=`eval echo '${'$as_ac_Header'}'` 4540 { echo "$as_me:$LINENO: result: $ac_res" >&5 4541 echo "${ECHO_T}$ac_res" >&6; } 4542 else 4543 # Is the header compilable? 4544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 4545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4546 cat >conftest.$ac_ext <<_ACEOF 4547 /* confdefs.h. */ 4548 _ACEOF 4549 cat confdefs.h >>conftest.$ac_ext 4550 cat >>conftest.$ac_ext <<_ACEOF 4551 /* end confdefs.h. */ 4552 $ac_includes_default 4553 #include <$ac_header> 4554 _ACEOF 4555 rm -f conftest.$ac_objext 4556 if { (ac_try="$ac_compile" 4557 case "(($ac_try" in 4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4559 *) ac_try_echo=$ac_try;; 4560 esac 4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4562 (eval "$ac_compile") 2>conftest.er1 4563 ac_status=$? 4564 grep -v '^ *+' conftest.er1 >conftest.err 4565 rm -f conftest.er1 4566 cat conftest.err >&5 4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4568 (exit $ac_status); } && { 4569 test -z "$ac_c_werror_flag" || 4570 test ! -s conftest.err 4571 } && test -s conftest.$ac_objext; then 4572 ac_header_compiler=yes 4573 else 4574 echo "$as_me: failed program was:" >&5 4575 sed 's/^/| /' conftest.$ac_ext >&5 4576 4577 ac_header_compiler=no 4578 fi 4579 4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4582 echo "${ECHO_T}$ac_header_compiler" >&6; } 4583 4584 # Is the header present? 4585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4587 cat >conftest.$ac_ext <<_ACEOF 4588 /* confdefs.h. */ 4589 _ACEOF 4590 cat confdefs.h >>conftest.$ac_ext 4591 cat >>conftest.$ac_ext <<_ACEOF 4592 /* end confdefs.h. */ 4593 #include <$ac_header> 4594 _ACEOF 4595 if { (ac_try="$ac_cpp conftest.$ac_ext" 4596 case "(($ac_try" in 4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4598 *) ac_try_echo=$ac_try;; 4599 esac 4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4602 ac_status=$? 4603 grep -v '^ *+' conftest.er1 >conftest.err 4604 rm -f conftest.er1 4605 cat conftest.err >&5 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); } >/dev/null && { 4608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4609 test ! -s conftest.err 4610 }; then 4611 ac_header_preproc=yes 4612 else 4613 echo "$as_me: failed program was:" >&5 4614 sed 's/^/| /' conftest.$ac_ext >&5 4615 4616 ac_header_preproc=no 4617 fi 4618 4619 rm -f conftest.err conftest.$ac_ext 4620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4621 echo "${ECHO_T}$ac_header_preproc" >&6; } 4622 4623 # So? What about this header? 4624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4625 yes:no: ) 4626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4630 ac_header_preproc=yes 4631 ;; 4632 no:yes:* ) 4633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4645 4646 ;; 4647 esac 4648 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4651 echo $ECHO_N "(cached) $ECHO_C" >&6 4652 else 4653 eval "$as_ac_Header=\$ac_header_preproc" 4654 fi 4655 ac_res=`eval echo '${'$as_ac_Header'}'` 4656 { echo "$as_me:$LINENO: result: $ac_res" >&5 4657 echo "${ECHO_T}$ac_res" >&6; } 4658 4659 fi 4660 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4661 cat >>confdefs.h <<_ACEOF 4662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4663 _ACEOF 4664 4665 fi 4666 4667 done 4668 4669 4670 for ac_header in term.h 4671 do 4672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4673 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677 else 4678 cat >conftest.$ac_ext <<_ACEOF 4679 /* confdefs.h. */ 4680 _ACEOF 4681 cat confdefs.h >>conftest.$ac_ext 4682 cat >>conftest.$ac_ext <<_ACEOF 4683 /* end confdefs.h. */ 4684 #if HAVE_CURSES_H 4685 #include <curses.h> 4686 #endif 4687 4688 4689 #include <$ac_header> 4690 _ACEOF 4691 rm -f conftest.$ac_objext 4692 if { (ac_try="$ac_compile" 4693 case "(($ac_try" in 4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4695 *) ac_try_echo=$ac_try;; 4696 esac 4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4698 (eval "$ac_compile") 2>conftest.er1 4699 ac_status=$? 4700 grep -v '^ *+' conftest.er1 >conftest.err 4701 rm -f conftest.er1 4702 cat conftest.err >&5 4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4704 (exit $ac_status); } && { 4705 test -z "$ac_c_werror_flag" || 4706 test ! -s conftest.err 4707 } && test -s conftest.$ac_objext; then 4708 eval "$as_ac_Header=yes" 4709 else 4710 echo "$as_me: failed program was:" >&5 4711 sed 's/^/| /' conftest.$ac_ext >&5 4712 4713 eval "$as_ac_Header=no" 4714 fi 4715 4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717 fi 4718 ac_res=`eval echo '${'$as_ac_Header'}'` 4719 { echo "$as_me:$LINENO: result: $ac_res" >&5 4720 echo "${ECHO_T}$ac_res" >&6; } 4721 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4722 cat >>confdefs.h <<_ACEOF 4723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4724 _ACEOF 4725 4726 fi 4727 4728 done 4729 4730 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4731 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 4732 if test "${ac_cv_header_time+set}" = set; then 4733 echo $ECHO_N "(cached) $ECHO_C" >&6 4734 else 4735 cat >conftest.$ac_ext <<_ACEOF 4736 /* confdefs.h. */ 4737 _ACEOF 4738 cat confdefs.h >>conftest.$ac_ext 4739 cat >>conftest.$ac_ext <<_ACEOF 4740 /* end confdefs.h. */ 4741 #include <sys/types.h> 4742 #include <sys/time.h> 4743 #include <time.h> 4744 4745 int 4746 main () 4747 { 4748 if ((struct tm *) 0) 4749 return 0; 4750 ; 4751 return 0; 4752 } 4753 _ACEOF 4754 rm -f conftest.$ac_objext 4755 if { (ac_try="$ac_compile" 4756 case "(($ac_try" in 4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4758 *) ac_try_echo=$ac_try;; 4759 esac 4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4761 (eval "$ac_compile") 2>conftest.er1 4762 ac_status=$? 4763 grep -v '^ *+' conftest.er1 >conftest.err 4764 rm -f conftest.er1 4765 cat conftest.err >&5 4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4767 (exit $ac_status); } && { 4768 test -z "$ac_c_werror_flag" || 4769 test ! -s conftest.err 4770 } && test -s conftest.$ac_objext; then 4771 ac_cv_header_time=yes 4772 else 4773 echo "$as_me: failed program was:" >&5 4774 sed 's/^/| /' conftest.$ac_ext >&5 4775 4776 ac_cv_header_time=no 4777 fi 4778 4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4780 fi 4781 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4782 echo "${ECHO_T}$ac_cv_header_time" >&6; } 4783 if test $ac_cv_header_time = yes; then 4784 4785 cat >>confdefs.h <<\_ACEOF 4786 #define TIME_WITH_SYS_TIME 1 4787 _ACEOF 4788 4789 fi 4790 4791 { echo "$as_me:$LINENO: checking for a good signal.h" >&5 4792 echo $ECHO_N "checking for a good signal.h... $ECHO_C" >&6; } 4793 SIGNAL_H="no" 4794 for f in /usr/include/signal.h /usr/include/sys/signal.h /usr/include/sys/iso/signal_iso.h /usr/include/bits/signum.h; do 4795 if grep SIGKILL $f >/dev/null 2>&1; then 4796 SIGNAL_H=$f 4797 break 4798 fi 4799 done 4800 { echo "$as_me:$LINENO: result: $SIGNAL_H" >&5 4801 echo "${ECHO_T}$SIGNAL_H" >&6; } 4802 if test "$SIGNAL_H" = "no"; then 4803 SIGNAL_H="/dev/null" 4804 fi 4805 4806 4807 # checks for typedefs, structures, and compiler characteristics. 4808 { echo "$as_me:$LINENO: checking for variadic macros" >&5 4809 echo $ECHO_N "checking for variadic macros... $ECHO_C" >&6; } 4810 cat >conftest.$ac_ext <<_ACEOF 4811 /* confdefs.h. */ 4812 _ACEOF 4813 cat confdefs.h >>conftest.$ac_ext 4814 cat >>conftest.$ac_ext <<_ACEOF 4815 /* end confdefs.h. */ 4816 #define a(x, ...) (x, __VA_ARGS__) 4817 int 4818 main () 4819 { 4820 4821 ; 4822 return 0; 4823 } 4824 _ACEOF 4825 rm -f conftest.$ac_objext 4826 if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 4833 ac_status=$? 4834 grep -v '^ *+' conftest.er1 >conftest.err 4835 rm -f conftest.er1 4836 cat conftest.err >&5 4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4838 (exit $ac_status); } && { 4839 test -z "$ac_c_werror_flag" || 4840 test ! -s conftest.err 4841 } && test -s conftest.$ac_objext; then 4842 ax_cv_c99_variadic=yes 4843 else 4844 echo "$as_me: failed program was:" >&5 4845 sed 's/^/| /' conftest.$ac_ext >&5 4846 4847 ax_cv_c99_variadic=no 4848 fi 4849 4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4851 cat >conftest.$ac_ext <<_ACEOF 4852 /* confdefs.h. */ 4853 _ACEOF 4854 cat confdefs.h >>conftest.$ac_ext 4855 cat >>conftest.$ac_ext <<_ACEOF 4856 /* end confdefs.h. */ 4857 #define a(x...) (x) 4858 int 4859 main () 4860 { 4861 4862 ; 4863 return 0; 4864 } 4865 _ACEOF 4866 rm -f conftest.$ac_objext 4867 if { (ac_try="$ac_compile" 4868 case "(($ac_try" in 4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4870 *) ac_try_echo=$ac_try;; 4871 esac 4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4873 (eval "$ac_compile") 2>conftest.er1 4874 ac_status=$? 4875 grep -v '^ *+' conftest.er1 >conftest.err 4876 rm -f conftest.er1 4877 cat conftest.err >&5 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } && { 4880 test -z "$ac_c_werror_flag" || 4881 test ! -s conftest.err 4882 } && test -s conftest.$ac_objext; then 4883 ax_cv_gnu_variadic=yes 4884 else 4885 echo "$as_me: failed program was:" >&5 4886 sed 's/^/| /' conftest.$ac_ext >&5 4887 4888 ax_cv_gnu_variadic=no 4889 fi 4890 4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4892 _result="" 4893 if test "$ax_cv_c99_variadic" = "yes"; then 4894 _result=" c99" 4895 4896 cat >>confdefs.h <<\_ACEOF 4897 #define HAVE_C99_VARIADIC_MACROS 1 4898 _ACEOF 4899 4900 fi 4901 if test "$ax_cv_gnu_variadic" = "yes"; then 4902 _result="$_result gnu" 4903 4904 cat >>confdefs.h <<\_ACEOF 4905 #define HAVE_GNU_VARIADIC_MACROS 1 4906 _ACEOF 4907 4908 fi 4909 if test "x$_result" = x; then 4910 _result="no" 4911 fi 4912 { echo "$as_me:$LINENO: result: $_result" >&5 4913 echo "${ECHO_T}$_result" >&6; } 4914 4915 { echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5 4916 echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6; } 4917 if test "${ac_cv_have_decl_sys_errlist+set}" = set; then 4918 echo $ECHO_N "(cached) $ECHO_C" >&6 4919 else 4920 cat >conftest.$ac_ext <<_ACEOF 4921 /* confdefs.h. */ 4922 _ACEOF 4923 cat confdefs.h >>conftest.$ac_ext 4924 cat >>conftest.$ac_ext <<_ACEOF 4925 /* end confdefs.h. */ 4926 $ac_includes_default 4927 int 4928 main () 4929 { 4930 #ifndef sys_errlist 4931 (void) sys_errlist; 4932 #endif 4933 4934 ; 4935 return 0; 4936 } 4937 _ACEOF 4938 rm -f conftest.$ac_objext 4939 if { (ac_try="$ac_compile" 4940 case "(($ac_try" in 4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4942 *) ac_try_echo=$ac_try;; 4943 esac 4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4945 (eval "$ac_compile") 2>conftest.er1 4946 ac_status=$? 4947 grep -v '^ *+' conftest.er1 >conftest.err 4948 rm -f conftest.er1 4949 cat conftest.err >&5 4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4951 (exit $ac_status); } && { 4952 test -z "$ac_c_werror_flag" || 4953 test ! -s conftest.err 4954 } && test -s conftest.$ac_objext; then 4955 ac_cv_have_decl_sys_errlist=yes 4956 else 4957 echo "$as_me: failed program was:" >&5 4958 sed 's/^/| /' conftest.$ac_ext >&5 4959 4960 ac_cv_have_decl_sys_errlist=no 4961 fi 4962 4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4964 fi 4965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5 4966 echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6; } 4967 if test $ac_cv_have_decl_sys_errlist = yes; then 4968 4969 cat >>confdefs.h <<_ACEOF 4970 #define HAVE_DECL_SYS_ERRLIST 1 4971 _ACEOF 4972 4973 4974 else 4975 cat >>confdefs.h <<_ACEOF 4976 #define HAVE_DECL_SYS_ERRLIST 0 4977 _ACEOF 4978 4979 4980 fi 4981 4982 4983 { echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5 4984 echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6; } 4985 if test "${ac_cv_have_decl_sys_signame+set}" = set; then 4986 echo $ECHO_N "(cached) $ECHO_C" >&6 4987 else 4988 cat >conftest.$ac_ext <<_ACEOF 4989 /* confdefs.h. */ 4990 _ACEOF 4991 cat confdefs.h >>conftest.$ac_ext 4992 cat >>conftest.$ac_ext <<_ACEOF 4993 /* end confdefs.h. */ 4994 #include <signal.h> 4995 /* NetBSD declares sys_siglist in unistd.h. */ 4996 #if HAVE_UNISTD_H 4997 # include <unistd.h> 4998 #endif 4999 5000 5001 int 5002 main () 5003 { 5004 #ifndef sys_signame 5005 (void) sys_signame; 5006 #endif 5007 5008 ; 5009 return 0; 5010 } 5011 _ACEOF 5012 rm -f conftest.$ac_objext 5013 if { (ac_try="$ac_compile" 5014 case "(($ac_try" in 5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5016 *) ac_try_echo=$ac_try;; 5017 esac 5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5019 (eval "$ac_compile") 2>conftest.er1 5020 ac_status=$? 5021 grep -v '^ *+' conftest.er1 >conftest.err 5022 rm -f conftest.er1 5023 cat conftest.err >&5 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); } && { 5026 test -z "$ac_c_werror_flag" || 5027 test ! -s conftest.err 5028 } && test -s conftest.$ac_objext; then 5029 ac_cv_have_decl_sys_signame=yes 5030 else 5031 echo "$as_me: failed program was:" >&5 5032 sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 ac_cv_have_decl_sys_signame=no 5035 fi 5036 5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5038 fi 5039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5 5040 echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6; } 5041 if test $ac_cv_have_decl_sys_signame = yes; then 5042 5043 cat >>confdefs.h <<_ACEOF 5044 #define HAVE_DECL_SYS_SIGNAME 1 5045 _ACEOF 5046 5047 5048 else 5049 cat >>confdefs.h <<_ACEOF 5050 #define HAVE_DECL_SYS_SIGNAME 0 5051 _ACEOF 5052 5053 5054 fi 5055 5056 5057 { echo "$as_me:$LINENO: checking whether tputs is declared" >&5 5058 echo $ECHO_N "checking whether tputs is declared... $ECHO_C" >&6; } 5059 if test "${ac_cv_have_decl_tputs+set}" = set; then 5060 echo $ECHO_N "(cached) $ECHO_C" >&6 5061 else 5062 cat >conftest.$ac_ext <<_ACEOF 5063 /* confdefs.h. */ 5064 _ACEOF 5065 cat confdefs.h >>conftest.$ac_ext 5066 cat >>conftest.$ac_ext <<_ACEOF 5067 /* end confdefs.h. */ 5068 #if HAVE_CURSES_H && HAVE_TERM_H 5069 #include <curses.h> 5070 #include <term.h> 5071 #else 5072 #if HAVE_TERMCAP_H 5073 #include <termcap.h> 5074 #else 5075 #if HAVE_CURSES_H 5076 #include <curses.h> 5077 #endif 5078 #endif 5079 #endif 5080 5081 5082 int 5083 main () 5084 { 5085 #ifndef tputs 5086 (void) tputs; 5087 #endif 5088 5089 ; 5090 return 0; 5091 } 5092 _ACEOF 5093 rm -f conftest.$ac_objext 5094 if { (ac_try="$ac_compile" 5095 case "(($ac_try" in 5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5097 *) ac_try_echo=$ac_try;; 5098 esac 5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5100 (eval "$ac_compile") 2>conftest.er1 5101 ac_status=$? 5102 grep -v '^ *+' conftest.er1 >conftest.err 5103 rm -f conftest.er1 5104 cat conftest.err >&5 5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5106 (exit $ac_status); } && { 5107 test -z "$ac_c_werror_flag" || 5108 test ! -s conftest.err 5109 } && test -s conftest.$ac_objext; then 5110 ac_cv_have_decl_tputs=yes 5111 else 5112 echo "$as_me: failed program was:" >&5 5113 sed 's/^/| /' conftest.$ac_ext >&5 5114 5115 ac_cv_have_decl_tputs=no 5116 fi 5117 5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5119 fi 5120 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tputs" >&5 5121 echo "${ECHO_T}$ac_cv_have_decl_tputs" >&6; } 5122 if test $ac_cv_have_decl_tputs = yes; then 5123 5124 cat >>confdefs.h <<_ACEOF 5125 #define HAVE_DECL_TPUTS 1 5126 _ACEOF 5127 5128 5129 else 5130 cat >>confdefs.h <<_ACEOF 5131 #define HAVE_DECL_TPUTS 0 5132 _ACEOF 5133 5134 5135 fi 5136 { echo "$as_me:$LINENO: checking whether tgoto is declared" >&5 5137 echo $ECHO_N "checking whether tgoto is declared... $ECHO_C" >&6; } 5138 if test "${ac_cv_have_decl_tgoto+set}" = set; then 5139 echo $ECHO_N "(cached) $ECHO_C" >&6 5140 else 5141 cat >conftest.$ac_ext <<_ACEOF 5142 /* confdefs.h. */ 5143 _ACEOF 5144 cat confdefs.h >>conftest.$ac_ext 5145 cat >>conftest.$ac_ext <<_ACEOF 5146 /* end confdefs.h. */ 5147 #if HAVE_CURSES_H && HAVE_TERM_H 5148 #include <curses.h> 5149 #include <term.h> 5150 #else 5151 #if HAVE_TERMCAP_H 5152 #include <termcap.h> 5153 #else 5154 #if HAVE_CURSES_H 5155 #include <curses.h> 5156 #endif 5157 #endif 5158 #endif 5159 5160 5161 int 5162 main () 5163 { 5164 #ifndef tgoto 5165 (void) tgoto; 5166 #endif 5167 5168 ; 5169 return 0; 5170 } 5171 _ACEOF 5172 rm -f conftest.$ac_objext 5173 if { (ac_try="$ac_compile" 5174 case "(($ac_try" in 5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5176 *) ac_try_echo=$ac_try;; 5177 esac 5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5179 (eval "$ac_compile") 2>conftest.er1 5180 ac_status=$? 5181 grep -v '^ *+' conftest.er1 >conftest.err 5182 rm -f conftest.er1 5183 cat conftest.err >&5 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); } && { 5186 test -z "$ac_c_werror_flag" || 5187 test ! -s conftest.err 5188 } && test -s conftest.$ac_objext; then 5189 ac_cv_have_decl_tgoto=yes 5190 else 5191 echo "$as_me: failed program was:" >&5 5192 sed 's/^/| /' conftest.$ac_ext >&5 5193 5194 ac_cv_have_decl_tgoto=no 5195 fi 5196 5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5198 fi 5199 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgoto" >&5 5200 echo "${ECHO_T}$ac_cv_have_decl_tgoto" >&6; } 5201 if test $ac_cv_have_decl_tgoto = yes; then 5202 5203 cat >>confdefs.h <<_ACEOF 5204 #define HAVE_DECL_TGOTO 1 5205 _ACEOF 5206 5207 5208 else 5209 cat >>confdefs.h <<_ACEOF 5210 #define HAVE_DECL_TGOTO 0 5211 _ACEOF 5212 5213 5214 fi 5215 { echo "$as_me:$LINENO: checking whether tgetent is declared" >&5 5216 echo $ECHO_N "checking whether tgetent is declared... $ECHO_C" >&6; } 5217 if test "${ac_cv_have_decl_tgetent+set}" = set; then 5218 echo $ECHO_N "(cached) $ECHO_C" >&6 5219 else 5220 cat >conftest.$ac_ext <<_ACEOF 5221 /* confdefs.h. */ 5222 _ACEOF 5223 cat confdefs.h >>conftest.$ac_ext 5224 cat >>conftest.$ac_ext <<_ACEOF 5225 /* end confdefs.h. */ 5226 #if HAVE_CURSES_H && HAVE_TERM_H 5227 #include <curses.h> 5228 #include <term.h> 5229 #else 5230 #if HAVE_TERMCAP_H 5231 #include <termcap.h> 5232 #else 5233 #if HAVE_CURSES_H 5234 #include <curses.h> 5235 #endif 5236 #endif 5237 #endif 5238 5239 5240 int 5241 main () 5242 { 5243 #ifndef tgetent 5244 (void) tgetent; 5245 #endif 5246 5247 ; 5248 return 0; 5249 } 5250 _ACEOF 5251 rm -f conftest.$ac_objext 5252 if { (ac_try="$ac_compile" 5253 case "(($ac_try" in 5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5255 *) ac_try_echo=$ac_try;; 5256 esac 5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5258 (eval "$ac_compile") 2>conftest.er1 5259 ac_status=$? 5260 grep -v '^ *+' conftest.er1 >conftest.err 5261 rm -f conftest.er1 5262 cat conftest.err >&5 5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5264 (exit $ac_status); } && { 5265 test -z "$ac_c_werror_flag" || 5266 test ! -s conftest.err 5267 } && test -s conftest.$ac_objext; then 5268 ac_cv_have_decl_tgetent=yes 5269 else 5270 echo "$as_me: failed program was:" >&5 5271 sed 's/^/| /' conftest.$ac_ext >&5 5272 5273 ac_cv_have_decl_tgetent=no 5274 fi 5275 5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277 fi 5278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetent" >&5 5279 echo "${ECHO_T}$ac_cv_have_decl_tgetent" >&6; } 5280 if test $ac_cv_have_decl_tgetent = yes; then 5281 5282 cat >>confdefs.h <<_ACEOF 5283 #define HAVE_DECL_TGETENT 1 5284 _ACEOF 5285 5286 5287 else 5288 cat >>confdefs.h <<_ACEOF 5289 #define HAVE_DECL_TGETENT 0 5290 _ACEOF 5291 5292 5293 fi 5294 { echo "$as_me:$LINENO: checking whether tgetflag is declared" >&5 5295 echo $ECHO_N "checking whether tgetflag is declared... $ECHO_C" >&6; } 5296 if test "${ac_cv_have_decl_tgetflag+set}" = set; then 5297 echo $ECHO_N "(cached) $ECHO_C" >&6 5298 else 5299 cat >conftest.$ac_ext <<_ACEOF 5300 /* confdefs.h. */ 5301 _ACEOF 5302 cat confdefs.h >>conftest.$ac_ext 5303 cat >>conftest.$ac_ext <<_ACEOF 5304 /* end confdefs.h. */ 5305 #if HAVE_CURSES_H && HAVE_TERM_H 5306 #include <curses.h> 5307 #include <term.h> 5308 #else 5309 #if HAVE_TERMCAP_H 5310 #include <termcap.h> 5311 #else 5312 #if HAVE_CURSES_H 5313 #include <curses.h> 5314 #endif 5315 #endif 5316 #endif 5317 5318 5319 int 5320 main () 5321 { 5322 #ifndef tgetflag 5323 (void) tgetflag; 5324 #endif 5325 5326 ; 5327 return 0; 5328 } 5329 _ACEOF 5330 rm -f conftest.$ac_objext 5331 if { (ac_try="$ac_compile" 5332 case "(($ac_try" in 5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5334 *) ac_try_echo=$ac_try;; 5335 esac 5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5337 (eval "$ac_compile") 2>conftest.er1 5338 ac_status=$? 5339 grep -v '^ *+' conftest.er1 >conftest.err 5340 rm -f conftest.er1 5341 cat conftest.err >&5 5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5343 (exit $ac_status); } && { 5344 test -z "$ac_c_werror_flag" || 5345 test ! -s conftest.err 5346 } && test -s conftest.$ac_objext; then 5347 ac_cv_have_decl_tgetflag=yes 5348 else 5349 echo "$as_me: failed program was:" >&5 5350 sed 's/^/| /' conftest.$ac_ext >&5 5351 5352 ac_cv_have_decl_tgetflag=no 5353 fi 5354 5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5356 fi 5357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetflag" >&5 5358 echo "${ECHO_T}$ac_cv_have_decl_tgetflag" >&6; } 5359 if test $ac_cv_have_decl_tgetflag = yes; then 5360 5361 cat >>confdefs.h <<_ACEOF 5362 #define HAVE_DECL_TGETFLAG 1 5363 _ACEOF 5364 5365 5366 else 5367 cat >>confdefs.h <<_ACEOF 5368 #define HAVE_DECL_TGETFLAG 0 5369 _ACEOF 5370 5371 5372 fi 5373 { echo "$as_me:$LINENO: checking whether tgetnum is declared" >&5 5374 echo $ECHO_N "checking whether tgetnum is declared... $ECHO_C" >&6; } 5375 if test "${ac_cv_have_decl_tgetnum+set}" = set; then 5376 echo $ECHO_N "(cached) $ECHO_C" >&6 5377 else 5378 cat >conftest.$ac_ext <<_ACEOF 5379 /* confdefs.h. */ 5380 _ACEOF 5381 cat confdefs.h >>conftest.$ac_ext 5382 cat >>conftest.$ac_ext <<_ACEOF 5383 /* end confdefs.h. */ 5384 #if HAVE_CURSES_H && HAVE_TERM_H 5385 #include <curses.h> 5386 #include <term.h> 5387 #else 5388 #if HAVE_TERMCAP_H 5389 #include <termcap.h> 5390 #else 5391 #if HAVE_CURSES_H 5392 #include <curses.h> 5393 #endif 5394 #endif 5395 #endif 5396 5397 5398 int 5399 main () 5400 { 5401 #ifndef tgetnum 5402 (void) tgetnum; 5403 #endif 5404 5405 ; 5406 return 0; 5407 } 5408 _ACEOF 5409 rm -f conftest.$ac_objext 5410 if { (ac_try="$ac_compile" 5411 case "(($ac_try" in 5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5413 *) ac_try_echo=$ac_try;; 5414 esac 5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5416 (eval "$ac_compile") 2>conftest.er1 5417 ac_status=$? 5418 grep -v '^ *+' conftest.er1 >conftest.err 5419 rm -f conftest.er1 5420 cat conftest.err >&5 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5422 (exit $ac_status); } && { 5423 test -z "$ac_c_werror_flag" || 5424 test ! -s conftest.err 5425 } && test -s conftest.$ac_objext; then 5426 ac_cv_have_decl_tgetnum=yes 5427 else 5428 echo "$as_me: failed program was:" >&5 5429 sed 's/^/| /' conftest.$ac_ext >&5 5430 5431 ac_cv_have_decl_tgetnum=no 5432 fi 5433 5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5435 fi 5436 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetnum" >&5 5437 echo "${ECHO_T}$ac_cv_have_decl_tgetnum" >&6; } 5438 if test $ac_cv_have_decl_tgetnum = yes; then 5439 5440 cat >>confdefs.h <<_ACEOF 5441 #define HAVE_DECL_TGETNUM 1 5442 _ACEOF 5443 5444 5445 else 5446 cat >>confdefs.h <<_ACEOF 5447 #define HAVE_DECL_TGETNUM 0 5448 _ACEOF 5449 5450 5451 fi 5452 { echo "$as_me:$LINENO: checking whether tgetstr is declared" >&5 5453 echo $ECHO_N "checking whether tgetstr is declared... $ECHO_C" >&6; } 5454 if test "${ac_cv_have_decl_tgetstr+set}" = set; then 5455 echo $ECHO_N "(cached) $ECHO_C" >&6 5456 else 5457 cat >conftest.$ac_ext <<_ACEOF 5458 /* confdefs.h. */ 5459 _ACEOF 5460 cat confdefs.h >>conftest.$ac_ext 5461 cat >>conftest.$ac_ext <<_ACEOF 5462 /* end confdefs.h. */ 5463 #if HAVE_CURSES_H && HAVE_TERM_H 5464 #include <curses.h> 5465 #include <term.h> 5466 #else 5467 #if HAVE_TERMCAP_H 5468 #include <termcap.h> 5469 #else 5470 #if HAVE_CURSES_H 5471 #include <curses.h> 5472 #endif 5473 #endif 5474 #endif 5475 5476 5477 int 5478 main () 5479 { 5480 #ifndef tgetstr 5481 (void) tgetstr; 5482 #endif 5483 5484 ; 5485 return 0; 5486 } 5487 _ACEOF 5488 rm -f conftest.$ac_objext 5489 if { (ac_try="$ac_compile" 5490 case "(($ac_try" in 5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5492 *) ac_try_echo=$ac_try;; 5493 esac 5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5495 (eval "$ac_compile") 2>conftest.er1 5496 ac_status=$? 5497 grep -v '^ *+' conftest.er1 >conftest.err 5498 rm -f conftest.er1 5499 cat conftest.err >&5 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } && { 5502 test -z "$ac_c_werror_flag" || 5503 test ! -s conftest.err 5504 } && test -s conftest.$ac_objext; then 5505 ac_cv_have_decl_tgetstr=yes 5506 else 5507 echo "$as_me: failed program was:" >&5 5508 sed 's/^/| /' conftest.$ac_ext >&5 5509 5510 ac_cv_have_decl_tgetstr=no 5511 fi 5512 5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5514 fi 5515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tgetstr" >&5 5516 echo "${ECHO_T}$ac_cv_have_decl_tgetstr" >&6; } 5517 if test $ac_cv_have_decl_tgetstr = yes; then 5518 5519 cat >>confdefs.h <<_ACEOF 5520 #define HAVE_DECL_TGETSTR 1 5521 _ACEOF 5522 5523 5524 else 5525 cat >>confdefs.h <<_ACEOF 5526 #define HAVE_DECL_TGETSTR 0 5527 _ACEOF 5528 5529 5530 fi 5531 5532 5533 5534 # The third argument to tputs is a putc-like function that takes an 5535 # argument. On most systems that argument is an int, but on some it 5536 # is a char. Determine which. 5537 { echo "$as_me:$LINENO: checking argument type of tputs putc function" >&5 5538 echo $ECHO_N "checking argument type of tputs putc function... $ECHO_C" >&6; } 5539 _savedwerror_flag=$ac_c_werror_flag 5540 ac_c_werror_flag=yes 5541 cat >conftest.$ac_ext <<_ACEOF 5542 /* confdefs.h. */ 5543 _ACEOF 5544 cat confdefs.h >>conftest.$ac_ext 5545 cat >>conftest.$ac_ext <<_ACEOF 5546 /* end confdefs.h. */ 5547 #ifdef HAVE_TERMCAP_H 5548 #include <termcap.h> 5549 #endif 5550 #ifdef HAVE_CURSES_H 5551 #include <curses.h> 5552 #endif 5553 #ifdef HAVE_TERM_H 5554 #include <term.h> 5555 #endif 5556 int f(char i) { } 5557 int 5558 main () 5559 { 5560 tputs("a", 1, f); 5561 ; 5562 return 0; 5563 } 5564 _ACEOF 5565 rm -f conftest.$ac_objext 5566 if { (ac_try="$ac_compile" 5567 case "(($ac_try" in 5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5569 *) ac_try_echo=$ac_try;; 5570 esac 5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5572 (eval "$ac_compile") 2>conftest.er1 5573 ac_status=$? 5574 grep -v '^ *+' conftest.er1 >conftest.err 5575 rm -f conftest.er1 5576 cat conftest.err >&5 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5578 (exit $ac_status); } && { 5579 test -z "$ac_c_werror_flag" || 5580 test ! -s conftest.err 5581 } && test -s conftest.$ac_objext; then 5582 ac_cv_type_tputs_putc="char" 5583 else 5584 echo "$as_me: failed program was:" >&5 5585 sed 's/^/| /' conftest.$ac_ext >&5 5586 5587 ac_cv_type_tputs_putc="int" 5588 fi 5589 5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5591 { echo "$as_me:$LINENO: result: $ac_cv_type_tputs_putc" >&5 5592 echo "${ECHO_T}$ac_cv_type_tputs_putc" >&6; } 5593 5594 cat >>confdefs.h <<_ACEOF 5595 #define TPUTS_PUTC_ARGTYPE $ac_cv_type_tputs_putc 5596 _ACEOF 5597 5598 ac_c_werror_flag=$_savedwerror_flag 5599 5600 # Determine presence of needed types 5601 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5602 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 5603 if test "${ac_cv_type_signal+set}" = set; then 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 5605 else 5606 cat >conftest.$ac_ext <<_ACEOF 5607 /* confdefs.h. */ 5608 _ACEOF 5609 cat confdefs.h >>conftest.$ac_ext 5610 cat >>conftest.$ac_ext <<_ACEOF 5611 /* end confdefs.h. */ 5612 #include <sys/types.h> 5613 #include <signal.h> 5614 5615 int 5616 main () 5617 { 5618 return *(signal (0, 0)) (0) == 1; 5619 ; 5620 return 0; 5621 } 5622 _ACEOF 5623 rm -f conftest.$ac_objext 5624 if { (ac_try="$ac_compile" 5625 case "(($ac_try" in 5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5627 *) ac_try_echo=$ac_try;; 5628 esac 5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5630 (eval "$ac_compile") 2>conftest.er1 5631 ac_status=$? 5632 grep -v '^ *+' conftest.er1 >conftest.err 5633 rm -f conftest.er1 5634 cat conftest.err >&5 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } && { 5637 test -z "$ac_c_werror_flag" || 5638 test ! -s conftest.err 5639 } && test -s conftest.$ac_objext; then 5640 ac_cv_type_signal=int 5641 else 5642 echo "$as_me: failed program was:" >&5 5643 sed 's/^/| /' conftest.$ac_ext >&5 5644 5645 ac_cv_type_signal=void 5646 fi 5647 5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5649 fi 5650 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5651 echo "${ECHO_T}$ac_cv_type_signal" >&6; } 5652 5653 cat >>confdefs.h <<_ACEOF 5654 #define RETSIGTYPE $ac_cv_type_signal 5655 _ACEOF 5656 5657 5658 { echo "$as_me:$LINENO: checking for id_t" >&5 5659 echo $ECHO_N "checking for id_t... $ECHO_C" >&6; } 5660 if test "${ac_cv_type_id_t+set}" = set; then 5661 echo $ECHO_N "(cached) $ECHO_C" >&6 5662 else 5663 cat >conftest.$ac_ext <<_ACEOF 5664 /* confdefs.h. */ 5665 _ACEOF 5666 cat confdefs.h >>conftest.$ac_ext 5667 cat >>conftest.$ac_ext <<_ACEOF 5668 /* end confdefs.h. */ 5669 $ac_includes_default 5670 typedef id_t ac__type_new_; 5671 int 5672 main () 5673 { 5674 if ((ac__type_new_ *) 0) 5675 return 0; 5676 if (sizeof (ac__type_new_)) 5677 return 0; 5678 ; 5679 return 0; 5680 } 5681 _ACEOF 5682 rm -f conftest.$ac_objext 5683 if { (ac_try="$ac_compile" 5684 case "(($ac_try" in 5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5686 *) ac_try_echo=$ac_try;; 5687 esac 5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5689 (eval "$ac_compile") 2>conftest.er1 5690 ac_status=$? 5691 grep -v '^ *+' conftest.er1 >conftest.err 5692 rm -f conftest.er1 5693 cat conftest.err >&5 5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 (exit $ac_status); } && { 5696 test -z "$ac_c_werror_flag" || 5697 test ! -s conftest.err 5698 } && test -s conftest.$ac_objext; then 5699 ac_cv_type_id_t=yes 5700 else 5701 echo "$as_me: failed program was:" >&5 5702 sed 's/^/| /' conftest.$ac_ext >&5 5703 5704 ac_cv_type_id_t=no 5705 fi 5706 5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708 fi 5709 { echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5 5710 echo "${ECHO_T}$ac_cv_type_id_t" >&6; } 5711 if test $ac_cv_type_id_t = yes; then 5712 5713 cat >>confdefs.h <<_ACEOF 5714 #define HAVE_ID_T 1 5715 _ACEOF 5716 5717 5718 fi 5719 { echo "$as_me:$LINENO: checking for lwpid_t" >&5 5720 echo $ECHO_N "checking for lwpid_t... $ECHO_C" >&6; } 5721 if test "${ac_cv_type_lwpid_t+set}" = set; then 5722 echo $ECHO_N "(cached) $ECHO_C" >&6 5723 else 5724 cat >conftest.$ac_ext <<_ACEOF 5725 /* confdefs.h. */ 5726 _ACEOF 5727 cat confdefs.h >>conftest.$ac_ext 5728 cat >>conftest.$ac_ext <<_ACEOF 5729 /* end confdefs.h. */ 5730 $ac_includes_default 5731 typedef lwpid_t ac__type_new_; 5732 int 5733 main () 5734 { 5735 if ((ac__type_new_ *) 0) 5736 return 0; 5737 if (sizeof (ac__type_new_)) 5738 return 0; 5739 ; 5740 return 0; 5741 } 5742 _ACEOF 5743 rm -f conftest.$ac_objext 5744 if { (ac_try="$ac_compile" 5745 case "(($ac_try" in 5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5747 *) ac_try_echo=$ac_try;; 5748 esac 5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5750 (eval "$ac_compile") 2>conftest.er1 5751 ac_status=$? 5752 grep -v '^ *+' conftest.er1 >conftest.err 5753 rm -f conftest.er1 5754 cat conftest.err >&5 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); } && { 5757 test -z "$ac_c_werror_flag" || 5758 test ! -s conftest.err 5759 } && test -s conftest.$ac_objext; then 5760 ac_cv_type_lwpid_t=yes 5761 else 5762 echo "$as_me: failed program was:" >&5 5763 sed 's/^/| /' conftest.$ac_ext >&5 5764 5765 ac_cv_type_lwpid_t=no 5766 fi 5767 5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5769 fi 5770 { echo "$as_me:$LINENO: result: $ac_cv_type_lwpid_t" >&5 5771 echo "${ECHO_T}$ac_cv_type_lwpid_t" >&6; } 5772 if test $ac_cv_type_lwpid_t = yes; then 5773 5774 cat >>confdefs.h <<_ACEOF 5775 #define HAVE_LWPID_T 1 5776 _ACEOF 5777 5778 5779 fi 5780 { echo "$as_me:$LINENO: checking for pid_t" >&5 5781 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 5782 if test "${ac_cv_type_pid_t+set}" = set; then 5783 echo $ECHO_N "(cached) $ECHO_C" >&6 5784 else 5785 cat >conftest.$ac_ext <<_ACEOF 5786 /* confdefs.h. */ 5787 _ACEOF 5788 cat confdefs.h >>conftest.$ac_ext 5789 cat >>conftest.$ac_ext <<_ACEOF 5790 /* end confdefs.h. */ 5791 $ac_includes_default 5792 typedef pid_t ac__type_new_; 5793 int 5794 main () 5795 { 5796 if ((ac__type_new_ *) 0) 5797 return 0; 5798 if (sizeof (ac__type_new_)) 5799 return 0; 5800 ; 5801 return 0; 5802 } 5803 _ACEOF 5804 rm -f conftest.$ac_objext 5805 if { (ac_try="$ac_compile" 5806 case "(($ac_try" in 5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5808 *) ac_try_echo=$ac_try;; 5809 esac 5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5811 (eval "$ac_compile") 2>conftest.er1 5812 ac_status=$? 5813 grep -v '^ *+' conftest.er1 >conftest.err 5814 rm -f conftest.er1 5815 cat conftest.err >&5 5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5817 (exit $ac_status); } && { 5818 test -z "$ac_c_werror_flag" || 5819 test ! -s conftest.err 5820 } && test -s conftest.$ac_objext; then 5821 ac_cv_type_pid_t=yes 5822 else 5823 echo "$as_me: failed program was:" >&5 5824 sed 's/^/| /' conftest.$ac_ext >&5 5825 5826 ac_cv_type_pid_t=no 5827 fi 5828 5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5830 fi 5831 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 5832 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 5833 if test $ac_cv_type_pid_t = yes; then 5834 5835 cat >>confdefs.h <<_ACEOF 5836 #define HAVE_PID_T 1 5837 _ACEOF 5838 5839 5840 fi 5841 { echo "$as_me:$LINENO: checking for time_t" >&5 5842 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; } 5843 if test "${ac_cv_type_time_t+set}" = set; then 5844 echo $ECHO_N "(cached) $ECHO_C" >&6 5845 else 5846 cat >conftest.$ac_ext <<_ACEOF 5847 /* confdefs.h. */ 5848 _ACEOF 5849 cat confdefs.h >>conftest.$ac_ext 5850 cat >>conftest.$ac_ext <<_ACEOF 5851 /* end confdefs.h. */ 5852 $ac_includes_default 5853 typedef time_t ac__type_new_; 5854 int 5855 main () 5856 { 5857 if ((ac__type_new_ *) 0) 5858 return 0; 5859 if (sizeof (ac__type_new_)) 5860 return 0; 5861 ; 5862 return 0; 5863 } 5864 _ACEOF 5865 rm -f conftest.$ac_objext 5866 if { (ac_try="$ac_compile" 5867 case "(($ac_try" in 5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5869 *) ac_try_echo=$ac_try;; 5870 esac 5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5872 (eval "$ac_compile") 2>conftest.er1 5873 ac_status=$? 5874 grep -v '^ *+' conftest.er1 >conftest.err 5875 rm -f conftest.er1 5876 cat conftest.err >&5 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5878 (exit $ac_status); } && { 5879 test -z "$ac_c_werror_flag" || 5880 test ! -s conftest.err 5881 } && test -s conftest.$ac_objext; then 5882 ac_cv_type_time_t=yes 5883 else 5884 echo "$as_me: failed program was:" >&5 5885 sed 's/^/| /' conftest.$ac_ext >&5 5886 5887 ac_cv_type_time_t=no 5888 fi 5889 5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5891 fi 5892 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 5893 echo "${ECHO_T}$ac_cv_type_time_t" >&6; } 5894 if test $ac_cv_type_time_t = yes; then 5895 5896 cat >>confdefs.h <<_ACEOF 5897 #define HAVE_TIME_T 1 5898 _ACEOF 5899 5900 5901 fi 5902 { echo "$as_me:$LINENO: checking for uid_t" >&5 5903 echo $ECHO_N "checking for uid_t... $ECHO_C" >&6; } 5904 if test "${ac_cv_type_uid_t+set}" = set; then 5905 echo $ECHO_N "(cached) $ECHO_C" >&6 5906 else 5907 cat >conftest.$ac_ext <<_ACEOF 5908 /* confdefs.h. */ 5909 _ACEOF 5910 cat confdefs.h >>conftest.$ac_ext 5911 cat >>conftest.$ac_ext <<_ACEOF 5912 /* end confdefs.h. */ 5913 $ac_includes_default 5914 typedef uid_t ac__type_new_; 5915 int 5916 main () 5917 { 5918 if ((ac__type_new_ *) 0) 5919 return 0; 5920 if (sizeof (ac__type_new_)) 5921 return 0; 5922 ; 5923 return 0; 5924 } 5925 _ACEOF 5926 rm -f conftest.$ac_objext 5927 if { (ac_try="$ac_compile" 5928 case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931 esac 5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_compile") 2>conftest.er1 5934 ac_status=$? 5935 grep -v '^ *+' conftest.er1 >conftest.err 5936 rm -f conftest.er1 5937 cat conftest.err >&5 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } && { 5940 test -z "$ac_c_werror_flag" || 5941 test ! -s conftest.err 5942 } && test -s conftest.$ac_objext; then 5943 ac_cv_type_uid_t=yes 5944 else 5945 echo "$as_me: failed program was:" >&5 5946 sed 's/^/| /' conftest.$ac_ext >&5 5947 5948 ac_cv_type_uid_t=no 5949 fi 5950 5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5952 fi 5953 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 5954 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } 5955 if test $ac_cv_type_uid_t = yes; then 5956 5957 cat >>confdefs.h <<_ACEOF 5958 #define HAVE_UID_T 1 5959 _ACEOF 5960 5961 5962 fi 5963 5964 5965 # Checks for library functions. 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 for ac_func in getopt getopt_long gettimeofday memcpy setbuffer setpriority setvbuf strcasecmp strchr strerror snprintf sighold sigrelse sigaction sigprocmask sysconf uname vsnprintf 5985 do 5986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5987 { echo "$as_me:$LINENO: checking for $ac_func" >&5 5988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5990 echo $ECHO_N "(cached) $ECHO_C" >&6 5991 else 5992 cat >conftest.$ac_ext <<_ACEOF 5993 /* confdefs.h. */ 5994 _ACEOF 5995 cat confdefs.h >>conftest.$ac_ext 5996 cat >>conftest.$ac_ext <<_ACEOF 5997 /* end confdefs.h. */ 5998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5999 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6000 #define $ac_func innocuous_$ac_func 6001 6002 /* System header to define __stub macros and hopefully few prototypes, 6003 which can conflict with char $ac_func (); below. 6004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6005 <limits.h> exists even on freestanding compilers. */ 6006 6007 #ifdef __STDC__ 6008 # include <limits.h> 6009 #else 6010 # include <assert.h> 6011 #endif 6012 6013 #undef $ac_func 6014 6015 /* Override any GCC internal prototype to avoid an error. 6016 Use char because int might match the return type of a GCC 6017 builtin and then its argument prototype would still apply. */ 6018 #ifdef __cplusplus 6019 extern "C" 6020 #endif 6021 char $ac_func (); 6022 /* The GNU C library defines this for functions which it implements 6023 to always fail with ENOSYS. Some functions are actually named 6024 something starting with __ and the normal name is an alias. */ 6025 #if defined __stub_$ac_func || defined __stub___$ac_func 6026 choke me 6027 #endif 6028 6029 int 6030 main () 6031 { 6032 return $ac_func (); 6033 ; 6034 return 0; 6035 } 6036 _ACEOF 6037 rm -f conftest.$ac_objext conftest$ac_exeext 6038 if { (ac_try="$ac_link" 6039 case "(($ac_try" in 6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6041 *) ac_try_echo=$ac_try;; 6042 esac 6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6044 (eval "$ac_link") 2>conftest.er1 6045 ac_status=$? 6046 grep -v '^ *+' conftest.er1 >conftest.err 6047 rm -f conftest.er1 6048 cat conftest.err >&5 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); } && { 6051 test -z "$ac_c_werror_flag" || 6052 test ! -s conftest.err 6053 } && test -s conftest$ac_exeext && 6054 $as_test_x conftest$ac_exeext; then 6055 eval "$as_ac_var=yes" 6056 else 6057 echo "$as_me: failed program was:" >&5 6058 sed 's/^/| /' conftest.$ac_ext >&5 6059 6060 eval "$as_ac_var=no" 6061 fi 6062 6063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6064 conftest$ac_exeext conftest.$ac_ext 6065 fi 6066 ac_res=`eval echo '${'$as_ac_var'}'` 6067 { echo "$as_me:$LINENO: result: $ac_res" >&5 6068 echo "${ECHO_T}$ac_res" >&6; } 6069 if test `eval echo '${'$as_ac_var'}'` = yes; then 6070 cat >>confdefs.h <<_ACEOF 6071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6072 _ACEOF 6073 6074 fi 6075 done 6076 6077 6078 # this is needed in the man page 6079 if test "x$ac_cv_func_getopt_long" = "xyes"; then 6080 HAVE_GETOPT_LONG=1 6081 else 6082 HAVE_GETOPT_LONG=0 6083 fi 6084 6085 6086 # if we dont have snprintf/vsnprint then we need to compile the alternate 6087 if test "x$ac_cv_func_snprintf" != "xyes" -o "x$ac_cv_func_vsnprintf" != "xyes"; then 6088 SRC="$SRC ap_snprintf.c" 6089 OBJ="$OBJ ap_snprintf.o" 6090 fi 6091 6092 6093 # determine correct user, group, and mode 6094 # these can be overridden later if need be 6095 { echo "$as_me:$LINENO: checking for correct ls options" >&5 6096 echo $ECHO_N "checking for correct ls options... $ECHO_C" >&6; } 6097 lslong="ls -l" 6098 if test `$lslong -d . | wc -w` -lt 9; then 6099 lslong="ls -lg" 6100 fi 6101 { echo "$as_me:$LINENO: result: $lslong" >&5 6102 echo "${ECHO_T}$lslong" >&6; } 6103 6104 6105 # determine correct module 6106 { echo "$as_me:$LINENO: checking for a platform module" >&5 6107 echo $ECHO_N "checking for a platform module... $ECHO_C" >&6; } 6108 if test "$with_module"; then 6109 MODULE=$with_module 6110 else 6111 case $target_os in 6112 aix4.2*) MODULE=aix43;; 6113 aix4.3*) MODULE=aix43;; 6114 aix5*) MODULE=aix5;; 6115 dec-osf*) MODULE=decosf1;; 6116 osf1*) MODULE=decosf1;; 6117 osf4*) MODULE=decosf1;; 6118 osf5*) MODULE=decosf1;; 6119 freebsd*) MODULE=freebsd; USE_KMEM=1; USE_FPH=1;; 6120 hpux7*) MODULE=hpux7;; 6121 hpux8*) MODULE=hpux8;; 6122 hpux9*) MODULE=hpux9;; 6123 hpux10*) MODULE=hpux10;; 6124 hpux11*) MODULE=hpux10;; 6125 irix5*) MODULE=irix5;; 6126 irix6*) MODULE=irixsgi;; 6127 linux*) MODULE=linux; USE_FPH=1; SET_MODE=755;; 6128 netbsd*) MODULE=netbsd; SET_MODE=755;; 6129 solaris2*) MODULE=sunos5; USE_FPH=1; SET_MODE=755;; 6130 sunos4*) MODULE=sunos4;; 6131 sysv4*) MODULE=svr4;; 6132 sysv5*) MODULE=svr5;; 6133 darwin*) 6134 echo "macosx" 6135 echo "The macosx module is untested. Use at your own risk." 6136 echo "If you really want to use this module, please run configure as follows:" 6137 echo " ./configure --with-module=macosx" 6138 { { echo "$as_me:$LINENO: error: macosx module unsupported" >&5 6139 echo "$as_me: error: macosx module unsupported" >&2;} 6140 { (exit 1); exit 1; }; };; 6141 *) echo "none" 6142 echo "Configure doesn't recognize this system and doesn't know" 6143 echo "what module to assign to it. Help the cause and run the" 6144 echo "following command to let the maintainers know about this" 6145 echo "deficiency! Thanks. Just cut and paste the following:" 6146 echo "uname -a | mail -s $target_os bill (at] lefebvre.org" 6147 echo "" 6148 { { echo "$as_me:$LINENO: error: System type $target_os unrecognized" >&5 6149 echo "$as_me: error: System type $target_os unrecognized" >&2;} 6150 { (exit 1); exit 1; }; } 6151 esac 6152 fi 6153 { echo "$as_me:$LINENO: result: $MODULE" >&5 6154 echo "${ECHO_T}$MODULE" >&6; } 6155 SRC="$SRC machine/m_$MODULE.c" 6156 OBJ="$OBJ m_$MODULE.o" 6157 CLEAN_EXTRA="" 6158 6159 6160 6161 6162 cat >>confdefs.h <<_ACEOF 6163 #define MODULE "$MODULE" 6164 _ACEOF 6165 6166 6167 FIRST_RULE=/dev/null 6168 INSTALL_RULE=config.default.makeinstall 6169 6170 # extra things that need to be done for certain systems 6171 # also handle setup for 64-bit detection 6172 bits="default" 6173 case $MODULE in 6174 aix5) 6175 6176 { echo "$as_me:$LINENO: checking for perfstat_cpu_total in -lperfstat" >&5 6177 echo $ECHO_N "checking for perfstat_cpu_total in -lperfstat... $ECHO_C" >&6; } 6178 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then 6179 echo $ECHO_N "(cached) $ECHO_C" >&6 6180 else 6181 ac_check_lib_save_LIBS=$LIBS 6182 LIBS="-lperfstat $LIBS" 6183 cat >conftest.$ac_ext <<_ACEOF 6184 /* confdefs.h. */ 6185 _ACEOF 6186 cat confdefs.h >>conftest.$ac_ext 6187 cat >>conftest.$ac_ext <<_ACEOF 6188 /* end confdefs.h. */ 6189 6190 /* Override any GCC internal prototype to avoid an error. 6191 Use char because int might match the return type of a GCC 6192 builtin and then its argument prototype would still apply. */ 6193 #ifdef __cplusplus 6194 extern "C" 6195 #endif 6196 char perfstat_cpu_total (); 6197 int 6198 main () 6199 { 6200 return perfstat_cpu_total (); 6201 ; 6202 return 0; 6203 } 6204 _ACEOF 6205 rm -f conftest.$ac_objext conftest$ac_exeext 6206 if { (ac_try="$ac_link" 6207 case "(($ac_try" in 6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6209 *) ac_try_echo=$ac_try;; 6210 esac 6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6212 (eval "$ac_link") 2>conftest.er1 6213 ac_status=$? 6214 grep -v '^ *+' conftest.er1 >conftest.err 6215 rm -f conftest.er1 6216 cat conftest.err >&5 6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6218 (exit $ac_status); } && { 6219 test -z "$ac_c_werror_flag" || 6220 test ! -s conftest.err 6221 } && test -s conftest$ac_exeext && 6222 $as_test_x conftest$ac_exeext; then 6223 ac_cv_lib_perfstat_perfstat_cpu_total=yes 6224 else 6225 echo "$as_me: failed program was:" >&5 6226 sed 's/^/| /' conftest.$ac_ext >&5 6227 6228 ac_cv_lib_perfstat_perfstat_cpu_total=no 6229 fi 6230 6231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6232 conftest$ac_exeext conftest.$ac_ext 6233 LIBS=$ac_check_lib_save_LIBS 6234 fi 6235 { echo "$as_me:$LINENO: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 6236 echo "${ECHO_T}$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } 6237 if test $ac_cv_lib_perfstat_perfstat_cpu_total = yes; then 6238 cat >>confdefs.h <<_ACEOF 6239 #define HAVE_LIBPERFSTAT 1 6240 _ACEOF 6241 6242 LIBS="-lperfstat $LIBS" 6243 6244 fi 6245 6246 if test -f /usr/sbin/bootinfo; then 6247 bits="`/usr/sbin/bootinfo -K`" 6248 extra_flag="-q64" 6249 fi 6250 ;; 6251 svr5) 6252 # -lmas 6253 6254 { echo "$as_me:$LINENO: checking for mas_open in -lmas" >&5 6255 echo $ECHO_N "checking for mas_open in -lmas... $ECHO_C" >&6; } 6256 if test "${ac_cv_lib_mas_mas_open+set}" = set; then 6257 echo $ECHO_N "(cached) $ECHO_C" >&6 6258 else 6259 ac_check_lib_save_LIBS=$LIBS 6260 LIBS="-lmas $LIBS" 6261 cat >conftest.$ac_ext <<_ACEOF 6262 /* confdefs.h. */ 6263 _ACEOF 6264 cat confdefs.h >>conftest.$ac_ext 6265 cat >>conftest.$ac_ext <<_ACEOF 6266 /* end confdefs.h. */ 6267 6268 /* Override any GCC internal prototype to avoid an error. 6269 Use char because int might match the return type of a GCC 6270 builtin and then its argument prototype would still apply. */ 6271 #ifdef __cplusplus 6272 extern "C" 6273 #endif 6274 char mas_open (); 6275 int 6276 main () 6277 { 6278 return mas_open (); 6279 ; 6280 return 0; 6281 } 6282 _ACEOF 6283 rm -f conftest.$ac_objext conftest$ac_exeext 6284 if { (ac_try="$ac_link" 6285 case "(($ac_try" in 6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6287 *) ac_try_echo=$ac_try;; 6288 esac 6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6290 (eval "$ac_link") 2>conftest.er1 6291 ac_status=$? 6292 grep -v '^ *+' conftest.er1 >conftest.err 6293 rm -f conftest.er1 6294 cat conftest.err >&5 6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6296 (exit $ac_status); } && { 6297 test -z "$ac_c_werror_flag" || 6298 test ! -s conftest.err 6299 } && test -s conftest$ac_exeext && 6300 $as_test_x conftest$ac_exeext; then 6301 ac_cv_lib_mas_mas_open=yes 6302 else 6303 echo "$as_me: failed program was:" >&5 6304 sed 's/^/| /' conftest.$ac_ext >&5 6305 6306 ac_cv_lib_mas_mas_open=no 6307 fi 6308 6309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6310 conftest$ac_exeext conftest.$ac_ext 6311 LIBS=$ac_check_lib_save_LIBS 6312 fi 6313 { echo "$as_me:$LINENO: result: $ac_cv_lib_mas_mas_open" >&5 6314 echo "${ECHO_T}$ac_cv_lib_mas_mas_open" >&6; } 6315 if test $ac_cv_lib_mas_mas_open = yes; then 6316 cat >>confdefs.h <<_ACEOF 6317 #define HAVE_LIBMAS 1 6318 _ACEOF 6319 6320 LIBS="-lmas $LIBS" 6321 6322 fi 6323 6324 ;; 6325 sunos5) 6326 if test "$ISAINFO"; then 6327 bits="`$ISAINFO -b`" 6328 if test "$target_cpu" = "sparc"; then 6329 extra_flag="-xarch=v9" 6330 else 6331 extra_flag="-xarch=amd64" 6332 fi 6333 fi 6334 ;; 6335 esac 6336 6337 # USE_FPH means the module has format_process_header 6338 if test -n "$USE_FPH"; then 6339 6340 cat >>confdefs.h <<\_ACEOF 6341 #define HAVE_FORMAT_PROCESS_HEADER 1 6342 _ACEOF 6343 6344 fi 6345 6346 # if we are 64-bit, try to turn on the appropriate flags 6347 { echo "$as_me:$LINENO: checking address space size" >&5 6348 echo $ECHO_N "checking address space size... $ECHO_C" >&6; } 6349 ARCHFLAG="" 6350 if test "$bits" = "64"; then 6351 { echo "$as_me:$LINENO: result: 64" >&5 6352 echo "${ECHO_T}64" >&6; } 6353 if test "$ax_cv_c_compiler_vendor" = "gnu"; then 6354 extra_flag="-m64" 6355 fi 6356 # Make sure our compiler accepts the flag we want to use 6357 { echo "$as_me:$LINENO: checking whether compiler accepts $extra_flag" >&5 6358 echo $ECHO_N "checking whether compiler accepts $extra_flag... $ECHO_C" >&6; } 6359 as_ac_Flag=`echo "ac_cv_cflag_$extra_flag" | $as_tr_sh` 6360 _savedcflags=$CFLAGS 6361 _savedwerror_flag=$ac_c_werror_flag 6362 ac_c_werror_flag=yes 6363 CFLAGS=$CFLAGS" $extra_flag" 6364 cat >conftest.$ac_ext <<_ACEOF 6365 /* confdefs.h. */ 6366 _ACEOF 6367 cat confdefs.h >>conftest.$ac_ext 6368 cat >>conftest.$ac_ext <<_ACEOF 6369 /* end confdefs.h. */ 6370 6371 int 6372 main () 6373 { 6374 6375 ; 6376 return 0; 6377 } 6378 _ACEOF 6379 rm -f conftest.$ac_objext conftest$ac_exeext 6380 if { (ac_try="$ac_link" 6381 case "(($ac_try" in 6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6383 *) ac_try_echo=$ac_try;; 6384 esac 6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6386 (eval "$ac_link") 2>conftest.er1 6387 ac_status=$? 6388 grep -v '^ *+' conftest.er1 >conftest.err 6389 rm -f conftest.er1 6390 cat conftest.err >&5 6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6392 (exit $ac_status); } && { 6393 test -z "$ac_c_werror_flag" || 6394 test ! -s conftest.err 6395 } && test -s conftest$ac_exeext && 6396 $as_test_x conftest$ac_exeext; then 6397 eval "$as_ac_Flag=yes" 6398 else 6399 echo "$as_me: failed program was:" >&5 6400 sed 's/^/| /' conftest.$ac_ext >&5 6401 6402 eval "$as_ac_Flag=no" 6403 fi 6404 6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6406 conftest$ac_exeext conftest.$ac_ext 6407 { echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Flag'}'`" >&5 6408 echo "${ECHO_T}`eval echo '${'$as_ac_Flag'}'`" >&6; } 6409 CFLAGS=$_savedcflags 6410 ac_c_werror_flag=$_savedwerror_flag 6411 if test `eval echo '${'$as_ac_Flag'}'` = yes; then 6412 ARCHFLAG="$extra_flag" 6413 else 6414 enable_dualarch="no" 6415 fi 6416 6417 else 6418 { echo "$as_me:$LINENO: result: $bits" >&5 6419 echo "${ECHO_T}$bits" >&6; } 6420 fi 6421 6422 6423 # Dual architecture handling: for now this is only enabled on Solaris. 6424 # Config options can explicitly enable or disable dualarch. Otherwise, 6425 # dualarch is only enabled when we are on a 64-bit system. 6426 if test "$MODULE" = "sunos5"; then 6427 { echo "$as_me:$LINENO: checking for dual architecture compilation" >&5 6428 echo $ECHO_N "checking for dual architecture compilation... $ECHO_C" >&6; } 6429 if test "x$enable_dualarch" = x; then 6430 # we must make the determination implicitly 6431 if test "$bits" = "64"; then 6432 enable_dualarch="yes" 6433 else 6434 enable_dualarch="no" 6435 fi 6436 fi 6437 if test "x$enable_dualarch" = "xyes"; then 6438 { echo "$as_me:$LINENO: result: yes" >&5 6439 echo "${ECHO_T}yes" >&6; } 6440 if test "$target_cpu" = "sparc"; then 6441 FIRST_RULE="config.sparcv9.make" 6442 INSTALL_RULE="config.sparcv9.makeinstall" 6443 CLEAN_EXTRA="$CLEAN_EXTRA sparcv7/* sparcv9/*" 6444 mkdir -p sparcv7 sparcv9 6445 else 6446 FIRST_RULE="config.amd64.make" 6447 INSTALL_RULE="config.amd64.makeinstall" 6448 CLEAN_EXTRA="$CLEAN_EXTRA i386/* amd64/*" 6449 mkdir -p i386 amd64 6450 fi 6451 else 6452 { echo "$as_me:$LINENO: result: no" >&5 6453 echo "${ECHO_T}no" >&6; } 6454 fi 6455 fi 6456 6457 if test x$enable_dualarch = xyes; then 6458 6459 cat >>confdefs.h <<\_ACEOF 6460 #define ENABLE_DUALARCH 1 6461 _ACEOF 6462 6463 fi 6464 6465 6466 6467 6468 { echo "$as_me:$LINENO: checking for installation settings" >&5 6469 echo $ECHO_N "checking for installation settings... $ECHO_C" >&6; } 6470 # calculate appropriate settings 6471 OWNER="" 6472 GROUP="" 6473 MODE="" 6474 if test ! -n "$USE_KMEM" -a -d /proc; then 6475 # make sure we are installed so that we can read /proc 6476 rm -f conftest.txt 6477 if test -r /proc/0/psinfo; then 6478 # system uses solaris-style /proc 6479 $lslong /proc/0/psinfo >conftest.txt 6480 elif test -r /proc/1/stat; then 6481 # linux-style /proc? 6482 $lslong /proc/1/stat >conftest.txt 6483 else 6484 echo "-r--r--r-- 1 bin bin 32 Jan 1 12:00 /foo" >conftest.txt 6485 fi 6486 6487 # set permissions so that we can read stuff in /proc 6488 if grep '^.......r..' conftest.txt >/dev/null; then 6489 # world readable 6490 MODE=755 6491 elif grep '^....r.....' conftest.txt >/dev/null; then 6492 # group readable 6493 MODE=2711 6494 GROUP=`awk ' { print $4 }'` 6495 else 6496 # probably only readable by root 6497 MODE=4711 6498 OWNER=`awk ' { print $3 }'` 6499 fi 6500 6501 elif test -c /dev/kmem; then 6502 $lslong -L /dev/kmem >conftest.txt 6503 if grep '^....r..r..' conftest.txt >/dev/null; then 6504 MODE=755 6505 elif grep '^....r..-..' conftest.txt >/dev/null; then 6506 MODE=2755 6507 GROUP=`$AWK ' { print $4 }' conftest.txt` 6508 fi 6509 else 6510 MODE=755 6511 fi 6512 rm -f conftest.txt 6513 # let module settings override what we calculated 6514 OWNER=${SET_OWNER:-$OWNER} 6515 GROUP=${SET_GROUP:-$GROUP} 6516 MODE=${SET_MODE:-$MODE} 6517 6518 # set only those things that require it 6519 result="" 6520 INSTALL_OPTS_PROG="" 6521 if test x$OWNER != x; then 6522 result="${result}owner=$OWNER, " 6523 INSTALL_OPTS_PROG="$INSTALL_OPTS_PROG -o $OWNER" 6524 fi 6525 if test x$GROUP != x; then 6526 result="${result}group=$GROUP, " 6527 INSTALL_OPTS_PROG="$INSTALL_OPTS_PROG -g $GROUP" 6528 fi 6529 result="${result}mode=$MODE" 6530 INSTALL_OPTS_PROG="$INSTALL_OPTS_PROG -m $MODE" 6531 6532 { echo "$as_me:$LINENO: result: $result" >&5 6533 echo "${ECHO_T}$result" >&6; } 6534 6535 # add extra cflags if the compiler accepts them 6536 { echo "$as_me:$LINENO: checking CFLAGS for maximum warnings" >&5 6537 echo $ECHO_N "checking CFLAGS for maximum warnings... $ECHO_C" >&6; } 6538 if test "${ac_cv_cflags_warn_all+set}" = set; then 6539 echo $ECHO_N "(cached) $ECHO_C" >&6 6540 else 6541 ac_cv_cflags_warn_all="no, unknown" 6542 6543 ac_ext=c 6544 ac_cpp='$CPP $CPPFLAGS' 6545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6547 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6548 6549 ac_save_CFLAGS="$CFLAGS" 6550 for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 6551 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 6552 cat >conftest.$ac_ext <<_ACEOF 6553 /* confdefs.h. */ 6554 _ACEOF 6555 cat confdefs.h >>conftest.$ac_ext 6556 cat >>conftest.$ac_ext <<_ACEOF 6557 /* end confdefs.h. */ 6558 6559 int 6560 main () 6561 { 6562 return 0; 6563 ; 6564 return 0; 6565 } 6566 _ACEOF 6567 rm -f conftest.$ac_objext 6568 if { (ac_try="$ac_compile" 6569 case "(($ac_try" in 6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6571 *) ac_try_echo=$ac_try;; 6572 esac 6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6574 (eval "$ac_compile") 2>conftest.er1 6575 ac_status=$? 6576 grep -v '^ *+' conftest.er1 >conftest.err 6577 rm -f conftest.er1 6578 cat conftest.err >&5 6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6580 (exit $ac_status); } && { 6581 test -z "$ac_c_werror_flag" || 6582 test ! -s conftest.err 6583 } && test -s conftest.$ac_objext; then 6584 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 6585 else 6586 echo "$as_me: failed program was:" >&5 6587 sed 's/^/| /' conftest.$ac_ext >&5 6588 6589 6590 fi 6591 6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6593 done 6594 CFLAGS="$ac_save_CFLAGS" 6595 ac_ext=c 6596 ac_cpp='$CPP $CPPFLAGS' 6597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6600 6601 6602 fi 6603 { echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all" >&5 6604 echo "${ECHO_T}$ac_cv_cflags_warn_all" >&6; } 6605 case ".$ac_cv_cflags_warn_all" in 6606 .ok|.ok,*) ;; 6607 .|.no|.no,*) 6608 ;; 6609 *) 6610 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null 6611 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5 6612 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 6613 ac_status=$? 6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6615 (exit $ac_status); } 6616 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5 6617 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 6618 ac_status=$? 6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6620 (exit $ac_status); } 6621 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" 6622 fi 6623 ;; 6624 esac 6625 6626 MODULE_CFLAGS="" 6627 if test "$ax_cv_c_compiler_vendor" = "gnu"; then 6628 { echo "$as_me:$LINENO: checking MODULE_CFLAGS for gcc -fno-strict-aliasing" >&5 6629 echo $ECHO_N "checking MODULE_CFLAGS for gcc -fno-strict-aliasing... $ECHO_C" >&6; } 6630 if test "${ac_cv_cflags_gcc_option__fno_strict_aliasing+set}" = set; then 6631 echo $ECHO_N "(cached) $ECHO_C" >&6 6632 else 6633 ac_cv_cflags_gcc_option__fno_strict_aliasing="no, unknown" 6634 6635 ac_ext=c 6636 ac_cpp='$CPP $CPPFLAGS' 6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6640 6641 ac_save_CFLAGS="$CFLAGS" 6642 for ac_arg in "-pedantic -Werror % -fno-strict-aliasing" "-pedantic % -fno-strict-aliasing %% no, obsolete" # 6643 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 6644 cat >conftest.$ac_ext <<_ACEOF 6645 /* confdefs.h. */ 6646 _ACEOF 6647 cat confdefs.h >>conftest.$ac_ext 6648 cat >>conftest.$ac_ext <<_ACEOF 6649 /* end confdefs.h. */ 6650 6651 int 6652 main () 6653 { 6654 return 0; 6655 ; 6656 return 0; 6657 } 6658 _ACEOF 6659 rm -f conftest.$ac_objext 6660 if { (ac_try="$ac_compile" 6661 case "(($ac_try" in 6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6663 *) ac_try_echo=$ac_try;; 6664 esac 6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6666 (eval "$ac_compile") 2>conftest.er1 6667 ac_status=$? 6668 grep -v '^ *+' conftest.er1 >conftest.err 6669 rm -f conftest.er1 6670 cat conftest.err >&5 6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); } && { 6673 test -z "$ac_c_werror_flag" || 6674 test ! -s conftest.err 6675 } && test -s conftest.$ac_objext; then 6676 ac_cv_cflags_gcc_option__fno_strict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 6677 else 6678 echo "$as_me: failed program was:" >&5 6679 sed 's/^/| /' conftest.$ac_ext >&5 6680 6681 6682 fi 6683 6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685 done 6686 CFLAGS="$ac_save_CFLAGS" 6687 ac_ext=c 6688 ac_cpp='$CPP $CPPFLAGS' 6689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6691 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6692 6693 6694 fi 6695 { echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__fno_strict_aliasing" >&5 6696 echo "${ECHO_T}$ac_cv_cflags_gcc_option__fno_strict_aliasing" >&6; } 6697 case ".$ac_cv_cflags_gcc_option__fno_strict_aliasing" in 6698 .ok|.ok,*) ;; 6699 .|.no|.no,*) ;; 6700 *) 6701 if echo " $MODULE_CFLAGS " | grep " $ac_cv_cflags_gcc_option__fno_strict_aliasing " 2>&1 >/dev/null 6702 then { (echo "$as_me:$LINENO: : MODULE_CFLAGS does contain \$ac_cv_cflags_gcc_option__fno_strict_aliasing") >&5 6703 (: MODULE_CFLAGS does contain $ac_cv_cflags_gcc_option__fno_strict_aliasing) 2>&5 6704 ac_status=$? 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 (exit $ac_status); } 6707 else { (echo "$as_me:$LINENO: : MODULE_CFLAGS=\"\$MODULE_CFLAGS \$ac_cv_cflags_gcc_option__fno_strict_aliasing\"") >&5 6708 (: MODULE_CFLAGS="$MODULE_CFLAGS $ac_cv_cflags_gcc_option__fno_strict_aliasing") 2>&5 6709 ac_status=$? 6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6711 (exit $ac_status); } 6712 MODULE_CFLAGS="$MODULE_CFLAGS $ac_cv_cflags_gcc_option__fno_strict_aliasing" 6713 fi 6714 ;; 6715 esac 6716 6717 if test "$target_cpu" = "alpha"; then 6718 { echo "$as_me:$LINENO: checking CFLAGS for gcc -mfp-trap-mode=sui -mtrap-precision=i" >&5 6719 echo $ECHO_N "checking CFLAGS for gcc -mfp-trap-mode=sui -mtrap-precision=i... $ECHO_C" >&6; } 6720 if test "${ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i+set}" = set; then 6721 echo $ECHO_N "(cached) $ECHO_C" >&6 6722 else 6723 ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i="no, unknown" 6724 6725 ac_ext=c 6726 ac_cpp='$CPP $CPPFLAGS' 6727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6729 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6730 6731 ac_save_CFLAGS="$CFLAGS" 6732 for ac_arg in "-pedantic -Werror % -mfp-trap-mode=sui -mtrap-precision=i" "-pedantic % -mfp-trap-mode=sui -mtrap-precision=i %% no, obsolete" # 6733 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 6734 cat >conftest.$ac_ext <<_ACEOF 6735 /* confdefs.h. */ 6736 _ACEOF 6737 cat confdefs.h >>conftest.$ac_ext 6738 cat >>conftest.$ac_ext <<_ACEOF 6739 /* end confdefs.h. */ 6740 6741 int 6742 main () 6743 { 6744 return 0; 6745 ; 6746 return 0; 6747 } 6748 _ACEOF 6749 rm -f conftest.$ac_objext 6750 if { (ac_try="$ac_compile" 6751 case "(($ac_try" in 6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6753 *) ac_try_echo=$ac_try;; 6754 esac 6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6756 (eval "$ac_compile") 2>conftest.er1 6757 ac_status=$? 6758 grep -v '^ *+' conftest.er1 >conftest.err 6759 rm -f conftest.er1 6760 cat conftest.err >&5 6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6762 (exit $ac_status); } && { 6763 test -z "$ac_c_werror_flag" || 6764 test ! -s conftest.err 6765 } && test -s conftest.$ac_objext; then 6766 ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 6767 else 6768 echo "$as_me: failed program was:" >&5 6769 sed 's/^/| /' conftest.$ac_ext >&5 6770 6771 6772 fi 6773 6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6775 done 6776 CFLAGS="$ac_save_CFLAGS" 6777 ac_ext=c 6778 ac_cpp='$CPP $CPPFLAGS' 6779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6781 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6782 6783 6784 fi 6785 { echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" >&5 6786 echo "${ECHO_T}$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" >&6; } 6787 case ".$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" in 6788 .ok|.ok,*) ;; 6789 .|.no|.no,*) ;; 6790 *) 6791 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i " 2>&1 >/dev/null 6792 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i") >&5 6793 (: CFLAGS does contain $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i) 2>&5 6794 ac_status=$? 6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6796 (exit $ac_status); } 6797 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i\"") >&5 6798 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i") 2>&5 6799 ac_status=$? 6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6801 (exit $ac_status); } 6802 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__mfp_trap_mode_sui__mtrap_precision_i" 6803 fi 6804 ;; 6805 esac 6806 6807 fi 6808 fi 6809 6810 # Define man page supplement 6811 MAN_SUPPLEMENT=machine/m_$MODULE.man 6812 6813 6814 # Extra things we want substituted 6815 6816 6817 6818 6819 # wrapup 6820 6821 ac_config_files="$ac_config_files Makefile top.1" 6822 6823 cat >confcache <<\_ACEOF 6824 # This file is a shell script that caches the results of configure 6825 # tests run on this system so they can be shared between configure 6826 # scripts and configure runs, see configure's option --config-cache. 6827 # It is not useful on other systems. If it contains results you don't 6828 # want to keep, you may remove or edit it. 6829 # 6830 # config.status only pays attention to the cache file if you give it 6831 # the --recheck option to rerun configure. 6832 # 6833 # `ac_cv_env_foo' variables (set or unset) will be overridden when 6834 # loading this file, other *unset* `ac_cv_foo' will be assigned the 6835 # following values. 6836 6837 _ACEOF 6838 6839 # The following way of writing the cache mishandles newlines in values, 6840 # but we know of no workaround that is simple, portable, and efficient. 6841 # So, we kill variables containing newlines. 6842 # Ultrix sh set writes to stderr and can't be redirected directly, 6843 # and sets the high bit in the cache file unless we assign to the vars. 6844 ( 6845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6846 eval ac_val=\$$ac_var 6847 case $ac_val in #( 6848 *${as_nl}*) 6849 case $ac_var in #( 6850 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 6851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 6852 esac 6853 case $ac_var in #( 6854 _ | IFS | as_nl) ;; #( 6855 *) $as_unset $ac_var ;; 6856 esac ;; 6857 esac 6858 done 6859 6860 (set) 2>&1 | 6861 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6862 *${as_nl}ac_space=\ *) 6863 # `set' does not quote correctly, so add quotes (double-quote 6864 # substitution turns \\\\ into \\, and sed turns \\ into \). 6865 sed -n \ 6866 "s/'/'\\\\''/g; 6867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6868 ;; #( 6869 *) 6870 # `set' quotes correctly as required by POSIX, so do not add quotes. 6871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6872 ;; 6873 esac | 6874 sort 6875 ) | 6876 sed ' 6877 /^ac_cv_env_/b end 6878 t clear 6879 :clear 6880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6881 t end 6882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6883 :end' >>confcache 6884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6885 if test -w "$cache_file"; then 6886 test "x$cache_file" != "x/dev/null" && 6887 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 6888 echo "$as_me: updating cache $cache_file" >&6;} 6889 cat confcache >$cache_file 6890 else 6891 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 6892 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6893 fi 6894 fi 6895 rm -f confcache 6896 6897 test "x$prefix" = xNONE && prefix=$ac_default_prefix 6898 # Let make expand exec_prefix. 6899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6900 6901 DEFS=-DHAVE_CONFIG_H 6902 6903 ac_libobjs= 6904 ac_ltlibobjs= 6905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6906 # 1. Remove the extension, and $U if already installed. 6907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6908 ac_i=`echo "$ac_i" | sed "$ac_script"` 6909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6910 # will be set to the directory where LIBOBJS objects are built. 6911 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6912 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 6913 done 6914 LIBOBJS=$ac_libobjs 6915 6916 LTLIBOBJS=$ac_ltlibobjs 6917 6918 6919 6920 : ${CONFIG_STATUS=./config.status} 6921 ac_clean_files_save=$ac_clean_files 6922 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6923 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6924 echo "$as_me: creating $CONFIG_STATUS" >&6;} 6925 cat >$CONFIG_STATUS <<_ACEOF 6926 #! $SHELL 6927 # Generated by $as_me. 6928 # Run this file to recreate the current configuration. 6929 # Compiler output produced by configure, useful for debugging 6930 # configure, is in config.log if it exists. 6931 6932 debug=false 6933 ac_cs_recheck=false 6934 ac_cs_silent=false 6935 SHELL=\${CONFIG_SHELL-$SHELL} 6936 _ACEOF 6937 6938 cat >>$CONFIG_STATUS <<\_ACEOF 6939 ## --------------------- ## 6940 ## M4sh Initialization. ## 6941 ## --------------------- ## 6942 6943 # Be more Bourne compatible 6944 DUALCASE=1; export DUALCASE # for MKS sh 6945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6946 emulate sh 6947 NULLCMD=: 6948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6949 # is contrary to our usage. Disable this feature. 6950 alias -g '${1+"$@"}'='"$@"' 6951 setopt NO_GLOB_SUBST 6952 else 6953 case `(set -o) 2>/dev/null` in 6954 *posix*) set -o posix ;; 6955 esac 6956 6957 fi 6958 6959 6960 6961 6962 # PATH needs CR 6963 # Avoid depending upon Character Ranges. 6964 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6967 as_cr_digits='0123456789' 6968 as_cr_alnum=$as_cr_Letters$as_cr_digits 6969 6970 # The user is always right. 6971 if test "${PATH_SEPARATOR+set}" != set; then 6972 echo "#! /bin/sh" >conf$$.sh 6973 echo "exit 0" >>conf$$.sh 6974 chmod +x conf$$.sh 6975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6976 PATH_SEPARATOR=';' 6977 else 6978 PATH_SEPARATOR=: 6979 fi 6980 rm -f conf$$.sh 6981 fi 6982 6983 # Support unset when possible. 6984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6985 as_unset=unset 6986 else 6987 as_unset=false 6988 fi 6989 6990 6991 # IFS 6992 # We need space, tab and new line, in precisely that order. Quoting is 6993 # there to prevent editors from complaining about space-tab. 6994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 6995 # splitting by setting IFS to empty value.) 6996 as_nl=' 6997 ' 6998 IFS=" "" $as_nl" 6999 7000 # Find who we are. Look in the path if we contain no directory separator. 7001 case $0 in 7002 *[\\/]* ) as_myself=$0 ;; 7003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7004 for as_dir in $PATH 7005 do 7006 IFS=$as_save_IFS 7007 test -z "$as_dir" && as_dir=. 7008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7009 done 7010 IFS=$as_save_IFS 7011 7012 ;; 7013 esac 7014 # We did not find ourselves, most probably we were run as `sh COMMAND' 7015 # in which case we are not to be found in the path. 7016 if test "x$as_myself" = x; then 7017 as_myself=$0 7018 fi 7019 if test ! -f "$as_myself"; then 7020 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7021 { (exit 1); exit 1; } 7022 fi 7023 7024 # Work around bugs in pre-3.0 UWIN ksh. 7025 for as_var in ENV MAIL MAILPATH 7026 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 7027 done 7028 PS1='$ ' 7029 PS2='> ' 7030 PS4='+ ' 7031 7032 # NLS nuisances. 7033 for as_var in \ 7034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 7035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 7036 LC_TELEPHONE LC_TIME 7037 do 7038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 7039 eval $as_var=C; export $as_var 7040 else 7041 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 7042 fi 7043 done 7044 7045 # Required to use basename. 7046 if expr a : '\(a\)' >/dev/null 2>&1 && 7047 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7048 as_expr=expr 7049 else 7050 as_expr=false 7051 fi 7052 7053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7054 as_basename=basename 7055 else 7056 as_basename=false 7057 fi 7058 7059 7060 # Name of the executable. 7061 as_me=`$as_basename -- "$0" || 7062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7063 X"$0" : 'X\(//\)$' \| \ 7064 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7065 echo X/"$0" | 7066 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7067 s//\1/ 7068 q 7069 } 7070 /^X\/\(\/\/\)$/{ 7071 s//\1/ 7072 q 7073 } 7074 /^X\/\(\/\).*/{ 7075 s//\1/ 7076 q 7077 } 7078 s/.*/./; q'` 7079 7080 # CDPATH. 7081 $as_unset CDPATH 7082 7083 7084 7085 as_lineno_1=$LINENO 7086 as_lineno_2=$LINENO 7087 test "x$as_lineno_1" != "x$as_lineno_2" && 7088 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 7089 7090 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 7091 # uniformly replaced by the line number. The first 'sed' inserts a 7092 # line-number line after each line using $LINENO; the second 'sed' 7093 # does the real work. The second script uses 'N' to pair each 7094 # line-number line with the line containing $LINENO, and appends 7095 # trailing '-' during substitution so that $LINENO is not a special 7096 # case at line end. 7097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 7098 # scripts with optimization help from Paolo Bonzini. Blame Lee 7099 # E. McMahon (1931-1989) for sed's syntax. :-) 7100 sed -n ' 7101 p 7102 /[$]LINENO/= 7103 ' <$as_myself | 7104 sed ' 7105 s/[$]LINENO.*/&-/ 7106 t lineno 7107 b 7108 :lineno 7109 N 7110 :loop 7111 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 7112 t loop 7113 s/-\n.*// 7114 ' >$as_me.lineno && 7115 chmod +x "$as_me.lineno" || 7116 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 7117 { (exit 1); exit 1; }; } 7118 7119 # Don't try to exec as it changes $[0], causing all sort of problems 7120 # (the dirname of $[0] is not the place where we might find the 7121 # original and so on. Autoconf is especially sensitive to this). 7122 . "./$as_me.lineno" 7123 # Exit status is that of the last command. 7124 exit 7125 } 7126 7127 7128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7129 as_dirname=dirname 7130 else 7131 as_dirname=false 7132 fi 7133 7134 ECHO_C= ECHO_N= ECHO_T= 7135 case `echo -n x` in 7136 -n*) 7137 case `echo 'x\c'` in 7138 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7139 *) ECHO_C='\c';; 7140 esac;; 7141 *) 7142 ECHO_N='-n';; 7143 esac 7144 7145 if expr a : '\(a\)' >/dev/null 2>&1 && 7146 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7147 as_expr=expr 7148 else 7149 as_expr=false 7150 fi 7151 7152 rm -f conf$$ conf$$.exe conf$$.file 7153 if test -d conf$$.dir; then 7154 rm -f conf$$.dir/conf$$.file 7155 else 7156 rm -f conf$$.dir 7157 mkdir conf$$.dir 7158 fi 7159 echo >conf$$.file 7160 if ln -s conf$$.file conf$$ 2>/dev/null; then 7161 as_ln_s='ln -s' 7162 # ... but there are two gotchas: 7163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7165 # In both cases, we have to default to `cp -p'. 7166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7167 as_ln_s='cp -p' 7168 elif ln conf$$.file conf$$ 2>/dev/null; then 7169 as_ln_s=ln 7170 else 7171 as_ln_s='cp -p' 7172 fi 7173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7174 rmdir conf$$.dir 2>/dev/null 7175 7176 if mkdir -p . 2>/dev/null; then 7177 as_mkdir_p=: 7178 else 7179 test -d ./-p && rmdir ./-p 7180 as_mkdir_p=false 7181 fi 7182 7183 if test -x / >/dev/null 2>&1; then 7184 as_test_x='test -x' 7185 else 7186 if ls -dL / >/dev/null 2>&1; then 7187 as_ls_L_option=L 7188 else 7189 as_ls_L_option= 7190 fi 7191 as_test_x=' 7192 eval sh -c '\'' 7193 if test -d "$1"; then 7194 test -d "$1/."; 7195 else 7196 case $1 in 7197 -*)set "./$1";; 7198 esac; 7199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 7200 ???[sx]*):;;*)false;;esac;fi 7201 '\'' sh 7202 ' 7203 fi 7204 as_executable_p=$as_test_x 7205 7206 # Sed expression to map a string onto a valid CPP name. 7207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7208 7209 # Sed expression to map a string onto a valid variable name. 7210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7211 7212 7213 exec 6>&1 7214 7215 # Save the log message, to keep $[0] and so on meaningful, and to 7216 # report actual input values of CONFIG_FILES etc. instead of their 7217 # values after options handling. 7218 ac_log=" 7219 This file was extended by top $as_me 3.8beta1, which was 7220 generated by GNU Autoconf 2.61. Invocation command line was 7221 7222 CONFIG_FILES = $CONFIG_FILES 7223 CONFIG_HEADERS = $CONFIG_HEADERS 7224 CONFIG_LINKS = $CONFIG_LINKS 7225 CONFIG_COMMANDS = $CONFIG_COMMANDS 7226 $ $0 $@ 7227 7228 on `(hostname || uname -n) 2>/dev/null | sed 1q` 7229 " 7230 7231 _ACEOF 7232 7233 cat >>$CONFIG_STATUS <<_ACEOF 7234 # Files that config.status was made for. 7235 config_files="$ac_config_files" 7236 config_headers="$ac_config_headers" 7237 7238 _ACEOF 7239 7240 cat >>$CONFIG_STATUS <<\_ACEOF 7241 ac_cs_usage="\ 7242 \`$as_me' instantiates files from templates according to the 7243 current configuration. 7244 7245 Usage: $0 [OPTIONS] [FILE]... 7246 7247 -h, --help print this help, then exit 7248 -V, --version print version number and configuration settings, then exit 7249 -q, --quiet do not print progress messages 7250 -d, --debug don't remove temporary files 7251 --recheck update $as_me by reconfiguring in the same conditions 7252 --file=FILE[:TEMPLATE] 7253 instantiate the configuration file FILE 7254 --header=FILE[:TEMPLATE] 7255 instantiate the configuration header FILE 7256 7257 Configuration files: 7258 $config_files 7259 7260 Configuration headers: 7261 $config_headers 7262 7263 Report bugs to <bug-autoconf (at] gnu.org>." 7264 7265 _ACEOF 7266 cat >>$CONFIG_STATUS <<_ACEOF 7267 ac_cs_version="\\ 7268 top config.status 3.8beta1 7269 configured by $0, generated by GNU Autoconf 2.61, 7270 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 7271 7272 Copyright (C) 2006 Free Software Foundation, Inc. 7273 This config.status script is free software; the Free Software Foundation 7274 gives unlimited permission to copy, distribute and modify it." 7275 7276 ac_pwd='$ac_pwd' 7277 srcdir='$srcdir' 7278 INSTALL='$INSTALL' 7279 _ACEOF 7280 7281 cat >>$CONFIG_STATUS <<\_ACEOF 7282 # If no file are specified by the user, then we need to provide default 7283 # value. By we need to know if files were specified by the user. 7284 ac_need_defaults=: 7285 while test $# != 0 7286 do 7287 case $1 in 7288 --*=*) 7289 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7290 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7291 ac_shift=: 7292 ;; 7293 *) 7294 ac_option=$1 7295 ac_optarg=$2 7296 ac_shift=shift 7297 ;; 7298 esac 7299 7300 case $ac_option in 7301 # Handling of the options. 7302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7303 ac_cs_recheck=: ;; 7304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7305 echo "$ac_cs_version"; exit ;; 7306 --debug | --debu | --deb | --de | --d | -d ) 7307 debug=: ;; 7308 --file | --fil | --fi | --f ) 7309 $ac_shift 7310 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 7311 ac_need_defaults=false;; 7312 --header | --heade | --head | --hea ) 7313 $ac_shift 7314 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 7315 ac_need_defaults=false;; 7316 --he | --h) 7317 # Conflict between --help and --header 7318 { echo "$as_me: error: ambiguous option: $1 7319 Try \`$0 --help' for more information." >&2 7320 { (exit 1); exit 1; }; };; 7321 --help | --hel | -h ) 7322 echo "$ac_cs_usage"; exit ;; 7323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7324 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7325 ac_cs_silent=: ;; 7326 7327 # This is an error. 7328 -*) { echo "$as_me: error: unrecognized option: $1 7329 Try \`$0 --help' for more information." >&2 7330 { (exit 1); exit 1; }; } ;; 7331 7332 *) ac_config_targets="$ac_config_targets $1" 7333 ac_need_defaults=false ;; 7334 7335 esac 7336 shift 7337 done 7338 7339 ac_configure_extra_args= 7340 7341 if $ac_cs_silent; then 7342 exec 6>/dev/null 7343 ac_configure_extra_args="$ac_configure_extra_args --silent" 7344 fi 7345 7346 _ACEOF 7347 cat >>$CONFIG_STATUS <<_ACEOF 7348 if \$ac_cs_recheck; then 7349 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 7350 CONFIG_SHELL=$SHELL 7351 export CONFIG_SHELL 7352 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7353 fi 7354 7355 _ACEOF 7356 cat >>$CONFIG_STATUS <<\_ACEOF 7357 exec 5>>config.log 7358 { 7359 echo 7360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7361 ## Running $as_me. ## 7362 _ASBOX 7363 echo "$ac_log" 7364 } >&5 7365 7366 _ACEOF 7367 cat >>$CONFIG_STATUS <<_ACEOF 7368 _ACEOF 7369 7370 cat >>$CONFIG_STATUS <<\_ACEOF 7371 7372 # Handling of arguments. 7373 for ac_config_target in $ac_config_targets 7374 do 7375 case $ac_config_target in 7376 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7377 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7378 "top.1") CONFIG_FILES="$CONFIG_FILES top.1" ;; 7379 7380 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 7381 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7382 { (exit 1); exit 1; }; };; 7383 esac 7384 done 7385 7386 7387 # If the user did not use the arguments to specify the items to instantiate, 7388 # then the envvar interface is used. Set only those that are not. 7389 # We use the long form for the default assignment because of an extremely 7390 # bizarre bug on SunOS 4.1.3. 7391 if $ac_need_defaults; then 7392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7394 fi 7395 7396 # Have a temporary directory for convenience. Make it in the build tree 7397 # simply because there is no reason against having it here, and in addition, 7398 # creating and moving files from /tmp can sometimes cause problems. 7399 # Hook for its removal unless debugging. 7400 # Note that there is a small window in which the directory will not be cleaned: 7401 # after its creation but before its name has been assigned to `$tmp'. 7402 $debug || 7403 { 7404 tmp= 7405 trap 'exit_status=$? 7406 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 7407 ' 0 7408 trap '{ (exit 1); exit 1; }' 1 2 13 15 7409 } 7410 # Create a (secure) tmp directory for tmp files. 7411 7412 { 7413 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7414 test -n "$tmp" && test -d "$tmp" 7415 } || 7416 { 7417 tmp=./conf$$-$RANDOM 7418 (umask 077 && mkdir "$tmp") 7419 } || 7420 { 7421 echo "$me: cannot create a temporary directory in ." >&2 7422 { (exit 1); exit 1; } 7423 } 7424 7425 # 7426 # Set up the sed scripts for CONFIG_FILES section. 7427 # 7428 7429 # No need to generate the scripts if there are no CONFIG_FILES. 7430 # This happens for instance when ./config.status config.h 7431 if test -n "$CONFIG_FILES"; then 7432 7433 _ACEOF 7434 7435 # Create sed commands to just substitute file output variables. 7436 7437 # Remaining file output variables are in a fragment that also has non-file 7438 # output varibles. 7439 7440 7441 7442 ac_delim='%!_!# ' 7443 for ac_last_try in false false false false false :; do 7444 cat >conf$$subs.sed <<_ACEOF 7445 SHELL!$SHELL$ac_delim 7446 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 7447 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 7448 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 7449 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 7450 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 7451 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 7452 exec_prefix!$exec_prefix$ac_delim 7453 prefix!$prefix$ac_delim 7454 program_transform_name!$program_transform_name$ac_delim 7455 bindir!$bindir$ac_delim 7456 sbindir!$sbindir$ac_delim 7457 libexecdir!$libexecdir$ac_delim 7458 datarootdir!$datarootdir$ac_delim 7459 datadir!$datadir$ac_delim 7460 sysconfdir!$sysconfdir$ac_delim 7461 sharedstatedir!$sharedstatedir$ac_delim 7462 localstatedir!$localstatedir$ac_delim 7463 includedir!$includedir$ac_delim 7464 oldincludedir!$oldincludedir$ac_delim 7465 docdir!$docdir$ac_delim 7466 infodir!$infodir$ac_delim 7467 htmldir!$htmldir$ac_delim 7468 dvidir!$dvidir$ac_delim 7469 pdfdir!$pdfdir$ac_delim 7470 psdir!$psdir$ac_delim 7471 libdir!$libdir$ac_delim 7472 localedir!$localedir$ac_delim 7473 mandir!$mandir$ac_delim 7474 DEFS!$DEFS$ac_delim 7475 ECHO_C!$ECHO_C$ac_delim 7476 ECHO_N!$ECHO_N$ac_delim 7477 ECHO_T!$ECHO_T$ac_delim 7478 LIBS!$LIBS$ac_delim 7479 build_alias!$build_alias$ac_delim 7480 host_alias!$host_alias$ac_delim 7481 target_alias!$target_alias$ac_delim 7482 build!$build$ac_delim 7483 build_cpu!$build_cpu$ac_delim 7484 build_vendor!$build_vendor$ac_delim 7485 build_os!$build_os$ac_delim 7486 host!$host$ac_delim 7487 host_cpu!$host_cpu$ac_delim 7488 host_vendor!$host_vendor$ac_delim 7489 host_os!$host_os$ac_delim 7490 target!$target$ac_delim 7491 target_cpu!$target_cpu$ac_delim 7492 target_vendor!$target_vendor$ac_delim 7493 target_os!$target_os$ac_delim 7494 DEFAULT_TOPN!$DEFAULT_TOPN$ac_delim 7495 NOMINAL_TOPN!$NOMINAL_TOPN$ac_delim 7496 DEFAULT_DELAY!$DEFAULT_DELAY$ac_delim 7497 ENABLE_KILL!$ENABLE_KILL$ac_delim 7498 MAKE!$MAKE$ac_delim 7499 CC!$CC$ac_delim 7500 CFLAGS!$CFLAGS$ac_delim 7501 LDFLAGS!$LDFLAGS$ac_delim 7502 CPPFLAGS!$CPPFLAGS$ac_delim 7503 ac_ct_CC!$ac_ct_CC$ac_delim 7504 EXEEXT!$EXEEXT$ac_delim 7505 OBJEXT!$OBJEXT$ac_delim 7506 AWK!$AWK$ac_delim 7507 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 7508 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 7509 INSTALL_DATA!$INSTALL_DATA$ac_delim 7510 ISAINFO!$ISAINFO$ac_delim 7511 ISAEXEC!$ISAEXEC$ac_delim 7512 UNAME!$UNAME$ac_delim 7513 CPP!$CPP$ac_delim 7514 GREP!$GREP$ac_delim 7515 EGREP!$EGREP$ac_delim 7516 SIGNAL_H!$SIGNAL_H$ac_delim 7517 HAVE_GETOPT_LONG!$HAVE_GETOPT_LONG$ac_delim 7518 SRC!$SRC$ac_delim 7519 OBJ!$OBJ$ac_delim 7520 CLEAN_EXTRA!$CLEAN_EXTRA$ac_delim 7521 ARCHFLAG!$ARCHFLAG$ac_delim 7522 MODULE!$MODULE$ac_delim 7523 MODULE_CFLAGS!$MODULE_CFLAGS$ac_delim 7524 INSTALL_OPTS_PROG!$INSTALL_OPTS_PROG$ac_delim 7525 LIBOBJS!$LIBOBJS$ac_delim 7526 LTLIBOBJS!$LTLIBOBJS$ac_delim 7527 _ACEOF 7528 7529 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then 7530 break 7531 elif $ac_last_try; then 7532 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 7533 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 7534 { (exit 1); exit 1; }; } 7535 else 7536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7537 fi 7538 done 7539 7540 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 7541 if test -n "$ac_eof"; then 7542 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 7543 ac_eof=`expr $ac_eof + 1` 7544 fi 7545 7546 cat >>$CONFIG_STATUS <<_ACEOF 7547 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 7548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 7549 /^[ ]*@FIRST_RULE@[ ]*$/{ 7550 r $FIRST_RULE 7551 d 7552 } 7553 /^[ ]*@INSTALL_RULE@[ ]*$/{ 7554 r $INSTALL_RULE 7555 d 7556 } 7557 /^[ ]*@MAN_SUPPLEMENT@[ ]*$/{ 7558 r $MAN_SUPPLEMENT 7559 d 7560 } 7561 _ACEOF 7562 sed ' 7563 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 7564 s/^/s,@/; s/!/@,|#_!!_#|/ 7565 :n 7566 t n 7567 s/'"$ac_delim"'$/,g/; t 7568 s/$/\\/; p 7569 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 7570 ' >>$CONFIG_STATUS <conf$$subs.sed 7571 rm -f conf$$subs.sed 7572 cat >>$CONFIG_STATUS <<_ACEOF 7573 :end 7574 s/|#_!!_#|//g 7575 CEOF$ac_eof 7576 _ACEOF 7577 7578 7579 # VPATH may cause trouble with some makes, so we remove $(srcdir), 7580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7581 # trailing colons and then remove the whole line if VPATH becomes empty 7582 # (actually we leave an empty line to preserve line numbers). 7583 if test "x$srcdir" = x.; then 7584 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7585 s/:*\$(srcdir):*/:/ 7586 s/:*\${srcdir}:*/:/ 7587 s/:*@srcdir@:*/:/ 7588 s/^\([^=]*=[ ]*\):*/\1/ 7589 s/:*$// 7590 s/^[^=]*=[ ]*$// 7591 }' 7592 fi 7593 7594 cat >>$CONFIG_STATUS <<\_ACEOF 7595 fi # test -n "$CONFIG_FILES" 7596 7597 7598 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 7599 do 7600 case $ac_tag in 7601 :[FHLC]) ac_mode=$ac_tag; continue;; 7602 esac 7603 case $ac_mode$ac_tag in 7604 :[FHL]*:*);; 7605 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 7606 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 7607 { (exit 1); exit 1; }; };; 7608 :[FH]-) ac_tag=-:-;; 7609 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7610 esac 7611 ac_save_IFS=$IFS 7612 IFS=: 7613 set x $ac_tag 7614 IFS=$ac_save_IFS 7615 shift 7616 ac_file=$1 7617 shift 7618 7619 case $ac_mode in 7620 :L) ac_source=$1;; 7621 :[FH]) 7622 ac_file_inputs= 7623 for ac_f 7624 do 7625 case $ac_f in 7626 -) ac_f="$tmp/stdin";; 7627 *) # Look for the file first in the build tree, then in the source tree 7628 # (if the path is not absolute). The absolute path cannot be DOS-style, 7629 # because $ac_f cannot contain `:'. 7630 test -f "$ac_f" || 7631 case $ac_f in 7632 [\\/$]*) false;; 7633 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7634 esac || 7635 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 7636 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 7637 { (exit 1); exit 1; }; };; 7638 esac 7639 ac_file_inputs="$ac_file_inputs $ac_f" 7640 done 7641 7642 # Let's still pretend it is `configure' which instantiates (i.e., don't 7643 # use $as_me), people would be surprised to read: 7644 # /* config.h. Generated by config.status. */ 7645 configure_input="Generated from "`IFS=: 7646 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 7647 if test x"$ac_file" != x-; then 7648 configure_input="$ac_file. $configure_input" 7649 { echo "$as_me:$LINENO: creating $ac_file" >&5 7650 echo "$as_me: creating $ac_file" >&6;} 7651 fi 7652 7653 case $ac_tag in 7654 *:-:* | *:-) cat >"$tmp/stdin";; 7655 esac 7656 ;; 7657 esac 7658 7659 ac_dir=`$as_dirname -- "$ac_file" || 7660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7661 X"$ac_file" : 'X\(//\)[^/]' \| \ 7662 X"$ac_file" : 'X\(//\)$' \| \ 7663 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7664 echo X"$ac_file" | 7665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7666 s//\1/ 7667 q 7668 } 7669 /^X\(\/\/\)[^/].*/{ 7670 s//\1/ 7671 q 7672 } 7673 /^X\(\/\/\)$/{ 7674 s//\1/ 7675 q 7676 } 7677 /^X\(\/\).*/{ 7678 s//\1/ 7679 q 7680 } 7681 s/.*/./; q'` 7682 { as_dir="$ac_dir" 7683 case $as_dir in #( 7684 -*) as_dir=./$as_dir;; 7685 esac 7686 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 7687 as_dirs= 7688 while :; do 7689 case $as_dir in #( 7690 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 7691 *) as_qdir=$as_dir;; 7692 esac 7693 as_dirs="'$as_qdir' $as_dirs" 7694 as_dir=`$as_dirname -- "$as_dir" || 7695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7696 X"$as_dir" : 'X\(//\)[^/]' \| \ 7697 X"$as_dir" : 'X\(//\)$' \| \ 7698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7699 echo X"$as_dir" | 7700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7701 s//\1/ 7702 q 7703 } 7704 /^X\(\/\/\)[^/].*/{ 7705 s//\1/ 7706 q 7707 } 7708 /^X\(\/\/\)$/{ 7709 s//\1/ 7710 q 7711 } 7712 /^X\(\/\).*/{ 7713 s//\1/ 7714 q 7715 } 7716 s/.*/./; q'` 7717 test -d "$as_dir" && break 7718 done 7719 test -z "$as_dirs" || eval "mkdir $as_dirs" 7720 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7721 echo "$as_me: error: cannot create directory $as_dir" >&2;} 7722 { (exit 1); exit 1; }; }; } 7723 ac_builddir=. 7724 7725 case "$ac_dir" in 7726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7727 *) 7728 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7729 # A ".." for each directory in $ac_dir_suffix. 7730 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 7731 case $ac_top_builddir_sub in 7732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7734 esac ;; 7735 esac 7736 ac_abs_top_builddir=$ac_pwd 7737 ac_abs_builddir=$ac_pwd$ac_dir_suffix 7738 # for backward compatibility: 7739 ac_top_builddir=$ac_top_build_prefix 7740 7741 case $srcdir in 7742 .) # We are building in place. 7743 ac_srcdir=. 7744 ac_top_srcdir=$ac_top_builddir_sub 7745 ac_abs_top_srcdir=$ac_pwd ;; 7746 [\\/]* | ?:[\\/]* ) # Absolute name. 7747 ac_srcdir=$srcdir$ac_dir_suffix; 7748 ac_top_srcdir=$srcdir 7749 ac_abs_top_srcdir=$srcdir ;; 7750 *) # Relative name. 7751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7752 ac_top_srcdir=$ac_top_build_prefix$srcdir 7753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7754 esac 7755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7756 7757 7758 case $ac_mode in 7759 :F) 7760 # 7761 # CONFIG_FILE 7762 # 7763 7764 case $INSTALL in 7765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7767 esac 7768 _ACEOF 7769 7770 cat >>$CONFIG_STATUS <<\_ACEOF 7771 # If the template does not know about datarootdir, expand it. 7772 # FIXME: This hack should be removed a few years after 2.60. 7773 ac_datarootdir_hack=; ac_datarootdir_seen= 7774 7775 case `sed -n '/datarootdir/ { 7776 p 7777 q 7778 } 7779 /@datadir@/p 7780 /@docdir@/p 7781 /@infodir@/p 7782 /@localedir@/p 7783 /@mandir@/p 7784 ' $ac_file_inputs` in 7785 *datarootdir*) ac_datarootdir_seen=yes;; 7786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7787 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7788 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7789 _ACEOF 7790 cat >>$CONFIG_STATUS <<_ACEOF 7791 ac_datarootdir_hack=' 7792 s&@datadir@&$datadir&g 7793 s&@docdir@&$docdir&g 7794 s&@infodir@&$infodir&g 7795 s&@localedir@&$localedir&g 7796 s&@mandir@&$mandir&g 7797 s&\\\${datarootdir}&$datarootdir&g' ;; 7798 esac 7799 _ACEOF 7800 7801 # Neutralize VPATH when `$srcdir' = `.'. 7802 # Shell code in configure.ac might set extrasub. 7803 # FIXME: do we really want to maintain this feature? 7804 cat >>$CONFIG_STATUS <<_ACEOF 7805 sed "$ac_vpsub 7806 $extrasub 7807 _ACEOF 7808 cat >>$CONFIG_STATUS <<\_ACEOF 7809 :t 7810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7811 s&@configure_input@&$configure_input&;t t 7812 s&@top_builddir@&$ac_top_builddir_sub&;t t 7813 s&@srcdir@&$ac_srcdir&;t t 7814 s&@abs_srcdir@&$ac_abs_srcdir&;t t 7815 s&@top_srcdir@&$ac_top_srcdir&;t t 7816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7817 s&@builddir@&$ac_builddir&;t t 7818 s&@abs_builddir@&$ac_abs_builddir&;t t 7819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7820 s&@INSTALL@&$ac_INSTALL&;t t 7821 $ac_datarootdir_hack 7822 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 7823 7824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7825 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 7826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 7827 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7828 which seems to be undefined. Please make sure it is defined." >&5 7829 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7830 which seems to be undefined. Please make sure it is defined." >&2;} 7831 7832 rm -f "$tmp/stdin" 7833 case $ac_file in 7834 -) cat "$tmp/out"; rm -f "$tmp/out";; 7835 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 7836 esac 7837 ;; 7838 :H) 7839 # 7840 # CONFIG_HEADER 7841 # 7842 _ACEOF 7843 7844 # Transform confdefs.h into a sed script `conftest.defines', that 7845 # substitutes the proper values into config.h.in to produce config.h. 7846 rm -f conftest.defines conftest.tail 7847 # First, append a space to every undef/define line, to ease matching. 7848 echo 's/$/ /' >conftest.defines 7849 # Then, protect against being on the right side of a sed subst, or in 7850 # an unquoted here document, in config.status. If some macros were 7851 # called several times there might be several #defines for the same 7852 # symbol, which is useless. But do not sort them, since the last 7853 # AC_DEFINE must be honored. 7854 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7855 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 7856 # NAME is the cpp macro being defined, VALUE is the value it is being given. 7857 # PARAMS is the parameter list in the macro definition--in most cases, it's 7858 # just an empty string. 7859 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 7860 ac_dB='\\)[ (].*,\\1define\\2' 7861 ac_dC=' ' 7862 ac_dD=' ,' 7863 7864 uniq confdefs.h | 7865 sed -n ' 7866 t rset 7867 :rset 7868 s/^[ ]*#[ ]*define[ ][ ]*// 7869 t ok 7870 d 7871 :ok 7872 s/[\\&,]/\\&/g 7873 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 7874 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 7875 ' >>conftest.defines 7876 7877 # Remove the space that was appended to ease matching. 7878 # Then replace #undef with comments. This is necessary, for 7879 # example, in the case of _POSIX_SOURCE, which is predefined and required 7880 # on some systems where configure will not decide to define it. 7881 # (The regexp can be short, since the line contains either #define or #undef.) 7882 echo 's/ $// 7883 s,^[ #]*u.*,/* & */,' >>conftest.defines 7884 7885 # Break up conftest.defines: 7886 ac_max_sed_lines=50 7887 7888 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 7889 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 7890 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 7891 # et cetera. 7892 ac_in='$ac_file_inputs' 7893 ac_out='"$tmp/out1"' 7894 ac_nxt='"$tmp/out2"' 7895 7896 while : 7897 do 7898 # Write a here document: 7899 cat >>$CONFIG_STATUS <<_ACEOF 7900 # First, check the format of the line: 7901 cat >"\$tmp/defines.sed" <<\\CEOF 7902 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 7903 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 7904 b 7905 :def 7906 _ACEOF 7907 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 7908 echo 'CEOF 7909 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 7910 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 7911 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 7912 grep . conftest.tail >/dev/null || break 7913 rm -f conftest.defines 7914 mv conftest.tail conftest.defines 7915 done 7916 rm -f conftest.defines conftest.tail 7917 7918 echo "ac_result=$ac_in" >>$CONFIG_STATUS 7919 cat >>$CONFIG_STATUS <<\_ACEOF 7920 if test x"$ac_file" != x-; then 7921 echo "/* $configure_input */" >"$tmp/config.h" 7922 cat "$ac_result" >>"$tmp/config.h" 7923 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 7924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7925 echo "$as_me: $ac_file is unchanged" >&6;} 7926 else 7927 rm -f $ac_file 7928 mv "$tmp/config.h" $ac_file 7929 fi 7930 else 7931 echo "/* $configure_input */" 7932 cat "$ac_result" 7933 fi 7934 rm -f "$tmp/out12" 7935 ;; 7936 7937 7938 esac 7939 7940 done # for ac_tag 7941 7942 7943 { (exit 0); exit 0; } 7944 _ACEOF 7945 chmod +x $CONFIG_STATUS 7946 ac_clean_files=$ac_clean_files_save 7947 7948 7949 # configure is writing to config.log, and then calls config.status. 7950 # config.status does its own redirection, appending to config.log. 7951 # Unfortunately, on DOS this fails, as config.log is still kept open 7952 # by configure, so config.status won't be able to write to it; its 7953 # output is simply discarded. So we exec the FD to /dev/null, 7954 # effectively closing config.log, so it can be properly (re)opened and 7955 # appended to by config.status. When coming back to configure, we 7956 # need to make the FD available again. 7957 if test "$no_create" != yes; then 7958 ac_cs_success=: 7959 ac_config_status_args= 7960 test "$silent" = yes && 7961 ac_config_status_args="$ac_config_status_args --quiet" 7962 exec 5>/dev/null 7963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7964 exec 5>>config.log 7965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7966 # would make configure fail if this is the last instruction. 7967 $ac_cs_success || { (exit 1); exit 1; } 7968 fi 7969 7970