"Fossies" - the Fresh Open Source Software Archive

Member "top-3.8beta1/configure" (7 May 2008, 215178 Bytes) of package /linux/misc/old/top-3.8beta1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 3.7_vs_3.8beta1.

    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@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@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@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@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</