Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.59b.
      4 #
      5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
      6 # 2003, 2004 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 Bourne compatible
     14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     15   emulate sh
     16   NULLCMD=:
     17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     18   # is contrary to our usage.  Disable this feature.
     19   alias -g '${1+"$@"}'='"$@"'
     20   setopt NO_GLOB_SUBST
     21 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     22   set -o posix
     23 fi
     24 BIN_SH=xpg4; export BIN_SH # for Tru64
     25 DUALCASE=1; export DUALCASE # for MKS sh
     26 
     27 
     28 # PATH needs CR
     29 # Avoid depending upon Character Ranges.
     30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     33 as_cr_digits='0123456789'
     34 as_cr_alnum=$as_cr_Letters$as_cr_digits
     35 
     36 # The user is always right.
     37 if test "${PATH_SEPARATOR+set}" != set; then
     38   echo "#! /bin/sh" >conf$$.sh
     39   echo  "exit 0"   >>conf$$.sh
     40   chmod +x conf$$.sh
     41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     42     PATH_SEPARATOR=';'
     43   else
     44     PATH_SEPARATOR=:
     45   fi
     46   rm -f conf$$.sh
     47 fi
     48 
     49 # Support unset when possible.
     50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     51   as_unset=unset
     52 else
     53   as_unset=false
     54 fi
     55 
     56 
     57 # Find who we are.  Look in the path if we contain no path at all
     58 # relative or not.
     59 case $0 in
     60   *[\\/]* ) as_myself=$0 ;;
     61   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     62 for as_dir in $PATH
     63 do
     64   IFS=$as_save_IFS
     65   test -z "$as_dir" && as_dir=.
     66   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     67 done
     68 
     69      ;;
     70 esac
     71 # We did not find ourselves, most probably we were run as `sh COMMAND'
     72 # in which case we are not to be found in the path.
     73 if test "x$as_myself" = x; then
     74   as_myself=$0
     75 fi
     76 if test ! -f "$as_myself"; then
     77   { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
     78    { (exit 1); exit 1; }; }
     79 fi
     80 
     81 # Work around bugs in pre-3.0 UWIN ksh.
     82 for as_var in ENV MAIL MAILPATH
     83 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     84 done
     85 PS1='$ '
     86 PS2='> '
     87 PS4='+ '
     88 
     89 # NLS nuisances.
     90 for as_var in \
     91   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     92   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     93   LC_TELEPHONE LC_TIME
     94 do
     95   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     96     eval $as_var=C; export $as_var
     97   else
     98     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     99   fi
    100 done
    101 
    102 # Required to use basename.
    103 if expr a : '\(a\)' >/dev/null 2>&1; then
    104   as_expr=expr
    105 else
    106   as_expr=false
    107 fi
    108 
    109 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    110   as_basename=basename
    111 else
    112   as_basename=false
    113 fi
    114 
    115 
    116 # Name of the executable.
    117 as_me=`$as_basename "$0" ||
    118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    119 	 X"$0" : 'X\(//\)$' \| \
    120 	 X"$0" : 'X\(/\)$' \| \
    121 	 .     : '\(.\)' 2>/dev/null ||
    122 echo X/"$0" |
    123     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    124   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
    125   	  /^X\/\(\/\).*/{ s//\1/; q; }
    126   	  s/.*/./; q'`
    127 
    128 
    129 
    130 if test "x$CONFIG_SHELL" = x; then
    131   if (eval ":") 2>/dev/null; then
    132   as_have_required=yes
    133 else
    134   as_have_required=no
    135 fi
    136 
    137   if test $as_have_required = yes && 	 (eval ":
    138 (func_return () {
    139   (exit \$1)
    140 }
    141 func_success () {
    142   func_return 0
    143 }
    144 func_failure () {
    145   func_return 1
    146 }
    147 func_ret_success () {
    148   return 0
    149 }
    150 func_ret_failure () {
    151   return 1
    152 }
    153 
    154 exitcode=0
    155 if func_success; then
    156   :
    157 else
    158   exitcode=1
    159   echo func_failure succeeded.
    160 fi
    161 
    162 if func_failure; then
    163   exitcode=1
    164   echo func_success failed.
    165 fi
    166 
    167 if func_ret_success; then
    168   :
    169 else
    170   exitcode=1
    171   echo func_ret_success failed.
    172 fi
    173 
    174 if func_ret_failure; then
    175   exitcode=1
    176   echo func_ret_failure succeeded.
    177 fi
    178 
    179 test \$exitcode = 0) || { (exit 1); exit 1; }
    180 
    181 (
    182   as_lineno_1=\$LINENO
    183   as_lineno_2=\$LINENO
    184   as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
    185   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    186   test \"x\$as_lineno_3\"  = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    187 ") 2> /dev/null; then
    188   :
    189 else
    190   as_candidate_shells=
    191     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    192 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    193 do
    194   IFS=$as_save_IFS
    195   test -z "$as_dir" && as_dir=.
    196   case $as_dir in
    197 	 /*)
    198 	   for as_base in sh bash ksh sh5; do
    199 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    200 	   done
    201        esac
    202 done
    203 
    204 
    205       for as_shell in $as_candidate_shells $SHELL; do
    206 	 if { $as_shell 2> /dev/null <<\_ASEOF
    207 # Be Bourne compatible
    208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    209   emulate sh
    210   NULLCMD=:
    211   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    212   # is contrary to our usage.  Disable this feature.
    213   alias -g '${1+"$@"}'='"$@"'
    214   setopt NO_GLOB_SUBST
    215 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    216   set -o posix
    217 fi
    218 BIN_SH=xpg4; export BIN_SH # for Tru64
    219 DUALCASE=1; export DUALCASE # for MKS sh
    220 
    221 :
    222 _ASEOF
    223 }; then
    224   CONFIG_SHELL=$as_shell
    225 	       as_have_required=yes
    226 	       if { $as_shell 2> /dev/null <<\_ASEOF
    227 # Be Bourne compatible
    228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    229   emulate sh
    230   NULLCMD=:
    231   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    232   # is contrary to our usage.  Disable this feature.
    233   alias -g '${1+"$@"}'='"$@"'
    234   setopt NO_GLOB_SUBST
    235 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    236   set -o posix
    237 fi
    238 BIN_SH=xpg4; export BIN_SH # for Tru64
    239 DUALCASE=1; export DUALCASE # for MKS sh
    240 
    241 :
    242 (func_return () {
    243   (exit $1)
    244 }
    245 func_success () {
    246   func_return 0
    247 }
    248 func_failure () {
    249   func_return 1
    250 }
    251 func_ret_success () {
    252   return 0
    253 }
    254 func_ret_failure () {
    255   return 1
    256 }
    257 
    258 exitcode=0
    259 if func_success; then
    260   :
    261 else
    262   exitcode=1
    263   echo func_failure succeeded.
    264 fi
    265 
    266 if func_failure; then
    267   exitcode=1
    268   echo func_success failed.
    269 fi
    270 
    271 if func_ret_success; then
    272   :
    273 else
    274   exitcode=1
    275   echo func_ret_success failed.
    276 fi
    277 
    278 if func_ret_failure; then
    279   exitcode=1
    280   echo func_ret_failure succeeded.
    281 fi
    282 
    283 test $exitcode = 0) || { (exit 1); exit 1; }
    284 
    285 (
    286   as_lineno_1=$LINENO
    287   as_lineno_2=$LINENO
    288   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    289   test "x$as_lineno_1" != "x$as_lineno_2" &&
    290   test "x$as_lineno_3"  = "x$as_lineno_2") || { (exit 1); exit 1; }
    291 
    292 _ASEOF
    293 }; then
    294   break
    295 fi
    296 
    297 fi
    298 
    299       done
    300 
    301       if test "x$CONFIG_SHELL" != x; then
    302   for as_var in BASH_ENV ENV
    303         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    304         done
    305         export CONFIG_SHELL
    306         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    307 fi
    308 
    309 
    310     if test $as_have_required = no; then
    311   echo This script requires a shell more modern than all the
    312       echo shells that I found on your system.  Please install a
    313       echo modern shell, or manually run the script under such a
    314       echo shell if you do have one.
    315       { (exit 1); exit 1; }
    316 fi
    317 
    318 
    319 fi
    320 
    321 fi
    322 
    323 
    324 
    325 (eval "func_return () {
    326   (exit \$1)
    327 }
    328 func_success () {
    329   func_return 0
    330 }
    331 func_failure () {
    332   func_return 1
    333 }
    334 func_ret_success () {
    335   return 0
    336 }
    337 func_ret_failure () {
    338   return 1
    339 }
    340 
    341 exitcode=0
    342 if func_success; then
    343   :
    344 else
    345   exitcode=1
    346   echo func_failure succeeded.
    347 fi
    348 
    349 if func_failure; then
    350   exitcode=1
    351   echo func_success failed.
    352 fi
    353 
    354 if func_ret_success; then
    355   :
    356 else
    357   exitcode=1
    358   echo func_ret_success failed.
    359 fi
    360 
    361 if func_ret_failure; then
    362   exitcode=1
    363   echo func_ret_failure succeeded.
    364 fi
    365 
    366 test \$exitcode = 0") || {
    367   echo No shell found that supports shell functions.
    368   echo Please tell autoconf@gnu.org about your system,
    369   echo including any error possibly output before this
    370   echo message
    371 }
    372 
    373 
    374 
    375   as_lineno_1=$LINENO
    376   as_lineno_2=$LINENO
    377   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    378   test "x$as_lineno_1" != "x$as_lineno_2" &&
    379   test "x$as_lineno_3"  = "x$as_lineno_2" || {
    380 
    381   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    382   # uniformly replaced by the line number.  The first 'sed' inserts a
    383   # line-number line after each line using $LINENO; the second 'sed'
    384   # does the real work.  The second script uses 'N' to pair each
    385   # line-number line with the line containing $LINENO, and appends
    386   # trailing '-' during substitution so that $LINENO is not a special
    387   # case at line end.
    388   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    389   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    390   # E. McMahon (1931-1989) for sed's syntax.  :-)
    391   sed -n '
    392     p
    393     /[$]LINENO/=
    394   ' <$as_myself |
    395     sed '
    396       s,[$]LINENO.*,&-,
    397       t lineno
    398       b
    399       : lineno
    400       N
    401       : loop
    402       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
    403       t loop
    404       s,-\n.*,,
    405     ' >$as_me.lineno &&
    406   chmod +x $as_me.lineno ||
    407     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    408    { (exit 1); exit 1; }; }
    409 
    410   # Don't try to exec as it changes $[0], causing all sort of problems
    411   # (the dirname of $[0] is not the place where we might find the
    412   # original and so on.  Autoconf is especially sensible to this).
    413   . ./$as_me.lineno
    414   # Exit status is that of the last command.
    415   exit
    416 }
    417 
    418 
    419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    420   *c*,-n*) ECHO_N= ECHO_C='
    421 ' ECHO_T='	' ;;
    422   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    423   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    424 esac
    425 
    426 if expr a : '\(a\)' >/dev/null 2>&1; then
    427   as_expr=expr
    428 else
    429   as_expr=false
    430 fi
    431 
    432 rm -f conf$$ conf$$.exe conf$$.file
    433 echo >conf$$.file
    434 if ln -s conf$$.file conf$$ 2>/dev/null; then
    435   # We could just check for DJGPP; but this test a) works b) is more generic
    436   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    437   if test -f conf$$.exe; then
    438     # Don't use ln at all; we don't have any links
    439     as_ln_s='cp -p'
    440   else
    441     as_ln_s='ln -s'
    442   fi
    443 elif ln conf$$.file conf$$ 2>/dev/null; then
    444   as_ln_s=ln
    445 else
    446   as_ln_s='cp -p'
    447 fi
    448 rm -f conf$$ conf$$.exe conf$$.file
    449 
    450 if mkdir -p . 2>/dev/null; then
    451   as_mkdir_p=:
    452 else
    453   test -d ./-p && rmdir ./-p
    454   as_mkdir_p=false
    455 fi
    456 
    457 as_executable_p="test -f"
    458 
    459 # Sed expression to map a string onto a valid CPP name.
    460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    461 
    462 # Sed expression to map a string onto a valid variable name.
    463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    464 
    465 
    466 # IFS
    467 # We need space, tab and new line, in precisely that order.
    468 as_nl='
    469 '
    470 IFS=" 	$as_nl"
    471 
    472 # CDPATH.
    473 $as_unset CDPATH
    474 
    475 
    476 # Name of the host.
    477 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    478 # so uname gets run too.
    479 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    480 
    481 exec 6>&1
    482 
    483 #
    484 # Initializations.
    485 #
    486 ac_default_prefix=/usr/local
    487 ac_config_libobj_dir=.
    488 cross_compiling=no
    489 subdirs=
    490 MFLAGS=
    491 MAKEFLAGS=
    492 SHELL=${CONFIG_SHELL-/bin/sh}
    493 
    494 # Maximum number of lines to put in a shell here document.
    495 # This variable seems obsolete.  It should probably be removed, and
    496 # only ac_max_sed_lines should be used.
    497 : ${ac_max_here_lines=38}
    498 
    499 # Identity of this package.
    500 PACKAGE_NAME=
    501 PACKAGE_TARNAME=
    502 PACKAGE_VERSION=
    503 PACKAGE_STRING=
    504 PACKAGE_BUGREPORT=
    505 
    506 ac_unique_file="src/roff/groff/groff.cpp"
    507 # Factoring default headers for most tests.
    508 ac_includes_default="\
    509 #include <stdio.h>
    510 #if HAVE_SYS_TYPES_H
    511 # include <sys/types.h>
    512 #endif
    513 #if HAVE_SYS_STAT_H
    514 # include <sys/stat.h>
    515 #endif
    516 #if STDC_HEADERS
    517 # include <stdlib.h>
    518 # include <stddef.h>
    519 #else
    520 # if HAVE_STDLIB_H
    521 #  include <stdlib.h>
    522 # endif
    523 #endif
    524 #if HAVE_STRING_H
    525 # if !STDC_HEADERS && HAVE_MEMORY_H
    526 #  include <memory.h>
    527 # endif
    528 # include <string.h>
    529 #endif
    530 #if HAVE_STRINGS_H
    531 # include <strings.h>
    532 #endif
    533 #if HAVE_INTTYPES_H
    534 # include <inttypes.h>
    535 #endif
    536 #if HAVE_STDINT_H
    537 # include <stdint.h>
    538 #endif
    539 #if HAVE_UNISTD_H
    540 # include <unistd.h>
    541 #endif"
    542 
    543 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR ALT_GHOSTSCRIPT_PROGS GHOSTSCRIPT ac_ct_GHOSTSCRIPT pnmcut pnmcrop pnmtopng psselect pnmtops make_html make_install_html ALT_AWK_PROGS AWK ac_ct_AWK make_pdfdoc make_install_pdfdoc pnmtops_nosetpage LTLIBOBJS'
    544 ac_subst_files=''
    545 
    546 # Initialize some variables set by options.
    547 ac_init_help=
    548 ac_init_version=false
    549 # The variables have the same names as the options, with
    550 # dashes changed to underlines.
    551 cache_file=/dev/null
    552 exec_prefix=NONE
    553 no_create=
    554 no_recursion=
    555 prefix=NONE
    556 program_prefix=NONE
    557 program_suffix=NONE
    558 program_transform_name=s,x,x,
    559 silent=
    560 site=
    561 srcdir=
    562 verbose=
    563 x_includes=NONE
    564 x_libraries=NONE
    565 
    566 # Installation directory options.
    567 # These are left unexpanded so users can "make install exec_prefix=/foo"
    568 # and all the variables that are supposed to be based on exec_prefix
    569 # by default will actually change.
    570 # Use braces instead of parens because sh, perl, etc. also accept them.
    571 bindir='${exec_prefix}/bin'
    572 sbindir='${exec_prefix}/sbin'
    573 libexecdir='${exec_prefix}/libexec'
    574 datadir='${prefix}/share'
    575 sysconfdir='${prefix}/etc'
    576 sharedstatedir='${prefix}/com'
    577 localstatedir='${prefix}/var'
    578 libdir='${exec_prefix}/lib'
    579 includedir='${prefix}/include'
    580 oldincludedir='/usr/include'
    581 infodir='${prefix}/info'
    582 mandir='${prefix}/man'
    583 
    584 ac_prev=
    585 ac_dashdash=
    586 for ac_option
    587 do
    588   # If the previous option needs an argument, assign it.
    589   if test -n "$ac_prev"; then
    590     eval "$ac_prev=\$ac_option"
    591     ac_prev=
    592     continue
    593   fi
    594 
    595   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    596 
    597   # Accept the important Cygnus configure options, so we can diagnose typos.
    598 
    599   case $ac_dashdash$ac_option in
    600   --)
    601     ac_dashdash=yes ;;
    602 
    603   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    604     ac_prev=bindir ;;
    605   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    606     bindir=$ac_optarg ;;
    607 
    608   -build | --build | --buil | --bui | --bu)
    609     ac_prev=build_alias ;;
    610   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    611     build_alias=$ac_optarg ;;
    612 
    613   -cache-file | --cache-file | --cache-fil | --cache-fi \
    614   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    615     ac_prev=cache_file ;;
    616   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    617   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    618     cache_file=$ac_optarg ;;
    619 
    620   --config-cache | -C)
    621     cache_file=config.cache ;;
    622 
    623   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    624     ac_prev=datadir ;;
    625   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    626   | --da=*)
    627     datadir=$ac_optarg ;;
    628 
    629   -disable-* | --disable-*)
    630     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    631     # Reject names that are not valid shell variable names.
    632     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    633       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    634    { (exit 1); exit 1; }; }
    635     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    636     eval "enable_$ac_feature=no" ;;
    637 
    638   -enable-* | --enable-*)
    639     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    640     # Reject names that are not valid shell variable names.
    641     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    642       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    643    { (exit 1); exit 1; }; }
    644     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    645     case $ac_option in
    646       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    647       *) ac_optarg=yes ;;
    648     esac
    649     eval "enable_$ac_feature='$ac_optarg'" ;;
    650 
    651   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    652   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    653   | --exec | --exe | --ex)
    654     ac_prev=exec_prefix ;;
    655   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    656   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    657   | --exec=* | --exe=* | --ex=*)
    658     exec_prefix=$ac_optarg ;;
    659 
    660   -gas | --gas | --ga | --g)
    661     # Obsolete; use --with-gas.
    662     with_gas=yes ;;
    663 
    664   -help | --help | --hel | --he | -h)
    665     ac_init_help=long ;;
    666   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    667     ac_init_help=recursive ;;
    668   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    669     ac_init_help=short ;;
    670 
    671   -host | --host | --hos | --ho)
    672     ac_prev=host_alias ;;
    673   -host=* | --host=* | --hos=* | --ho=*)
    674     host_alias=$ac_optarg ;;
    675 
    676   -includedir | --includedir | --includedi | --included | --include \
    677   | --includ | --inclu | --incl | --inc)
    678     ac_prev=includedir ;;
    679   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    680   | --includ=* | --inclu=* | --incl=* | --inc=*)
    681     includedir=$ac_optarg ;;
    682 
    683   -infodir | --infodir | --infodi | --infod | --info | --inf)
    684     ac_prev=infodir ;;
    685   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    686     infodir=$ac_optarg ;;
    687 
    688   -libdir | --libdir | --libdi | --libd)
    689     ac_prev=libdir ;;
    690   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    691     libdir=$ac_optarg ;;
    692 
    693   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    694   | --libexe | --libex | --libe)
    695     ac_prev=libexecdir ;;
    696   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    697   | --libexe=* | --libex=* | --libe=*)
    698     libexecdir=$ac_optarg ;;
    699 
    700   -localstatedir | --localstatedir | --localstatedi | --localstated \
    701   | --localstate | --localstat | --localsta | --localst \
    702   | --locals | --local | --loca | --loc | --lo)
    703     ac_prev=localstatedir ;;
    704   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    705   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    706   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    707     localstatedir=$ac_optarg ;;
    708 
    709   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    710     ac_prev=mandir ;;
    711   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    712     mandir=$ac_optarg ;;
    713 
    714   -nfp | --nfp | --nf)
    715     # Obsolete; use --without-fp.
    716     with_fp=no ;;
    717 
    718   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    719   | --no-cr | --no-c | -n)
    720     no_create=yes ;;
    721 
    722   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    723   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    724     no_recursion=yes ;;
    725 
    726   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    727   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    728   | --oldin | --oldi | --old | --ol | --o)
    729     ac_prev=oldincludedir ;;
    730   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    731   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    732   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    733     oldincludedir=$ac_optarg ;;
    734 
    735   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    736     ac_prev=prefix ;;
    737   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    738     prefix=$ac_optarg ;;
    739 
    740   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    741   | --program-pre | --program-pr | --program-p)
    742     ac_prev=program_prefix ;;
    743   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    744   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    745     program_prefix=$ac_optarg ;;
    746 
    747   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    748   | --program-suf | --program-su | --program-s)
    749     ac_prev=program_suffix ;;
    750   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    751   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    752     program_suffix=$ac_optarg ;;
    753 
    754   -program-transform-name | --program-transform-name \
    755   | --program-transform-nam | --program-transform-na \
    756   | --program-transform-n | --program-transform- \
    757   | --program-transform | --program-transfor \
    758   | --program-transfo | --program-transf \
    759   | --program-trans | --program-tran \
    760   | --progr-tra | --program-tr | --program-t)
    761     ac_prev=program_transform_name ;;
    762   -program-transform-name=* | --program-transform-name=* \
    763   | --program-transform-nam=* | --program-transform-na=* \
    764   | --program-transform-n=* | --program-transform-=* \
    765   | --program-transform=* | --program-transfor=* \
    766   | --program-transfo=* | --program-transf=* \
    767   | --program-trans=* | --program-tran=* \
    768   | --progr-tra=* | --program-tr=* | --program-t=*)
    769     program_transform_name=$ac_optarg ;;
    770 
    771   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    772   | -silent | --silent | --silen | --sile | --sil)
    773     silent=yes ;;
    774 
    775   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    776     ac_prev=sbindir ;;
    777   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    778   | --sbi=* | --sb=*)
    779     sbindir=$ac_optarg ;;
    780 
    781   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    782   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    783   | --sharedst | --shareds | --shared | --share | --shar \
    784   | --sha | --sh)
    785     ac_prev=sharedstatedir ;;
    786   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    787   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    788   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    789   | --sha=* | --sh=*)
    790     sharedstatedir=$ac_optarg ;;
    791 
    792   -site | --site | --sit)
    793     ac_prev=site ;;
    794   -site=* | --site=* | --sit=*)
    795     site=$ac_optarg ;;
    796 
    797   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    798     ac_prev=srcdir ;;
    799   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    800     srcdir=$ac_optarg ;;
    801 
    802   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    803   | --syscon | --sysco | --sysc | --sys | --sy)
    804     ac_prev=sysconfdir ;;
    805   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    806   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    807     sysconfdir=$ac_optarg ;;
    808 
    809   -target | --target | --targe | --targ | --tar | --ta | --t)
    810     ac_prev=target_alias ;;
    811   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    812     target_alias=$ac_optarg ;;
    813 
    814   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    815     verbose=yes ;;
    816 
    817   -version | --version | --versio | --versi | --vers | -V)
    818     ac_init_version=: ;;
    819 
    820   -with-* | --with-*)
    821     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    822     # Reject names that are not valid shell variable names.
    823     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    824       { echo "$as_me: error: invalid package name: $ac_package" >&2
    825    { (exit 1); exit 1; }; }
    826     ac_package=`echo $ac_package| sed 's/-/_/g'`
    827     case $ac_option in
    828       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    829       *) ac_optarg=yes ;;
    830     esac
    831     eval "with_$ac_package='$ac_optarg'" ;;
    832 
    833   -without-* | --without-*)
    834     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    835     # Reject names that are not valid shell variable names.
    836     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    837       { echo "$as_me: error: invalid package name: $ac_package" >&2
    838    { (exit 1); exit 1; }; }
    839     ac_package=`echo $ac_package | sed 's/-/_/g'`
    840     eval "with_$ac_package=no" ;;
    841 
    842   --x)
    843     # Obsolete; use --with-x.
    844     with_x=yes ;;
    845 
    846   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    847   | --x-incl | --x-inc | --x-in | --x-i)
    848     ac_prev=x_includes ;;
    849   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    850   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    851     x_includes=$ac_optarg ;;
    852 
    853   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    854   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    855     ac_prev=x_libraries ;;
    856   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    857   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    858     x_libraries=$ac_optarg ;;
    859 
    860   -*) { echo "$as_me: error: unrecognized option: $ac_option
    861 Try \`$0 --help' for more information." >&2
    862    { (exit 1); exit 1; }; }
    863     ;;
    864 
    865   *=*)
    866     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    867     # Reject names that are not valid shell variable names.
    868     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    869       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    870    { (exit 1); exit 1; }; }
    871     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    872     eval "$ac_envvar='$ac_optarg'"
    873     export $ac_envvar ;;
    874 
    875   *)
    876     # FIXME: should be removed in autoconf 3.0.
    877     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    878     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    879       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    880     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    881     ;;
    882 
    883   esac
    884 done
    885 
    886 if test -n "$ac_prev"; then
    887   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    888   { echo "$as_me: error: missing argument to $ac_option" >&2
    889    { (exit 1); exit 1; }; }
    890 fi
    891 
    892 # Be sure to have absolute directory names.
    893 for ac_var in exec_prefix prefix
    894 do
    895   eval ac_val=$`echo $ac_var`
    896   case $ac_val in
    897     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    898     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    899    { (exit 1); exit 1; }; };;
    900   esac
    901 done
    902 
    903 # Be sure to have absolute directory names.
    904 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    905 	      localstatedir libdir includedir oldincludedir infodir mandir
    906 do
    907   eval ac_val=$`echo $ac_var`
    908   case $ac_val in
    909     [\\/$]* | ?:[\\/]* ) ;;
    910     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    911    { (exit 1); exit 1; }; };;
    912   esac
    913 done
    914 
    915 # There might be people who depend on the old broken behavior: `$host'
    916 # used to hold the argument of --host etc.
    917 # FIXME: To remove some day.
    918 build=$build_alias
    919 host=$host_alias
    920 target=$target_alias
    921 
    922 # FIXME: To remove some day.
    923 if test "x$host_alias" != x; then
    924   if test "x$build_alias" = x; then
    925     cross_compiling=maybe
    926     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    927     If a cross compiler is detected then cross compile mode will be used." >&2
    928   elif test "x$build_alias" != "x$host_alias"; then
    929     cross_compiling=yes
    930   fi
    931 fi
    932 
    933 ac_tool_prefix=
    934 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    935 
    936 test "$silent" = yes && exec 6>/dev/null
    937 
    938 
    939 # Find the source files, if location was not specified.
    940 if test -z "$srcdir"; then
    941   ac_srcdir_defaulted=yes
    942   # Try the directory containing this script, then its parent.
    943   ac_confdir=`(dirname "$0") 2>/dev/null ||
    944 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    945 	 X"$0" : 'X\(//\)[^/]' \| \
    946 	 X"$0" : 'X\(//\)$' \| \
    947 	 X"$0" : 'X\(/\)' \| \
    948 	 .     : '\(.\)' 2>/dev/null ||
    949 echo X"$0" |
    950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    951   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    952   	  /^X\(\/\/\)$/{ s//\1/; q; }
    953   	  /^X\(\/\).*/{ s//\1/; q; }
    954   	  s/.*/./; q'`
    955   srcdir=$ac_confdir
    956   if test ! -r $srcdir/$ac_unique_file; then
    957     srcdir=..
    958   fi
    959 else
    960   ac_srcdir_defaulted=no
    961 fi
    962 if test ! -r $srcdir/$ac_unique_file; then
    963   if test "$ac_srcdir_defaulted" = yes; then
    964     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    965    { (exit 1); exit 1; }; }
    966   else
    967     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    968    { (exit 1); exit 1; }; }
    969   fi
    970 fi
    971 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    972   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    973    { (exit 1); exit 1; }; }
    974 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    975 ac_env_build_alias_set=${build_alias+set}
    976 ac_env_build_alias_value=$build_alias
    977 ac_cv_env_build_alias_set=${build_alias+set}
    978 ac_cv_env_build_alias_value=$build_alias
    979 ac_env_host_alias_set=${host_alias+set}
    980 ac_env_host_alias_value=$host_alias
    981 ac_cv_env_host_alias_set=${host_alias+set}
    982 ac_cv_env_host_alias_value=$host_alias
    983 ac_env_target_alias_set=${target_alias+set}
    984 ac_env_target_alias_value=$target_alias
    985 ac_cv_env_target_alias_set=${target_alias+set}
    986 ac_cv_env_target_alias_value=$target_alias
    987 ac_env_CC_set=${CC+set}
    988 ac_env_CC_value=$CC
    989 ac_cv_env_CC_set=${CC+set}
    990 ac_cv_env_CC_value=$CC
    991 ac_env_CFLAGS_set=${CFLAGS+set}
    992 ac_env_CFLAGS_value=$CFLAGS
    993 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    994 ac_cv_env_CFLAGS_value=$CFLAGS
    995 ac_env_LDFLAGS_set=${LDFLAGS+set}
    996 ac_env_LDFLAGS_value=$LDFLAGS
    997 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    998 ac_cv_env_LDFLAGS_value=$LDFLAGS
    999 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
   1000 ac_env_CPPFLAGS_value=$CPPFLAGS
   1001 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
   1002 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
   1003 ac_env_CXX_set=${CXX+set}
   1004 ac_env_CXX_value=$CXX
   1005 ac_cv_env_CXX_set=${CXX+set}
   1006 ac_cv_env_CXX_value=$CXX
   1007 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
   1008 ac_env_CXXFLAGS_value=$CXXFLAGS
   1009 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
   1010 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
   1011 ac_env_CPP_set=${CPP+set}
   1012 ac_env_CPP_value=$CPP
   1013 ac_cv_env_CPP_set=${CPP+set}
   1014 ac_cv_env_CPP_value=$CPP
   1015 
   1016 #
   1017 # Report the --help message.
   1018 #
   1019 if test "$ac_init_help" = "long"; then
   1020   # Omit some internal or obsolete options to make the list less imposing.
   1021   # This message is too long to be a string in the A/UX 3.1 sh.
   1022   cat <<_ACEOF
   1023 \`configure' configures this package to adapt to many kinds of systems.
   1024 
   1025 Usage: $0 [OPTION]... [VAR=VALUE]...
   1026 
   1027 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1028 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1029 
   1030 Defaults for the options are specified in brackets.
   1031 
   1032 Configuration:
   1033   -h, --help              display this help and exit
   1034       --help=short        display options specific to this package
   1035       --help=recursive    display the short help of all the included packages
   1036   -V, --version           display version information and exit
   1037   -q, --quiet, --silent   do not print \`checking...' messages
   1038       --cache-file=FILE   cache test results in FILE [disabled]
   1039   -C, --config-cache      alias for \`--cache-file=config.cache'
   1040   -n, --no-create         do not create output files
   1041       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1042 
   1043 _ACEOF
   1044 
   1045   cat <<_ACEOF
   1046 Installation directories:
   1047   --prefix=PREFIX         install architecture-independent files in PREFIX
   1048 			  [$ac_default_prefix]
   1049   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1050 			  [PREFIX]
   1051 
   1052 By default, \`make install' will install all the files in
   1053 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1054 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1055 for instance \`--prefix=\$HOME'.
   1056 
   1057 For better control, use the options below.
   1058 
   1059 Fine tuning of the installation directories:
   1060   --bindir=DIR           user executables [EPREFIX/bin]
   1061   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1062   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1063   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
   1064   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1065   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1066   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1067   --libdir=DIR           object code libraries [EPREFIX/lib]
   1068   --includedir=DIR       C header files [PREFIX/include]
   1069   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1070   --infodir=DIR          info documentation [PREFIX/info]
   1071   --mandir=DIR           man documentation [PREFIX/man]
   1072 _ACEOF
   1073 
   1074   cat <<\_ACEOF
   1075 
   1076 X features:
   1077   --x-includes=DIR    X include files are in DIR
   1078   --x-libraries=DIR   X library files are in DIR
   1079 _ACEOF
   1080 fi
   1081 
   1082 if test -n "$ac_init_help"; then
   1083 
   1084   cat <<\_ACEOF
   1085 
   1086 Optional Packages:
   1087   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1088   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1089   --with-x                use the X Window System
   1090        --with-appresdir=DIR    X11 application resource files
   1091   --with-alt-gs=LIST      alternative names for ghostscript executable
   1092   --with-gs=PROG          actual [/path/]name of ghostscript executable
   1093   --with-alt-awk=LIST     alternative names for awk executable
   1094   --with-awk=PROG         actual [/path/]name of awk executable
   1095 
   1096 Some influential environment variables:
   1097   CC          C compiler command
   1098   CFLAGS      C compiler flags
   1099   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1100               nonstandard directory <lib dir>
   1101   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
   1102               headers in a nonstandard directory <include dir>
   1103   CXX         C++ compiler command
   1104   CXXFLAGS    C++ compiler flags
   1105   CPP         C preprocessor
   1106 
   1107 Use these variables to override the choices made by `configure' or to help
   1108 it to find libraries and programs with nonstandard names/locations.
   1109 
   1110 _ACEOF
   1111 fi
   1112 
   1113 if test "$ac_init_help" = "recursive"; then
   1114   # If there are subdirs, report their specific --help.
   1115   ac_popdir=`pwd`
   1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1117     test -d $ac_dir || continue
   1118     ac_builddir=.
   1119 
   1120 if test "$ac_dir" != .; then
   1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1122   # A "../" for each directory in $ac_dir_suffix.
   1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   1124 else
   1125   ac_dir_suffix= ac_top_builddir=
   1126 fi
   1127 
   1128 case $srcdir in
   1129   .)  # No --srcdir option.  We are building in place.
   1130     ac_srcdir=.
   1131     if test -z "$ac_top_builddir"; then
   1132        ac_top_srcdir=.
   1133     else
   1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   1135     fi ;;
   1136   [\\/]* | ?:[\\/]* )  # Absolute name.
   1137     ac_srcdir=$srcdir$ac_dir_suffix;
   1138     ac_top_srcdir=$srcdir ;;
   1139   *) # Relative name.
   1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   1142 esac
   1143 
   1144 # Do not use `cd foo && pwd` to compute absolute names, because
   1145 # the directories may not exist.
   1146 case `pwd` in
   1147 .) ac_abs_builddir="$ac_dir";;
   1148 *)
   1149   case "$ac_dir" in
   1150   .) ac_abs_builddir=`pwd`;;
   1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   1153   esac;;
   1154 esac
   1155 case $ac_abs_builddir in
   1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
   1157 *)
   1158   case ${ac_top_builddir}. in
   1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
   1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   1162   esac;;
   1163 esac
   1164 case $ac_abs_builddir in
   1165 .) ac_abs_srcdir=$ac_srcdir;;
   1166 *)
   1167   case $ac_srcdir in
   1168   .) ac_abs_srcdir=$ac_abs_builddir;;
   1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   1171   esac;;
   1172 esac
   1173 case $ac_abs_builddir in
   1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
   1175 *)
   1176   case $ac_top_srcdir in
   1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   1180   esac;;
   1181 esac
   1182 
   1183     cd $ac_dir
   1184     # Check for guested configure; otherwise get Cygnus style configure.
   1185     if test -f $ac_srcdir/configure.gnu; then
   1186       echo
   1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
   1188     elif test -f $ac_srcdir/configure; then
   1189       echo
   1190       $SHELL $ac_srcdir/configure  --help=recursive
   1191     elif test -f $ac_srcdir/configure.ac ||
   1192 	   test -f $ac_srcdir/configure.in; then
   1193       echo
   1194       $ac_configure --help
   1195     else
   1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1197     fi
   1198     cd "$ac_popdir"
   1199   done
   1200 fi
   1201 
   1202 test -n "$ac_init_help" && exit 0
   1203 if $ac_init_version; then
   1204   cat <<\_ACEOF
   1205 
   1206 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
   1207 2003, 2004 Free Software Foundation, Inc.
   1208 This configure script is free software; the Free Software Foundation
   1209 gives unlimited permission to copy, distribute and modify it.
   1210 _ACEOF
   1211   exit 0
   1212 fi
   1213 exec 5>config.log
   1214 cat >&5 <<_ACEOF
   1215 This file contains any messages produced by compilers while
   1216 running configure, to aid debugging if configure makes a mistake.
   1217 
   1218 It was created by $as_me, which was
   1219 generated by GNU Autoconf 2.59b.  Invocation command line was
   1220 
   1221   $ $0 $@
   1222 
   1223 _ACEOF
   1224 {
   1225 cat <<_ASUNAME
   1226 ## --------- ##
   1227 ## Platform. ##
   1228 ## --------- ##
   1229 
   1230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1235 
   1236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1237 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1238 
   1239 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1240 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1242 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
   1243 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1244 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1245 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1246 
   1247 _ASUNAME
   1248 
   1249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1250 for as_dir in $PATH
   1251 do
   1252   IFS=$as_save_IFS
   1253   test -z "$as_dir" && as_dir=.
   1254   echo "PATH: $as_dir"
   1255 done
   1256 
   1257 } >&5
   1258 
   1259 cat >&5 <<_ACEOF
   1260 
   1261 
   1262 ## ----------- ##
   1263 ## Core tests. ##
   1264 ## ----------- ##
   1265 
   1266 _ACEOF
   1267 
   1268 
   1269 # Keep a trace of the command line.
   1270 # Strip out --no-create and --no-recursion so they do not pile up.
   1271 # Strip out --silent because we don't want to record it for future runs.
   1272 # Also quote any args containing shell meta-characters.
   1273 # Make two passes to allow for proper duplicate-argument suppression.
   1274 ac_configure_args=
   1275 ac_configure_args0=
   1276 ac_configure_args1=
   1277 ac_sep=
   1278 ac_must_keep_next=false
   1279 for ac_pass in 1 2
   1280 do
   1281   for ac_arg
   1282   do
   1283     case $ac_arg in
   1284     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1285     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1286     | -silent | --silent | --silen | --sile | --sil)
   1287       continue ;;
   1288     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1289       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1290     esac
   1291     case $ac_pass in
   1292     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1293     2)
   1294       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1295       if test $ac_must_keep_next = true; then
   1296 	ac_must_keep_next=false # Got value, back to normal.
   1297       else
   1298 	case $ac_arg in
   1299 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1300 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1301 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1302 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1303 	    case "$ac_configure_args0 " in
   1304 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1305 	    esac
   1306 	    ;;
   1307 	  -* ) ac_must_keep_next=true ;;
   1308 	esac
   1309       fi
   1310       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
   1311       # Get rid of the leading space.
   1312       ac_sep=" "
   1313       ;;
   1314     esac
   1315   done
   1316 done
   1317 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1318 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1319 
   1320 # When interrupted or exit'd, cleanup temporary files, and complete
   1321 # config.log.  We remove comments because anyway the quotes in there
   1322 # would cause problems or look ugly.
   1323 # WARNING: Be sure not to use single quotes in there, as some shells,
   1324 # such as our DU 5.0 friend, will then `close' the trap.
   1325 trap 'exit_status=$?
   1326   # Save into config.log some information that might help in debugging.
   1327   {
   1328     echo
   1329 
   1330     cat <<\_ASBOX
   1331 ## ---------------- ##
   1332 ## Cache variables. ##
   1333 ## ---------------- ##
   1334 _ASBOX
   1335     echo
   1336     # The following way of writing the cache mishandles newlines in values,
   1337 {
   1338   (set) 2>&1 |
   1339     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
   1340     *ac_space=\ *)
   1341       sed -n \
   1342 	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
   1343 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
   1344       ;;
   1345     *)
   1346       sed -n \
   1347 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   1348       ;;
   1349     esac;
   1350 }
   1351     echo
   1352 
   1353     cat <<\_ASBOX
   1354 ## ----------------- ##
   1355 ## Output variables. ##
   1356 ## ----------------- ##
   1357 _ASBOX
   1358     echo
   1359     for ac_var in $ac_subst_vars
   1360     do
   1361       eval ac_val=$`echo $ac_var`
   1362       echo "$ac_var='"'"'$ac_val'"'"'"
   1363     done | sort
   1364     echo
   1365 
   1366     if test -n "$ac_subst_files"; then
   1367       cat <<\_ASBOX
   1368 ## ------------- ##
   1369 ## Output files. ##
   1370 ## ------------- ##
   1371 _ASBOX
   1372       echo
   1373       for ac_var in $ac_subst_files
   1374       do
   1375 	eval ac_val=$`echo $ac_var`
   1376 	echo "$ac_var='"'"'$ac_val'"'"'"
   1377       done | sort
   1378       echo
   1379     fi
   1380 
   1381     if test -s confdefs.h; then
   1382       cat <<\_ASBOX
   1383 ## ----------- ##
   1384 ## confdefs.h. ##
   1385 ## ----------- ##
   1386 _ASBOX
   1387       echo
   1388       sed "/^$/d" confdefs.h | sort
   1389       echo
   1390     fi
   1391     test "$ac_signal" != 0 &&
   1392       echo "$as_me: caught signal $ac_signal"
   1393     echo "$as_me: exit $exit_status"
   1394   } >&5
   1395   rm -f core *.core &&
   1396   rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1397     exit $exit_status
   1398      ' 0
   1399 for ac_signal in 1 2 13 15; do
   1400   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1401 done
   1402 ac_signal=0
   1403 
   1404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1405 rm -f -r conftest* confdefs.h
   1406 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
   1407 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
   1408 ac_space=' '
   1409 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
   1410 
   1411 # Predefined preprocessor variables.
   1412 
   1413 cat >>confdefs.h <<_ACEOF
   1414 #define PACKAGE_NAME "$PACKAGE_NAME"
   1415 _ACEOF
   1416 
   1417 
   1418 cat >>confdefs.h <<_ACEOF
   1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1420 _ACEOF
   1421 
   1422 
   1423 cat >>confdefs.h <<_ACEOF
   1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1425 _ACEOF
   1426 
   1427 
   1428 cat >>confdefs.h <<_ACEOF
   1429 #define PACKAGE_STRING "$PACKAGE_STRING"
   1430 _ACEOF
   1431 
   1432 
   1433 cat >>confdefs.h <<_ACEOF
   1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1435 _ACEOF
   1436 
   1437 
   1438 # Let the site file select an alternate cache file if it wants to.
   1439 # Prefer explicitly selected file to automatically selected ones.
   1440 if test -z "$CONFIG_SITE"; then
   1441   if test "x$prefix" != xNONE; then
   1442     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   1443   else
   1444     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   1445   fi
   1446 fi
   1447 for ac_site_file in $CONFIG_SITE; do
   1448   if test -r "$ac_site_file"; then
   1449     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1450 echo "$as_me: loading site script $ac_site_file" >&6;}
   1451     sed 's/^/| /' "$ac_site_file" >&5
   1452     . "$ac_site_file"
   1453   fi
   1454 done
   1455 
   1456 if test -r "$cache_file"; then
   1457   # Some versions of bash will fail to source /dev/null (special
   1458   # files actually), so we avoid doing that.
   1459   if test -f "$cache_file"; then
   1460     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1461 echo "$as_me: loading cache $cache_file" >&6;}
   1462     case $cache_file in
   1463       [\\/]* | ?:[\\/]* ) . $cache_file;;
   1464       *)                      . ./$cache_file;;
   1465     esac
   1466   fi
   1467 else
   1468   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1469 echo "$as_me: creating cache $cache_file" >&6;}
   1470   >$cache_file
   1471 fi
   1472 
   1473 # Check that the precious variables saved in the cache have kept the same
   1474 # value.
   1475 ac_cache_corrupted=false
   1476 for ac_var in `(set) 2>&1 |
   1477 	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
   1478   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1479   eval ac_new_set=\$ac_env_${ac_var}_set
   1480   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
   1481   eval ac_new_val="\$ac_env_${ac_var}_value"
   1482   case $ac_old_set,$ac_new_set in
   1483     set,)
   1484       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1485 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1486       ac_cache_corrupted=: ;;
   1487     ,set)
   1488       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1489 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1490       ac_cache_corrupted=: ;;
   1491     ,);;
   1492     *)
   1493       if test "x$ac_old_val" != "x$ac_new_val"; then
   1494 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1495 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1496 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1497 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1498 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1499 echo "$as_me:   current value: $ac_new_val" >&2;}
   1500 	ac_cache_corrupted=:
   1501       fi;;
   1502   esac
   1503   # Pass precious variables to config.status.
   1504   if test "$ac_new_set" = set; then
   1505     case $ac_new_val in
   1506     *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
   1507       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1508     *) ac_arg=$ac_var=$ac_new_val ;;
   1509     esac
   1510     case " $ac_configure_args " in
   1511       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1512       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1513     esac
   1514   fi
   1515 done
   1516 if $ac_cache_corrupted; then
   1517   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1518 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1519   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1520 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1521    { (exit 1); exit 1; }; }
   1522 fi
   1523 
   1524 ac_ext=c
   1525 ac_cpp='$CPP $CPPFLAGS'
   1526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1529 
   1530 
   1531 
   1532 
   1533 
   1534 
   1535 
   1536 
   1537 
   1538 
   1539 
   1540 
   1541 
   1542 
   1543 
   1544 
   1545 
   1546 
   1547 
   1548 
   1549 
   1550           ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
   1551 
   1552 
   1553 
   1554 # checks for programs
   1555 ac_ext=c
   1556 ac_cpp='$CPP $CPPFLAGS'
   1557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1560 if test -n "$ac_tool_prefix"; then
   1561   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   1562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1565 if test "${ac_cv_prog_CC+set}" = set; then
   1566   echo $ECHO_N "(cached) $ECHO_C" >&6
   1567 else
   1568   if test -n "$CC"; then
   1569   ac_cv_prog_CC="$CC" # Let the user override the test.
   1570 else
   1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1572 for as_dir in $PATH
   1573 do
   1574   IFS=$as_save_IFS
   1575   test -z "$as_dir" && as_dir=.
   1576   for ac_exec_ext in '' $ac_executable_extensions; do
   1577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1578     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   1579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1580     break 2
   1581   fi
   1582 done
   1583 done
   1584 
   1585 fi
   1586 fi
   1587 CC=$ac_cv_prog_CC
   1588 if test -n "$CC"; then
   1589   echo "$as_me:$LINENO: result: $CC" >&5
   1590 echo "${ECHO_T}$CC" >&6
   1591 else
   1592   echo "$as_me:$LINENO: result: no" >&5
   1593 echo "${ECHO_T}no" >&6
   1594 fi
   1595 
   1596 fi
   1597 if test -z "$ac_cv_prog_CC"; then
   1598   ac_ct_CC=$CC
   1599   # Extract the first word of "gcc", so it can be a program name with args.
   1600 set dummy gcc; ac_word=$2
   1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1604   echo $ECHO_N "(cached) $ECHO_C" >&6
   1605 else
   1606   if test -n "$ac_ct_CC"; then
   1607   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1608 else
   1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1610 for as_dir in $PATH
   1611 do
   1612   IFS=$as_save_IFS
   1613   test -z "$as_dir" && as_dir=.
   1614   for ac_exec_ext in '' $ac_executable_extensions; do
   1615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1616     ac_cv_prog_ac_ct_CC="gcc"
   1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1618     break 2
   1619   fi
   1620 done
   1621 done
   1622 
   1623 fi
   1624 fi
   1625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1626 if test -n "$ac_ct_CC"; then
   1627   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1628 echo "${ECHO_T}$ac_ct_CC" >&6
   1629 else
   1630   echo "$as_me:$LINENO: result: no" >&5
   1631 echo "${ECHO_T}no" >&6
   1632 fi
   1633 
   1634   if test "x$ac_ct_CC" = x; then
   1635     CC=""
   1636   else
   1637     if test "$build" != "$host"; then
   1638       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1639 whose name does not start with the host triplet.  If you think this
   1640 configuration is useful to you, please write to autoconf@gnu.org." >&5
   1641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1642 whose name does not start with the host triplet.  If you think this
   1643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1644     fi
   1645     CC=$ac_ct_CC
   1646   fi
   1647 else
   1648   CC="$ac_cv_prog_CC"
   1649 fi
   1650 
   1651 if test -z "$CC"; then
   1652   if test -n "$ac_tool_prefix"; then
   1653   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   1654 set dummy ${ac_tool_prefix}cc; ac_word=$2
   1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1657 if test "${ac_cv_prog_CC+set}" = set; then
   1658   echo $ECHO_N "(cached) $ECHO_C" >&6
   1659 else
   1660   if test -n "$CC"; then
   1661   ac_cv_prog_CC="$CC" # Let the user override the test.
   1662 else
   1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1664 for as_dir in $PATH
   1665 do
   1666   IFS=$as_save_IFS
   1667   test -z "$as_dir" && as_dir=.
   1668   for ac_exec_ext in '' $ac_executable_extensions; do
   1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1670     ac_cv_prog_CC="${ac_tool_prefix}cc"
   1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1672     break 2
   1673   fi
   1674 done
   1675 done
   1676 
   1677 fi
   1678 fi
   1679 CC=$ac_cv_prog_CC
   1680 if test -n "$CC"; then
   1681   echo "$as_me:$LINENO: result: $CC" >&5
   1682 echo "${ECHO_T}$CC" >&6
   1683 else
   1684   echo "$as_me:$LINENO: result: no" >&5
   1685 echo "${ECHO_T}no" >&6
   1686 fi
   1687 
   1688 fi
   1689 if test -z "$ac_cv_prog_CC"; then
   1690   ac_ct_CC=$CC
   1691   # Extract the first word of "cc", so it can be a program name with args.
   1692 set dummy cc; ac_word=$2
   1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1696   echo $ECHO_N "(cached) $ECHO_C" >&6
   1697 else
   1698   if test -n "$ac_ct_CC"; then
   1699   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1700 else
   1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1702 for as_dir in $PATH
   1703 do
   1704   IFS=$as_save_IFS
   1705   test -z "$as_dir" && as_dir=.
   1706   for ac_exec_ext in '' $ac_executable_extensions; do
   1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1708     ac_cv_prog_ac_ct_CC="cc"
   1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1710     break 2
   1711   fi
   1712 done
   1713 done
   1714 
   1715 fi
   1716 fi
   1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1718 if test -n "$ac_ct_CC"; then
   1719   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1720 echo "${ECHO_T}$ac_ct_CC" >&6
   1721 else
   1722   echo "$as_me:$LINENO: result: no" >&5
   1723 echo "${ECHO_T}no" >&6
   1724 fi
   1725 
   1726   if test "x$ac_ct_CC" = x; then
   1727     CC=""
   1728   else
   1729     if test "$build" != "$host"; then
   1730       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1731 whose name does not start with the host triplet.  If you think this
   1732 configuration is useful to you, please write to autoconf@gnu.org." >&5
   1733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1734 whose name does not start with the host triplet.  If you think this
   1735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1736     fi
   1737     CC=$ac_ct_CC
   1738   fi
   1739 else
   1740   CC="$ac_cv_prog_CC"
   1741 fi
   1742 
   1743 fi
   1744 if test -z "$CC"; then
   1745   # Extract the first word of "cc", so it can be a program name with args.
   1746 set dummy cc; ac_word=$2
   1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1749 if test "${ac_cv_prog_CC+set}" = set; then
   1750   echo $ECHO_N "(cached) $ECHO_C" >&6
   1751 else
   1752   if test -n "$CC"; then
   1753   ac_cv_prog_CC="$CC" # Let the user override the test.
   1754 else
   1755   ac_prog_rejected=no
   1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1757 for as_dir in $PATH
   1758 do
   1759   IFS=$as_save_IFS
   1760   test -z "$as_dir" && as_dir=.
   1761   for ac_exec_ext in '' $ac_executable_extensions; do
   1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1763     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   1764        ac_prog_rejected=yes
   1765        continue
   1766      fi
   1767     ac_cv_prog_CC="cc"
   1768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1769     break 2
   1770   fi
   1771 done
   1772 done
   1773 
   1774 if test $ac_prog_rejected = yes; then
   1775   # We found a bogon in the path, so make sure we never use it.
   1776   set dummy $ac_cv_prog_CC
   1777   shift
   1778   if test $# != 0; then
   1779     # We chose a different compiler from the bogus one.
   1780     # However, it has the same basename, so the bogon will be chosen
   1781     # first if we set CC to just the basename; use the full file name.
   1782     shift
   1783     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   1784   fi
   1785 fi
   1786 fi
   1787 fi
   1788 CC=$ac_cv_prog_CC
   1789 if test -n "$CC"; then
   1790   echo "$as_me:$LINENO: result: $CC" >&5
   1791 echo "${ECHO_T}$CC" >&6
   1792 else
   1793   echo "$as_me:$LINENO: result: no" >&5
   1794 echo "${ECHO_T}no" >&6
   1795 fi
   1796 
   1797 fi
   1798 if test -z "$CC"; then
   1799   if test -n "$ac_tool_prefix"; then
   1800   for ac_prog in cl
   1801   do
   1802     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   1803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1806 if test "${ac_cv_prog_CC+set}" = set; then
   1807   echo $ECHO_N "(cached) $ECHO_C" >&6
   1808 else
   1809   if test -n "$CC"; then
   1810   ac_cv_prog_CC="$CC" # Let the user override the test.
   1811 else
   1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1813 for as_dir in $PATH
   1814 do
   1815   IFS=$as_save_IFS
   1816   test -z "$as_dir" && as_dir=.
   1817   for ac_exec_ext in '' $ac_executable_extensions; do
   1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1819     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1821     break 2
   1822   fi
   1823 done
   1824 done
   1825 
   1826 fi
   1827 fi
   1828 CC=$ac_cv_prog_CC
   1829 if test -n "$CC"; then
   1830   echo "$as_me:$LINENO: result: $CC" >&5
   1831 echo "${ECHO_T}$CC" >&6
   1832 else
   1833   echo "$as_me:$LINENO: result: no" >&5
   1834 echo "${ECHO_T}no" >&6
   1835 fi
   1836 
   1837     test -n "$CC" && break
   1838   done
   1839 fi
   1840 if test -z "$CC"; then
   1841   ac_ct_CC=$CC
   1842   for ac_prog in cl
   1843 do
   1844   # Extract the first word of "$ac_prog", so it can be a program name with args.
   1845 set dummy $ac_prog; ac_word=$2
   1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
   1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   1849   echo $ECHO_N "(cached) $ECHO_C" >&6
   1850 else
   1851   if test -n "$ac_ct_CC"; then
   1852   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   1853 else
   1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1855 for as_dir in $PATH
   1856 do
   1857   IFS=$as_save_IFS
   1858   test -z "$as_dir" && as_dir=.
   1859   for ac_exec_ext in '' $ac_executable_extensions; do
   1860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   1861     ac_cv_prog_ac_ct_CC="$ac_prog"
   1862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   1863     break 2
   1864   fi
   1865 done
   1866 done
   1867 
   1868 fi
   1869 fi
   1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   1871 if test -n "$ac_ct_CC"; then
   1872   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   1873 echo "${ECHO_T}$ac_ct_CC" >&6
   1874 else
   1875   echo "$as_me:$LINENO: result: no" >&5
   1876 echo "${ECHO_T}no" >&6
   1877 fi
   1878 
   1879   test -n "$ac_ct_CC" && break
   1880 done
   1881 
   1882   if test "x$ac_ct_CC" = x; then
   1883     CC=""
   1884   else
   1885     if test "$build" != "$host"; then
   1886       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   1887 whose name does not start with the host triplet.  If you think this
   1888 configuration is useful to you, please write to autoconf@gnu.org." >&5
   1889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   1890 whose name does not start with the host triplet.  If you think this
   1891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   1892     fi
   1893     CC=$ac_ct_CC
   1894   fi
   1895 fi
   1896 
   1897 fi
   1898 
   1899 
   1900 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   1901 See \`config.log' for more details." >&5
   1902 echo "$as_me: error: no acceptable C compiler found in \$PATH
   1903 See \`config.log' for more details." >&2;}
   1904    { (exit 1); exit 1; }; }
   1905 
   1906 # Provide some information about the compiler.
   1907 echo "$as_me:$LINENO:" \
   1908      "checking for C compiler version" >&5
   1909 ac_compiler=`set X $ac_compile; echo $2`
   1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   1911   (eval $ac_compiler --version </dev/null >&5) 2>&5
   1912   ac_status=$?
   1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1914   (exit $ac_status); }
   1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   1916   (eval $ac_compiler -v </dev/null >&5) 2>&5
   1917   ac_status=$?
   1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1919   (exit $ac_status); }
   1920 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   1921   (eval $ac_compiler -V </dev/null >&5) 2>&5
   1922   ac_status=$?
   1923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1924   (exit $ac_status); }
   1925 
   1926 cat >conftest.$ac_ext <<_ACEOF
   1927 /* confdefs.h.  */
   1928 _ACEOF
   1929 cat confdefs.h >>conftest.$ac_ext
   1930 cat >>conftest.$ac_ext <<_ACEOF
   1931 /* end confdefs.h.  */
   1932 
   1933 int
   1934 main ()
   1935 {
   1936 
   1937   ;
   1938   return 0;
   1939 }
   1940 _ACEOF
   1941 ac_clean_files_save=$ac_clean_files
   1942 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   1943 # Try to create an executable without -o first, disregard a.out.
   1944 # It will help us diagnose broken compilers, and finding out an intuition
   1945 # of exeext.
   1946 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   1947 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
   1948 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   1949 #
   1950 # List of possible output files, starting from the most likely.
   1951 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   1952 # only as a last resort.  b.out is created by i960 compilers.
   1953 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   1954 #
   1955 # The IRIX 6 linker writes into existing files which may not be
   1956 # executable, retaining their permissions.  Remove them first so a
   1957 # subsequent execution test works.
   1958 ac_rmfiles=
   1959 for ac_file in $ac_files
   1960 do
   1961   case $ac_file in
   1962     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
   1963     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   1964   esac
   1965 done
   1966 rm -f $ac_rmfiles
   1967 
   1968 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
   1969   (eval $ac_link_default) 2>&5
   1970   ac_status=$?
   1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1972   (exit $ac_status); }; then
   1973   # Be careful to initialize this variable, since it used to be cached.
   1974 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
   1975 ac_cv_exeext=
   1976 for ac_file in $ac_files
   1977 do
   1978   test -f "$ac_file" || continue
   1979   case $ac_file in
   1980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
   1981 	;;
   1982     [ab].out )
   1983 	# We found the default executable, but exeext='' is most
   1984 	# certainly right.
   1985 	break;;
   1986     *.* )
   1987 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   1988 	# FIXME: I believe we export ac_cv_exeext for Libtool,
   1989 	# but it would be cool to find out if it's true.  Does anybody
   1990 	# maintain Libtool? --akim.
   1991 	export ac_cv_exeext
   1992 	break;;
   1993     * )
   1994 	break;;
   1995   esac
   1996 done
   1997 else
   1998   echo "$as_me: failed program was:" >&5
   1999 sed 's/^/| /' conftest.$ac_ext >&5
   2000 
   2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2002 See \`config.log' for more details." >&5
   2003 echo "$as_me: error: C compiler cannot create executables
   2004 See \`config.log' for more details." >&2;}
   2005    { (exit 77); exit 77; }; }
   2006 fi
   2007 
   2008 ac_exeext=$ac_cv_exeext
   2009 echo "$as_me:$LINENO: result: $ac_file" >&5
   2010 echo "${ECHO_T}$ac_file" >&6
   2011 
   2012 # Check the compiler produces executables we can run.  If not, either
   2013 # the compiler is broken, or we cross compile.
   2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
   2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2017 # If not cross compiling, check that we can run a simple program.
   2018 if test "$cross_compiling" != yes; then
   2019   if { ac_try='./$ac_file'
   2020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2021   (eval $ac_try) 2>&5
   2022   ac_status=$?
   2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2024   (exit $ac_status); }; }; then
   2025     cross_compiling=no
   2026   else
   2027     if test "$cross_compiling" = maybe; then
   2028 	cross_compiling=yes
   2029     else
   2030 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2031 If you meant to cross compile, use \`--host'.
   2032 See \`config.log' for more details." >&5
   2033 echo "$as_me: error: cannot run C compiled programs.
   2034 If you meant to cross compile, use \`--host'.
   2035 See \`config.log' for more details." >&2;}
   2036    { (exit 1); exit 1; }; }
   2037     fi
   2038   fi
   2039 fi
   2040 echo "$as_me:$LINENO: result: yes" >&5
   2041 echo "${ECHO_T}yes" >&6
   2042 
   2043 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2044 ac_clean_files=$ac_clean_files_save
   2045 # Check the compiler produces executables we can run.  If not, either
   2046 # the compiler is broken, or we cross compile.
   2047 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2048 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
   2049 echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2050 echo "${ECHO_T}$cross_compiling" >&6
   2051 
   2052 echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2053 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
   2054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   2055   (eval $ac_link) 2>&5
   2056   ac_status=$?
   2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2058   (exit $ac_status); }; then
   2059   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2060 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2061 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2062 # `rm'.
   2063 for ac_file in conftest.exe conftest conftest.*; do
   2064   test -f "$ac_file" || continue
   2065   case $ac_file in
   2066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
   2067     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2068 	  export ac_cv_exeext
   2069 	  break;;
   2070     * ) break;;
   2071   esac
   2072 done
   2073 else
   2074   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2075 See \`config.log' for more details." >&5
   2076 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2077 See \`config.log' for more details." >&2;}
   2078    { (exit 1); exit 1; }; }
   2079 fi
   2080 
   2081 rm -f conftest$ac_cv_exeext
   2082 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2083 echo "${ECHO_T}$ac_cv_exeext" >&6
   2084 
   2085 rm -f conftest.$ac_ext
   2086 EXEEXT=$ac_cv_exeext
   2087 ac_exeext=$EXEEXT
   2088 echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2089 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
   2090 if test "${ac_cv_objext+set}" = set; then
   2091   echo $ECHO_N "(cached) $ECHO_C" >&6
   2092 else
   2093   cat >conftest.$ac_ext <<_ACEOF
   2094 /* confdefs.h.  */
   2095 _ACEOF
   2096 cat confdefs.h >>conftest.$ac_ext
   2097 cat >>conftest.$ac_ext <<_ACEOF
   2098 /* end confdefs.h.  */
   2099 
   2100 int
   2101 main ()
   2102 {
   2103 
   2104   ;
   2105   return 0;
   2106 }
   2107 _ACEOF
   2108 rm -f conftest.o conftest.obj
   2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2110   (eval $ac_compile) 2>&5
   2111   ac_status=$?
   2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2113   (exit $ac_status); }; then
   2114   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   2115   case $ac_file in
   2116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
   2117     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2118        break;;
   2119   esac
   2120 done
   2121 else
   2122   echo "$as_me: failed program was:" >&5
   2123 sed 's/^/| /' conftest.$ac_ext >&5
   2124 
   2125 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2126 See \`config.log' for more details." >&5
   2127 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2128 See \`config.log' for more details." >&2;}
   2129    { (exit 1); exit 1; }; }
   2130 fi
   2131 
   2132 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2133 fi
   2134 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2135 echo "${ECHO_T}$ac_cv_objext" >&6
   2136 OBJEXT=$ac_cv_objext
   2137 ac_objext=$OBJEXT
   2138 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2139 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
   2140 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2141   echo $ECHO_N "(cached) $ECHO_C" >&6
   2142 else
   2143   cat >conftest.$ac_ext <<_ACEOF
   2144 /* confdefs.h.  */
   2145 _ACEOF
   2146 cat confdefs.h >>conftest.$ac_ext
   2147 cat >>conftest.$ac_ext <<_ACEOF
   2148 /* end confdefs.h.  */
   2149 
   2150 int
   2151 main ()
   2152 {
   2153 #ifndef __GNUC__
   2154        choke me
   2155 #endif
   2156 
   2157   ;
   2158   return 0;
   2159 }
   2160 _ACEOF
   2161 rm -f conftest.$ac_objext
   2162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2163   (eval $ac_compile) 2>conftest.er1
   2164   ac_status=$?
   2165   grep -v '^ *+' conftest.er1 >conftest.err
   2166   rm -f conftest.er1
   2167   cat conftest.err >&5
   2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2169   (exit $ac_status); } &&
   2170 	 { ac_try='test -z "$ac_c_werror_flag"
   2171 			 || test ! -s conftest.err'
   2172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2173   (eval $ac_try) 2>&5
   2174   ac_status=$?
   2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2176   (exit $ac_status); }; } &&
   2177 	 { ac_try='test -s conftest.$ac_objext'
   2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2179   (eval $ac_try) 2>&5
   2180   ac_status=$?
   2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2182   (exit $ac_status); }; }; then
   2183   ac_compiler_gnu=yes
   2184 else
   2185   echo "$as_me: failed program was:" >&5
   2186 sed 's/^/| /' conftest.$ac_ext >&5
   2187 
   2188 ac_compiler_gnu=no
   2189 fi
   2190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2191 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2192 
   2193 fi
   2194 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2195 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
   2196 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2197 ac_test_CFLAGS=${CFLAGS+set}
   2198 ac_save_CFLAGS=$CFLAGS
   2199 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2200 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
   2201 if test "${ac_cv_prog_cc_g+set}" = set; then
   2202   echo $ECHO_N "(cached) $ECHO_C" >&6
   2203 else
   2204   ac_save_c_werror_flag=$ac_c_werror_flag
   2205    ac_c_werror_flag=yes
   2206    ac_cv_prog_cc_g=no
   2207    CFLAGS="-g"
   2208    cat >conftest.$ac_ext <<_ACEOF
   2209 /* confdefs.h.  */
   2210 _ACEOF
   2211 cat confdefs.h >>conftest.$ac_ext
   2212 cat >>conftest.$ac_ext <<_ACEOF
   2213 /* end confdefs.h.  */
   2214 
   2215 int
   2216 main ()
   2217 {
   2218 
   2219   ;
   2220   return 0;
   2221 }
   2222 _ACEOF
   2223 rm -f conftest.$ac_objext
   2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2225   (eval $ac_compile) 2>conftest.er1
   2226   ac_status=$?
   2227   grep -v '^ *+' conftest.er1 >conftest.err
   2228   rm -f conftest.er1
   2229   cat conftest.err >&5
   2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2231   (exit $ac_status); } &&
   2232 	 { ac_try='test -z "$ac_c_werror_flag"
   2233 			 || test ! -s conftest.err'
   2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2235   (eval $ac_try) 2>&5
   2236   ac_status=$?
   2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2238   (exit $ac_status); }; } &&
   2239 	 { ac_try='test -s conftest.$ac_objext'
   2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2241   (eval $ac_try) 2>&5
   2242   ac_status=$?
   2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2244   (exit $ac_status); }; }; then
   2245   ac_cv_prog_cc_g=yes
   2246 else
   2247   echo "$as_me: failed program was:" >&5
   2248 sed 's/^/| /' conftest.$ac_ext >&5
   2249 
   2250 CFLAGS=""
   2251       cat >conftest.$ac_ext <<_ACEOF
   2252 /* confdefs.h.  */
   2253 _ACEOF
   2254 cat confdefs.h >>conftest.$ac_ext
   2255 cat >>conftest.$ac_ext <<_ACEOF
   2256 /* end confdefs.h.  */
   2257 
   2258 int
   2259 main ()
   2260 {
   2261 
   2262   ;
   2263   return 0;
   2264 }
   2265 _ACEOF
   2266 rm -f conftest.$ac_objext
   2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2268   (eval $ac_compile) 2>conftest.er1
   2269   ac_status=$?
   2270   grep -v '^ *+' conftest.er1 >conftest.err
   2271   rm -f conftest.er1
   2272   cat conftest.err >&5
   2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2274   (exit $ac_status); } &&
   2275 	 { ac_try='test -z "$ac_c_werror_flag"
   2276 			 || test ! -s conftest.err'
   2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2278   (eval $ac_try) 2>&5
   2279   ac_status=$?
   2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2281   (exit $ac_status); }; } &&
   2282 	 { ac_try='test -s conftest.$ac_objext'
   2283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2284   (eval $ac_try) 2>&5
   2285   ac_status=$?
   2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2287   (exit $ac_status); }; }; then
   2288   :
   2289 else
   2290   echo "$as_me: failed program was:" >&5
   2291 sed 's/^/| /' conftest.$ac_ext >&5
   2292 
   2293 ac_c_werror_flag=$ac_save_c_werror_flag
   2294 	 CFLAGS="-g"
   2295 	 cat >conftest.$ac_ext <<_ACEOF
   2296 /* confdefs.h.  */
   2297 _ACEOF
   2298 cat confdefs.h >>conftest.$ac_ext
   2299 cat >>conftest.$ac_ext <<_ACEOF
   2300 /* end confdefs.h.  */
   2301 
   2302 int
   2303 main ()
   2304 {
   2305 
   2306   ;
   2307   return 0;
   2308 }
   2309 _ACEOF
   2310 rm -f conftest.$ac_objext
   2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2312   (eval $ac_compile) 2>conftest.er1
   2313   ac_status=$?
   2314   grep -v '^ *+' conftest.er1 >conftest.err
   2315   rm -f conftest.er1
   2316   cat conftest.err >&5
   2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2318   (exit $ac_status); } &&
   2319 	 { ac_try='test -z "$ac_c_werror_flag"
   2320 			 || test ! -s conftest.err'
   2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2322   (eval $ac_try) 2>&5
   2323   ac_status=$?
   2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2325   (exit $ac_status); }; } &&
   2326 	 { ac_try='test -s conftest.$ac_objext'
   2327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2328   (eval $ac_try) 2>&5
   2329   ac_status=$?
   2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2331   (exit $ac_status); }; }; then
   2332   ac_cv_prog_cc_g=yes
   2333 else
   2334   echo "$as_me: failed program was:" >&5
   2335 sed 's/^/| /' conftest.$ac_ext >&5
   2336 
   2337 fi
   2338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2339 fi
   2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2341 fi
   2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2343    ac_c_werror_flag=$ac_save_c_werror_flag
   2344 fi
   2345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   2346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
   2347 if test "$ac_test_CFLAGS" = set; then
   2348   CFLAGS=$ac_save_CFLAGS
   2349 elif test $ac_cv_prog_cc_g = yes; then
   2350   if test "$GCC" = yes; then
   2351     CFLAGS="-g -O2"
   2352   else
   2353     CFLAGS="-g"
   2354   fi
   2355 else
   2356   if test "$GCC" = yes; then
   2357     CFLAGS="-O2"
   2358   else
   2359     CFLAGS=
   2360   fi
   2361 fi
   2362 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
   2363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
   2364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
   2365   echo $ECHO_N "(cached) $ECHO_C" >&6
   2366 else
   2367   ac_cv_prog_cc_stdc=no
   2368 ac_save_CC=$CC
   2369 cat >conftest.$ac_ext <<_ACEOF
   2370 /* confdefs.h.  */
   2371 _ACEOF
   2372 cat confdefs.h >>conftest.$ac_ext
   2373 cat >>conftest.$ac_ext <<_ACEOF
   2374 /* end confdefs.h.  */
   2375 #include <stdarg.h>
   2376 #include <stdio.h>
   2377 #include <sys/types.h>
   2378 #include <sys/stat.h>
   2379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   2380 struct buf { int x; };
   2381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   2382 static char *e (p, i)
   2383      char **p;
   2384      int i;
   2385 {
   2386   return p[i];
   2387 }
   2388 static char *f (char * (*g) (char **, int), char **p, ...)
   2389 {
   2390   char *s;
   2391   va_list v;
   2392   va_start (v,p);
   2393   s = g (p, va_arg (v,int));
   2394   va_end (v);
   2395   return s;
   2396 }
   2397 
   2398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   2399    function prototypes and stuff, but not '\xHH' hex character constants.
   2400    These don't provoke an error unfortunately, instead are silently treated
   2401    as 'x'.  The following induces an error, until -std is added to get
   2402    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   2403    array size at least.  It's necessary to write '\x00'==0 to get something
   2404    that's true only with -std.  */
   2405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   2406 
   2407 int test (int i, double x);
   2408 struct s1 {int (*f) (int a);};
   2409 struct s2 {int (*f) (double a);};
   2410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   2411 int argc;
   2412 char **argv;
   2413 int
   2414 main ()
   2415 {
   2416 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   2417   ;
   2418   return 0;
   2419 }
   2420 _ACEOF
   2421 # Don't try gcc -ansi; that turns off useful extensions and
   2422 # breaks some systems' header files.
   2423 # AIX			-qlanglvl=ansi
   2424 # Ultrix, OSF/1, Tru64	-std
   2425 # HP-UX 10.20 and later	-Ae
   2426 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   2427 # SVR4			-Xc -D__EXTENSIONS__
   2428 for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   2429 do
   2430   CC="$ac_save_CC $ac_arg"
   2431   rm -f conftest.$ac_objext
   2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2433   (eval $ac_compile) 2>conftest.er1
   2434   ac_status=$?
   2435   grep -v '^ *+' conftest.er1 >conftest.err
   2436   rm -f conftest.er1
   2437   cat conftest.err >&5
   2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2439   (exit $ac_status); } &&
   2440 	 { ac_try='test -z "$ac_c_werror_flag"
   2441 			 || test ! -s conftest.err'
   2442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2443   (eval $ac_try) 2>&5
   2444   ac_status=$?
   2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2446   (exit $ac_status); }; } &&
   2447 	 { ac_try='test -s conftest.$ac_objext'
   2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2449   (eval $ac_try) 2>&5
   2450   ac_status=$?
   2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2452   (exit $ac_status); }; }; then
   2453   ac_cv_prog_cc_stdc=$ac_arg
   2454 break
   2455 else
   2456   echo "$as_me: failed program was:" >&5
   2457 sed 's/^/| /' conftest.$ac_ext >&5
   2458 
   2459 fi
   2460 rm -f conftest.err conftest.$ac_objext
   2461 done
   2462 rm -f conftest.$ac_ext conftest.$ac_objext
   2463 CC=$ac_save_CC
   2464 
   2465 fi
   2466 
   2467 case "x$ac_cv_prog_cc_stdc" in
   2468   x|xno)
   2469     echo "$as_me:$LINENO: result: none needed" >&5
   2470 echo "${ECHO_T}none needed" >&6 ;;
   2471   *)
   2472     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
   2473 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
   2474     CC="$CC $ac_cv_prog_cc_stdc" ;;
   2475 esac
   2476 
   2477 # Some people use a C++ compiler to compile C.  Since we use `exit',
   2478 # in C++ we need to declare it.  In case someone uses the same compiler
   2479 # for both compiling C and C++ we need to have the C++ compiler decide
   2480 # the declaration of exit, since it's the most demanding environment.
   2481 cat >conftest.$ac_ext <<_ACEOF
   2482 #ifndef __cplusplus
   2483   choke me
   2484 #endif
   2485 _ACEOF
   2486 rm -f conftest.$ac_objext
   2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2488   (eval $ac_compile) 2>conftest.er1
   2489   ac_status=$?
   2490   grep -v '^ *+' conftest.er1 >conftest.err
   2491   rm -f conftest.er1
   2492   cat conftest.err >&5
   2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2494   (exit $ac_status); } &&
   2495 	 { ac_try='test -z "$ac_c_werror_flag"
   2496 			 || test ! -s conftest.err'
   2497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2498   (eval $ac_try) 2>&5
   2499   ac_status=$?
   2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2501   (exit $ac_status); }; } &&
   2502 	 { ac_try='test -s conftest.$ac_objext'
   2503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2504   (eval $ac_try) 2>&5
   2505   ac_status=$?
   2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2507   (exit $ac_status); }; }; then
   2508   for ac_declaration in \
   2509    '' \
   2510    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2511    'extern "C" void std::exit (int); using std::exit;' \
   2512    'extern "C" void exit (int) throw ();' \
   2513    'extern "C" void exit (int);' \
   2514    'void exit (int);'
   2515 do
   2516   cat >conftest.$ac_ext <<_ACEOF
   2517 /* confdefs.h.  */
   2518 _ACEOF
   2519 cat confdefs.h >>conftest.$ac_ext
   2520 cat >>conftest.$ac_ext <<_ACEOF
   2521 /* end confdefs.h.  */
   2522 $ac_declaration
   2523 #include <stdlib.h>
   2524 int
   2525 main ()
   2526 {
   2527 exit (42);
   2528   ;
   2529   return 0;
   2530 }
   2531 _ACEOF
   2532 rm -f conftest.$ac_objext
   2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2534   (eval $ac_compile) 2>conftest.er1
   2535   ac_status=$?
   2536   grep -v '^ *+' conftest.er1 >conftest.err
   2537   rm -f conftest.er1
   2538   cat conftest.err >&5
   2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2540   (exit $ac_status); } &&
   2541 	 { ac_try='test -z "$ac_c_werror_flag"
   2542 			 || test ! -s conftest.err'
   2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2544   (eval $ac_try) 2>&5
   2545   ac_status=$?
   2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2547   (exit $ac_status); }; } &&
   2548 	 { ac_try='test -s conftest.$ac_objext'
   2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2550   (eval $ac_try) 2>&5
   2551   ac_status=$?
   2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2553   (exit $ac_status); }; }; then
   2554   :
   2555 else
   2556   echo "$as_me: failed program was:" >&5
   2557 sed 's/^/| /' conftest.$ac_ext >&5
   2558 
   2559 continue
   2560 fi
   2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2562   cat >conftest.$ac_ext <<_ACEOF
   2563 /* confdefs.h.  */
   2564 _ACEOF
   2565 cat confdefs.h >>conftest.$ac_ext
   2566 cat >>conftest.$ac_ext <<_ACEOF
   2567 /* end confdefs.h.  */
   2568 $ac_declaration
   2569 int
   2570 main ()
   2571 {
   2572 exit (42);
   2573   ;
   2574   return 0;
   2575 }
   2576 _ACEOF
   2577 rm -f conftest.$ac_objext
   2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2579   (eval $ac_compile) 2>conftest.er1
   2580   ac_status=$?
   2581   grep -v '^ *+' conftest.er1 >conftest.err
   2582   rm -f conftest.er1
   2583   cat conftest.err >&5
   2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2585   (exit $ac_status); } &&
   2586 	 { ac_try='test -z "$ac_c_werror_flag"
   2587 			 || test ! -s conftest.err'
   2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2589   (eval $ac_try) 2>&5
   2590   ac_status=$?
   2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2592   (exit $ac_status); }; } &&
   2593 	 { ac_try='test -s conftest.$ac_objext'
   2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2595   (eval $ac_try) 2>&5
   2596   ac_status=$?
   2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2598   (exit $ac_status); }; }; then
   2599   break
   2600 else
   2601   echo "$as_me: failed program was:" >&5
   2602 sed 's/^/| /' conftest.$ac_ext >&5
   2603 
   2604 fi
   2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2606 done
   2607 rm -f conftest*
   2608 if test -n "$ac_declaration"; then
   2609   echo '#ifdef __cplusplus' >>confdefs.h
   2610   echo $ac_declaration      >>confdefs.h
   2611   echo '#endif'             >>confdefs.h
   2612 fi
   2613 
   2614 else
   2615   echo "$as_me: failed program was:" >&5
   2616 sed 's/^/| /' conftest.$ac_ext >&5
   2617 
   2618 fi
   2619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2620 ac_ext=c
   2621 ac_cpp='$CPP $CPPFLAGS'
   2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2625 
   2626 ac_ext=cc
   2627 ac_cpp='$CXXCPP $CPPFLAGS'
   2628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2631 if test -n "$ac_tool_prefix"; then
   2632   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
   2633   do
   2634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
   2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2638 if test "${ac_cv_prog_CXX+set}" = set; then
   2639   echo $ECHO_N "(cached) $ECHO_C" >&6
   2640 else
   2641   if test -n "$CXX"; then
   2642   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2643 else
   2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2645 for as_dir in $PATH
   2646 do
   2647   IFS=$as_save_IFS
   2648   test -z "$as_dir" && as_dir=.
   2649   for ac_exec_ext in '' $ac_executable_extensions; do
   2650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2651     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2653     break 2
   2654   fi
   2655 done
   2656 done
   2657 
   2658 fi
   2659 fi
   2660 CXX=$ac_cv_prog_CXX
   2661 if test -n "$CXX"; then
   2662   echo "$as_me:$LINENO: result: $CXX" >&5
   2663 echo "${ECHO_T}$CXX" >&6
   2664 else
   2665   echo "$as_me:$LINENO: result: no" >&5
   2666 echo "${ECHO_T}no" >&6
   2667 fi
   2668 
   2669     test -n "$CXX" && break
   2670   done
   2671 fi
   2672 if test -z "$CXX"; then
   2673   ac_ct_CXX=$CXX
   2674   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
   2675 do
   2676   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2677 set dummy $ac_prog; ac_word=$2
   2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
   2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2680 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2681   echo $ECHO_N "(cached) $ECHO_C" >&6
   2682 else
   2683   if test -n "$ac_ct_CXX"; then
   2684   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2685 else
   2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2687 for as_dir in $PATH
   2688 do
   2689   IFS=$as_save_IFS
   2690   test -z "$as_dir" && as_dir=.
   2691   for ac_exec_ext in '' $ac_executable_extensions; do
   2692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2693     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2695     break 2
   2696   fi
   2697 done
   2698 done
   2699 
   2700 fi
   2701 fi
   2702 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2703 if test -n "$ac_ct_CXX"; then
   2704   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2705 echo "${ECHO_T}$ac_ct_CXX" >&6
   2706 else
   2707   echo "$as_me:$LINENO: result: no" >&5
   2708 echo "${ECHO_T}no" >&6
   2709 fi
   2710 
   2711   test -n "$ac_ct_CXX" && break
   2712 done
   2713 
   2714   if test "x$ac_ct_CXX" = x; then
   2715     CXX="g++"
   2716   else
   2717     if test "$build" != "$host"; then
   2718       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2719 whose name does not start with the host triplet.  If you think this
   2720 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2722 whose name does not start with the host triplet.  If you think this
   2723 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2724     fi
   2725     CXX=$ac_ct_CXX
   2726   fi
   2727 fi
   2728 
   2729 
   2730 # Provide some information about the compiler.
   2731 echo "$as_me:$LINENO:" \
   2732      "checking for C++ compiler version" >&5
   2733 ac_compiler=`set X $ac_compile; echo $2`
   2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   2735   (eval $ac_compiler --version </dev/null >&5) 2>&5
   2736   ac_status=$?
   2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2738   (exit $ac_status); }
   2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   2740   (eval $ac_compiler -v </dev/null >&5) 2>&5
   2741   ac_status=$?
   2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2743   (exit $ac_status); }
   2744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   2745   (eval $ac_compiler -V </dev/null >&5) 2>&5
   2746   ac_status=$?
   2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2748   (exit $ac_status); }
   2749 
   2750 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2751 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
   2752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2753   echo $ECHO_N "(cached) $ECHO_C" >&6
   2754 else
   2755   cat >conftest.$ac_ext <<_ACEOF
   2756 /* confdefs.h.  */
   2757 _ACEOF
   2758 cat confdefs.h >>conftest.$ac_ext
   2759 cat >>conftest.$ac_ext <<_ACEOF
   2760 /* end confdefs.h.  */
   2761 
   2762 int
   2763 main ()
   2764 {
   2765 #ifndef __GNUC__
   2766        choke me
   2767 #endif
   2768 
   2769   ;
   2770   return 0;
   2771 }
   2772 _ACEOF
   2773 rm -f conftest.$ac_objext
   2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2775   (eval $ac_compile) 2>conftest.er1
   2776   ac_status=$?
   2777   grep -v '^ *+' conftest.er1 >conftest.err
   2778   rm -f conftest.er1
   2779   cat conftest.err >&5
   2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2781   (exit $ac_status); } &&
   2782 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2783 			 || test ! -s conftest.err'
   2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2785   (eval $ac_try) 2>&5
   2786   ac_status=$?
   2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2788   (exit $ac_status); }; } &&
   2789 	 { ac_try='test -s conftest.$ac_objext'
   2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2791   (eval $ac_try) 2>&5
   2792   ac_status=$?
   2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2794   (exit $ac_status); }; }; then
   2795   ac_compiler_gnu=yes
   2796 else
   2797   echo "$as_me: failed program was:" >&5
   2798 sed 's/^/| /' conftest.$ac_ext >&5
   2799 
   2800 ac_compiler_gnu=no
   2801 fi
   2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2803 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2804 
   2805 fi
   2806 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2807 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
   2808 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2809 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2810 ac_save_CXXFLAGS=$CXXFLAGS
   2811 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2812 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
   2813 if test "${ac_cv_prog_cxx_g+set}" = set; then
   2814   echo $ECHO_N "(cached) $ECHO_C" >&6
   2815 else
   2816   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2817    ac_cxx_werror_flag=yes
   2818    ac_cv_prog_cxx_g=no
   2819    CXXFLAGS="-g"
   2820    cat >conftest.$ac_ext <<_ACEOF
   2821 /* confdefs.h.  */
   2822 _ACEOF
   2823 cat confdefs.h >>conftest.$ac_ext
   2824 cat >>conftest.$ac_ext <<_ACEOF
   2825 /* end confdefs.h.  */
   2826 
   2827 int
   2828 main ()
   2829 {
   2830 
   2831   ;
   2832   return 0;
   2833 }
   2834 _ACEOF
   2835 rm -f conftest.$ac_objext
   2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2837   (eval $ac_compile) 2>conftest.er1
   2838   ac_status=$?
   2839   grep -v '^ *+' conftest.er1 >conftest.err
   2840   rm -f conftest.er1
   2841   cat conftest.err >&5
   2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2843   (exit $ac_status); } &&
   2844 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2845 			 || test ! -s conftest.err'
   2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2847   (eval $ac_try) 2>&5
   2848   ac_status=$?
   2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2850   (exit $ac_status); }; } &&
   2851 	 { ac_try='test -s conftest.$ac_objext'
   2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2853   (eval $ac_try) 2>&5
   2854   ac_status=$?
   2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2856   (exit $ac_status); }; }; then
   2857   ac_cv_prog_cxx_g=yes
   2858 else
   2859   echo "$as_me: failed program was:" >&5
   2860 sed 's/^/| /' conftest.$ac_ext >&5
   2861 
   2862 CXXFLAGS=""
   2863       cat >conftest.$ac_ext <<_ACEOF
   2864 /* confdefs.h.  */
   2865 _ACEOF
   2866 cat confdefs.h >>conftest.$ac_ext
   2867 cat >>conftest.$ac_ext <<_ACEOF
   2868 /* end confdefs.h.  */
   2869 
   2870 int
   2871 main ()
   2872 {
   2873 
   2874   ;
   2875   return 0;
   2876 }
   2877 _ACEOF
   2878 rm -f conftest.$ac_objext
   2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2880   (eval $ac_compile) 2>conftest.er1
   2881   ac_status=$?
   2882   grep -v '^ *+' conftest.er1 >conftest.err
   2883   rm -f conftest.er1
   2884   cat conftest.err >&5
   2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2886   (exit $ac_status); } &&
   2887 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2888 			 || test ! -s conftest.err'
   2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2890   (eval $ac_try) 2>&5
   2891   ac_status=$?
   2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2893   (exit $ac_status); }; } &&
   2894 	 { ac_try='test -s conftest.$ac_objext'
   2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2896   (eval $ac_try) 2>&5
   2897   ac_status=$?
   2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2899   (exit $ac_status); }; }; then
   2900   :
   2901 else
   2902   echo "$as_me: failed program was:" >&5
   2903 sed 's/^/| /' conftest.$ac_ext >&5
   2904 
   2905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2906 	 CXXFLAGS="-g"
   2907 	 cat >conftest.$ac_ext <<_ACEOF
   2908 /* confdefs.h.  */
   2909 _ACEOF
   2910 cat confdefs.h >>conftest.$ac_ext
   2911 cat >>conftest.$ac_ext <<_ACEOF
   2912 /* end confdefs.h.  */
   2913 
   2914 int
   2915 main ()
   2916 {
   2917 
   2918   ;
   2919   return 0;
   2920 }
   2921 _ACEOF
   2922 rm -f conftest.$ac_objext
   2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2924   (eval $ac_compile) 2>conftest.er1
   2925   ac_status=$?
   2926   grep -v '^ *+' conftest.er1 >conftest.err
   2927   rm -f conftest.er1
   2928   cat conftest.err >&5
   2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2930   (exit $ac_status); } &&
   2931 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2932 			 || test ! -s conftest.err'
   2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2934   (eval $ac_try) 2>&5
   2935   ac_status=$?
   2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2937   (exit $ac_status); }; } &&
   2938 	 { ac_try='test -s conftest.$ac_objext'
   2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2940   (eval $ac_try) 2>&5
   2941   ac_status=$?
   2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2943   (exit $ac_status); }; }; then
   2944   ac_cv_prog_cxx_g=yes
   2945 else
   2946   echo "$as_me: failed program was:" >&5
   2947 sed 's/^/| /' conftest.$ac_ext >&5
   2948 
   2949 fi
   2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2951 fi
   2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2953 fi
   2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2955    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2956 fi
   2957 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   2958 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
   2959 if test "$ac_test_CXXFLAGS" = set; then
   2960   CXXFLAGS=$ac_save_CXXFLAGS
   2961 elif test $ac_cv_prog_cxx_g = yes; then
   2962   if test "$GXX" = yes; then
   2963     CXXFLAGS="-g -O2"
   2964   else
   2965     CXXFLAGS="-g"
   2966   fi
   2967 else
   2968   if test "$GXX" = yes; then
   2969     CXXFLAGS="-O2"
   2970   else
   2971     CXXFLAGS=
   2972   fi
   2973 fi
   2974 for ac_declaration in \
   2975    '' \
   2976    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2977    'extern "C" void std::exit (int); using std::exit;' \
   2978    'extern "C" void exit (int) throw ();' \
   2979    'extern "C" void exit (int);' \
   2980    'void exit (int);'
   2981 do
   2982   cat >conftest.$ac_ext <<_ACEOF
   2983 /* confdefs.h.  */
   2984 _ACEOF
   2985 cat confdefs.h >>conftest.$ac_ext
   2986 cat >>conftest.$ac_ext <<_ACEOF
   2987 /* end confdefs.h.  */
   2988 $ac_declaration
   2989 #include <stdlib.h>
   2990 int
   2991 main ()
   2992 {
   2993 exit (42);
   2994   ;
   2995   return 0;
   2996 }
   2997 _ACEOF
   2998 rm -f conftest.$ac_objext
   2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3000   (eval $ac_compile) 2>conftest.er1
   3001   ac_status=$?
   3002   grep -v '^ *+' conftest.er1 >conftest.err
   3003   rm -f conftest.er1
   3004   cat conftest.err >&5
   3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3006   (exit $ac_status); } &&
   3007 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3008 			 || test ! -s conftest.err'
   3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3010   (eval $ac_try) 2>&5
   3011   ac_status=$?
   3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3013   (exit $ac_status); }; } &&
   3014 	 { ac_try='test -s conftest.$ac_objext'
   3015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3016   (eval $ac_try) 2>&5
   3017   ac_status=$?
   3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3019   (exit $ac_status); }; }; then
   3020   :
   3021 else
   3022   echo "$as_me: failed program was:" >&5
   3023 sed 's/^/| /' conftest.$ac_ext >&5
   3024 
   3025 continue
   3026 fi
   3027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3028   cat >conftest.$ac_ext <<_ACEOF
   3029 /* confdefs.h.  */
   3030 _ACEOF
   3031 cat confdefs.h >>conftest.$ac_ext
   3032 cat >>conftest.$ac_ext <<_ACEOF
   3033 /* end confdefs.h.  */
   3034 $ac_declaration
   3035 int
   3036 main ()
   3037 {
   3038 exit (42);
   3039   ;
   3040   return 0;
   3041 }
   3042 _ACEOF
   3043 rm -f conftest.$ac_objext
   3044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3045   (eval $ac_compile) 2>conftest.er1
   3046   ac_status=$?
   3047   grep -v '^ *+' conftest.er1 >conftest.err
   3048   rm -f conftest.er1
   3049   cat conftest.err >&5
   3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3051   (exit $ac_status); } &&
   3052 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3053 			 || test ! -s conftest.err'
   3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3055   (eval $ac_try) 2>&5
   3056   ac_status=$?
   3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3058   (exit $ac_status); }; } &&
   3059 	 { ac_try='test -s conftest.$ac_objext'
   3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3061   (eval $ac_try) 2>&5
   3062   ac_status=$?
   3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3064   (exit $ac_status); }; }; then
   3065   break
   3066 else
   3067   echo "$as_me: failed program was:" >&5
   3068 sed 's/^/| /' conftest.$ac_ext >&5
   3069 
   3070 fi
   3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3072 done
   3073 rm -f conftest*
   3074 if test -n "$ac_declaration"; then
   3075   echo '#ifdef __cplusplus' >>confdefs.h
   3076   echo $ac_declaration      >>confdefs.h
   3077   echo '#endif'             >>confdefs.h
   3078 fi
   3079 
   3080 ac_ext=c
   3081 ac_cpp='$CPP $CPPFLAGS'
   3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3085 
   3086 
   3087 
   3088    ac_ext=cc
   3089 ac_cpp='$CXXCPP $CPPFLAGS'
   3090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3093 
   3094    if test "$cross_compiling" = no; then
   3095      echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
   3096 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
   3097    fi
   3098    if test "$cross_compiling" = yes; then
   3099   :
   3100 else
   3101   cat >conftest.$ac_ext <<_ACEOF
   3102 
   3103        /* confdefs.h.  */
   3104 _ACEOF
   3105 cat confdefs.h >>conftest.$ac_ext
   3106 cat >>conftest.$ac_ext <<_ACEOF
   3107 /* end confdefs.h.  */
   3108 
   3109 
   3110 int main() {
   3111   return 0;
   3112 }
   3113 
   3114 
   3115 
   3116 _ACEOF
   3117 rm -f conftest$ac_exeext
   3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3119   (eval $ac_link) 2>&5
   3120   ac_status=$?
   3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3124   (eval $ac_try) 2>&5
   3125   ac_status=$?
   3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3127   (exit $ac_status); }; }; then
   3128   echo "$as_me:$LINENO: result: yes" >&5
   3129 echo "${ECHO_T}yes" >&6
   3130 else
   3131   echo "$as_me: program exited with status $ac_status" >&5
   3132 echo "$as_me: failed program was:" >&5
   3133 sed 's/^/| /' conftest.$ac_ext >&5
   3134 
   3135 ( exit $ac_status )
   3136 echo "$as_me:$LINENO: result: no" >&5
   3137 echo "${ECHO_T}no" >&6
   3138       { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
   3139 echo "$as_me: error: a working C++ compiler is required" >&2;}
   3140    { (exit 1); exit 1; }; }
   3141 fi
   3142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3143 fi
   3144 
   3145    if test "$cross_compiling" = no; then
   3146      echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
   3147 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
   3148    fi
   3149    if test "$cross_compiling" = yes; then
   3150   :
   3151 else
   3152   cat >conftest.$ac_ext <<_ACEOF
   3153 
   3154        /* confdefs.h.  */
   3155 _ACEOF
   3156 cat confdefs.h >>conftest.$ac_ext
   3157 cat >>conftest.$ac_ext <<_ACEOF
   3158 /* end confdefs.h.  */
   3159 
   3160 
   3161 extern "C" {
   3162   void _exit(int);
   3163 }
   3164 
   3165 int i;
   3166 struct A {
   3167   char dummy;
   3168   A() { i = 1; }
   3169   ~A() { if (i == 1) _exit(0); }
   3170 };
   3171 
   3172 A a;
   3173 
   3174 int main()
   3175 {
   3176   return 1;
   3177 }
   3178 
   3179 
   3180 
   3181 _ACEOF
   3182 rm -f conftest$ac_exeext
   3183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3184   (eval $ac_link) 2>&5
   3185   ac_status=$?
   3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3189   (eval $ac_try) 2>&5
   3190   ac_status=$?
   3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3192   (exit $ac_status); }; }; then
   3193   echo "$as_me:$LINENO: result: yes" >&5
   3194 echo "${ECHO_T}yes" >&6
   3195 else
   3196   echo "$as_me: program exited with status $ac_status" >&5
   3197 echo "$as_me: failed program was:" >&5
   3198 sed 's/^/| /' conftest.$ac_ext >&5
   3199 
   3200 ( exit $ac_status )
   3201 echo "$as_me:$LINENO: result: no" >&5
   3202 echo "${ECHO_T}no" >&6
   3203       { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
   3204 echo "$as_me: error: a working C++ compiler is required" >&2;}
   3205    { (exit 1); exit 1; }; }
   3206 fi
   3207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3208 fi
   3209 
   3210    echo "$as_me:$LINENO: checking that header files support C++" >&5
   3211 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
   3212    cat >conftest.$ac_ext <<_ACEOF
   3213 
   3214        /* confdefs.h.  */
   3215 _ACEOF
   3216 cat confdefs.h >>conftest.$ac_ext
   3217 cat >>conftest.$ac_ext <<_ACEOF
   3218 /* end confdefs.h.  */
   3219 
   3220 
   3221 #include <stdio.h>
   3222 
   3223 
   3224 int
   3225 main ()
   3226 {
   3227 
   3228 
   3229 fopen(0, 0);
   3230 
   3231 
   3232   ;
   3233   return 0;
   3234 }
   3235 
   3236 _ACEOF
   3237 rm -f conftest.$ac_objext conftest$ac_exeext
   3238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3239   (eval $ac_link) 2>conftest.er1
   3240   ac_status=$?
   3241   grep -v '^ *+' conftest.er1 >conftest.err
   3242   rm -f conftest.er1
   3243   cat conftest.err >&5
   3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3245   (exit $ac_status); } &&
   3246 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3247 			 || test ! -s conftest.err'
   3248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3249   (eval $ac_try) 2>&5
   3250   ac_status=$?
   3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3252   (exit $ac_status); }; } &&
   3253 	 { ac_try='test -s conftest$ac_exeext'
   3254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3255   (eval $ac_try) 2>&5
   3256   ac_status=$?
   3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3258   (exit $ac_status); }; }; then
   3259   echo "$as_me:$LINENO: result: yes" >&5
   3260 echo "${ECHO_T}yes" >&6
   3261 else
   3262   echo "$as_me: failed program was:" >&5
   3263 sed 's/^/| /' conftest.$ac_ext >&5
   3264 
   3265 echo "$as_me:$LINENO: result: no" >&5
   3266 echo "${ECHO_T}no" >&6
   3267       { { echo "$as_me:$LINENO: error: header files do not support C++
   3268 		   (if you are using a version of gcc/g++ earlier than 2.5,
   3269 		   you should install libg++)" >&5
   3270 echo "$as_me: error: header files do not support C++
   3271 		   (if you are using a version of gcc/g++ earlier than 2.5,
   3272 		   you should install libg++)" >&2;}
   3273    { (exit 1); exit 1; }; }
   3274 fi
   3275 rm -f conftest.err conftest.$ac_objext \
   3276       conftest$ac_exeext conftest.$ac_ext
   3277    ac_ext=c
   3278 ac_cpp='$CPP $CPPFLAGS'
   3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3282 
   3283 
   3284 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
   3285 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
   3286    cat >conftest.$ac_ext <<_ACEOF
   3287 
   3288        /* confdefs.h.  */
   3289 _ACEOF
   3290 cat confdefs.h >>conftest.$ac_ext
   3291 cat >>conftest.$ac_ext <<_ACEOF
   3292 /* end confdefs.h.  */
   3293 
   3294 
   3295 /* Treat any failure as ASCII for compatibility with existing art.
   3296    Use compile-time rather than run-time tests for cross-compiler
   3297    tolerance. */
   3298 #if '0' != 240
   3299 make an error "Character set is not EBCDIC"
   3300 #endif
   3301 
   3302 
   3303 int
   3304 main ()
   3305 {
   3306 
   3307   ;
   3308   return 0;
   3309 }
   3310 
   3311 _ACEOF
   3312 rm -f conftest.$ac_objext
   3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3314   (eval $ac_compile) 2>conftest.er1
   3315   ac_status=$?
   3316   grep -v '^ *+' conftest.er1 >conftest.err
   3317   rm -f conftest.er1
   3318   cat conftest.err >&5
   3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3320   (exit $ac_status); } &&
   3321 	 { ac_try='test -z "$ac_c_werror_flag"
   3322 			 || test ! -s conftest.err'
   3323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3324   (eval $ac_try) 2>&5
   3325   ac_status=$?
   3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3327   (exit $ac_status); }; } &&
   3328 	 { ac_try='test -s conftest.$ac_objext'
   3329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3330   (eval $ac_try) 2>&5
   3331   ac_status=$?
   3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3333   (exit $ac_status); }; }; then
   3334   groff_cv_ebcdic="yes"
   3335       TTYDEVDIRS="font/devcp1047"
   3336       echo "$as_me:$LINENO: result: yes" >&5
   3337 echo "${ECHO_T}yes" >&6
   3338 
   3339 cat >>confdefs.h <<\_ACEOF
   3340 #define IS_EBCDIC_HOST 1
   3341 _ACEOF
   3342 
   3343 else
   3344   echo "$as_me: failed program was:" >&5
   3345 sed 's/^/| /' conftest.$ac_ext >&5
   3346 
   3347 groff_cv_ebcdic="no"
   3348      TTYDEVDIRS="font/devascii font/devlatin1"
   3349      OTHERDEVDIRS="font/devlj4 font/devlbp"
   3350      echo "$as_me:$LINENO: result: no" >&5
   3351 echo "${ECHO_T}no" >&6
   3352 fi
   3353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3354 
   3355 
   3356 if test "$groff_cv_ebcdic" = "yes"; then
   3357      echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
   3358 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
   3359      case `uname` in
   3360      OS/390)
   3361        CFLAGS="$CFLAGS -D_ALL_SOURCE"
   3362        echo "$as_me:$LINENO: result: yes" >&5
   3363 echo "${ECHO_T}yes" >&6 ;;
   3364      *)
   3365        echo "$as_me:$LINENO: result: no" >&5
   3366 echo "${ECHO_T}no" >&6 ;;
   3367      esac
   3368    fi
   3369 ac_ext=c
   3370 ac_cpp='$CPP $CPPFLAGS'
   3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3374 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3375 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   3376 # On Suns, sometimes $CPP names a directory.
   3377 if test -n "$CPP" && test -d "$CPP"; then
   3378   CPP=
   3379 fi
   3380 if test -z "$CPP"; then
   3381   if test "${ac_cv_prog_CPP+set}" = set; then
   3382   echo $ECHO_N "(cached) $ECHO_C" >&6
   3383 else
   3384       # Double quotes because CPP needs to be expanded
   3385     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3386     do
   3387       ac_preproc_ok=false
   3388 for ac_c_preproc_warn_flag in '' yes
   3389 do
   3390   # Use a header file that comes with gcc, so configuring glibc
   3391   # with a fresh cross-compiler works.
   3392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3393   # <limits.h> exists even on freestanding compilers.
   3394   # On the NeXT, cc -E runs the code through the compiler's parser,
   3395   # not just through cpp. "Syntax error" is here to catch this case.
   3396   cat >conftest.$ac_ext <<_ACEOF
   3397 /* confdefs.h.  */
   3398 _ACEOF
   3399 cat confdefs.h >>conftest.$ac_ext
   3400 cat >>conftest.$ac_ext <<_ACEOF
   3401 /* end confdefs.h.  */
   3402 #ifdef __STDC__
   3403 # include <limits.h>
   3404 #else
   3405 # include <assert.h>
   3406 #endif
   3407 		     Syntax error
   3408 _ACEOF
   3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3411   ac_status=$?
   3412   grep -v '^ *+' conftest.er1 >conftest.err
   3413   rm -f conftest.er1
   3414   cat conftest.err >&5
   3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3416   (exit $ac_status); } >/dev/null; then
   3417   if test -s conftest.err; then
   3418     ac_cpp_err=$ac_c_preproc_warn_flag
   3419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3420   else
   3421     ac_cpp_err=
   3422   fi
   3423 else
   3424   ac_cpp_err=yes
   3425 fi
   3426 if test -z "$ac_cpp_err"; then
   3427   :
   3428 else
   3429   echo "$as_me: failed program was:" >&5
   3430 sed 's/^/| /' conftest.$ac_ext >&5
   3431 
   3432   # Broken: fails on valid input.
   3433 continue
   3434 fi
   3435 rm -f conftest.err conftest.$ac_ext
   3436 
   3437   # OK, works on sane cases.  Now check whether non-existent headers
   3438   # can be detected and how.
   3439   cat >conftest.$ac_ext <<_ACEOF
   3440 /* confdefs.h.  */
   3441 _ACEOF
   3442 cat confdefs.h >>conftest.$ac_ext
   3443 cat >>conftest.$ac_ext <<_ACEOF
   3444 /* end confdefs.h.  */
   3445 #include <ac_nonexistent.h>
   3446 _ACEOF
   3447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3449   ac_status=$?
   3450   grep -v '^ *+' conftest.er1 >conftest.err
   3451   rm -f conftest.er1
   3452   cat conftest.err >&5
   3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3454   (exit $ac_status); } >/dev/null; then
   3455   if test -s conftest.err; then
   3456     ac_cpp_err=$ac_c_preproc_warn_flag
   3457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3458   else
   3459     ac_cpp_err=
   3460   fi
   3461 else
   3462   ac_cpp_err=yes
   3463 fi
   3464 if test -z "$ac_cpp_err"; then
   3465   # Broken: success on invalid input.
   3466 continue
   3467 else
   3468   echo "$as_me: failed program was:" >&5
   3469 sed 's/^/| /' conftest.$ac_ext >&5
   3470 
   3471   # Passes both tests.
   3472 ac_preproc_ok=:
   3473 break
   3474 fi
   3475 rm -f conftest.err conftest.$ac_ext
   3476 
   3477 done
   3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3479 rm -f conftest.err conftest.$ac_ext
   3480 if $ac_preproc_ok; then
   3481   break
   3482 fi
   3483 
   3484     done
   3485     ac_cv_prog_CPP=$CPP
   3486 
   3487 fi
   3488   CPP=$ac_cv_prog_CPP
   3489 else
   3490   ac_cv_prog_CPP=$CPP
   3491 fi
   3492 echo "$as_me:$LINENO: result: $CPP" >&5
   3493 echo "${ECHO_T}$CPP" >&6
   3494 ac_preproc_ok=false
   3495 for ac_c_preproc_warn_flag in '' yes
   3496 do
   3497   # Use a header file that comes with gcc, so configuring glibc
   3498   # with a fresh cross-compiler works.
   3499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3500   # <limits.h> exists even on freestanding compilers.
   3501   # On the NeXT, cc -E runs the code through the compiler's parser,
   3502   # not just through cpp. "Syntax error" is here to catch this case.
   3503   cat >conftest.$ac_ext <<_ACEOF
   3504 /* confdefs.h.  */
   3505 _ACEOF
   3506 cat confdefs.h >>conftest.$ac_ext
   3507 cat >>conftest.$ac_ext <<_ACEOF
   3508 /* end confdefs.h.  */
   3509 #ifdef __STDC__
   3510 # include <limits.h>
   3511 #else
   3512 # include <assert.h>
   3513 #endif
   3514 		     Syntax error
   3515 _ACEOF
   3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3518   ac_status=$?
   3519   grep -v '^ *+' conftest.er1 >conftest.err
   3520   rm -f conftest.er1
   3521   cat conftest.err >&5
   3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3523   (exit $ac_status); } >/dev/null; then
   3524   if test -s conftest.err; then
   3525     ac_cpp_err=$ac_c_preproc_warn_flag
   3526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3527   else
   3528     ac_cpp_err=
   3529   fi
   3530 else
   3531   ac_cpp_err=yes
   3532 fi
   3533 if test -z "$ac_cpp_err"; then
   3534   :
   3535 else
   3536   echo "$as_me: failed program was:" >&5
   3537 sed 's/^/| /' conftest.$ac_ext >&5
   3538 
   3539   # Broken: fails on valid input.
   3540 continue
   3541 fi
   3542 rm -f conftest.err conftest.$ac_ext
   3543 
   3544   # OK, works on sane cases.  Now check whether non-existent headers
   3545   # can be detected and how.
   3546   cat >conftest.$ac_ext <<_ACEOF
   3547 /* confdefs.h.  */
   3548 _ACEOF
   3549 cat confdefs.h >>conftest.$ac_ext
   3550 cat >>conftest.$ac_ext <<_ACEOF
   3551 /* end confdefs.h.  */
   3552 #include <ac_nonexistent.h>
   3553 _ACEOF
   3554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3556   ac_status=$?
   3557   grep -v '^ *+' conftest.er1 >conftest.err
   3558   rm -f conftest.er1
   3559   cat conftest.err >&5
   3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3561   (exit $ac_status); } >/dev/null; then
   3562   if test -s conftest.err; then
   3563     ac_cpp_err=$ac_c_preproc_warn_flag
   3564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3565   else
   3566     ac_cpp_err=
   3567   fi
   3568 else
   3569   ac_cpp_err=yes
   3570 fi
   3571 if test -z "$ac_cpp_err"; then
   3572   # Broken: success on invalid input.
   3573 continue
   3574 else
   3575   echo "$as_me: failed program was:" >&5
   3576 sed 's/^/| /' conftest.$ac_ext >&5
   3577 
   3578   # Passes both tests.
   3579 ac_preproc_ok=:
   3580 break
   3581 fi
   3582 rm -f conftest.err conftest.$ac_ext
   3583 
   3584 done
   3585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3586 rm -f conftest.err conftest.$ac_ext
   3587 if $ac_preproc_ok; then
   3588   :
   3589 else
   3590   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3591 See \`config.log' for more details." >&5
   3592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3593 See \`config.log' for more details." >&2;}
   3594    { (exit 1); exit 1; }; }
   3595 fi
   3596 
   3597 ac_ext=c
   3598 ac_cpp='$CPP $CPPFLAGS'
   3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3602 
   3603 
   3604 echo "$as_me:$LINENO: checking for X" >&5
   3605 echo $ECHO_N "checking for X... $ECHO_C" >&6
   3606 
   3607 
   3608 # Check whether --with-x or --without-x was given.
   3609 if test "${with_x+set}" = set; then
   3610   withval="$with_x"
   3611 
   3612 fi;
   3613 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   3614 if test "x$with_x" = xno; then
   3615   # The user explicitly disabled X.
   3616   have_x=disabled
   3617 else
   3618   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   3619     # Both variables are already set.
   3620     have_x=yes
   3621   else
   3622     if test "${ac_cv_have_x+set}" = set; then
   3623   echo $ECHO_N "(cached) $ECHO_C" >&6
   3624 else
   3625   # One or both of the vars are not set, and there is no cached value.
   3626 ac_x_includes=no ac_x_libraries=no
   3627 rm -f -r conftest.dir
   3628 if mkdir conftest.dir; then
   3629   cd conftest.dir
   3630   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   3631   cat >Imakefile <<'_ACEOF'
   3632 acfindx:
   3633 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   3634 _ACEOF
   3635   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   3636     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   3637     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
   3638     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   3639     for ac_extension in a so sl; do
   3640       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
   3641 	 test -f $ac_im_libdir/libX11.$ac_extension; then
   3642 	ac_im_usrlibdir=$ac_im_libdir; break
   3643       fi
   3644     done
   3645     # Screen out bogus values from the imake configuration.  They are
   3646     # bogus both because they are the default anyway, and because
   3647     # using them would break gcc on systems where it needs fixed includes.
   3648     case $ac_im_incroot in
   3649 	/usr/include) ;;
   3650 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   3651     esac
   3652     case $ac_im_usrlibdir in
   3653 	/usr/lib | /lib) ;;
   3654 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   3655     esac
   3656   fi
   3657   cd ..
   3658   rm -f -r conftest.dir
   3659 fi
   3660 
   3661 # Standard set of common directories for X headers.
   3662 # Check X11 before X11Rn because it is often a symlink to the current release.
   3663 ac_x_header_dirs='
   3664 /usr/X11/include
   3665 /usr/X11R6/include
   3666 /usr/X11R5/include
   3667 /usr/X11R4/include
   3668 
   3669 /usr/include/X11
   3670 /usr/include/X11R6
   3671 /usr/include/X11R5
   3672 /usr/include/X11R4
   3673 
   3674 /usr/local/X11/include
   3675 /usr/local/X11R6/include
   3676 /usr/local/X11R5/include
   3677 /usr/local/X11R4/include
   3678 
   3679 /usr/local/include/X11
   3680 /usr/local/include/X11R6
   3681 /usr/local/include/X11R5
   3682 /usr/local/include/X11R4
   3683 
   3684 /usr/X386/include
   3685 /usr/x386/include
   3686 /usr/XFree86/include/X11
   3687 
   3688 /usr/include
   3689 /usr/local/include
   3690 /usr/unsupported/include
   3691 /usr/athena/include
   3692 /usr/local/x11r5/include
   3693 /usr/lpp/Xamples/include
   3694 
   3695 /usr/openwin/include
   3696 /usr/openwin/share/include'
   3697 
   3698 if test "$ac_x_includes" = no; then
   3699   # Guess where to find include files, by looking for Intrinsic.h.
   3700   # First, try using that file with no special directory specified.
   3701   cat >conftest.$ac_ext <<_ACEOF
   3702 /* confdefs.h.  */
   3703 _ACEOF
   3704 cat confdefs.h >>conftest.$ac_ext
   3705 cat >>conftest.$ac_ext <<_ACEOF
   3706 /* end confdefs.h.  */
   3707 #include <X11/Intrinsic.h>
   3708 _ACEOF
   3709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3710   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
   3717   if test -s conftest.err; then
   3718     ac_cpp_err=$ac_c_preproc_warn_flag
   3719     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3720   else
   3721     ac_cpp_err=
   3722   fi
   3723 else
   3724   ac_cpp_err=yes
   3725 fi
   3726 if test -z "$ac_cpp_err"; then
   3727   # We can compile using X headers with no special include directory.
   3728 ac_x_includes=
   3729 else
   3730   echo "$as_me: failed program was:" >&5
   3731 sed 's/^/| /' conftest.$ac_ext >&5
   3732 
   3733   for ac_dir in $ac_x_header_dirs; do
   3734   if test -r "$ac_dir/X11/Intrinsic.h"; then
   3735     ac_x_includes=$ac_dir
   3736     break
   3737   fi
   3738 done
   3739 fi
   3740 rm -f conftest.err conftest.$ac_ext
   3741 fi # $ac_x_includes = no
   3742 
   3743 if test "$ac_x_libraries" = no; then
   3744   # Check for the libraries.
   3745   # See if we find them without any special options.
   3746   # Don't add to $LIBS permanently.
   3747   ac_save_LIBS=$LIBS
   3748   LIBS="-lXt $LIBS"
   3749   cat >conftest.$ac_ext <<_ACEOF
   3750 /* confdefs.h.  */
   3751 _ACEOF
   3752 cat confdefs.h >>conftest.$ac_ext
   3753 cat >>conftest.$ac_ext <<_ACEOF
   3754 /* end confdefs.h.  */
   3755 #include <X11/Intrinsic.h>
   3756 int
   3757 main ()
   3758 {
   3759 XtMalloc (0)
   3760   ;
   3761   return 0;
   3762 }
   3763 _ACEOF
   3764 rm -f conftest.$ac_objext conftest$ac_exeext
   3765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3766   (eval $ac_link) 2>conftest.er1
   3767   ac_status=$?
   3768   grep -v '^ *+' conftest.er1 >conftest.err
   3769   rm -f conftest.er1
   3770   cat conftest.err >&5
   3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3772   (exit $ac_status); } &&
   3773 	 { ac_try='test -z "$ac_c_werror_flag"
   3774 			 || test ! -s conftest.err'
   3775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3776   (eval $ac_try) 2>&5
   3777   ac_status=$?
   3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3779   (exit $ac_status); }; } &&
   3780 	 { ac_try='test -s conftest$ac_exeext'
   3781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3782   (eval $ac_try) 2>&5
   3783   ac_status=$?
   3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3785   (exit $ac_status); }; }; then
   3786   LIBS=$ac_save_LIBS
   3787 # We can link X programs with no special library path.
   3788 ac_x_libraries=
   3789 else
   3790   echo "$as_me: failed program was:" >&5
   3791 sed 's/^/| /' conftest.$ac_ext >&5
   3792 
   3793 LIBS=$ac_save_LIBS
   3794 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   3795 do
   3796   # Don't even attempt the hair of trying to link an X program!
   3797   for ac_extension in a so sl; do
   3798     if test -r $ac_dir/libXt.$ac_extension; then
   3799       ac_x_libraries=$ac_dir
   3800       break 2
   3801     fi
   3802   done
   3803 done
   3804 fi
   3805 rm -f conftest.err conftest.$ac_objext \
   3806       conftest$ac_exeext conftest.$ac_ext
   3807 fi # $ac_x_libraries = no
   3808 
   3809 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   3810   # Didn't find X anywhere.  Cache the known absence of X.
   3811   ac_cv_have_x="have_x=no"
   3812 else
   3813   # Record where we found X for the cache.
   3814   ac_cv_have_x="have_x=yes \
   3815 		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   3816 fi
   3817 fi
   3818 
   3819   fi
   3820   eval "$ac_cv_have_x"
   3821 fi # $with_x != no
   3822 
   3823 if test "$have_x" != yes; then
   3824   echo "$as_me:$LINENO: result: $have_x" >&5
   3825 echo "${ECHO_T}$have_x" >&6
   3826   no_x=yes
   3827 else
   3828   # If each of the values was on the command line, it overrides each guess.
   3829   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   3830   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   3831   # Update the cache value to reflect the command line values.
   3832   ac_cv_have_x="have_x=yes \
   3833 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   3834   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
   3835 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   3836 fi
   3837 
   3838 if test "$no_x" = yes; then
   3839   # Not all programs may use this symbol, but it does not hurt to define it.
   3840 
   3841 cat >>confdefs.h <<\_ACEOF
   3842 #define X_DISPLAY_MISSING 1
   3843 _ACEOF
   3844 
   3845   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   3846 else
   3847   if test -n "$x_includes"; then
   3848     X_CFLAGS="$X_CFLAGS -I$x_includes"
   3849   fi
   3850 
   3851   # It would also be nice to do this for all -L options, not just this one.
   3852   if test -n "$x_libraries"; then
   3853     X_LIBS="$X_LIBS -L$x_libraries"
   3854     # For Solaris; some versions of Sun CC require a space after -R and
   3855     # others require no space.  Words are not sufficient . . . .
   3856     case `(uname -sr) 2>/dev/null` in
   3857     "SunOS 5"*)
   3858       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
   3859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   3860       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   3861       cat >conftest.$ac_ext <<_ACEOF
   3862 /* confdefs.h.  */
   3863 _ACEOF
   3864 cat confdefs.h >>conftest.$ac_ext
   3865 cat >>conftest.$ac_ext <<_ACEOF
   3866 /* end confdefs.h.  */
   3867 
   3868 int
   3869 main ()
   3870 {
   3871 
   3872   ;
   3873   return 0;
   3874 }
   3875 _ACEOF
   3876 rm -f conftest.$ac_objext conftest$ac_exeext
   3877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3878   (eval $ac_link) 2>conftest.er1
   3879   ac_status=$?
   3880   grep -v '^ *+' conftest.er1 >conftest.err
   3881   rm -f conftest.er1
   3882   cat conftest.err >&5
   3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3884   (exit $ac_status); } &&
   3885 	 { ac_try='test -z "$ac_c_werror_flag"
   3886 			 || test ! -s conftest.err'
   3887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3888   (eval $ac_try) 2>&5
   3889   ac_status=$?
   3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3891   (exit $ac_status); }; } &&
   3892 	 { ac_try='test -s conftest$ac_exeext'
   3893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3894   (eval $ac_try) 2>&5
   3895   ac_status=$?
   3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3897   (exit $ac_status); }; }; then
   3898   ac_R_nospace=yes
   3899 else
   3900   echo "$as_me: failed program was:" >&5
   3901 sed 's/^/| /' conftest.$ac_ext >&5
   3902 
   3903 ac_R_nospace=no
   3904 fi
   3905 rm -f conftest.err conftest.$ac_objext \
   3906       conftest$ac_exeext conftest.$ac_ext
   3907       if test $ac_R_nospace = yes; then
   3908 	echo "$as_me:$LINENO: result: no" >&5
   3909 echo "${ECHO_T}no" >&6
   3910 	X_LIBS="$X_LIBS -R$x_libraries"
   3911       else
   3912 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   3913 	cat >conftest.$ac_ext <<_ACEOF
   3914 /* confdefs.h.  */
   3915 _ACEOF
   3916 cat confdefs.h >>conftest.$ac_ext
   3917 cat >>conftest.$ac_ext <<_ACEOF
   3918 /* end confdefs.h.  */
   3919 
   3920 int
   3921 main ()
   3922 {
   3923 
   3924   ;
   3925   return 0;
   3926 }
   3927 _ACEOF
   3928 rm -f conftest.$ac_objext conftest$ac_exeext
   3929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3930   (eval $ac_link) 2>conftest.er1
   3931   ac_status=$?
   3932   grep -v '^ *+' conftest.er1 >conftest.err
   3933   rm -f conftest.er1
   3934   cat conftest.err >&5
   3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3936   (exit $ac_status); } &&
   3937 	 { ac_try='test -z "$ac_c_werror_flag"
   3938 			 || test ! -s conftest.err'
   3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3940   (eval $ac_try) 2>&5
   3941   ac_status=$?
   3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3943   (exit $ac_status); }; } &&
   3944 	 { ac_try='test -s conftest$ac_exeext'
   3945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3946   (eval $ac_try) 2>&5
   3947   ac_status=$?
   3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3949   (exit $ac_status); }; }; then
   3950   ac_R_space=yes
   3951 else
   3952   echo "$as_me: failed program was:" >&5
   3953 sed 's/^/| /' conftest.$ac_ext >&5
   3954 
   3955 ac_R_space=no
   3956 fi
   3957 rm -f conftest.err conftest.$ac_objext \
   3958       conftest$ac_exeext conftest.$ac_ext
   3959 	if test $ac_R_space = yes; then
   3960 	  echo "$as_me:$LINENO: result: yes" >&5
   3961 echo "${ECHO_T}yes" >&6
   3962 	  X_LIBS="$X_LIBS -R $x_libraries"
   3963 	else
   3964 	  echo "$as_me:$LINENO: result: neither works" >&5
   3965 echo "${ECHO_T}neither works" >&6
   3966 	fi
   3967       fi
   3968       LIBS=$ac_xsave_LIBS
   3969     esac
   3970   fi
   3971 
   3972   # Check for system-dependent libraries X programs must link with.
   3973   # Do this before checking for the system-independent R6 libraries
   3974   # (-lICE), since we may need -lsocket or whatever for X linking.
   3975 
   3976   if test "$ISC" = yes; then
   3977     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   3978   else
   3979     # Martyn Johnson says this is needed for Ultrix, if the X
   3980     # libraries were built with DECnet support.  And Karl Berry says
   3981     # the Alpha needs dnet_stub (dnet does not exist).
   3982     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   3983     cat >conftest.$ac_ext <<_ACEOF
   3984 /* confdefs.h.  */
   3985 _ACEOF
   3986 cat confdefs.h >>conftest.$ac_ext
   3987 cat >>conftest.$ac_ext <<_ACEOF
   3988 /* end confdefs.h.  */
   3989 
   3990 /* Override any gcc2 internal prototype to avoid an error.  */
   3991 #ifdef __cplusplus
   3992 extern "C"
   3993 #endif
   3994 /* We use char because int might match the return type of a gcc2
   3995    builtin and then its argument prototype would still apply.  */
   3996 char XOpenDisplay ();
   3997 int
   3998 main ()
   3999 {
   4000 XOpenDisplay ();
   4001   ;
   4002   return 0;
   4003 }
   4004 _ACEOF
   4005 rm -f conftest.$ac_objext conftest$ac_exeext
   4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4007   (eval $ac_link) 2>conftest.er1
   4008   ac_status=$?
   4009   grep -v '^ *+' conftest.er1 >conftest.err
   4010   rm -f conftest.er1
   4011   cat conftest.err >&5
   4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4013   (exit $ac_status); } &&
   4014 	 { ac_try='test -z "$ac_c_werror_flag"
   4015 			 || test ! -s conftest.err'
   4016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4017   (eval $ac_try) 2>&5
   4018   ac_status=$?
   4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4020   (exit $ac_status); }; } &&
   4021 	 { ac_try='test -s conftest$ac_exeext'
   4022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4023   (eval $ac_try) 2>&5
   4024   ac_status=$?
   4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4026   (exit $ac_status); }; }; then
   4027   :
   4028 else
   4029   echo "$as_me: failed program was:" >&5
   4030 sed 's/^/| /' conftest.$ac_ext >&5
   4031 
   4032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
   4033 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   4034 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   4035   echo $ECHO_N "(cached) $ECHO_C" >&6
   4036 else
   4037   ac_check_lib_save_LIBS=$LIBS
   4038 LIBS="-ldnet  $LIBS"
   4039 cat >conftest.$ac_ext <<_ACEOF
   4040 /* confdefs.h.  */
   4041 _ACEOF
   4042 cat confdefs.h >>conftest.$ac_ext
   4043 cat >>conftest.$ac_ext <<_ACEOF
   4044 /* end confdefs.h.  */
   4045 
   4046 /* Override any gcc2 internal prototype to avoid an error.  */
   4047 #ifdef __cplusplus
   4048 extern "C"
   4049 #endif
   4050 /* We use char because int might match the return type of a gcc2
   4051    builtin and then its argument prototype would still apply.  */
   4052 char dnet_ntoa ();
   4053 int
   4054 main ()
   4055 {
   4056 dnet_ntoa ();
   4057   ;
   4058   return 0;
   4059 }
   4060 _ACEOF
   4061 rm -f conftest.$ac_objext conftest$ac_exeext
   4062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4063   (eval $ac_link) 2>conftest.er1
   4064   ac_status=$?
   4065   grep -v '^ *+' conftest.er1 >conftest.err
   4066   rm -f conftest.er1
   4067   cat conftest.err >&5
   4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4069   (exit $ac_status); } &&
   4070 	 { ac_try='test -z "$ac_c_werror_flag"
   4071 			 || test ! -s conftest.err'
   4072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4073   (eval $ac_try) 2>&5
   4074   ac_status=$?
   4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4076   (exit $ac_status); }; } &&
   4077 	 { ac_try='test -s conftest$ac_exeext'
   4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4079   (eval $ac_try) 2>&5
   4080   ac_status=$?
   4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4082   (exit $ac_status); }; }; then
   4083   ac_cv_lib_dnet_dnet_ntoa=yes
   4084 else
   4085   echo "$as_me: failed program was:" >&5
   4086 sed 's/^/| /' conftest.$ac_ext >&5
   4087 
   4088 ac_cv_lib_dnet_dnet_ntoa=no
   4089 fi
   4090 rm -f conftest.err conftest.$ac_objext \
   4091       conftest$ac_exeext conftest.$ac_ext
   4092 LIBS=$ac_check_lib_save_LIBS
   4093 fi
   4094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   4095 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   4096 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   4097   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   4098 fi
   4099 
   4100     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   4101       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
   4102 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   4103 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   4104   echo $ECHO_N "(cached) $ECHO_C" >&6
   4105 else
   4106   ac_check_lib_save_LIBS=$LIBS
   4107 LIBS="-ldnet_stub  $LIBS"
   4108 cat >conftest.$ac_ext <<_ACEOF
   4109 /* confdefs.h.  */
   4110 _ACEOF
   4111 cat confdefs.h >>conftest.$ac_ext
   4112 cat >>conftest.$ac_ext <<_ACEOF
   4113 /* end confdefs.h.  */
   4114 
   4115 /* Override any gcc2 internal prototype to avoid an error.  */
   4116 #ifdef __cplusplus
   4117 extern "C"
   4118 #endif
   4119 /* We use char because int might match the return type of a gcc2
   4120    builtin and then its argument prototype would still apply.  */
   4121 char dnet_ntoa ();
   4122 int
   4123 main ()
   4124 {
   4125 dnet_ntoa ();
   4126   ;
   4127   return 0;
   4128 }
   4129 _ACEOF
   4130 rm -f conftest.$ac_objext conftest$ac_exeext
   4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4132   (eval $ac_link) 2>conftest.er1
   4133   ac_status=$?
   4134   grep -v '^ *+' conftest.er1 >conftest.err
   4135   rm -f conftest.er1
   4136   cat conftest.err >&5
   4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4138   (exit $ac_status); } &&
   4139 	 { ac_try='test -z "$ac_c_werror_flag"
   4140 			 || test ! -s conftest.err'
   4141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4142   (eval $ac_try) 2>&5
   4143   ac_status=$?
   4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4145   (exit $ac_status); }; } &&
   4146 	 { ac_try='test -s conftest$ac_exeext'
   4147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4148   (eval $ac_try) 2>&5
   4149   ac_status=$?
   4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4151   (exit $ac_status); }; }; then
   4152   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   4153 else
   4154   echo "$as_me: failed program was:" >&5
   4155 sed 's/^/| /' conftest.$ac_ext >&5
   4156 
   4157 ac_cv_lib_dnet_stub_dnet_ntoa=no
   4158 fi
   4159 rm -f conftest.err conftest.$ac_objext \
   4160       conftest$ac_exeext conftest.$ac_ext
   4161 LIBS=$ac_check_lib_save_LIBS
   4162 fi
   4163 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   4164 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   4165 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   4166   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   4167 fi
   4168 
   4169     fi
   4170 fi
   4171 rm -f conftest.err conftest.$ac_objext \
   4172       conftest$ac_exeext conftest.$ac_ext
   4173     LIBS="$ac_xsave_LIBS"
   4174 
   4175     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   4176     # to get the SysV transport functions.
   4177     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   4178     # needs -lnsl.
   4179     # The nsl library prevents programs from opening the X display
   4180     # on Irix 5.2, according to T.E. Dickey.
   4181     # The functions gethostbyname, getservbyname, and inet_addr are
   4182     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   4183     echo "$as_me:$LINENO: checking for gethostbyname" >&5
   4184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   4185 if test "${ac_cv_func_gethostbyname+set}" = set; then
   4186   echo $ECHO_N "(cached) $ECHO_C" >&6
   4187 else
   4188   cat >conftest.$ac_ext <<_ACEOF
   4189 /* confdefs.h.  */
   4190 _ACEOF
   4191 cat confdefs.h >>conftest.$ac_ext
   4192 cat >>conftest.$ac_ext <<_ACEOF
   4193 /* end confdefs.h.  */
   4194 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   4195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4196 #define gethostbyname innocuous_gethostbyname
   4197 
   4198 /* System header to define __stub macros and hopefully few prototypes,
   4199     which can conflict with char gethostbyname (); below.
   4200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4201     <limits.h> exists even on freestanding compilers.  */
   4202 
   4203 #ifdef __STDC__
   4204 # include <limits.h>
   4205 #else
   4206 # include <assert.h>
   4207 #endif
   4208 
   4209 #undef gethostbyname
   4210 
   4211 /* Override any gcc2 internal prototype to avoid an error.  */
   4212 #ifdef __cplusplus
   4213 extern "C"
   4214 {
   4215 #endif
   4216 /* We use char because int might match the return type of a gcc2
   4217    builtin and then its argument prototype would still apply.  */
   4218 char gethostbyname ();
   4219 /* The GNU C library defines this for functions which it implements
   4220     to always fail with ENOSYS.  Some functions are actually named
   4221     something starting with __ and the normal name is an alias.  */
   4222 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   4223 choke me
   4224 #else
   4225 char (*f) () = gethostbyname;
   4226 #endif
   4227 #ifdef __cplusplus
   4228 }
   4229 #endif
   4230 
   4231 int
   4232 main ()
   4233 {
   4234 return f != gethostbyname;
   4235   ;
   4236   return 0;
   4237 }
   4238 _ACEOF
   4239 rm -f conftest.$ac_objext conftest$ac_exeext
   4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4241   (eval $ac_link) 2>conftest.er1
   4242   ac_status=$?
   4243   grep -v '^ *+' conftest.er1 >conftest.err
   4244   rm -f conftest.er1
   4245   cat conftest.err >&5
   4246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4247   (exit $ac_status); } &&
   4248 	 { ac_try='test -z "$ac_c_werror_flag"
   4249 			 || test ! -s conftest.err'
   4250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4251   (eval $ac_try) 2>&5
   4252   ac_status=$?
   4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4254   (exit $ac_status); }; } &&
   4255 	 { ac_try='test -s conftest$ac_exeext'
   4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4257   (eval $ac_try) 2>&5
   4258   ac_status=$?
   4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4260   (exit $ac_status); }; }; then
   4261   ac_cv_func_gethostbyname=yes
   4262 else
   4263   echo "$as_me: failed program was:" >&5
   4264 sed 's/^/| /' conftest.$ac_ext >&5
   4265 
   4266 ac_cv_func_gethostbyname=no
   4267 fi
   4268 rm -f conftest.err conftest.$ac_objext \
   4269       conftest$ac_exeext conftest.$ac_ext
   4270 fi
   4271 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
   4272 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   4273 
   4274     if test $ac_cv_func_gethostbyname = no; then
   4275       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
   4276 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   4277 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   4278   echo $ECHO_N "(cached) $ECHO_C" >&6
   4279 else
   4280   ac_check_lib_save_LIBS=$LIBS
   4281 LIBS="-lnsl  $LIBS"
   4282 cat >conftest.$ac_ext <<_ACEOF
   4283 /* confdefs.h.  */
   4284 _ACEOF
   4285 cat confdefs.h >>conftest.$ac_ext
   4286 cat >>conftest.$ac_ext <<_ACEOF
   4287 /* end confdefs.h.  */
   4288 
   4289 /* Override any gcc2 internal prototype to avoid an error.  */
   4290 #ifdef __cplusplus
   4291 extern "C"
   4292 #endif
   4293 /* We use char because int might match the return type of a gcc2
   4294    builtin and then its argument prototype would still apply.  */
   4295 char gethostbyname ();
   4296 int
   4297 main ()
   4298 {
   4299 gethostbyname ();
   4300   ;
   4301   return 0;
   4302 }
   4303 _ACEOF
   4304 rm -f conftest.$ac_objext conftest$ac_exeext
   4305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4306   (eval $ac_link) 2>conftest.er1
   4307   ac_status=$?
   4308   grep -v '^ *+' conftest.er1 >conftest.err
   4309   rm -f conftest.er1
   4310   cat conftest.err >&5
   4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4312   (exit $ac_status); } &&
   4313 	 { ac_try='test -z "$ac_c_werror_flag"
   4314 			 || test ! -s conftest.err'
   4315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4316   (eval $ac_try) 2>&5
   4317   ac_status=$?
   4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4319   (exit $ac_status); }; } &&
   4320 	 { ac_try='test -s conftest$ac_exeext'
   4321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4322   (eval $ac_try) 2>&5
   4323   ac_status=$?
   4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4325   (exit $ac_status); }; }; then
   4326   ac_cv_lib_nsl_gethostbyname=yes
   4327 else
   4328   echo "$as_me: failed program was:" >&5
   4329 sed 's/^/| /' conftest.$ac_ext >&5
   4330 
   4331 ac_cv_lib_nsl_gethostbyname=no
   4332 fi
   4333 rm -f conftest.err conftest.$ac_objext \
   4334       conftest$ac_exeext conftest.$ac_ext
   4335 LIBS=$ac_check_lib_save_LIBS
   4336 fi
   4337 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
   4338 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   4339 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   4340   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   4341 fi
   4342 
   4343       if test $ac_cv_lib_nsl_gethostbyname = no; then
   4344 	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
   4345 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   4346 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   4347   echo $ECHO_N "(cached) $ECHO_C" >&6
   4348 else
   4349   ac_check_lib_save_LIBS=$LIBS
   4350 LIBS="-lbsd  $LIBS"
   4351 cat >conftest.$ac_ext <<_ACEOF
   4352 /* confdefs.h.  */
   4353 _ACEOF
   4354 cat confdefs.h >>conftest.$ac_ext
   4355 cat >>conftest.$ac_ext <<_ACEOF
   4356 /* end confdefs.h.  */
   4357 
   4358 /* Override any gcc2 internal prototype to avoid an error.  */
   4359 #ifdef __cplusplus
   4360 extern "C"
   4361 #endif
   4362 /* We use char because int might match the return type of a gcc2
   4363    builtin and then its argument prototype would still apply.  */
   4364 char gethostbyname ();
   4365 int
   4366 main ()
   4367 {
   4368 gethostbyname ();
   4369   ;
   4370   return 0;
   4371 }
   4372 _ACEOF
   4373 rm -f conftest.$ac_objext conftest$ac_exeext
   4374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4375   (eval $ac_link) 2>conftest.er1
   4376   ac_status=$?
   4377   grep -v '^ *+' conftest.er1 >conftest.err
   4378   rm -f conftest.er1
   4379   cat conftest.err >&5
   4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4381   (exit $ac_status); } &&
   4382 	 { ac_try='test -z "$ac_c_werror_flag"
   4383 			 || test ! -s conftest.err'
   4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4385   (eval $ac_try) 2>&5
   4386   ac_status=$?
   4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4388   (exit $ac_status); }; } &&
   4389 	 { ac_try='test -s conftest$ac_exeext'
   4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4391   (eval $ac_try) 2>&5
   4392   ac_status=$?
   4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4394   (exit $ac_status); }; }; then
   4395   ac_cv_lib_bsd_gethostbyname=yes
   4396 else
   4397   echo "$as_me: failed program was:" >&5
   4398 sed 's/^/| /' conftest.$ac_ext >&5
   4399 
   4400 ac_cv_lib_bsd_gethostbyname=no
   4401 fi
   4402 rm -f conftest.err conftest.$ac_objext \
   4403       conftest$ac_exeext conftest.$ac_ext
   4404 LIBS=$ac_check_lib_save_LIBS
   4405 fi
   4406 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
   4407 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   4408 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   4409   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   4410 fi
   4411 
   4412       fi
   4413     fi
   4414 
   4415     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   4416     # socket/setsockopt and other routines are undefined under SCO ODT
   4417     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   4418     # on later versions), says Simon Leinen: it contains gethostby*
   4419     # variants that don't use the name server (or something).  -lsocket
   4420     # must be given before -lnsl if both are needed.  We assume that
   4421     # if connect needs -lnsl, so does gethostbyname.
   4422     echo "$as_me:$LINENO: checking for connect" >&5
   4423 echo $ECHO_N "checking for connect... $ECHO_C" >&6
   4424 if test "${ac_cv_func_connect+set}" = set; then
   4425   echo $ECHO_N "(cached) $ECHO_C" >&6
   4426 else
   4427   cat >conftest.$ac_ext <<_ACEOF
   4428 /* confdefs.h.  */
   4429 _ACEOF
   4430 cat confdefs.h >>conftest.$ac_ext
   4431 cat >>conftest.$ac_ext <<_ACEOF
   4432 /* end confdefs.h.  */
   4433 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
   4434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4435 #define connect innocuous_connect
   4436 
   4437 /* System header to define __stub macros and hopefully few prototypes,
   4438     which can conflict with char connect (); below.
   4439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4440     <limits.h> exists even on freestanding compilers.  */
   4441 
   4442 #ifdef __STDC__
   4443 # include <limits.h>
   4444 #else
   4445 # include <assert.h>
   4446 #endif
   4447 
   4448 #undef connect
   4449 
   4450 /* Override any gcc2 internal prototype to avoid an error.  */
   4451 #ifdef __cplusplus
   4452 extern "C"
   4453 {
   4454 #endif
   4455 /* We use char because int might match the return type of a gcc2
   4456    builtin and then its argument prototype would still apply.  */
   4457 char connect ();
   4458 /* The GNU C library defines this for functions which it implements
   4459     to always fail with ENOSYS.  Some functions are actually named
   4460     something starting with __ and the normal name is an alias.  */
   4461 #if defined (__stub_connect) || defined (__stub___connect)
   4462 choke me
   4463 #else
   4464 char (*f) () = connect;
   4465 #endif
   4466 #ifdef __cplusplus
   4467 }
   4468 #endif
   4469 
   4470 int
   4471 main ()
   4472 {
   4473 return f != connect;
   4474   ;
   4475   return 0;
   4476 }
   4477 _ACEOF
   4478 rm -f conftest.$ac_objext conftest$ac_exeext
   4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4480   (eval $ac_link) 2>conftest.er1
   4481   ac_status=$?
   4482   grep -v '^ *+' conftest.er1 >conftest.err
   4483   rm -f conftest.er1
   4484   cat conftest.err >&5
   4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4486   (exit $ac_status); } &&
   4487 	 { ac_try='test -z "$ac_c_werror_flag"
   4488 			 || test ! -s conftest.err'
   4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4490   (eval $ac_try) 2>&5
   4491   ac_status=$?
   4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4493   (exit $ac_status); }; } &&
   4494 	 { ac_try='test -s conftest$ac_exeext'
   4495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4496   (eval $ac_try) 2>&5
   4497   ac_status=$?
   4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4499   (exit $ac_status); }; }; then
   4500   ac_cv_func_connect=yes
   4501 else
   4502   echo "$as_me: failed program was:" >&5
   4503 sed 's/^/| /' conftest.$ac_ext >&5
   4504 
   4505 ac_cv_func_connect=no
   4506 fi
   4507 rm -f conftest.err conftest.$ac_objext \
   4508       conftest$ac_exeext conftest.$ac_ext
   4509 fi
   4510 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
   4511 echo "${ECHO_T}$ac_cv_func_connect" >&6
   4512 
   4513     if test $ac_cv_func_connect = no; then
   4514       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
   4515 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   4516 if test "${ac_cv_lib_socket_connect+set}" = set; then
   4517   echo $ECHO_N "(cached) $ECHO_C" >&6
   4518 else
   4519   ac_check_lib_save_LIBS=$LIBS
   4520 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   4521 cat >conftest.$ac_ext <<_ACEOF
   4522 /* confdefs.h.  */
   4523 _ACEOF
   4524 cat confdefs.h >>conftest.$ac_ext
   4525 cat >>conftest.$ac_ext <<_ACEOF
   4526 /* end confdefs.h.  */
   4527 
   4528 /* Override any gcc2 internal prototype to avoid an error.  */
   4529 #ifdef __cplusplus
   4530 extern "C"
   4531 #endif
   4532 /* We use char because int might match the return type of a gcc2
   4533    builtin and then its argument prototype would still apply.  */
   4534 char connect ();
   4535 int
   4536 main ()
   4537 {
   4538 connect ();
   4539   ;
   4540   return 0;
   4541 }
   4542 _ACEOF
   4543 rm -f conftest.$ac_objext conftest$ac_exeext
   4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4545   (eval $ac_link) 2>conftest.er1
   4546   ac_status=$?
   4547   grep -v '^ *+' conftest.er1 >conftest.err
   4548   rm -f conftest.er1
   4549   cat conftest.err >&5
   4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4551   (exit $ac_status); } &&
   4552 	 { ac_try='test -z "$ac_c_werror_flag"
   4553 			 || test ! -s conftest.err'
   4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4555   (eval $ac_try) 2>&5
   4556   ac_status=$?
   4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4558   (exit $ac_status); }; } &&
   4559 	 { ac_try='test -s conftest$ac_exeext'
   4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4561   (eval $ac_try) 2>&5
   4562   ac_status=$?
   4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4564   (exit $ac_status); }; }; then
   4565   ac_cv_lib_socket_connect=yes
   4566 else
   4567   echo "$as_me: failed program was:" >&5
   4568 sed 's/^/| /' conftest.$ac_ext >&5
   4569 
   4570 ac_cv_lib_socket_connect=no
   4571 fi
   4572 rm -f conftest.err conftest.$ac_objext \
   4573       conftest$ac_exeext conftest.$ac_ext
   4574 LIBS=$ac_check_lib_save_LIBS
   4575 fi
   4576 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
   4577 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   4578 if test $ac_cv_lib_socket_connect = yes; then
   4579   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   4580 fi
   4581 
   4582     fi
   4583 
   4584     # Guillermo Gomez says -lposix is necessary on A/UX.
   4585     echo "$as_me:$LINENO: checking for remove" >&5
   4586 echo $ECHO_N "checking for remove... $ECHO_C" >&6
   4587 if test "${ac_cv_func_remove+set}" = set; then
   4588   echo $ECHO_N "(cached) $ECHO_C" >&6
   4589 else
   4590   cat >conftest.$ac_ext <<_ACEOF
   4591 /* confdefs.h.  */
   4592 _ACEOF
   4593 cat confdefs.h >>conftest.$ac_ext
   4594 cat >>conftest.$ac_ext <<_ACEOF
   4595 /* end confdefs.h.  */
   4596 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
   4597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4598 #define remove innocuous_remove
   4599 
   4600 /* System header to define __stub macros and hopefully few prototypes,
   4601     which can conflict with char remove (); below.
   4602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4603     <limits.h> exists even on freestanding compilers.  */
   4604 
   4605 #ifdef __STDC__
   4606 # include <limits.h>
   4607 #else
   4608 # include <assert.h>
   4609 #endif
   4610 
   4611 #undef remove
   4612 
   4613 /* Override any gcc2 internal prototype to avoid an error.  */
   4614 #ifdef __cplusplus
   4615 extern "C"
   4616 {
   4617 #endif
   4618 /* We use char because int might match the return type of a gcc2
   4619    builtin and then its argument prototype would still apply.  */
   4620 char remove ();
   4621 /* The GNU C library defines this for functions which it implements
   4622     to always fail with ENOSYS.  Some functions are actually named
   4623     something starting with __ and the normal name is an alias.  */
   4624 #if defined (__stub_remove) || defined (__stub___remove)
   4625 choke me
   4626 #else
   4627 char (*f) () = remove;
   4628 #endif
   4629 #ifdef __cplusplus
   4630 }
   4631 #endif
   4632 
   4633 int
   4634 main ()
   4635 {
   4636 return f != remove;
   4637   ;
   4638   return 0;
   4639 }
   4640 _ACEOF
   4641 rm -f conftest.$ac_objext conftest$ac_exeext
   4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4643   (eval $ac_link) 2>conftest.er1
   4644   ac_status=$?
   4645   grep -v '^ *+' conftest.er1 >conftest.err
   4646   rm -f conftest.er1
   4647   cat conftest.err >&5
   4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4649   (exit $ac_status); } &&
   4650 	 { ac_try='test -z "$ac_c_werror_flag"
   4651 			 || test ! -s conftest.err'
   4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4653   (eval $ac_try) 2>&5
   4654   ac_status=$?
   4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4656   (exit $ac_status); }; } &&
   4657 	 { ac_try='test -s conftest$ac_exeext'
   4658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4659   (eval $ac_try) 2>&5
   4660   ac_status=$?
   4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4662   (exit $ac_status); }; }; then
   4663   ac_cv_func_remove=yes
   4664 else
   4665   echo "$as_me: failed program was:" >&5
   4666 sed 's/^/| /' conftest.$ac_ext >&5
   4667 
   4668 ac_cv_func_remove=no
   4669 fi
   4670 rm -f conftest.err conftest.$ac_objext \
   4671       conftest$ac_exeext conftest.$ac_ext
   4672 fi
   4673 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
   4674 echo "${ECHO_T}$ac_cv_func_remove" >&6
   4675 
   4676     if test $ac_cv_func_remove = no; then
   4677       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
   4678 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   4679 if test "${ac_cv_lib_posix_remove+set}" = set; then
   4680   echo $ECHO_N "(cached) $ECHO_C" >&6
   4681 else
   4682   ac_check_lib_save_LIBS=$LIBS
   4683 LIBS="-lposix  $LIBS"
   4684 cat >conftest.$ac_ext <<_ACEOF
   4685 /* confdefs.h.  */
   4686 _ACEOF
   4687 cat confdefs.h >>conftest.$ac_ext
   4688 cat >>conftest.$ac_ext <<_ACEOF
   4689 /* end confdefs.h.  */
   4690 
   4691 /* Override any gcc2 internal prototype to avoid an error.  */
   4692 #ifdef __cplusplus
   4693 extern "C"
   4694 #endif
   4695 /* We use char because int might match the return type of a gcc2
   4696    builtin and then its argument prototype would still apply.  */
   4697 char remove ();
   4698 int
   4699 main ()
   4700 {
   4701 remove ();
   4702   ;
   4703   return 0;
   4704 }
   4705 _ACEOF
   4706 rm -f conftest.$ac_objext conftest$ac_exeext
   4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4708   (eval $ac_link) 2>conftest.er1
   4709   ac_status=$?
   4710   grep -v '^ *+' conftest.er1 >conftest.err
   4711   rm -f conftest.er1
   4712   cat conftest.err >&5
   4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4714   (exit $ac_status); } &&
   4715 	 { ac_try='test -z "$ac_c_werror_flag"
   4716 			 || test ! -s conftest.err'
   4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4718   (eval $ac_try) 2>&5
   4719   ac_status=$?
   4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4721   (exit $ac_status); }; } &&
   4722 	 { ac_try='test -s conftest$ac_exeext'
   4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4724   (eval $ac_try) 2>&5
   4725   ac_status=$?
   4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4727   (exit $ac_status); }; }; then
   4728   ac_cv_lib_posix_remove=yes
   4729 else
   4730   echo "$as_me: failed program was:" >&5
   4731 sed 's/^/| /' conftest.$ac_ext >&5
   4732 
   4733 ac_cv_lib_posix_remove=no
   4734 fi
   4735 rm -f conftest.err conftest.$ac_objext \
   4736       conftest$ac_exeext conftest.$ac_ext
   4737 LIBS=$ac_check_lib_save_LIBS
   4738 fi
   4739 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
   4740 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   4741 if test $ac_cv_lib_posix_remove = yes; then
   4742   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   4743 fi
   4744 
   4745     fi
   4746 
   4747     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   4748     echo "$as_me:$LINENO: checking for shmat" >&5
   4749 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   4750 if test "${ac_cv_func_shmat+set}" = set; then
   4751   echo $ECHO_N "(cached) $ECHO_C" >&6
   4752 else
   4753   cat >conftest.$ac_ext <<_ACEOF
   4754 /* confdefs.h.  */
   4755 _ACEOF
   4756 cat confdefs.h >>conftest.$ac_ext
   4757 cat >>conftest.$ac_ext <<_ACEOF
   4758 /* end confdefs.h.  */
   4759 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   4760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4761 #define shmat innocuous_shmat
   4762 
   4763 /* System header to define __stub macros and hopefully few prototypes,
   4764     which can conflict with char shmat (); below.
   4765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4766     <limits.h> exists even on freestanding compilers.  */
   4767 
   4768 #ifdef __STDC__
   4769 # include <limits.h>
   4770 #else
   4771 # include <assert.h>
   4772 #endif
   4773 
   4774 #undef shmat
   4775 
   4776 /* Override any gcc2 internal prototype to avoid an error.  */
   4777 #ifdef __cplusplus
   4778 extern "C"
   4779 {
   4780 #endif
   4781 /* We use char because int might match the return type of a gcc2
   4782    builtin and then its argument prototype would still apply.  */
   4783 char shmat ();
   4784 /* The GNU C library defines this for functions which it implements
   4785     to always fail with ENOSYS.  Some functions are actually named
   4786     something starting with __ and the normal name is an alias.  */
   4787 #if defined (__stub_shmat) || defined (__stub___shmat)
   4788 choke me
   4789 #else
   4790 char (*f) () = shmat;
   4791 #endif
   4792 #ifdef __cplusplus
   4793 }
   4794 #endif
   4795 
   4796 int
   4797 main ()
   4798 {
   4799 return f != shmat;
   4800   ;
   4801   return 0;
   4802 }
   4803 _ACEOF
   4804 rm -f conftest.$ac_objext conftest$ac_exeext
   4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4806   (eval $ac_link) 2>conftest.er1
   4807   ac_status=$?
   4808   grep -v '^ *+' conftest.er1 >conftest.err
   4809   rm -f conftest.er1
   4810   cat conftest.err >&5
   4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4812   (exit $ac_status); } &&
   4813 	 { ac_try='test -z "$ac_c_werror_flag"
   4814 			 || test ! -s conftest.err'
   4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4816   (eval $ac_try) 2>&5
   4817   ac_status=$?
   4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4819   (exit $ac_status); }; } &&
   4820 	 { ac_try='test -s conftest$ac_exeext'
   4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4822   (eval $ac_try) 2>&5
   4823   ac_status=$?
   4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4825   (exit $ac_status); }; }; then
   4826   ac_cv_func_shmat=yes
   4827 else
   4828   echo "$as_me: failed program was:" >&5
   4829 sed 's/^/| /' conftest.$ac_ext >&5
   4830 
   4831 ac_cv_func_shmat=no
   4832 fi
   4833 rm -f conftest.err conftest.$ac_objext \
   4834       conftest$ac_exeext conftest.$ac_ext
   4835 fi
   4836 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
   4837 echo "${ECHO_T}$ac_cv_func_shmat" >&6
   4838 
   4839     if test $ac_cv_func_shmat = no; then
   4840       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
   4841 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   4842 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   4843   echo $ECHO_N "(cached) $ECHO_C" >&6
   4844 else
   4845   ac_check_lib_save_LIBS=$LIBS
   4846 LIBS="-lipc  $LIBS"
   4847 cat >conftest.$ac_ext <<_ACEOF
   4848 /* confdefs.h.  */
   4849 _ACEOF
   4850 cat confdefs.h >>conftest.$ac_ext
   4851 cat >>conftest.$ac_ext <<_ACEOF
   4852 /* end confdefs.h.  */
   4853 
   4854 /* Override any gcc2 internal prototype to avoid an error.  */
   4855 #ifdef __cplusplus
   4856 extern "C"
   4857 #endif
   4858 /* We use char because int might match the return type of a gcc2
   4859    builtin and then its argument prototype would still apply.  */
   4860 char shmat ();
   4861 int
   4862 main ()
   4863 {
   4864 shmat ();
   4865   ;
   4866   return 0;
   4867 }
   4868 _ACEOF
   4869 rm -f conftest.$ac_objext conftest$ac_exeext
   4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4871   (eval $ac_link) 2>conftest.er1
   4872   ac_status=$?
   4873   grep -v '^ *+' conftest.er1 >conftest.err
   4874   rm -f conftest.er1
   4875   cat conftest.err >&5
   4876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4877   (exit $ac_status); } &&
   4878 	 { ac_try='test -z "$ac_c_werror_flag"
   4879 			 || test ! -s conftest.err'
   4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4881   (eval $ac_try) 2>&5
   4882   ac_status=$?
   4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4884   (exit $ac_status); }; } &&
   4885 	 { ac_try='test -s conftest$ac_exeext'
   4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4887   (eval $ac_try) 2>&5
   4888   ac_status=$?
   4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4890   (exit $ac_status); }; }; then
   4891   ac_cv_lib_ipc_shmat=yes
   4892 else
   4893   echo "$as_me: failed program was:" >&5
   4894 sed 's/^/| /' conftest.$ac_ext >&5
   4895 
   4896 ac_cv_lib_ipc_shmat=no
   4897 fi
   4898 rm -f conftest.err conftest.$ac_objext \
   4899       conftest$ac_exeext conftest.$ac_ext
   4900 LIBS=$ac_check_lib_save_LIBS
   4901 fi
   4902 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
   4903 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   4904 if test $ac_cv_lib_ipc_shmat = yes; then
   4905   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   4906 fi
   4907 
   4908     fi
   4909   fi
   4910 
   4911   # Check for libraries that X11R6 Xt/Xaw programs need.
   4912   ac_save_LDFLAGS=$LDFLAGS
   4913   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   4914   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   4915   # check for ICE first), but we must link in the order -lSM -lICE or
   4916   # we get undefined symbols.  So assume we have SM if we have ICE.
   4917   # These have to be linked with before -lX11, unlike the other
   4918   # libraries we check for below, so use a different variable.
   4919   # John Interrante, Karl Berry
   4920   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
   4921 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   4922 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   4923   echo $ECHO_N "(cached) $ECHO_C" >&6
   4924 else
   4925   ac_check_lib_save_LIBS=$LIBS
   4926 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   4927 cat >conftest.$ac_ext <<_ACEOF
   4928 /* confdefs.h.  */
   4929 _ACEOF
   4930 cat confdefs.h >>conftest.$ac_ext
   4931 cat >>conftest.$ac_ext <<_ACEOF
   4932 /* end confdefs.h.  */
   4933 
   4934 /* Override any gcc2 internal prototype to avoid an error.  */
   4935 #ifdef __cplusplus
   4936 extern "C"
   4937 #endif
   4938 /* We use char because int might match the return type of a gcc2
   4939    builtin and then its argument prototype would still apply.  */
   4940 char IceConnectionNumber ();
   4941 int
   4942 main ()
   4943 {
   4944 IceConnectionNumber ();
   4945   ;
   4946   return 0;
   4947 }
   4948 _ACEOF
   4949 rm -f conftest.$ac_objext conftest$ac_exeext
   4950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4951   (eval $ac_link) 2>conftest.er1
   4952   ac_status=$?
   4953   grep -v '^ *+' conftest.er1 >conftest.err
   4954   rm -f conftest.er1
   4955   cat conftest.err >&5
   4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4957   (exit $ac_status); } &&
   4958 	 { ac_try='test -z "$ac_c_werror_flag"
   4959 			 || test ! -s conftest.err'
   4960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4961   (eval $ac_try) 2>&5
   4962   ac_status=$?
   4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4964   (exit $ac_status); }; } &&
   4965 	 { ac_try='test -s conftest$ac_exeext'
   4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4967   (eval $ac_try) 2>&5
   4968   ac_status=$?
   4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4970   (exit $ac_status); }; }; then
   4971   ac_cv_lib_ICE_IceConnectionNumber=yes
   4972 else
   4973   echo "$as_me: failed program was:" >&5
   4974 sed 's/^/| /' conftest.$ac_ext >&5
   4975 
   4976 ac_cv_lib_ICE_IceConnectionNumber=no
   4977 fi
   4978 rm -f conftest.err conftest.$ac_objext \
   4979       conftest$ac_exeext conftest.$ac_ext
   4980 LIBS=$ac_check_lib_save_LIBS
   4981 fi
   4982 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   4983 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   4984 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   4985   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   4986 fi
   4987 
   4988   LDFLAGS=$ac_save_LDFLAGS
   4989 
   4990 fi
   4991 
   4992 
   4993    groff_no_x=$no_x
   4994    if test -z "$groff_no_x"; then
   4995      OLDCFLAGS=$CFLAGS
   4996      OLDLDFLAGS=$LDFLAGS
   4997      OLDLIBS=$LIBS
   4998      CFLAGS="$CFLAGS $X_CFLAGS"
   4999      LDFLAGS="$LDFLAGS $X_LIBS"
   5000      LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
   5001 
   5002      LIBS="$LIBS -lXaw"
   5003      echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
   5004 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
   5005      cat >conftest.$ac_ext <<_ACEOF
   5006 
   5007 	 /* confdefs.h.  */
   5008 _ACEOF
   5009 cat confdefs.h >>conftest.$ac_ext
   5010 cat >>conftest.$ac_ext <<_ACEOF
   5011 /* end confdefs.h.  */
   5012 
   5013 
   5014 #include <X11/Intrinsic.h>
   5015 #include <X11/Xaw/Simple.h>
   5016 
   5017 
   5018 int
   5019 main ()
   5020 {
   5021 
   5022   ;
   5023   return 0;
   5024 }
   5025 
   5026 _ACEOF
   5027 rm -f conftest.$ac_objext conftest$ac_exeext
   5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5029   (eval $ac_link) 2>conftest.er1
   5030   ac_status=$?
   5031   grep -v '^ *+' conftest.er1 >conftest.err
   5032   rm -f conftest.er1
   5033   cat conftest.err >&5
   5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5035   (exit $ac_status); } &&
   5036 	 { ac_try='test -z "$ac_c_werror_flag"
   5037 			 || test ! -s conftest.err'
   5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5039   (eval $ac_try) 2>&5
   5040   ac_status=$?
   5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5042   (exit $ac_status); }; } &&
   5043 	 { ac_try='test -s conftest$ac_exeext'
   5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5045   (eval $ac_try) 2>&5
   5046   ac_status=$?
   5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5048   (exit $ac_status); }; }; then
   5049   echo "$as_me:$LINENO: result: yes" >&5
   5050 echo "${ECHO_T}yes" >&6
   5051 else
   5052   echo "$as_me: failed program was:" >&5
   5053 sed 's/^/| /' conftest.$ac_ext >&5
   5054 
   5055 echo "$as_me:$LINENO: result: no" >&5
   5056 echo "${ECHO_T}no" >&6
   5057 	groff_no_x="yes"
   5058 fi
   5059 rm -f conftest.err conftest.$ac_objext \
   5060       conftest$ac_exeext conftest.$ac_ext
   5061 
   5062      LIBS="$LIBS -lXmu"
   5063      echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
   5064 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
   5065      cat >conftest.$ac_ext <<_ACEOF
   5066 
   5067 	 /* confdefs.h.  */
   5068 _ACEOF
   5069 cat confdefs.h >>conftest.$ac_ext
   5070 cat >>conftest.$ac_ext <<_ACEOF
   5071 /* end confdefs.h.  */
   5072 
   5073 
   5074 #include <X11/Intrinsic.h>
   5075 #include <X11/Xmu/Converters.h>
   5076 
   5077 
   5078 int
   5079 main ()
   5080 {
   5081 
   5082   ;
   5083   return 0;
   5084 }
   5085 
   5086 _ACEOF
   5087 rm -f conftest.$ac_objext conftest$ac_exeext
   5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5089   (eval $ac_link) 2>conftest.er1
   5090   ac_status=$?
   5091   grep -v '^ *+' conftest.er1 >conftest.err
   5092   rm -f conftest.er1
   5093   cat conftest.err >&5
   5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5095   (exit $ac_status); } &&
   5096 	 { ac_try='test -z "$ac_c_werror_flag"
   5097 			 || test ! -s conftest.err'
   5098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5099   (eval $ac_try) 2>&5
   5100   ac_status=$?
   5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5102   (exit $ac_status); }; } &&
   5103 	 { ac_try='test -s conftest$ac_exeext'
   5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5105   (eval $ac_try) 2>&5
   5106   ac_status=$?
   5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5108   (exit $ac_status); }; }; then
   5109   echo "$as_me:$LINENO: result: yes" >&5
   5110 echo "${ECHO_T}yes" >&6
   5111 else
   5112   echo "$as_me: failed program was:" >&5
   5113 sed 's/^/| /' conftest.$ac_ext >&5
   5114 
   5115 echo "$as_me:$LINENO: result: no" >&5
   5116 echo "${ECHO_T}no" >&6
   5117 	groff_no_x="yes"
   5118 fi
   5119 rm -f conftest.err conftest.$ac_objext \
   5120       conftest$ac_exeext conftest.$ac_ext
   5121 
   5122      CFLAGS=$OLDCFLAGS
   5123      LDFLAGS=$OLDLDFLAGS
   5124      LIBS=$OLDLIBS
   5125    fi
   5126 
   5127    if test "x$groff_no_x" = "xyes"; then
   5128      { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
   5129 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
   5130    else
   5131      XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
   5132      XPROGDIRS="src/devices/xditview src/utils/xtotroff"
   5133      XLIBDIRS="src/libs/libxutil"
   5134    fi
   5135 
   5136 
   5137 
   5138 
   5139 
   5140 # Check whether --with-appresdir or --without-appresdir was given.
   5141 if test "${with_appresdir+set}" = set; then
   5142   withval="$with_appresdir"
   5143 
   5144 fi;
   5145 if test -z "$groff_no_x"; then
   5146      # Create an Imakefile, run `xmkmf', then `make'.
   5147      rm -f -r conftest.dir
   5148      if mkdir conftest.dir; then
   5149        cd conftest.dir
   5150        # Make sure to not put `make' in the Imakefile rules,
   5151        # since we grep it out.
   5152        cat >Imakefile <<'EOF'
   5153 
   5154 xlibdirs:
   5155 	@echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
   5156 EOF
   5157 
   5158        if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   5159 	 # GNU make sometimes prints "make[1]: Entering...",
   5160 	 # which would confuse us.
   5161 	 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
   5162 
   5163 	 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
   5164 	 for groff_extension in a so sl; do
   5165 	   if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
   5166 	      test -f $groff_x_libdir/libX11.$groff_extension; then
   5167 	     groff_x_usrlibdir=$groff_x_libdir
   5168 	     break
   5169 	   fi
   5170 	 done
   5171        fi
   5172 
   5173        cd ..
   5174        rm -f -r conftest.dir
   5175      fi
   5176 
   5177      # In case the test with `xmkmf' wasn't successful, try a suite of
   5178      # standard directories.  Check `X11' before `X11Rn' because it is often
   5179      # a symlink to the current release.
   5180      groff_x_libdirs='
   5181        /usr/X11/lib
   5182        /usr/X11R6/lib
   5183        /usr/X11R5/lib
   5184        /usr/X11R4/lib
   5185 
   5186        /usr/lib/X11
   5187        /usr/lib/X11R6
   5188        /usr/lib/X11R5
   5189        /usr/lib/X11R4
   5190 
   5191        /usr/local/X11/lib
   5192        /usr/local/X11R6/lib
   5193        /usr/local/X11R5/lib
   5194        /usr/local/X11R4/lib
   5195 
   5196        /usr/local/lib/X11
   5197        /usr/local/lib/X11R6
   5198        /usr/local/lib/X11R5
   5199        /usr/local/lib/X11R4
   5200 
   5201        /usr/X386/lib
   5202        /usr/x386/lib
   5203        /usr/XFree86/lib/X11
   5204 
   5205        /usr/lib
   5206        /usr/local/lib
   5207        /usr/unsupported/lib
   5208        /usr/athena/lib
   5209        /usr/local/x11r5/lib
   5210        /usr/lpp/Xamples/lib
   5211 
   5212        /usr/openwin/lib
   5213        /usr/openwin/share/lib'
   5214 
   5215      if test -z "$groff_x_usrlibdir"; then
   5216        # We only test whether libX11 exists.
   5217        for groff_dir in $groff_x_libdirs; do
   5218 	 for groff_extension in a so sl; do
   5219 	   if test ! -r $groff_dir/libX11.$groff_extension; then
   5220 	     groff_x_usrlibdir=$groff_dir
   5221 	     break 2
   5222 	   fi
   5223 	 done
   5224        done
   5225      fi
   5226 
   5227      if test "x$with_appresdir" = "x"; then
   5228        appresdir=$groff_x_usrlibdir/X11/app-defaults
   5229      else
   5230        appresdir=$with_appresdir
   5231      fi
   5232    fi
   5233 
   5234 if test -z "$PSPRINT"; then
   5235      for ac_prog in lpr
   5236 do
   5237   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5238 set dummy $ac_prog; ac_word=$2
   5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5241 if test "${ac_cv_prog_LPR+set}" = set; then
   5242   echo $ECHO_N "(cached) $ECHO_C" >&6
   5243 else
   5244   if test -n "$LPR"; then
   5245   ac_cv_prog_LPR="$LPR" # Let the user override the test.
   5246 else
   5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5248 for as_dir in $PATH
   5249 do
   5250   IFS=$as_save_IFS
   5251   test -z "$as_dir" && as_dir=.
   5252   for ac_exec_ext in '' $ac_executable_extensions; do
   5253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5254     ac_cv_prog_LPR="$ac_prog"
   5255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5256     break 2
   5257   fi
   5258 done
   5259 done
   5260 
   5261 fi
   5262 fi
   5263 LPR=$ac_cv_prog_LPR
   5264 if test -n "$LPR"; then
   5265   echo "$as_me:$LINENO: result: $LPR" >&5
   5266 echo "${ECHO_T}$LPR" >&6
   5267 else
   5268   echo "$as_me:$LINENO: result: no" >&5
   5269 echo "${ECHO_T}no" >&6
   5270 fi
   5271 
   5272   test -n "$LPR" && break
   5273 done
   5274 
   5275      for ac_prog in lp
   5276 do
   5277   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5278 set dummy $ac_prog; ac_word=$2
   5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5281 if test "${ac_cv_prog_LP+set}" = set; then
   5282   echo $ECHO_N "(cached) $ECHO_C" >&6
   5283 else
   5284   if test -n "$LP"; then
   5285   ac_cv_prog_LP="$LP" # Let the user override the test.
   5286 else
   5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5288 for as_dir in $PATH
   5289 do
   5290   IFS=$as_save_IFS
   5291   test -z "$as_dir" && as_dir=.
   5292   for ac_exec_ext in '' $ac_executable_extensions; do
   5293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5294     ac_cv_prog_LP="$ac_prog"
   5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5296     break 2
   5297   fi
   5298 done
   5299 done
   5300 
   5301 fi
   5302 fi
   5303 LP=$ac_cv_prog_LP
   5304 if test -n "$LP"; then
   5305   echo "$as_me:$LINENO: result: $LP" >&5
   5306 echo "${ECHO_T}$LP" >&6
   5307 else
   5308   echo "$as_me:$LINENO: result: no" >&5
   5309 echo "${ECHO_T}no" >&6
   5310 fi
   5311 
   5312   test -n "$LP" && break
   5313 done
   5314 
   5315      if test -n "$LPR" && test -n "$LP"; then
   5316        # HP-UX provides an lpr command that emulates lpr using lp,
   5317        # but it doesn't have lpq; in this case we want to use lp
   5318        # rather than lpr.
   5319        for ac_prog in lpq
   5320 do
   5321   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5322 set dummy $ac_prog; ac_word=$2
   5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5325 if test "${ac_cv_prog_LPQ+set}" = set; then
   5326   echo $ECHO_N "(cached) $ECHO_C" >&6
   5327 else
   5328   if test -n "$LPQ"; then
   5329   ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
   5330 else
   5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5332 for as_dir in $PATH
   5333 do
   5334   IFS=$as_save_IFS
   5335   test -z "$as_dir" && as_dir=.
   5336   for ac_exec_ext in '' $ac_executable_extensions; do
   5337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5338     ac_cv_prog_LPQ="$ac_prog"
   5339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5340     break 2
   5341   fi
   5342 done
   5343 done
   5344 
   5345 fi
   5346 fi
   5347 LPQ=$ac_cv_prog_LPQ
   5348 if test -n "$LPQ"; then
   5349   echo "$as_me:$LINENO: result: $LPQ" >&5
   5350 echo "${ECHO_T}$LPQ" >&6
   5351 else
   5352   echo "$as_me:$LINENO: result: no" >&5
   5353 echo "${ECHO_T}no" >&6
   5354 fi
   5355 
   5356   test -n "$LPQ" && break
   5357 done
   5358 
   5359        test -n "$LPQ" || LPR=
   5360      fi
   5361      if test -n "$LPR"; then
   5362        PSPRINT="$LPR"
   5363      elif test -n "$LP"; then
   5364        PSPRINT="$LP"
   5365      fi
   5366    fi
   5367 
   5368    echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
   5369 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
   5370    echo "$as_me:$LINENO: result: $PSPRINT" >&5
   5371 echo "${ECHO_T}$PSPRINT" >&6
   5372 
   5373    # Figure out DVIPRINT from PSPRINT.
   5374    echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
   5375 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
   5376    if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
   5377      if test "x$PSPRINT" = "xlpr"; then
   5378        DVIPRINT="lpr -d"
   5379      else
   5380        DVIPRINT="$PSPRINT"
   5381      fi
   5382    fi
   5383 
   5384    echo "$as_me:$LINENO: result: $DVIPRINT" >&5
   5385 echo "${ECHO_T}$DVIPRINT" >&6
   5386 # Extract the first word of "perl", so it can be a program name with args.
   5387 set dummy perl; ac_word=$2
   5388 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5390 if test "${ac_cv_path_PERLPATH+set}" = set; then
   5391   echo $ECHO_N "(cached) $ECHO_C" >&6
   5392 else
   5393   case $PERLPATH in
   5394   [\\/]* | ?:[\\/]*)
   5395   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
   5396   ;;
   5397   *)
   5398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5399 for as_dir in $PATH
   5400 do
   5401   IFS=$as_save_IFS
   5402   test -z "$as_dir" && as_dir=.
   5403   for ac_exec_ext in '' $ac_executable_extensions; do
   5404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5405     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
   5406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5407     break 2
   5408   fi
   5409 done
   5410 done
   5411 
   5412   test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
   5413   ;;
   5414 esac
   5415 fi
   5416 PERLPATH=$ac_cv_path_PERLPATH
   5417 
   5418 if test -n "$PERLPATH"; then
   5419   echo "$as_me:$LINENO: result: $PERLPATH" >&5
   5420 echo "${ECHO_T}$PERLPATH" >&6
   5421 else
   5422   echo "$as_me:$LINENO: result: no" >&5
   5423 echo "${ECHO_T}no" >&6
   5424 fi
   5425 
   5426 for ac_prog in byacc 'bison -y'
   5427 do
   5428   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5429 set dummy $ac_prog; ac_word=$2
   5430 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5432 if test "${ac_cv_prog_YACC+set}" = set; then
   5433   echo $ECHO_N "(cached) $ECHO_C" >&6
   5434 else
   5435   if test -n "$YACC"; then
   5436   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   5437 else
   5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5439 for as_dir in $PATH
   5440 do
   5441   IFS=$as_save_IFS
   5442   test -z "$as_dir" && as_dir=.
   5443   for ac_exec_ext in '' $ac_executable_extensions; do
   5444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5445     ac_cv_prog_YACC="$ac_prog"
   5446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5447     break 2
   5448   fi
   5449 done
   5450 done
   5451 
   5452 fi
   5453 fi
   5454 YACC=$ac_cv_prog_YACC
   5455 if test -n "$YACC"; then
   5456   echo "$as_me:$LINENO: result: $YACC" >&5
   5457 echo "${ECHO_T}$YACC" >&6
   5458 else
   5459   echo "$as_me:$LINENO: result: no" >&5
   5460 echo "${ECHO_T}no" >&6
   5461 fi
   5462 
   5463   test -n "$YACC" && break
   5464 done
   5465 test -n "$YACC" || YACC="yacc"
   5466 
   5467 if test -n "$ac_tool_prefix"; then
   5468   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5470 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5472 if test "${ac_cv_prog_RANLIB+set}" = set; then
   5473   echo $ECHO_N "(cached) $ECHO_C" >&6
   5474 else
   5475   if test -n "$RANLIB"; then
   5476   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5477 else
   5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5479 for as_dir in $PATH
   5480 do
   5481   IFS=$as_save_IFS
   5482   test -z "$as_dir" && as_dir=.
   5483   for ac_exec_ext in '' $ac_executable_extensions; do
   5484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5485     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5487     break 2
   5488   fi
   5489 done
   5490 done
   5491 
   5492 fi
   5493 fi
   5494 RANLIB=$ac_cv_prog_RANLIB
   5495 if test -n "$RANLIB"; then
   5496   echo "$as_me:$LINENO: result: $RANLIB" >&5
   5497 echo "${ECHO_T}$RANLIB" >&6
   5498 else
   5499   echo "$as_me:$LINENO: result: no" >&5
   5500 echo "${ECHO_T}no" >&6
   5501 fi
   5502 
   5503 fi
   5504 if test -z "$ac_cv_prog_RANLIB"; then
   5505   ac_ct_RANLIB=$RANLIB
   5506   # Extract the first word of "ranlib", so it can be a program name with args.
   5507 set dummy ranlib; ac_word=$2
   5508 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5510 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   5511   echo $ECHO_N "(cached) $ECHO_C" >&6
   5512 else
   5513   if test -n "$ac_ct_RANLIB"; then
   5514   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5515 else
   5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5517 for as_dir in $PATH
   5518 do
   5519   IFS=$as_save_IFS
   5520   test -z "$as_dir" && as_dir=.
   5521   for ac_exec_ext in '' $ac_executable_extensions; do
   5522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5523     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5525     break 2
   5526   fi
   5527 done
   5528 done
   5529 
   5530 fi
   5531 fi
   5532 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5533 if test -n "$ac_ct_RANLIB"; then
   5534   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   5535 echo "${ECHO_T}$ac_ct_RANLIB" >&6
   5536 else
   5537   echo "$as_me:$LINENO: result: no" >&5
   5538 echo "${ECHO_T}no" >&6
   5539 fi
   5540 
   5541   if test "x$ac_ct_RANLIB" = x; then
   5542     RANLIB=":"
   5543   else
   5544     if test "$build" != "$host"; then
   5545       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5546 whose name does not start with the host triplet.  If you think this
   5547 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5549 whose name does not start with the host triplet.  If you think this
   5550 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5551     fi
   5552     RANLIB=$ac_ct_RANLIB
   5553   fi
   5554 else
   5555   RANLIB="$ac_cv_prog_RANLIB"
   5556 fi
   5557 
   5558 ac_aux_dir=
   5559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   5560   if test -f $ac_dir/install-sh; then
   5561     ac_aux_dir=$ac_dir
   5562     ac_install_sh="$ac_aux_dir/install-sh -c"
   5563     break
   5564   elif test -f $ac_dir/install.sh; then
   5565     ac_aux_dir=$ac_dir
   5566     ac_install_sh="$ac_aux_dir/install.sh -c"
   5567     break
   5568   elif test -f $ac_dir/shtool; then
   5569     ac_aux_dir=$ac_dir
   5570     ac_install_sh="$ac_aux_dir/shtool install -c"
   5571     break
   5572   fi
   5573 done
   5574 if test -z "$ac_aux_dir"; then
   5575   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   5576 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   5577    { (exit 1); exit 1; }; }
   5578 fi
   5579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   5580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   5581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   5582 
   5583 
   5584    ac_dir=`cd $ac_aux_dir; pwd`
   5585    ac_install_sh="$ac_dir/install-sh -c"
   5586 for ac_prog in install-info
   5587 do
   5588   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5589 set dummy $ac_prog; ac_word=$2
   5590 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5592 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
   5593   echo $ECHO_N "(cached) $ECHO_C" >&6
   5594 else
   5595   if test -n "$INSTALL_INFO"; then
   5596   ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
   5597 else
   5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5599 for as_dir in $PATH
   5600 do
   5601   IFS=$as_save_IFS
   5602   test -z "$as_dir" && as_dir=.
   5603   for ac_exec_ext in '' $ac_executable_extensions; do
   5604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5605     ac_cv_prog_INSTALL_INFO="$ac_prog"
   5606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5607     break 2
   5608   fi
   5609 done
   5610 done
   5611 
   5612 fi
   5613 fi
   5614 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
   5615 if test -n "$INSTALL_INFO"; then
   5616   echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
   5617 echo "${ECHO_T}$INSTALL_INFO" >&6
   5618 else
   5619   echo "$as_me:$LINENO: result: no" >&5
   5620 echo "${ECHO_T}no" >&6
   5621 fi
   5622 
   5623   test -n "$INSTALL_INFO" && break
   5624 done
   5625 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
   5626 
   5627 # Find a good install program.  We prefer a C program (faster),
   5628 # so one script is as good as another.  But avoid the broken or
   5629 # incompatible versions:
   5630 # SysV /etc/install, /usr/sbin/install
   5631 # SunOS /usr/etc/install
   5632 # IRIX /sbin/install
   5633 # AIX /bin/install
   5634 # AmigaOS /C/install, which installs bootblocks on floppy discs
   5635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   5636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   5637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   5638 # OS/2's system install, which has a completely different semantic
   5639 # ./install, which can be erroneously created by make from ./install.sh.
   5640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   5641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
   5642 if test -z "$INSTALL"; then
   5643 if test "${ac_cv_path_install+set}" = set; then
   5644   echo $ECHO_N "(cached) $ECHO_C" >&6
   5645 else
   5646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5647 for as_dir in $PATH
   5648 do
   5649   IFS=$as_save_IFS
   5650   test -z "$as_dir" && as_dir=.
   5651   # Account for people who put trailing slashes in PATH elements.
   5652 case $as_dir/ in
   5653   ./ | .// | /cC/* | \
   5654   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   5655   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   5656   /usr/ucb/* ) ;;
   5657   *)
   5658     # OSF1 and SCO ODT 3.0 have their own names for install.
   5659     # Don't use installbsd from OSF since it installs stuff as root
   5660     # by default.
   5661     for ac_prog in ginstall scoinst install; do
   5662       for ac_exec_ext in '' $ac_executable_extensions; do
   5663 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   5664 	  if test $ac_prog = install &&
   5665 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5666 	    # AIX install.  It has an incompatible calling convention.
   5667 	    :
   5668 	  elif test $ac_prog = install &&
   5669 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5670 	    # program-specific install script used by HP pwplus--don't use.
   5671 	    :
   5672 	  else
   5673 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   5674 	    break 3
   5675 	  fi
   5676 	fi
   5677       done
   5678     done
   5679     ;;
   5680 esac
   5681 done
   5682 
   5683 
   5684 fi
   5685   if test "${ac_cv_path_install+set}" = set; then
   5686     INSTALL=$ac_cv_path_install
   5687   else
   5688     # As a last resort, use the slow shell script.  Don't cache a
   5689     # value for INSTALL within a source directory, because that will
   5690     # break other packages using the cache if that directory is
   5691     # removed, or if the value is a relative name.
   5692     INSTALL=$ac_install_sh
   5693   fi
   5694 fi
   5695 echo "$as_me:$LINENO: result: $INSTALL" >&5
   5696 echo "${ECHO_T}$INSTALL" >&6
   5697 
   5698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5699 # It thinks the first close brace ends the variable substitution.
   5700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5701 
   5702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5703 
   5704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5705 
   5706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   5708 LN_S=$as_ln_s
   5709 if test "$LN_S" = "ln -s"; then
   5710   echo "$as_me:$LINENO: result: yes" >&5
   5711 echo "${ECHO_T}yes" >&6
   5712 else
   5713   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5714 echo "${ECHO_T}no, using $LN_S" >&6
   5715 fi
   5716 
   5717 
   5718 # use a dummy substitution if no csh hack is necessary to avoid errors
   5719 # with non-GNU sed programs
   5720 echo "$as_me:$LINENO: checking for csh hash hack" >&5
   5721 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
   5722 
   5723 cat <<EOF >conftest.sh
   5724 #! /bin/sh
   5725 true || exit 0
   5726 export PATH || exit 0
   5727 exit 1
   5728 EOF
   5729 
   5730    chmod +x conftest.sh
   5731    if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
   5732      echo "$as_me:$LINENO: result: yes" >&5
   5733 echo "${ECHO_T}yes" >&6
   5734      SH_SCRIPT_SED_CMD='1s/.*/:/'
   5735    else
   5736      echo "$as_me:$LINENO: result: no" >&5
   5737 echo "${ECHO_T}no" >&6
   5738      SH_SCRIPT_SED_CMD='1s/a/a/'
   5739    fi
   5740    rm -f conftest.sh
   5741 
   5742 
   5743 # checks for headers
   5744 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   5745 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
   5746 if test "${ac_cv_path_GREP+set}" = set; then
   5747   echo $ECHO_N "(cached) $ECHO_C" >&6
   5748 else
   5749   # Extract the first word of "grep ggrep" to use in msg output
   5750 if test -z "$GREP"; then
   5751 set dummy grep ggrep; ac_prog_name=$2
   5752 if test "${ac_cv_path_GREP+set}" = set; then
   5753   echo $ECHO_N "(cached) $ECHO_C" >&6
   5754 else
   5755   # Create a temporary directory, and hook for its removal unless debugging.
   5756 $debug ||
   5757 {
   5758   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   5759   trap '{ (exit 1); exit 1; }' 1 2 13 15
   5760 }
   5761 
   5762 # Create a (secure) tmp directory for tmp files.
   5763 : ${TMPDIR=/tmp}
   5764 {
   5765   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
   5766   test -n "$tmp" && test -d "$tmp"
   5767 }  ||
   5768 {
   5769   tmp=$TMPDIR/GREP$$-$RANDOM
   5770   (umask 077 && mkdir $tmp)
   5771 } ||
   5772 {
   5773    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   5774    { (exit 1); exit 1; }
   5775 }
   5776 ac_path_GREP_found=false
   5777 # Loop through the user's path and test for each of PROGNAME-LIST
   5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5779 as_dummy="$PATH:/usr/xpg4/bin"
   5780 for as_dir in $as_dummy
   5781 do
   5782   IFS=$as_save_IFS
   5783   test -z "$as_dir" && as_dir=.
   5784   for ac_prog in grep ggrep; do
   5785   for ac_exec_ext in '' $ac_executable_extensions; do
   5786     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5787     test -f "$ac_path_GREP" || continue
   5788     $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
   5789   # Check for GNU ac_path_GREP and select it if it is found.
   5790   # Check for GNU $ac_path_GREP
   5791 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
   5792   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
   5793 else
   5794   ac_count=0
   5795   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   5796   while :
   5797   do
   5798     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
   5799     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
   5800     cp "$tmp/conftest.in" "$tmp/conftest.nl"
   5801     echo 'GREP' >> "$tmp/conftest.nl"
   5802     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
   5803     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
   5804     ac_count=`expr $ac_count + 1`
   5805     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5806       # Best one so far, save it but keep looking for a better one
   5807       ac_cv_path_GREP="$ac_path_GREP"
   5808       ac_path_GREP_max=$ac_count
   5809     fi
   5810     # 10*(2^10) chars as input seems more than enough
   5811     test $ac_count -gt 10 && break
   5812   done
   5813 fi
   5814 
   5815 fi
   5816 
   5817     $ac_path_GREP_found && break 3
   5818   done
   5819 done
   5820 
   5821 done
   5822 
   5823 rm -rf "$tmp"
   5824 
   5825 fi
   5826 
   5827 GREP="$ac_cv_path_GREP"
   5828 if test -z "$GREP"; then
   5829   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
   5830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
   5831    { (exit 1); exit 1; }; }
   5832 fi
   5833 
   5834 fi
   5835 
   5836 
   5837 fi
   5838 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   5839 echo "${ECHO_T}$ac_cv_path_GREP" >&6
   5840  GREP="$ac_cv_path_GREP"
   5841 
   5842 
   5843 echo "$as_me:$LINENO: checking for egrep" >&5
   5844 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
   5845 if test "${ac_cv_path_EGREP+set}" = set; then
   5846   echo $ECHO_N "(cached) $ECHO_C" >&6
   5847 else
   5848   if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
   5849    then ac_cv_path_EGREP="$GREP -E"
   5850    else
   5851      # Extract the first word of "egrep" to use in msg output
   5852 if test -z "$EGREP"; then
   5853 set dummy egrep; ac_prog_name=$2
   5854 if test "${ac_cv_path_EGREP+set}" = set; then
   5855   echo $ECHO_N "(cached) $ECHO_C" >&6
   5856 else
   5857   # Create a temporary directory, and hook for its removal unless debugging.
   5858 $debug ||
   5859 {
   5860   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   5861   trap '{ (exit 1); exit 1; }' 1 2 13 15
   5862 }
   5863 
   5864 # Create a (secure) tmp directory for tmp files.
   5865 : ${TMPDIR=/tmp}
   5866 {
   5867   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
   5868   test -n "$tmp" && test -d "$tmp"
   5869 }  ||
   5870 {
   5871   tmp=$TMPDIR/EGREP$$-$RANDOM
   5872   (umask 077 && mkdir $tmp)
   5873 } ||
   5874 {
   5875    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   5876    { (exit 1); exit 1; }
   5877 }
   5878 ac_path_EGREP_found=false
   5879 # Loop through the user's path and test for each of PROGNAME-LIST
   5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5881 as_dummy="$PATH:/usr/xpg4/bin"
   5882 for as_dir in $as_dummy
   5883 do
   5884   IFS=$as_save_IFS
   5885   test -z "$as_dir" && as_dir=.
   5886   for ac_prog in egrep; do
   5887   for ac_exec_ext in '' $ac_executable_extensions; do
   5888     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5889     test -f "$ac_path_EGREP" || continue
   5890     $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
   5891   # Check for GNU ac_path_EGREP and select it if it is found.
   5892   # Check for GNU $ac_path_EGREP
   5893 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
   5894   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
   5895 else
   5896   ac_count=0
   5897   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   5898   while :
   5899   do
   5900     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
   5901     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
   5902     cp "$tmp/conftest.in" "$tmp/conftest.nl"
   5903     echo 'EGREP' >> "$tmp/conftest.nl"
   5904     "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
   5905     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
   5906     ac_count=`expr $ac_count + 1`
   5907     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5908       # Best one so far, save it but keep looking for a better one
   5909       ac_cv_path_EGREP="$ac_path_EGREP"
   5910       ac_path_EGREP_max=$ac_count
   5911     fi
   5912     # 10*(2^10) chars as input seems more than enough
   5913     test $ac_count -gt 10 && break
   5914   done
   5915 fi
   5916 
   5917 fi
   5918 
   5919     $ac_path_EGREP_found && break 3
   5920   done
   5921 done
   5922 
   5923 done
   5924 
   5925 rm -rf "$tmp"
   5926 
   5927 fi
   5928 
   5929 EGREP="$ac_cv_path_EGREP"
   5930 if test -z "$EGREP"; then
   5931   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
   5932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
   5933    { (exit 1); exit 1; }; }
   5934 fi
   5935 
   5936 fi
   5937 
   5938 
   5939    fi
   5940 fi
   5941 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   5942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
   5943  EGREP="$ac_cv_path_EGREP"
   5944 
   5945 
   5946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   5947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   5948 if test "${ac_cv_header_stdc+set}" = set; then
   5949   echo $ECHO_N "(cached) $ECHO_C" >&6
   5950 else
   5951   cat >conftest.$ac_ext <<_ACEOF
   5952 /* confdefs.h.  */
   5953 _ACEOF
   5954 cat confdefs.h >>conftest.$ac_ext
   5955 cat >>conftest.$ac_ext <<_ACEOF
   5956 /* end confdefs.h.  */
   5957 #include <stdlib.h>
   5958 #include <stdarg.h>
   5959 #include <string.h>
   5960 #include <float.h>
   5961 
   5962 int
   5963 main ()
   5964 {
   5965 
   5966   ;
   5967   return 0;
   5968 }
   5969 _ACEOF
   5970 rm -f conftest.$ac_objext
   5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5972   (eval $ac_compile) 2>conftest.er1
   5973   ac_status=$?
   5974   grep -v '^ *+' conftest.er1 >conftest.err
   5975   rm -f conftest.er1
   5976   cat conftest.err >&5
   5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5978   (exit $ac_status); } &&
   5979 	 { ac_try='test -z "$ac_c_werror_flag"
   5980 			 || test ! -s conftest.err'
   5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5982   (eval $ac_try) 2>&5
   5983   ac_status=$?
   5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5985   (exit $ac_status); }; } &&
   5986 	 { ac_try='test -s conftest.$ac_objext'
   5987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5988   (eval $ac_try) 2>&5
   5989   ac_status=$?
   5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5991   (exit $ac_status); }; }; then
   5992   ac_cv_header_stdc=yes
   5993 else
   5994   echo "$as_me: failed program was:" >&5
   5995 sed 's/^/| /' conftest.$ac_ext >&5
   5996 
   5997 ac_cv_header_stdc=no
   5998 fi
   5999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6000 
   6001 if test $ac_cv_header_stdc = yes; then
   6002   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6003   cat >conftest.$ac_ext <<_ACEOF
   6004 /* confdefs.h.  */
   6005 _ACEOF
   6006 cat confdefs.h >>conftest.$ac_ext
   6007 cat >>conftest.$ac_ext <<_ACEOF
   6008 /* end confdefs.h.  */
   6009 #include <string.h>
   6010 
   6011 _ACEOF
   6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6013   $EGREP "memchr" >/dev/null 2>&1; then
   6014   :
   6015 else
   6016   ac_cv_header_stdc=no
   6017 fi
   6018 rm -f conftest*
   6019 
   6020 fi
   6021 
   6022 if test $ac_cv_header_stdc = yes; then
   6023   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6024   cat >conftest.$ac_ext <<_ACEOF
   6025 /* confdefs.h.  */
   6026 _ACEOF
   6027 cat confdefs.h >>conftest.$ac_ext
   6028 cat >>conftest.$ac_ext <<_ACEOF
   6029 /* end confdefs.h.  */
   6030 #include <stdlib.h>
   6031 
   6032 _ACEOF
   6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6034   $EGREP "free" >/dev/null 2>&1; then
   6035   :
   6036 else
   6037   ac_cv_header_stdc=no
   6038 fi
   6039 rm -f conftest*
   6040 
   6041 fi
   6042 
   6043 if test $ac_cv_header_stdc = yes; then
   6044   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6045   if test "$cross_compiling" = yes; then
   6046   :
   6047 else
   6048   cat >conftest.$ac_ext <<_ACEOF
   6049 /* confdefs.h.  */
   6050 _ACEOF
   6051 cat confdefs.h >>conftest.$ac_ext
   6052 cat >>conftest.$ac_ext <<_ACEOF
   6053 /* end confdefs.h.  */
   6054 #include <ctype.h>
   6055 #include <stdlib.h>
   6056 #if ((' ' & 0x0FF) == 0x020)
   6057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6059 #else
   6060 # define ISLOWER(c) \
   6061 		   (('a' <= (c) && (c) <= 'i') \
   6062 		     || ('j' <= (c) && (c) <= 'r') \
   6063 		     || ('s' <= (c) && (c) <= 'z'))
   6064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6065 #endif
   6066 
   6067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6068 int
   6069 main ()
   6070 {
   6071   int i;
   6072   for (i = 0; i < 256; i++)
   6073     if (XOR (islower (i), ISLOWER (i))
   6074 	|| toupper (i) != TOUPPER (i))
   6075       exit (2);
   6076   exit (0);
   6077 }
   6078 _ACEOF
   6079 rm -f conftest$ac_exeext
   6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6081   (eval $ac_link) 2>&5
   6082   ac_status=$?
   6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6086   (eval $ac_try) 2>&5
   6087   ac_status=$?
   6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6089   (exit $ac_status); }; }; then
   6090   :
   6091 else
   6092   echo "$as_me: program exited with status $ac_status" >&5
   6093 echo "$as_me: failed program was:" >&5
   6094 sed 's/^/| /' conftest.$ac_ext >&5
   6095 
   6096 ( exit $ac_status )
   6097 ac_cv_header_stdc=no
   6098 fi
   6099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6100 fi
   6101 fi
   6102 fi
   6103 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   6104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
   6105 if test $ac_cv_header_stdc = yes; then
   6106 
   6107 cat >>confdefs.h <<\_ACEOF
   6108 #define STDC_HEADERS 1
   6109 _ACEOF
   6110 
   6111 fi
   6112 
   6113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6114 
   6115 
   6116 
   6117 
   6118 
   6119 
   6120 
   6121 
   6122 
   6123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6124 		  inttypes.h stdint.h unistd.h
   6125 do
   6126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6127 echo "$as_me:$LINENO: checking for $ac_header" >&5
   6128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6130   echo $ECHO_N "(cached) $ECHO_C" >&6
   6131 else
   6132   cat >conftest.$ac_ext <<_ACEOF
   6133 /* confdefs.h.  */
   6134 _ACEOF
   6135 cat confdefs.h >>conftest.$ac_ext
   6136 cat >>conftest.$ac_ext <<_ACEOF
   6137 /* end confdefs.h.  */
   6138 $ac_includes_default
   6139 
   6140 #include <$ac_header>
   6141 _ACEOF
   6142 rm -f conftest.$ac_objext
   6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6144   (eval $ac_compile) 2>conftest.er1
   6145   ac_status=$?
   6146   grep -v '^ *+' conftest.er1 >conftest.err
   6147   rm -f conftest.er1
   6148   cat conftest.err >&5
   6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6150   (exit $ac_status); } &&
   6151 	 { ac_try='test -z "$ac_c_werror_flag"
   6152 			 || test ! -s conftest.err'
   6153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6154   (eval $ac_try) 2>&5
   6155   ac_status=$?
   6156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6157   (exit $ac_status); }; } &&
   6158 	 { ac_try='test -s conftest.$ac_objext'
   6159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6160   (eval $ac_try) 2>&5
   6161   ac_status=$?
   6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6163   (exit $ac_status); }; }; then
   6164   eval "$as_ac_Header=yes"
   6165 else
   6166   echo "$as_me: failed program was:" >&5
   6167 sed 's/^/| /' conftest.$ac_ext >&5
   6168 
   6169 eval "$as_ac_Header=no"
   6170 fi
   6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6172 fi
   6173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6176   cat >>confdefs.h <<_ACEOF
   6177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6178 _ACEOF
   6179 
   6180 fi
   6181 
   6182 done
   6183 
   6184 
   6185 
   6186 
   6187 
   6188 
   6189 
   6190 
   6191 
   6192 
   6193 
   6194 
   6195 
   6196 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
   6197                   string.h strings.h math.h sys/time.h direct.h process.h
   6198 do
   6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6201   echo "$as_me:$LINENO: checking for $ac_header" >&5
   6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6204   echo $ECHO_N "(cached) $ECHO_C" >&6
   6205 fi
   6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6208 else
   6209   # Is the header compilable?
   6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
   6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   6212 cat >conftest.$ac_ext <<_ACEOF
   6213 /* confdefs.h.  */
   6214 _ACEOF
   6215 cat confdefs.h >>conftest.$ac_ext
   6216 cat >>conftest.$ac_ext <<_ACEOF
   6217 /* end confdefs.h.  */
   6218 $ac_includes_default
   6219 #include <$ac_header>
   6220 _ACEOF
   6221 rm -f conftest.$ac_objext
   6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6223   (eval $ac_compile) 2>conftest.er1
   6224   ac_status=$?
   6225   grep -v '^ *+' conftest.er1 >conftest.err
   6226   rm -f conftest.er1
   6227   cat conftest.err >&5
   6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6229   (exit $ac_status); } &&
   6230 	 { ac_try='test -z "$ac_c_werror_flag"
   6231 			 || test ! -s conftest.err'
   6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6233   (eval $ac_try) 2>&5
   6234   ac_status=$?
   6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6236   (exit $ac_status); }; } &&
   6237 	 { ac_try='test -s conftest.$ac_objext'
   6238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6239   (eval $ac_try) 2>&5
   6240   ac_status=$?
   6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6242   (exit $ac_status); }; }; then
   6243   ac_header_compiler=yes
   6244 else
   6245   echo "$as_me: failed program was:" >&5
   6246 sed 's/^/| /' conftest.$ac_ext >&5
   6247 
   6248 ac_header_compiler=no
   6249 fi
   6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   6252 echo "${ECHO_T}$ac_header_compiler" >&6
   6253 
   6254 # Is the header present?
   6255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
   6256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   6257 cat >conftest.$ac_ext <<_ACEOF
   6258 /* confdefs.h.  */
   6259 _ACEOF
   6260 cat confdefs.h >>conftest.$ac_ext
   6261 cat >>conftest.$ac_ext <<_ACEOF
   6262 /* end confdefs.h.  */
   6263 #include <$ac_header>
   6264 _ACEOF
   6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   6266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6267   ac_status=$?
   6268   grep -v '^ *+' conftest.er1 >conftest.err
   6269   rm -f conftest.er1
   6270   cat conftest.err >&5
   6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6272   (exit $ac_status); } >/dev/null; then
   6273   if test -s conftest.err; then
   6274     ac_cpp_err=$ac_c_preproc_warn_flag
   6275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   6276   else
   6277     ac_cpp_err=
   6278   fi
   6279 else
   6280   ac_cpp_err=yes
   6281 fi
   6282 if test -z "$ac_cpp_err"; then
   6283   ac_header_preproc=yes
   6284 else
   6285   echo "$as_me: failed program was:" >&5
   6286 sed 's/^/| /' conftest.$ac_ext >&5
   6287 
   6288   ac_header_preproc=no
   6289 fi
   6290 rm -f conftest.err conftest.$ac_ext
   6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   6292 echo "${ECHO_T}$ac_header_preproc" >&6
   6293 
   6294 # So?  What about this header?
   6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   6296   yes:no: )
   6297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   6298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   6299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   6300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   6301     ac_header_preproc=yes
   6302     ;;
   6303   no:yes:* )
   6304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   6305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   6306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   6307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   6308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   6309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   6310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   6311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   6312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   6313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   6314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   6315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   6316     (
   6317       cat <<\_ASBOX
   6318 ## ------------------------------------------ ##
   6319 ## Report this to the AC_PACKAGE_NAME lists.  ##
   6320 ## ------------------------------------------ ##
   6321 _ASBOX
   6322     ) |
   6323       sed "s/^/$as_me: WARNING:     /" >&2
   6324     ;;
   6325 esac
   6326 echo "$as_me:$LINENO: checking for $ac_header" >&5
   6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6329   echo $ECHO_N "(cached) $ECHO_C" >&6
   6330 else
   6331   eval "$as_ac_Header=\$ac_header_preproc"
   6332 fi
   6333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6335 
   6336 fi
   6337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6338   cat >>confdefs.h <<_ACEOF
   6339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6340 _ACEOF
   6341 
   6342 fi
   6343 
   6344 done
   6345 
   6346 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
   6347 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
   6348    if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
   6349    then
   6350      echo "$as_me:$LINENO: result: yes" >&5
   6351 echo "${ECHO_T}yes" >&6
   6352 
   6353 cat >>confdefs.h <<\_ACEOF
   6354 #define _SYSV3 1
   6355 _ACEOF
   6356 
   6357    else
   6358      echo "$as_me:$LINENO: result: no" >&5
   6359 echo "${ECHO_T}no" >&6
   6360    fi
   6361 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
   6362 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
   6363    ac_ext=cc
   6364 ac_cpp='$CXXCPP $CPPFLAGS'
   6365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6368 
   6369    cat >conftest.$ac_ext <<_ACEOF
   6370 
   6371        /* confdefs.h.  */
   6372 _ACEOF
   6373 cat confdefs.h >>conftest.$ac_ext
   6374 cat >>conftest.$ac_ext <<_ACEOF
   6375 /* end confdefs.h.  */
   6376 
   6377 
   6378 #include <stdio.h>
   6379 extern "C" { void fileno(int); }
   6380 
   6381 
   6382 int
   6383 main ()
   6384 {
   6385 
   6386   ;
   6387   return 0;
   6388 }
   6389 
   6390 _ACEOF
   6391 rm -f conftest.$ac_objext
   6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6393   (eval $ac_compile) 2>conftest.er1
   6394   ac_status=$?
   6395   grep -v '^ *+' conftest.er1 >conftest.err
   6396   rm -f conftest.er1
   6397   cat conftest.err >&5
   6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6399   (exit $ac_status); } &&
   6400 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6401 			 || test ! -s conftest.err'
   6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6403   (eval $ac_try) 2>&5
   6404   ac_status=$?
   6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6406   (exit $ac_status); }; } &&
   6407 	 { ac_try='test -s conftest.$ac_objext'
   6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6409   (eval $ac_try) 2>&5
   6410   ac_status=$?
   6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6412   (exit $ac_status); }; }; then
   6413   echo "$as_me:$LINENO: result: yes" >&5
   6414 echo "${ECHO_T}yes" >&6
   6415 
   6416 cat >>confdefs.h <<\_ACEOF
   6417 #define _POSIX_SOURCE 1
   6418 _ACEOF
   6419 
   6420 else
   6421   echo "$as_me: failed program was:" >&5
   6422 sed 's/^/| /' conftest.$ac_ext >&5
   6423 
   6424 echo "$as_me:$LINENO: result: no" >&5
   6425 echo "${ECHO_T}no" >&6
   6426 fi
   6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6428    ac_ext=c
   6429 ac_cpp='$CPP $CPPFLAGS'
   6430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6433 
   6434 
   6435 # checks for header stuff
   6436 ac_ext=cc
   6437 ac_cpp='$CXXCPP $CPPFLAGS'
   6438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6441 
   6442    echo "$as_me:$LINENO: checking for return type of srand" >&5
   6443 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
   6444    cat >conftest.$ac_ext <<_ACEOF
   6445 
   6446        /* confdefs.h.  */
   6447 _ACEOF
   6448 cat confdefs.h >>conftest.$ac_ext
   6449 cat >>conftest.$ac_ext <<_ACEOF
   6450 /* end confdefs.h.  */
   6451 
   6452 
   6453 #include <stdlib.h>
   6454 extern "C" { void srand(unsigned int); }
   6455 
   6456 
   6457 int
   6458 main ()
   6459 {
   6460 
   6461   ;
   6462   return 0;
   6463 }
   6464 
   6465 _ACEOF
   6466 rm -f conftest.$ac_objext
   6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6468   (eval $ac_compile) 2>conftest.er1
   6469   ac_status=$?
   6470   grep -v '^ *+' conftest.er1 >conftest.err
   6471   rm -f conftest.er1
   6472   cat conftest.err >&5
   6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6474   (exit $ac_status); } &&
   6475 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6476 			 || test ! -s conftest.err'
   6477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6478   (eval $ac_try) 2>&5
   6479   ac_status=$?
   6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6481   (exit $ac_status); }; } &&
   6482 	 { ac_try='test -s conftest.$ac_objext'
   6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6484   (eval $ac_try) 2>&5
   6485   ac_status=$?
   6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6487   (exit $ac_status); }; }; then
   6488   echo "$as_me:$LINENO: result: void" >&5
   6489 echo "${ECHO_T}void" >&6
   6490 
   6491 cat >>confdefs.h <<\_ACEOF
   6492 #define RET_TYPE_SRAND_IS_VOID 1
   6493 _ACEOF
   6494 
   6495 else
   6496   echo "$as_me: failed program was:" >&5
   6497 sed 's/^/| /' conftest.$ac_ext >&5
   6498 
   6499 echo "$as_me:$LINENO: result: int" >&5
   6500 echo "${ECHO_T}int" >&6
   6501 fi
   6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6503    ac_ext=c
   6504 ac_cpp='$CPP $CPPFLAGS'
   6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6508 
   6509 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
   6510 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
   6511    ac_ext=cc
   6512 ac_cpp='$CXXCPP $CPPFLAGS'
   6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6516 
   6517    if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
   6518   echo $ECHO_N "(cached) $ECHO_C" >&6
   6519 else
   6520   cat >conftest.$ac_ext <<_ACEOF
   6521 
   6522 	  /* confdefs.h.  */
   6523 _ACEOF
   6524 cat confdefs.h >>conftest.$ac_ext
   6525 cat >>conftest.$ac_ext <<_ACEOF
   6526 /* end confdefs.h.  */
   6527 
   6528 
   6529 #include <stdio.h>
   6530 #ifdef HAVE_STRING_H
   6531 #include <string.h>
   6532 #endif
   6533 #ifdef HAVE_STRINGS_H
   6534 #include <strings.h>
   6535 #endif
   6536 #ifdef HAVE_STDLIB_H
   6537 #include <stdlib.h>
   6538 #endif
   6539 #ifdef HAVE_SYS_TIME_H
   6540 #include <sys/time.h>
   6541 #endif
   6542 #ifdef HAVE_UNISTD_H
   6543 #include <unistd.h>
   6544 #endif
   6545 #ifdef HAVE_MATH_H
   6546 #include <math.h>
   6547 #endif
   6548 
   6549 
   6550 int
   6551 main ()
   6552 {
   6553 
   6554 
   6555 #ifndef gettimeofday
   6556   char *p = (char *) gettimeofday;
   6557 #endif
   6558 
   6559 
   6560   ;
   6561   return 0;
   6562 }
   6563 
   6564 _ACEOF
   6565 rm -f conftest.$ac_objext
   6566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6567   (eval $ac_compile) 2>conftest.er1
   6568   ac_status=$?
   6569   grep -v '^ *+' conftest.er1 >conftest.err
   6570   rm -f conftest.er1
   6571   cat conftest.err >&5
   6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6573   (exit $ac_status); } &&
   6574 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6575 			 || test ! -s conftest.err'
   6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6577   (eval $ac_try) 2>&5
   6578   ac_status=$?
   6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6580   (exit $ac_status); }; } &&
   6581 	 { ac_try='test -s conftest.$ac_objext'
   6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6583   (eval $ac_try) 2>&5
   6584   ac_status=$?
   6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6586   (exit $ac_status); }; }; then
   6587   groff_cv_decl_needed_gettimeofday=no
   6588 else
   6589   echo "$as_me: failed program was:" >&5
   6590 sed 's/^/| /' conftest.$ac_ext >&5
   6591 
   6592 groff_cv_decl_needed_gettimeofday=yes
   6593 fi
   6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6595 fi
   6596 
   6597    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
   6598 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
   6599    if test $groff_cv_decl_needed_gettimeofday = yes; then
   6600 
   6601 cat >>confdefs.h <<\_ACEOF
   6602 #define NEED_DECLARATION_GETTIMEOFDAY 1
   6603 _ACEOF
   6604 
   6605    fi
   6606    ac_ext=c
   6607 ac_cpp='$CPP $CPPFLAGS'
   6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6611 
   6612 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
   6613 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
   6614    ac_ext=cc
   6615 ac_cpp='$CXXCPP $CPPFLAGS'
   6616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6619 
   6620    if test "${groff_cv_decl_needed_hypot+set}" = set; then
   6621   echo $ECHO_N "(cached) $ECHO_C" >&6
   6622 else
   6623   cat >conftest.$ac_ext <<_ACEOF
   6624 
   6625 	  /* confdefs.h.  */
   6626 _ACEOF
   6627 cat confdefs.h >>conftest.$ac_ext
   6628 cat >>conftest.$ac_ext <<_ACEOF
   6629 /* end confdefs.h.  */
   6630 
   6631 
   6632 #include <stdio.h>
   6633 #ifdef HAVE_STRING_H
   6634 #include <string.h>
   6635 #endif
   6636 #ifdef HAVE_STRINGS_H
   6637 #include <strings.h>
   6638 #endif
   6639 #ifdef HAVE_STDLIB_H
   6640 #include <stdlib.h>
   6641 #endif
   6642 #ifdef HAVE_SYS_TIME_H
   6643 #include <sys/time.h>
   6644 #endif
   6645 #ifdef HAVE_UNISTD_H
   6646 #include <unistd.h>
   6647 #endif
   6648 #ifdef HAVE_MATH_H
   6649 #include <math.h>
   6650 #endif
   6651 
   6652 
   6653 int
   6654 main ()
   6655 {
   6656 
   6657 
   6658 #ifndef hypot
   6659   char *p = (char *) hypot;
   6660 #endif
   6661 
   6662 
   6663   ;
   6664   return 0;
   6665 }
   6666 
   6667 _ACEOF
   6668 rm -f conftest.$ac_objext
   6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6670   (eval $ac_compile) 2>conftest.er1
   6671   ac_status=$?
   6672   grep -v '^ *+' conftest.er1 >conftest.err
   6673   rm -f conftest.er1
   6674   cat conftest.err >&5
   6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6676   (exit $ac_status); } &&
   6677 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6678 			 || test ! -s conftest.err'
   6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6680   (eval $ac_try) 2>&5
   6681   ac_status=$?
   6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6683   (exit $ac_status); }; } &&
   6684 	 { ac_try='test -s conftest.$ac_objext'
   6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6686   (eval $ac_try) 2>&5
   6687   ac_status=$?
   6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6689   (exit $ac_status); }; }; then
   6690   groff_cv_decl_needed_hypot=no
   6691 else
   6692   echo "$as_me: failed program was:" >&5
   6693 sed 's/^/| /' conftest.$ac_ext >&5
   6694 
   6695 groff_cv_decl_needed_hypot=yes
   6696 fi
   6697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6698 fi
   6699 
   6700    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
   6701 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
   6702    if test $groff_cv_decl_needed_hypot = yes; then
   6703 
   6704 cat >>confdefs.h <<\_ACEOF
   6705 #define NEED_DECLARATION_HYPOT 1
   6706 _ACEOF
   6707 
   6708    fi
   6709    ac_ext=c
   6710 ac_cpp='$CPP $CPPFLAGS'
   6711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6714 
   6715 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
   6716 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
   6717    ac_ext=cc
   6718 ac_cpp='$CXXCPP $CPPFLAGS'
   6719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6722 
   6723    if test "${groff_cv_decl_needed_popen+set}" = set; then
   6724   echo $ECHO_N "(cached) $ECHO_C" >&6
   6725 else
   6726   cat >conftest.$ac_ext <<_ACEOF
   6727 
   6728 	  /* confdefs.h.  */
   6729 _ACEOF
   6730 cat confdefs.h >>conftest.$ac_ext
   6731 cat >>conftest.$ac_ext <<_ACEOF
   6732 /* end confdefs.h.  */
   6733 
   6734 
   6735 #include <stdio.h>
   6736 #ifdef HAVE_STRING_H
   6737 #include <string.h>
   6738 #endif
   6739 #ifdef HAVE_STRINGS_H
   6740 #include <strings.h>
   6741 #endif
   6742 #ifdef HAVE_STDLIB_H
   6743 #include <stdlib.h>
   6744 #endif
   6745 #ifdef HAVE_SYS_TIME_H
   6746 #include <sys/time.h>
   6747 #endif
   6748 #ifdef HAVE_UNISTD_H
   6749 #include <unistd.h>
   6750 #endif
   6751 #ifdef HAVE_MATH_H
   6752 #include <math.h>
   6753 #endif
   6754 
   6755 
   6756 int
   6757 main ()
   6758 {
   6759 
   6760 
   6761 #ifndef popen
   6762   char *p = (char *) popen;
   6763 #endif
   6764 
   6765 
   6766   ;
   6767   return 0;
   6768 }
   6769 
   6770 _ACEOF
   6771 rm -f conftest.$ac_objext
   6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6773   (eval $ac_compile) 2>conftest.er1
   6774   ac_status=$?
   6775   grep -v '^ *+' conftest.er1 >conftest.err
   6776   rm -f conftest.er1
   6777   cat conftest.err >&5
   6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6779   (exit $ac_status); } &&
   6780 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6781 			 || test ! -s conftest.err'
   6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6783   (eval $ac_try) 2>&5
   6784   ac_status=$?
   6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6786   (exit $ac_status); }; } &&
   6787 	 { ac_try='test -s conftest.$ac_objext'
   6788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6789   (eval $ac_try) 2>&5
   6790   ac_status=$?
   6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6792   (exit $ac_status); }; }; then
   6793   groff_cv_decl_needed_popen=no
   6794 else
   6795   echo "$as_me: failed program was:" >&5
   6796 sed 's/^/| /' conftest.$ac_ext >&5
   6797 
   6798 groff_cv_decl_needed_popen=yes
   6799 fi
   6800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6801 fi
   6802 
   6803    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
   6804 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
   6805    if test $groff_cv_decl_needed_popen = yes; then
   6806 
   6807 cat >>confdefs.h <<\_ACEOF
   6808 #define NEED_DECLARATION_POPEN 1
   6809 _ACEOF
   6810 
   6811    fi
   6812    ac_ext=c
   6813 ac_cpp='$CPP $CPPFLAGS'
   6814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6817 
   6818 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
   6819 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
   6820    ac_ext=cc
   6821 ac_cpp='$CXXCPP $CPPFLAGS'
   6822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6825 
   6826    if test "${groff_cv_decl_needed_pclose+set}" = set; then
   6827   echo $ECHO_N "(cached) $ECHO_C" >&6
   6828 else
   6829   cat >conftest.$ac_ext <<_ACEOF
   6830 
   6831 	  /* confdefs.h.  */
   6832 _ACEOF
   6833 cat confdefs.h >>conftest.$ac_ext
   6834 cat >>conftest.$ac_ext <<_ACEOF
   6835 /* end confdefs.h.  */
   6836 
   6837 
   6838 #include <stdio.h>
   6839 #ifdef HAVE_STRING_H
   6840 #include <string.h>
   6841 #endif
   6842 #ifdef HAVE_STRINGS_H
   6843 #include <strings.h>
   6844 #endif
   6845 #ifdef HAVE_STDLIB_H
   6846 #include <stdlib.h>
   6847 #endif
   6848 #ifdef HAVE_SYS_TIME_H
   6849 #include <sys/time.h>
   6850 #endif
   6851 #ifdef HAVE_UNISTD_H
   6852 #include <unistd.h>
   6853 #endif
   6854 #ifdef HAVE_MATH_H
   6855 #include <math.h>
   6856 #endif
   6857 
   6858 
   6859 int
   6860 main ()
   6861 {
   6862 
   6863 
   6864 #ifndef pclose
   6865   char *p = (char *) pclose;
   6866 #endif
   6867 
   6868 
   6869   ;
   6870   return 0;
   6871 }
   6872 
   6873 _ACEOF
   6874 rm -f conftest.$ac_objext
   6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6876   (eval $ac_compile) 2>conftest.er1
   6877   ac_status=$?
   6878   grep -v '^ *+' conftest.er1 >conftest.err
   6879   rm -f conftest.er1
   6880   cat conftest.err >&5
   6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6882   (exit $ac_status); } &&
   6883 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6884 			 || test ! -s conftest.err'
   6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6886   (eval $ac_try) 2>&5
   6887   ac_status=$?
   6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6889   (exit $ac_status); }; } &&
   6890 	 { ac_try='test -s conftest.$ac_objext'
   6891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6892   (eval $ac_try) 2>&5
   6893   ac_status=$?
   6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6895   (exit $ac_status); }; }; then
   6896   groff_cv_decl_needed_pclose=no
   6897 else
   6898   echo "$as_me: failed program was:" >&5
   6899 sed 's/^/| /' conftest.$ac_ext >&5
   6900 
   6901 groff_cv_decl_needed_pclose=yes
   6902 fi
   6903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6904 fi
   6905 
   6906    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
   6907 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
   6908    if test $groff_cv_decl_needed_pclose = yes; then
   6909 
   6910 cat >>confdefs.h <<\_ACEOF
   6911 #define NEED_DECLARATION_PCLOSE 1
   6912 _ACEOF
   6913 
   6914    fi
   6915    ac_ext=c
   6916 ac_cpp='$CPP $CPPFLAGS'
   6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6920 
   6921 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
   6922 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
   6923    ac_ext=cc
   6924 ac_cpp='$CXXCPP $CPPFLAGS'
   6925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6928 
   6929    if test "${groff_cv_decl_needed_putenv+set}" = set; then
   6930   echo $ECHO_N "(cached) $ECHO_C" >&6
   6931 else
   6932   cat >conftest.$ac_ext <<_ACEOF
   6933 
   6934 	  /* confdefs.h.  */
   6935 _ACEOF
   6936 cat confdefs.h >>conftest.$ac_ext
   6937 cat >>conftest.$ac_ext <<_ACEOF
   6938 /* end confdefs.h.  */
   6939 
   6940 
   6941 #include <stdio.h>
   6942 #ifdef HAVE_STRING_H
   6943 #include <string.h>
   6944 #endif
   6945 #ifdef HAVE_STRINGS_H
   6946 #include <strings.h>
   6947 #endif
   6948 #ifdef HAVE_STDLIB_H
   6949 #include <stdlib.h>
   6950 #endif
   6951 #ifdef HAVE_SYS_TIME_H
   6952 #include <sys/time.h>
   6953 #endif
   6954 #ifdef HAVE_UNISTD_H
   6955 #include <unistd.h>
   6956 #endif
   6957 #ifdef HAVE_MATH_H
   6958 #include <math.h>
   6959 #endif
   6960 
   6961 
   6962 int
   6963 main ()
   6964 {
   6965 
   6966 
   6967 #ifndef putenv
   6968   char *p = (char *) putenv;
   6969 #endif
   6970 
   6971 
   6972   ;
   6973   return 0;
   6974 }
   6975 
   6976 _ACEOF
   6977 rm -f conftest.$ac_objext
   6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6979   (eval $ac_compile) 2>conftest.er1
   6980   ac_status=$?
   6981   grep -v '^ *+' conftest.er1 >conftest.err
   6982   rm -f conftest.er1
   6983   cat conftest.err >&5
   6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6985   (exit $ac_status); } &&
   6986 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6987 			 || test ! -s conftest.err'
   6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6989   (eval $ac_try) 2>&5
   6990   ac_status=$?
   6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6992   (exit $ac_status); }; } &&
   6993 	 { ac_try='test -s conftest.$ac_objext'
   6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6995   (eval $ac_try) 2>&5
   6996   ac_status=$?
   6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6998   (exit $ac_status); }; }; then
   6999   groff_cv_decl_needed_putenv=no
   7000 else
   7001   echo "$as_me: failed program was:" >&5
   7002 sed 's/^/| /' conftest.$ac_ext >&5
   7003 
   7004 groff_cv_decl_needed_putenv=yes
   7005 fi
   7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7007 fi
   7008 
   7009    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
   7010 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
   7011    if test $groff_cv_decl_needed_putenv = yes; then
   7012 
   7013 cat >>confdefs.h <<\_ACEOF
   7014 #define NEED_DECLARATION_PUTENV 1
   7015 _ACEOF
   7016 
   7017    fi
   7018    ac_ext=c
   7019 ac_cpp='$CPP $CPPFLAGS'
   7020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7023 
   7024 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
   7025 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
   7026    ac_ext=cc
   7027 ac_cpp='$CXXCPP $CPPFLAGS'
   7028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7031 
   7032    if test "${groff_cv_decl_needed_rand+set}" = set; then
   7033   echo $ECHO_N "(cached) $ECHO_C" >&6
   7034 else
   7035   cat >conftest.$ac_ext <<_ACEOF
   7036 
   7037 	  /* confdefs.h.  */
   7038 _ACEOF
   7039 cat confdefs.h >>conftest.$ac_ext
   7040 cat >>conftest.$ac_ext <<_ACEOF
   7041 /* end confdefs.h.  */
   7042 
   7043 
   7044 #include <stdio.h>
   7045 #ifdef HAVE_STRING_H
   7046 #include <string.h>
   7047 #endif
   7048 #ifdef HAVE_STRINGS_H
   7049 #include <strings.h>
   7050 #endif
   7051 #ifdef HAVE_STDLIB_H
   7052 #include <stdlib.h>
   7053 #endif
   7054 #ifdef HAVE_SYS_TIME_H
   7055 #include <sys/time.h>
   7056 #endif
   7057 #ifdef HAVE_UNISTD_H
   7058 #include <unistd.h>
   7059 #endif
   7060 #ifdef HAVE_MATH_H
   7061 #include <math.h>
   7062 #endif
   7063 
   7064 
   7065 int
   7066 main ()
   7067 {
   7068 
   7069 
   7070 #ifndef rand
   7071   char *p = (char *) rand;
   7072 #endif
   7073 
   7074 
   7075   ;
   7076   return 0;
   7077 }
   7078 
   7079 _ACEOF
   7080 rm -f conftest.$ac_objext
   7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7082   (eval $ac_compile) 2>conftest.er1
   7083   ac_status=$?
   7084   grep -v '^ *+' conftest.er1 >conftest.err
   7085   rm -f conftest.er1
   7086   cat conftest.err >&5
   7087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7088   (exit $ac_status); } &&
   7089 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7090 			 || test ! -s conftest.err'
   7091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7092   (eval $ac_try) 2>&5
   7093   ac_status=$?
   7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7095   (exit $ac_status); }; } &&
   7096 	 { ac_try='test -s conftest.$ac_objext'
   7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7098   (eval $ac_try) 2>&5
   7099   ac_status=$?
   7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7101   (exit $ac_status); }; }; then
   7102   groff_cv_decl_needed_rand=no
   7103 else
   7104   echo "$as_me: failed program was:" >&5
   7105 sed 's/^/| /' conftest.$ac_ext >&5
   7106 
   7107 groff_cv_decl_needed_rand=yes
   7108 fi
   7109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7110 fi
   7111 
   7112    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
   7113 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
   7114    if test $groff_cv_decl_needed_rand = yes; then
   7115 
   7116 cat >>confdefs.h <<\_ACEOF
   7117 #define NEED_DECLARATION_RAND 1
   7118 _ACEOF
   7119 
   7120    fi
   7121    ac_ext=c
   7122 ac_cpp='$CPP $CPPFLAGS'
   7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7126 
   7127 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
   7128 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
   7129    ac_ext=cc
   7130 ac_cpp='$CXXCPP $CPPFLAGS'
   7131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7134 
   7135    if test "${groff_cv_decl_needed_snprintf+set}" = set; then
   7136   echo $ECHO_N "(cached) $ECHO_C" >&6
   7137 else
   7138   cat >conftest.$ac_ext <<_ACEOF
   7139 
   7140 	  /* confdefs.h.  */
   7141 _ACEOF
   7142 cat confdefs.h >>conftest.$ac_ext
   7143 cat >>conftest.$ac_ext <<_ACEOF
   7144 /* end confdefs.h.  */
   7145 
   7146 
   7147 #include <stdio.h>
   7148 #ifdef HAVE_STRING_H
   7149 #include <string.h>
   7150 #endif
   7151 #ifdef HAVE_STRINGS_H
   7152 #include <strings.h>
   7153 #endif
   7154 #ifdef HAVE_STDLIB_H
   7155 #include <stdlib.h>
   7156 #endif
   7157 #ifdef HAVE_SYS_TIME_H
   7158 #include <sys/time.h>
   7159 #endif
   7160 #ifdef HAVE_UNISTD_H
   7161 #include <unistd.h>
   7162 #endif
   7163 #ifdef HAVE_MATH_H
   7164 #include <math.h>
   7165 #endif
   7166 
   7167 
   7168 int
   7169 main ()
   7170 {
   7171 
   7172 
   7173 #ifndef snprintf
   7174   char *p = (char *) snprintf;
   7175 #endif
   7176 
   7177 
   7178   ;
   7179   return 0;
   7180 }
   7181 
   7182 _ACEOF
   7183 rm -f conftest.$ac_objext
   7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7185   (eval $ac_compile) 2>conftest.er1
   7186   ac_status=$?
   7187   grep -v '^ *+' conftest.er1 >conftest.err
   7188   rm -f conftest.er1
   7189   cat conftest.err >&5
   7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7191   (exit $ac_status); } &&
   7192 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7193 			 || test ! -s conftest.err'
   7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7195   (eval $ac_try) 2>&5
   7196   ac_status=$?
   7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7198   (exit $ac_status); }; } &&
   7199 	 { ac_try='test -s conftest.$ac_objext'
   7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7201   (eval $ac_try) 2>&5
   7202   ac_status=$?
   7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7204   (exit $ac_status); }; }; then
   7205   groff_cv_decl_needed_snprintf=no
   7206 else
   7207   echo "$as_me: failed program was:" >&5
   7208 sed 's/^/| /' conftest.$ac_ext >&5
   7209 
   7210 groff_cv_decl_needed_snprintf=yes
   7211 fi
   7212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7213 fi
   7214 
   7215    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
   7216 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
   7217    if test $groff_cv_decl_needed_snprintf = yes; then
   7218 
   7219 cat >>confdefs.h <<\_ACEOF
   7220 #define NEED_DECLARATION_SNPRINTF 1
   7221 _ACEOF
   7222 
   7223    fi
   7224    ac_ext=c
   7225 ac_cpp='$CPP $CPPFLAGS'
   7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7229 
   7230 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
   7231 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
   7232    ac_ext=cc
   7233 ac_cpp='$CXXCPP $CPPFLAGS'
   7234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7237 
   7238    if test "${groff_cv_decl_needed_srand+set}" = set; then
   7239   echo $ECHO_N "(cached) $ECHO_C" >&6
   7240 else
   7241   cat >conftest.$ac_ext <<_ACEOF
   7242 
   7243 	  /* confdefs.h.  */
   7244 _ACEOF
   7245 cat confdefs.h >>conftest.$ac_ext
   7246 cat >>conftest.$ac_ext <<_ACEOF
   7247 /* end confdefs.h.  */
   7248 
   7249 
   7250 #include <stdio.h>
   7251 #ifdef HAVE_STRING_H
   7252 #include <string.h>
   7253 #endif
   7254 #ifdef HAVE_STRINGS_H
   7255 #include <strings.h>
   7256 #endif
   7257 #ifdef HAVE_STDLIB_H
   7258 #include <stdlib.h>
   7259 #endif
   7260 #ifdef HAVE_SYS_TIME_H
   7261 #include <sys/time.h>
   7262 #endif
   7263 #ifdef HAVE_UNISTD_H
   7264 #include <unistd.h>
   7265 #endif
   7266 #ifdef HAVE_MATH_H
   7267 #include <math.h>
   7268 #endif
   7269 
   7270 
   7271 int
   7272 main ()
   7273 {
   7274 
   7275 
   7276 #ifndef srand
   7277   char *p = (char *) srand;
   7278 #endif
   7279 
   7280 
   7281   ;
   7282   return 0;
   7283 }
   7284 
   7285 _ACEOF
   7286 rm -f conftest.$ac_objext
   7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7288   (eval $ac_compile) 2>conftest.er1
   7289   ac_status=$?
   7290   grep -v '^ *+' conftest.er1 >conftest.err
   7291   rm -f conftest.er1
   7292   cat conftest.err >&5
   7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7294   (exit $ac_status); } &&
   7295 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7296 			 || test ! -s conftest.err'
   7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7298   (eval $ac_try) 2>&5
   7299   ac_status=$?
   7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7301   (exit $ac_status); }; } &&
   7302 	 { ac_try='test -s conftest.$ac_objext'
   7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7304   (eval $ac_try) 2>&5
   7305   ac_status=$?
   7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7307   (exit $ac_status); }; }; then
   7308   groff_cv_decl_needed_srand=no
   7309 else
   7310   echo "$as_me: failed program was:" >&5
   7311 sed 's/^/| /' conftest.$ac_ext >&5
   7312 
   7313 groff_cv_decl_needed_srand=yes
   7314 fi
   7315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7316 fi
   7317 
   7318    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
   7319 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
   7320    if test $groff_cv_decl_needed_srand = yes; then
   7321 
   7322 cat >>confdefs.h <<\_ACEOF
   7323 #define NEED_DECLARATION_SRAND 1
   7324 _ACEOF
   7325 
   7326    fi
   7327    ac_ext=c
   7328 ac_cpp='$CPP $CPPFLAGS'
   7329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7332 
   7333 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
   7334 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
   7335    ac_ext=cc
   7336 ac_cpp='$CXXCPP $CPPFLAGS'
   7337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7340 
   7341    if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
   7342   echo $ECHO_N "(cached) $ECHO_C" >&6
   7343 else
   7344   cat >conftest.$ac_ext <<_ACEOF
   7345 
   7346 	  /* confdefs.h.  */
   7347 _ACEOF
   7348 cat confdefs.h >>conftest.$ac_ext
   7349 cat >>conftest.$ac_ext <<_ACEOF
   7350 /* end confdefs.h.  */
   7351 
   7352 
   7353 #include <stdio.h>
   7354 #ifdef HAVE_STRING_H
   7355 #include <string.h>
   7356 #endif
   7357 #ifdef HAVE_STRINGS_H
   7358 #include <strings.h>
   7359 #endif
   7360 #ifdef HAVE_STDLIB_H
   7361 #include <stdlib.h>
   7362 #endif
   7363 #ifdef HAVE_SYS_TIME_H
   7364 #include <sys/time.h>
   7365 #endif
   7366 #ifdef HAVE_UNISTD_H
   7367 #include <unistd.h>
   7368 #endif
   7369 #ifdef HAVE_MATH_H
   7370 #include <math.h>
   7371 #endif
   7372 
   7373 
   7374 int
   7375 main ()
   7376 {
   7377 
   7378 
   7379 #ifndef strcasecmp
   7380   char *p = (char *) strcasecmp;
   7381 #endif
   7382 
   7383 
   7384   ;
   7385   return 0;
   7386 }
   7387 
   7388 _ACEOF
   7389 rm -f conftest.$ac_objext
   7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7391   (eval $ac_compile) 2>conftest.er1
   7392   ac_status=$?
   7393   grep -v '^ *+' conftest.er1 >conftest.err
   7394   rm -f conftest.er1
   7395   cat conftest.err >&5
   7396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7397   (exit $ac_status); } &&
   7398 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7399 			 || test ! -s conftest.err'
   7400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7401   (eval $ac_try) 2>&5
   7402   ac_status=$?
   7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7404   (exit $ac_status); }; } &&
   7405 	 { ac_try='test -s conftest.$ac_objext'
   7406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7407   (eval $ac_try) 2>&5
   7408   ac_status=$?
   7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7410   (exit $ac_status); }; }; then
   7411   groff_cv_decl_needed_strcasecmp=no
   7412 else
   7413   echo "$as_me: failed program was:" >&5
   7414 sed 's/^/| /' conftest.$ac_ext >&5
   7415 
   7416 groff_cv_decl_needed_strcasecmp=yes
   7417 fi
   7418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7419 fi
   7420 
   7421    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
   7422 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
   7423    if test $groff_cv_decl_needed_strcasecmp = yes; then
   7424 
   7425 cat >>confdefs.h <<\_ACEOF
   7426 #define NEED_DECLARATION_STRCASECMP 1
   7427 _ACEOF
   7428 
   7429    fi
   7430    ac_ext=c
   7431 ac_cpp='$CPP $CPPFLAGS'
   7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7435 
   7436 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
   7437 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
   7438    ac_ext=cc
   7439 ac_cpp='$CXXCPP $CPPFLAGS'
   7440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7443 
   7444    if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
   7445   echo $ECHO_N "(cached) $ECHO_C" >&6
   7446 else
   7447   cat >conftest.$ac_ext <<_ACEOF
   7448 
   7449 	  /* confdefs.h.  */
   7450 _ACEOF
   7451 cat confdefs.h >>conftest.$ac_ext
   7452 cat >>conftest.$ac_ext <<_ACEOF
   7453 /* end confdefs.h.  */
   7454 
   7455 
   7456 #include <stdio.h>
   7457 #ifdef HAVE_STRING_H
   7458 #include <string.h>
   7459 #endif
   7460 #ifdef HAVE_STRINGS_H
   7461 #include <strings.h>
   7462 #endif
   7463 #ifdef HAVE_STDLIB_H
   7464 #include <stdlib.h>
   7465 #endif
   7466 #ifdef HAVE_SYS_TIME_H
   7467 #include <sys/time.h>
   7468 #endif
   7469 #ifdef HAVE_UNISTD_H
   7470 #include <unistd.h>
   7471 #endif
   7472 #ifdef HAVE_MATH_H
   7473 #include <math.h>
   7474 #endif
   7475 
   7476 
   7477 int
   7478 main ()
   7479 {
   7480 
   7481 
   7482 #ifndef strncasecmp
   7483   char *p = (char *) strncasecmp;
   7484 #endif
   7485 
   7486 
   7487   ;
   7488   return 0;
   7489 }
   7490 
   7491 _ACEOF
   7492 rm -f conftest.$ac_objext
   7493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7494   (eval $ac_compile) 2>conftest.er1
   7495   ac_status=$?
   7496   grep -v '^ *+' conftest.er1 >conftest.err
   7497   rm -f conftest.er1
   7498   cat conftest.err >&5
   7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7500   (exit $ac_status); } &&
   7501 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7502 			 || test ! -s conftest.err'
   7503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7504   (eval $ac_try) 2>&5
   7505   ac_status=$?
   7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7507   (exit $ac_status); }; } &&
   7508 	 { ac_try='test -s conftest.$ac_objext'
   7509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7510   (eval $ac_try) 2>&5
   7511   ac_status=$?
   7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7513   (exit $ac_status); }; }; then
   7514   groff_cv_decl_needed_strncasecmp=no
   7515 else
   7516   echo "$as_me: failed program was:" >&5
   7517 sed 's/^/| /' conftest.$ac_ext >&5
   7518 
   7519 groff_cv_decl_needed_strncasecmp=yes
   7520 fi
   7521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7522 fi
   7523 
   7524    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
   7525 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
   7526    if test $groff_cv_decl_needed_strncasecmp = yes; then
   7527 
   7528 cat >>confdefs.h <<\_ACEOF
   7529 #define NEED_DECLARATION_STRNCASECMP 1
   7530 _ACEOF
   7531 
   7532    fi
   7533    ac_ext=c
   7534 ac_cpp='$CPP $CPPFLAGS'
   7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7538 
   7539 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
   7540 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
   7541    ac_ext=cc
   7542 ac_cpp='$CXXCPP $CPPFLAGS'
   7543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7546 
   7547    if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
   7548   echo $ECHO_N "(cached) $ECHO_C" >&6
   7549 else
   7550   cat >conftest.$ac_ext <<_ACEOF
   7551 
   7552 	  /* confdefs.h.  */
   7553 _ACEOF
   7554 cat confdefs.h >>conftest.$ac_ext
   7555 cat >>conftest.$ac_ext <<_ACEOF
   7556 /* end confdefs.h.  */
   7557 
   7558 
   7559 #include <stdio.h>
   7560 #ifdef HAVE_STRING_H
   7561 #include <string.h>
   7562 #endif
   7563 #ifdef HAVE_STRINGS_H
   7564 #include <strings.h>
   7565 #endif
   7566 #ifdef HAVE_STDLIB_H
   7567 #include <stdlib.h>
   7568 #endif
   7569 #ifdef HAVE_SYS_TIME_H
   7570 #include <sys/time.h>
   7571 #endif
   7572 #ifdef HAVE_UNISTD_H
   7573 #include <unistd.h>
   7574 #endif
   7575 #ifdef HAVE_MATH_H
   7576 #include <math.h>
   7577 #endif
   7578 
   7579 
   7580 int
   7581 main ()
   7582 {
   7583 
   7584 
   7585 #ifndef vfprintf
   7586   char *p = (char *) vfprintf;
   7587 #endif
   7588 
   7589 
   7590   ;
   7591   return 0;
   7592 }
   7593 
   7594 _ACEOF
   7595 rm -f conftest.$ac_objext
   7596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7597   (eval $ac_compile) 2>conftest.er1
   7598   ac_status=$?
   7599   grep -v '^ *+' conftest.er1 >conftest.err
   7600   rm -f conftest.er1
   7601   cat conftest.err >&5
   7602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7603   (exit $ac_status); } &&
   7604 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7605 			 || test ! -s conftest.err'
   7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7607   (eval $ac_try) 2>&5
   7608   ac_status=$?
   7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7610   (exit $ac_status); }; } &&
   7611 	 { ac_try='test -s conftest.$ac_objext'
   7612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7613   (eval $ac_try) 2>&5
   7614   ac_status=$?
   7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7616   (exit $ac_status); }; }; then
   7617   groff_cv_decl_needed_vfprintf=no
   7618 else
   7619   echo "$as_me: failed program was:" >&5
   7620 sed 's/^/| /' conftest.$ac_ext >&5
   7621 
   7622 groff_cv_decl_needed_vfprintf=yes
   7623 fi
   7624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7625 fi
   7626 
   7627    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
   7628 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
   7629    if test $groff_cv_decl_needed_vfprintf = yes; then
   7630 
   7631 cat >>confdefs.h <<\_ACEOF
   7632 #define NEED_DECLARATION_VFPRINTF 1
   7633 _ACEOF
   7634 
   7635    fi
   7636    ac_ext=c
   7637 ac_cpp='$CPP $CPPFLAGS'
   7638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7641 
   7642 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
   7643 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
   7644    ac_ext=cc
   7645 ac_cpp='$CXXCPP $CPPFLAGS'
   7646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7649 
   7650    if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
   7651   echo $ECHO_N "(cached) $ECHO_C" >&6
   7652 else
   7653   cat >conftest.$ac_ext <<_ACEOF
   7654 
   7655 	  /* confdefs.h.  */
   7656 _ACEOF
   7657 cat confdefs.h >>conftest.$ac_ext
   7658 cat >>conftest.$ac_ext <<_ACEOF
   7659 /* end confdefs.h.  */
   7660 
   7661 
   7662 #include <stdio.h>
   7663 #ifdef HAVE_STRING_H
   7664 #include <string.h>
   7665 #endif
   7666 #ifdef HAVE_STRINGS_H
   7667 #include <strings.h>
   7668 #endif
   7669 #ifdef HAVE_STDLIB_H
   7670 #include <stdlib.h>
   7671 #endif
   7672 #ifdef HAVE_SYS_TIME_H
   7673 #include <sys/time.h>
   7674 #endif
   7675 #ifdef HAVE_UNISTD_H
   7676 #include <unistd.h>
   7677 #endif
   7678 #ifdef HAVE_MATH_H
   7679 #include <math.h>
   7680 #endif
   7681 
   7682 
   7683 int
   7684 main ()
   7685 {
   7686 
   7687 
   7688 #ifndef vsnprintf
   7689   char *p = (char *) vsnprintf;
   7690 #endif
   7691 
   7692 
   7693   ;
   7694   return 0;
   7695 }
   7696 
   7697 _ACEOF
   7698 rm -f conftest.$ac_objext
   7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7700   (eval $ac_compile) 2>conftest.er1
   7701   ac_status=$?
   7702   grep -v '^ *+' conftest.er1 >conftest.err
   7703   rm -f conftest.er1
   7704   cat conftest.err >&5
   7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7706   (exit $ac_status); } &&
   7707 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7708 			 || test ! -s conftest.err'
   7709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7710   (eval $ac_try) 2>&5
   7711   ac_status=$?
   7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7713   (exit $ac_status); }; } &&
   7714 	 { ac_try='test -s conftest.$ac_objext'
   7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7716   (eval $ac_try) 2>&5
   7717   ac_status=$?
   7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7719   (exit $ac_status); }; }; then
   7720   groff_cv_decl_needed_vsnprintf=no
   7721 else
   7722   echo "$as_me: failed program was:" >&5
   7723 sed 's/^/| /' conftest.$ac_ext >&5
   7724 
   7725 groff_cv_decl_needed_vsnprintf=yes
   7726 fi
   7727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7728 fi
   7729 
   7730    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
   7731 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
   7732    if test $groff_cv_decl_needed_vsnprintf = yes; then
   7733 
   7734 cat >>confdefs.h <<\_ACEOF
   7735 #define NEED_DECLARATION_VSNPRINTF 1
   7736 _ACEOF
   7737 
   7738    fi
   7739    ac_ext=c
   7740 ac_cpp='$CPP $CPPFLAGS'
   7741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7744 
   7745 ac_ext=cc
   7746 ac_cpp='$CXXCPP $CPPFLAGS'
   7747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7750 
   7751    echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
   7752 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
   7753    cat >conftest.$ac_ext <<_ACEOF
   7754 
   7755        /* confdefs.h.  */
   7756 _ACEOF
   7757 cat confdefs.h >>conftest.$ac_ext
   7758 cat >>conftest.$ac_ext <<_ACEOF
   7759 /* end confdefs.h.  */
   7760 
   7761 
   7762 #include <errno.h>
   7763 #include <stdio.h>
   7764 #include <stdlib.h>
   7765 
   7766 
   7767 int
   7768 main ()
   7769 {
   7770 
   7771 
   7772 int k;
   7773 k = sys_nerr;
   7774 
   7775 
   7776   ;
   7777   return 0;
   7778 }
   7779 
   7780 _ACEOF
   7781 rm -f conftest.$ac_objext
   7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7783   (eval $ac_compile) 2>conftest.er1
   7784   ac_status=$?
   7785   grep -v '^ *+' conftest.er1 >conftest.err
   7786   rm -f conftest.er1
   7787   cat conftest.err >&5
   7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7789   (exit $ac_status); } &&
   7790 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7791 			 || test ! -s conftest.err'
   7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7793   (eval $ac_try) 2>&5
   7794   ac_status=$?
   7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7796   (exit $ac_status); }; } &&
   7797 	 { ac_try='test -s conftest.$ac_objext'
   7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7799   (eval $ac_try) 2>&5
   7800   ac_status=$?
   7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7802   (exit $ac_status); }; }; then
   7803   echo "$as_me:$LINENO: result: yes" >&5
   7804 echo "${ECHO_T}yes" >&6
   7805 
   7806 cat >>confdefs.h <<\_ACEOF
   7807 #define HAVE_SYS_NERR 1
   7808 _ACEOF
   7809 
   7810 else
   7811   echo "$as_me: failed program was:" >&5
   7812 sed 's/^/| /' conftest.$ac_ext >&5
   7813 
   7814 echo "$as_me:$LINENO: result: no" >&5
   7815 echo "${ECHO_T}no" >&6
   7816 fi
   7817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7818    ac_ext=c
   7819 ac_cpp='$CPP $CPPFLAGS'
   7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7823 
   7824 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
   7825 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
   7826    cat >conftest.$ac_ext <<_ACEOF
   7827 
   7828        /* confdefs.h.  */
   7829 _ACEOF
   7830 cat confdefs.h >>conftest.$ac_ext
   7831 cat >>conftest.$ac_ext <<_ACEOF
   7832 /* end confdefs.h.  */
   7833 
   7834 
   7835 #include <errno.h>
   7836 #include <stdio.h>
   7837 #include <stdlib.h>
   7838 
   7839 
   7840 int
   7841 main ()
   7842 {
   7843 
   7844 
   7845 int k;
   7846 k = (int)sys_errlist[0];
   7847 
   7848 
   7849   ;
   7850   return 0;
   7851 }
   7852 
   7853 _ACEOF
   7854 rm -f conftest.$ac_objext
   7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7856   (eval $ac_compile) 2>conftest.er1
   7857   ac_status=$?
   7858   grep -v '^ *+' conftest.er1 >conftest.err
   7859   rm -f conftest.er1
   7860   cat conftest.err >&5
   7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7862   (exit $ac_status); } &&
   7863 	 { ac_try='test -z "$ac_c_werror_flag"
   7864 			 || test ! -s conftest.err'
   7865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7866   (eval $ac_try) 2>&5
   7867   ac_status=$?
   7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7869   (exit $ac_status); }; } &&
   7870 	 { ac_try='test -s conftest.$ac_objext'
   7871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7872   (eval $ac_try) 2>&5
   7873   ac_status=$?
   7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7875   (exit $ac_status); }; }; then
   7876   echo "$as_me:$LINENO: result: yes" >&5
   7877 echo "${ECHO_T}yes" >&6
   7878 
   7879 cat >>confdefs.h <<\_ACEOF
   7880 #define HAVE_SYS_ERRLIST 1
   7881 _ACEOF
   7882 
   7883 else
   7884   echo "$as_me: failed program was:" >&5
   7885 sed 's/^/| /' conftest.$ac_ext >&5
   7886 
   7887 echo "$as_me:$LINENO: result: no" >&5
   7888 echo "${ECHO_T}no" >&6
   7889 fi
   7890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7891 ac_ext=cc
   7892 ac_cpp='$CXXCPP $CPPFLAGS'
   7893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7896 
   7897    echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
   7898 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
   7899    cat >conftest.$ac_ext <<_ACEOF
   7900 
   7901        /* confdefs.h.  */
   7902 _ACEOF
   7903 cat confdefs.h >>conftest.$ac_ext
   7904 cat >>conftest.$ac_ext <<_ACEOF
   7905 /* end confdefs.h.  */
   7906 
   7907 
   7908 #include <osfcn.h>
   7909 
   7910 
   7911 int
   7912 main ()
   7913 {
   7914 
   7915 
   7916 read(0, 0, 0);
   7917 open(0, 0);
   7918 
   7919 
   7920   ;
   7921   return 0;
   7922 }
   7923 
   7924 _ACEOF
   7925 rm -f conftest.$ac_objext
   7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7927   (eval $ac_compile) 2>conftest.er1
   7928   ac_status=$?
   7929   grep -v '^ *+' conftest.er1 >conftest.err
   7930   rm -f conftest.er1
   7931   cat conftest.err >&5
   7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7933   (exit $ac_status); } &&
   7934 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7935 			 || test ! -s conftest.err'
   7936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7937   (eval $ac_try) 2>&5
   7938   ac_status=$?
   7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7940   (exit $ac_status); }; } &&
   7941 	 { ac_try='test -s conftest.$ac_objext'
   7942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7943   (eval $ac_try) 2>&5
   7944   ac_status=$?
   7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7946   (exit $ac_status); }; }; then
   7947   echo "$as_me:$LINENO: result: yes" >&5
   7948 echo "${ECHO_T}yes" >&6
   7949 
   7950 cat >>confdefs.h <<\_ACEOF
   7951 #define HAVE_CC_OSFCN_H 1
   7952 _ACEOF
   7953 
   7954 else
   7955   echo "$as_me: failed program was:" >&5
   7956 sed 's/^/| /' conftest.$ac_ext >&5
   7957 
   7958 echo "$as_me:$LINENO: result: no" >&5
   7959 echo "${ECHO_T}no" >&6
   7960 fi
   7961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7962    ac_ext=c
   7963 ac_cpp='$CPP $CPPFLAGS'
   7964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7967 
   7968 ac_ext=cc
   7969 ac_cpp='$CXXCPP $CPPFLAGS'
   7970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7973 
   7974    echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
   7975 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
   7976    cat >conftest.$ac_ext <<_ACEOF
   7977 
   7978        /* confdefs.h.  */
   7979 _ACEOF
   7980 cat confdefs.h >>conftest.$ac_ext
   7981 cat >>conftest.$ac_ext <<_ACEOF
   7982 /* end confdefs.h.  */
   7983 
   7984 
   7985 #include <limits.h>
   7986 
   7987 
   7988 int
   7989 main ()
   7990 {
   7991 
   7992 
   7993 int x = INT_MIN;
   7994 int y = INT_MAX;
   7995 int z = UCHAR_MAX;
   7996 
   7997 
   7998   ;
   7999   return 0;
   8000 }
   8001 
   8002 _ACEOF
   8003 rm -f conftest.$ac_objext
   8004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8005   (eval $ac_compile) 2>conftest.er1
   8006   ac_status=$?
   8007   grep -v '^ *+' conftest.er1 >conftest.err
   8008   rm -f conftest.er1
   8009   cat conftest.err >&5
   8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8011   (exit $ac_status); } &&
   8012 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8013 			 || test ! -s conftest.err'
   8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8015   (eval $ac_try) 2>&5
   8016   ac_status=$?
   8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8018   (exit $ac_status); }; } &&
   8019 	 { ac_try='test -s conftest.$ac_objext'
   8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8021   (eval $ac_try) 2>&5
   8022   ac_status=$?
   8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8024   (exit $ac_status); }; }; then
   8025   echo "$as_me:$LINENO: result: yes" >&5
   8026 echo "${ECHO_T}yes" >&6
   8027 
   8028 cat >>confdefs.h <<\_ACEOF
   8029 #define HAVE_CC_LIMITS_H 1
   8030 _ACEOF
   8031 
   8032 else
   8033   echo "$as_me: failed program was:" >&5
   8034 sed 's/^/| /' conftest.$ac_ext >&5
   8035 
   8036 echo "$as_me:$LINENO: result: no" >&5
   8037 echo "${ECHO_T}no" >&6
   8038 fi
   8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8040    ac_ext=c
   8041 ac_cpp='$CPP $CPPFLAGS'
   8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8045 
   8046 ac_ext=cc
   8047 ac_cpp='$CXXCPP $CPPFLAGS'
   8048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8051 
   8052    echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
   8053 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
   8054    cat >conftest.$ac_ext <<_ACEOF
   8055 
   8056        /* confdefs.h.  */
   8057 _ACEOF
   8058 cat confdefs.h >>conftest.$ac_ext
   8059 cat >>conftest.$ac_ext <<_ACEOF
   8060 /* end confdefs.h.  */
   8061 
   8062 
   8063 #include <sys/types.h>
   8064 #include <inttypes.h>
   8065 
   8066 
   8067 int
   8068 main ()
   8069 {
   8070 
   8071 
   8072 uintmax_t i = (uintmax_t)-1;
   8073 
   8074 
   8075   ;
   8076   return 0;
   8077 }
   8078 
   8079 _ACEOF
   8080 rm -f conftest.$ac_objext
   8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8082   (eval $ac_compile) 2>conftest.er1
   8083   ac_status=$?
   8084   grep -v '^ *+' conftest.er1 >conftest.err
   8085   rm -f conftest.er1
   8086   cat conftest.err >&5
   8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8088   (exit $ac_status); } &&
   8089 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8090 			 || test ! -s conftest.err'
   8091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8092   (eval $ac_try) 2>&5
   8093   ac_status=$?
   8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8095   (exit $ac_status); }; } &&
   8096 	 { ac_try='test -s conftest.$ac_objext'
   8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8098   (eval $ac_try) 2>&5
   8099   ac_status=$?
   8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8101   (exit $ac_status); }; }; then
   8102   groff_cv_header_inttypes_h=yes
   8103 
   8104 cat >>confdefs.h <<\_ACEOF
   8105 #define HAVE_CC_INTTYPES_H 1
   8106 _ACEOF
   8107 
   8108 else
   8109   echo "$as_me: failed program was:" >&5
   8110 sed 's/^/| /' conftest.$ac_ext >&5
   8111 
   8112 groff_cv_header_inttypes_h=no
   8113 fi
   8114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8115    echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
   8116 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
   8117    ac_ext=c
   8118 ac_cpp='$CPP $CPPFLAGS'
   8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8122 
   8123 
   8124 # checks for typedefs
   8125 ac_ext=cc
   8126 ac_cpp='$CXXCPP $CPPFLAGS'
   8127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8130 
   8131    echo "$as_me:$LINENO: checking for unsigned long long" >&5
   8132 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
   8133    cat >conftest.$ac_ext <<_ACEOF
   8134 
   8135        /* confdefs.h.  */
   8136 _ACEOF
   8137 cat confdefs.h >>conftest.$ac_ext
   8138 cat >>conftest.$ac_ext <<_ACEOF
   8139 /* end confdefs.h.  */
   8140 
   8141 
   8142 unsigned long long ull = 1;
   8143 int i = 63;
   8144 unsigned long long ullmax = (unsigned long long)-1;
   8145 
   8146 
   8147 int
   8148 main ()
   8149 {
   8150 
   8151 
   8152 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
   8153 
   8154 
   8155   ;
   8156   return 0;
   8157 }
   8158 
   8159 _ACEOF
   8160 rm -f conftest.$ac_objext conftest$ac_exeext
   8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8162   (eval $ac_link) 2>conftest.er1
   8163   ac_status=$?
   8164   grep -v '^ *+' conftest.er1 >conftest.err
   8165   rm -f conftest.er1
   8166   cat conftest.err >&5
   8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8168   (exit $ac_status); } &&
   8169 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8170 			 || test ! -s conftest.err'
   8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8172   (eval $ac_try) 2>&5
   8173   ac_status=$?
   8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8175   (exit $ac_status); }; } &&
   8176 	 { ac_try='test -s conftest$ac_exeext'
   8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8178   (eval $ac_try) 2>&5
   8179   ac_status=$?
   8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8181   (exit $ac_status); }; }; then
   8182   groff_cv_type_unsigned_long_long=yes
   8183 else
   8184   echo "$as_me: failed program was:" >&5
   8185 sed 's/^/| /' conftest.$ac_ext >&5
   8186 
   8187 groff_cv_type_unsigned_long_long=no
   8188 fi
   8189 rm -f conftest.err conftest.$ac_objext \
   8190       conftest$ac_exeext conftest.$ac_ext
   8191    echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
   8192 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
   8193    ac_ext=c
   8194 ac_cpp='$CPP $CPPFLAGS'
   8195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8198 
   8199 
   8200    if test $groff_cv_header_inttypes_h = no; then
   8201 
   8202      test $groff_cv_type_unsigned_long_long = yes \
   8203 	  && ac_type='unsigned long long' \
   8204 	  || ac_type='unsigned long'
   8205 
   8206 cat >>confdefs.h <<_ACEOF
   8207 #define uintmax_t $ac_type
   8208 _ACEOF
   8209 
   8210    fi
   8211 ac_ext=cc
   8212 ac_cpp='$CXXCPP $CPPFLAGS'
   8213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8216 
   8217    echo "$as_me:$LINENO: checking for declaration of time_t" >&5
   8218 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
   8219    cat >conftest.$ac_ext <<_ACEOF
   8220 
   8221        /* confdefs.h.  */
   8222 _ACEOF
   8223 cat confdefs.h >>conftest.$ac_ext
   8224 cat >>conftest.$ac_ext <<_ACEOF
   8225 /* end confdefs.h.  */
   8226 
   8227 
   8228 #include <time.h>
   8229 
   8230 
   8231 int
   8232 main ()
   8233 {
   8234 
   8235 
   8236 time_t t = time(0);
   8237 struct tm *p = localtime(&t);
   8238 
   8239 
   8240   ;
   8241   return 0;
   8242 }
   8243 
   8244 _ACEOF
   8245 rm -f conftest.$ac_objext
   8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8247   (eval $ac_compile) 2>conftest.er1
   8248   ac_status=$?
   8249   grep -v '^ *+' conftest.er1 >conftest.err
   8250   rm -f conftest.er1
   8251   cat conftest.err >&5
   8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8253   (exit $ac_status); } &&
   8254 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8255 			 || test ! -s conftest.err'
   8256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8257   (eval $ac_try) 2>&5
   8258   ac_status=$?
   8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8260   (exit $ac_status); }; } &&
   8261 	 { ac_try='test -s conftest.$ac_objext'
   8262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8263   (eval $ac_try) 2>&5
   8264   ac_status=$?
   8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8266   (exit $ac_status); }; }; then
   8267   echo "$as_me:$LINENO: result: yes" >&5
   8268 echo "${ECHO_T}yes" >&6
   8269 else
   8270   echo "$as_me: failed program was:" >&5
   8271 sed 's/^/| /' conftest.$ac_ext >&5
   8272 
   8273 echo "$as_me:$LINENO: result: no" >&5
   8274 echo "${ECHO_T}no" >&6
   8275 
   8276 cat >>confdefs.h <<\_ACEOF
   8277 #define LONG_FOR_TIME_T 1
   8278 _ACEOF
   8279 
   8280 fi
   8281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8282    ac_ext=c
   8283 ac_cpp='$CPP $CPPFLAGS'
   8284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8287 
   8288 echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
   8289 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
   8290    for groff_declaration in \
   8291      'extern "C" void (*signal (int, void (*)(int)))(int);' \
   8292      'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
   8293      'void (*signal ()) ();'
   8294    do
   8295      cat >conftest.$ac_ext <<_ACEOF
   8296 
   8297 	 /* confdefs.h.  */
   8298 _ACEOF
   8299 cat confdefs.h >>conftest.$ac_ext
   8300 cat >>conftest.$ac_ext <<_ACEOF
   8301 /* end confdefs.h.  */
   8302 
   8303 
   8304 #include <sys/types.h>
   8305 #include <signal.h>
   8306 #ifdef signal
   8307 # undef signal
   8308 #endif
   8309 $groff_declaration
   8310 
   8311 
   8312 int
   8313 main ()
   8314 {
   8315 
   8316 
   8317 int i;
   8318 
   8319 
   8320   ;
   8321   return 0;
   8322 }
   8323 
   8324 _ACEOF
   8325 rm -f conftest.$ac_objext
   8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8327   (eval $ac_compile) 2>conftest.er1
   8328   ac_status=$?
   8329   grep -v '^ *+' conftest.er1 >conftest.err
   8330   rm -f conftest.er1
   8331   cat conftest.err >&5
   8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8333   (exit $ac_status); } &&
   8334 	 { ac_try='test -z "$ac_c_werror_flag"
   8335 			 || test ! -s conftest.err'
   8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8337   (eval $ac_try) 2>&5
   8338   ac_status=$?
   8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8340   (exit $ac_status); }; } &&
   8341 	 { ac_try='test -s conftest.$ac_objext'
   8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8343   (eval $ac_try) 2>&5
   8344   ac_status=$?
   8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8346   (exit $ac_status); }; }; then
   8347   break
   8348 else
   8349   echo "$as_me: failed program was:" >&5
   8350 sed 's/^/| /' conftest.$ac_ext >&5
   8351 
   8352 continue
   8353 fi
   8354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8355    done
   8356 
   8357    if test -n "$groff_declaration"; then
   8358      echo "$as_me:$LINENO: result: void" >&5
   8359 echo "${ECHO_T}void" >&6
   8360 
   8361 cat >>confdefs.h <<\_ACEOF
   8362 #define RETSIGTYPE void
   8363 _ACEOF
   8364 
   8365    else
   8366      echo "$as_me:$LINENO: result: int" >&5
   8367 echo "${ECHO_T}int" >&6
   8368 
   8369 cat >>confdefs.h <<\_ACEOF
   8370 #define RETSIGTYPE int
   8371 _ACEOF
   8372 
   8373    fi
   8374 echo "$as_me:$LINENO: checking struct exception" >&5
   8375 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
   8376    cat >conftest.$ac_ext <<_ACEOF
   8377 
   8378        /* confdefs.h.  */
   8379 _ACEOF
   8380 cat confdefs.h >>conftest.$ac_ext
   8381 cat >>conftest.$ac_ext <<_ACEOF
   8382 /* end confdefs.h.  */
   8383 
   8384 
   8385 #include <math.h>
   8386 
   8387 
   8388 int
   8389 main ()
   8390 {
   8391 
   8392 
   8393 struct exception e;
   8394 
   8395 
   8396   ;
   8397   return 0;
   8398 }
   8399 
   8400 _ACEOF
   8401 rm -f conftest.$ac_objext
   8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8403   (eval $ac_compile) 2>conftest.er1
   8404   ac_status=$?
   8405   grep -v '^ *+' conftest.er1 >conftest.err
   8406   rm -f conftest.er1
   8407   cat conftest.err >&5
   8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8409   (exit $ac_status); } &&
   8410 	 { ac_try='test -z "$ac_c_werror_flag"
   8411 			 || test ! -s conftest.err'
   8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8413   (eval $ac_try) 2>&5
   8414   ac_status=$?
   8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8416   (exit $ac_status); }; } &&
   8417 	 { ac_try='test -s conftest.$ac_objext'
   8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8419   (eval $ac_try) 2>&5
   8420   ac_status=$?
   8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8422   (exit $ac_status); }; }; then
   8423   echo "$as_me:$LINENO: result: yes" >&5
   8424 echo "${ECHO_T}yes" >&6
   8425 
   8426 cat >>confdefs.h <<\_ACEOF
   8427 #define HAVE_STRUCT_EXCEPTION 1
   8428 _ACEOF
   8429 
   8430 else
   8431   echo "$as_me: failed program was:" >&5
   8432 sed 's/^/| /' conftest.$ac_ext >&5
   8433 
   8434 echo "$as_me:$LINENO: result: no" >&5
   8435 echo "${ECHO_T}no" >&6
   8436 fi
   8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8438 
   8439 # checks for libraries
   8440 echo "$as_me:$LINENO: checking for main in -lc" >&5
   8441 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
   8442 if test "${ac_cv_lib_c_main+set}" = set; then
   8443   echo $ECHO_N "(cached) $ECHO_C" >&6
   8444 else
   8445   ac_check_lib_save_LIBS=$LIBS
   8446 LIBS="-lc  $LIBS"
   8447 cat >conftest.$ac_ext <<_ACEOF
   8448 /* confdefs.h.  */
   8449 _ACEOF
   8450 cat confdefs.h >>conftest.$ac_ext
   8451 cat >>conftest.$ac_ext <<_ACEOF
   8452 /* end confdefs.h.  */
   8453 
   8454 
   8455 int
   8456 main ()
   8457 {
   8458 main ();
   8459   ;
   8460   return 0;
   8461 }
   8462 _ACEOF
   8463 rm -f conftest.$ac_objext conftest$ac_exeext
   8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8465   (eval $ac_link) 2>conftest.er1
   8466   ac_status=$?
   8467   grep -v '^ *+' conftest.er1 >conftest.err
   8468   rm -f conftest.er1
   8469   cat conftest.err >&5
   8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8471   (exit $ac_status); } &&
   8472 	 { ac_try='test -z "$ac_c_werror_flag"
   8473 			 || test ! -s conftest.err'
   8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8475   (eval $ac_try) 2>&5
   8476   ac_status=$?
   8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8478   (exit $ac_status); }; } &&
   8479 	 { ac_try='test -s conftest$ac_exeext'
   8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8481   (eval $ac_try) 2>&5
   8482   ac_status=$?
   8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8484   (exit $ac_status); }; }; then
   8485   ac_cv_lib_c_main=yes
   8486 else
   8487   echo "$as_me: failed program was:" >&5
   8488 sed 's/^/| /' conftest.$ac_ext >&5
   8489 
   8490 ac_cv_lib_c_main=no
   8491 fi
   8492 rm -f conftest.err conftest.$ac_objext \
   8493       conftest$ac_exeext conftest.$ac_ext
   8494 LIBS=$ac_check_lib_save_LIBS
   8495 fi
   8496 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
   8497 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
   8498 if test $ac_cv_lib_c_main = yes; then
   8499   LIBC=-lc
   8500 fi
   8501 
   8502 
   8503 echo "$as_me:$LINENO: checking for sin in -lm" >&5
   8504 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
   8505 if test "${ac_cv_lib_m_sin+set}" = set; then
   8506   echo $ECHO_N "(cached) $ECHO_C" >&6
   8507 else
   8508   ac_check_lib_save_LIBS=$LIBS
   8509 LIBS="-lm  $LIBS"
   8510 cat >conftest.$ac_ext <<_ACEOF
   8511 /* confdefs.h.  */
   8512 _ACEOF
   8513 cat confdefs.h >>conftest.$ac_ext
   8514 cat >>conftest.$ac_ext <<_ACEOF
   8515 /* end confdefs.h.  */
   8516 
   8517 /* Override any gcc2 internal prototype to avoid an error.  */
   8518 #ifdef __cplusplus
   8519 extern "C"
   8520 #endif
   8521 /* We use char because int might match the return type of a gcc2
   8522    builtin and then its argument prototype would still apply.  */
   8523 char sin ();
   8524 int
   8525 main ()
   8526 {
   8527 sin ();
   8528   ;
   8529   return 0;
   8530 }
   8531 _ACEOF
   8532 rm -f conftest.$ac_objext conftest$ac_exeext
   8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8534   (eval $ac_link) 2>conftest.er1
   8535   ac_status=$?
   8536   grep -v '^ *+' conftest.er1 >conftest.err
   8537   rm -f conftest.er1
   8538   cat conftest.err >&5
   8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8540   (exit $ac_status); } &&
   8541 	 { ac_try='test -z "$ac_c_werror_flag"
   8542 			 || test ! -s conftest.err'
   8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8544   (eval $ac_try) 2>&5
   8545   ac_status=$?
   8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8547   (exit $ac_status); }; } &&
   8548 	 { ac_try='test -s conftest$ac_exeext'
   8549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8550   (eval $ac_try) 2>&5
   8551   ac_status=$?
   8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8553   (exit $ac_status); }; }; then
   8554   ac_cv_lib_m_sin=yes
   8555 else
   8556   echo "$as_me: failed program was:" >&5
   8557 sed 's/^/| /' conftest.$ac_ext >&5
   8558 
   8559 ac_cv_lib_m_sin=no
   8560 fi
   8561 rm -f conftest.err conftest.$ac_objext \
   8562       conftest$ac_exeext conftest.$ac_ext
   8563 LIBS=$ac_check_lib_save_LIBS
   8564 fi
   8565 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   8566 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
   8567 if test $ac_cv_lib_m_sin = yes; then
   8568   LIBM=-lm
   8569 fi
   8570 
   8571 
   8572 
   8573 # checks for functions
   8574 
   8575 
   8576 for ac_header in stdlib.h unistd.h
   8577 do
   8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8580   echo "$as_me:$LINENO: checking for $ac_header" >&5
   8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8583   echo $ECHO_N "(cached) $ECHO_C" >&6
   8584 fi
   8585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8587 else
   8588   # Is the header compilable?
   8589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   8591 cat >conftest.$ac_ext <<_ACEOF
   8592 /* confdefs.h.  */
   8593 _ACEOF
   8594 cat confdefs.h >>conftest.$ac_ext
   8595 cat >>conftest.$ac_ext <<_ACEOF
   8596 /* end confdefs.h.  */
   8597 $ac_includes_default
   8598 #include <$ac_header>
   8599 _ACEOF
   8600 rm -f conftest.$ac_objext
   8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8602   (eval $ac_compile) 2>conftest.er1
   8603   ac_status=$?
   8604   grep -v '^ *+' conftest.er1 >conftest.err
   8605   rm -f conftest.er1
   8606   cat conftest.err >&5
   8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8608   (exit $ac_status); } &&
   8609 	 { ac_try='test -z "$ac_c_werror_flag"
   8610 			 || test ! -s conftest.err'
   8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8612   (eval $ac_try) 2>&5
   8613   ac_status=$?
   8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8615   (exit $ac_status); }; } &&
   8616 	 { ac_try='test -s conftest.$ac_objext'
   8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8618   (eval $ac_try) 2>&5
   8619   ac_status=$?
   8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8621   (exit $ac_status); }; }; then
   8622   ac_header_compiler=yes
   8623 else
   8624   echo "$as_me: failed program was:" >&5
   8625 sed 's/^/| /' conftest.$ac_ext >&5
   8626 
   8627 ac_header_compiler=no
   8628 fi
   8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8631 echo "${ECHO_T}$ac_header_compiler" >&6
   8632 
   8633 # Is the header present?
   8634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   8636 cat >conftest.$ac_ext <<_ACEOF
   8637 /* confdefs.h.  */
   8638 _ACEOF
   8639 cat confdefs.h >>conftest.$ac_ext
   8640 cat >>conftest.$ac_ext <<_ACEOF
   8641 /* end confdefs.h.  */
   8642 #include <$ac_header>
   8643 _ACEOF
   8644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   8645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8646   ac_status=$?
   8647   grep -v '^ *+' conftest.er1 >conftest.err
   8648   rm -f conftest.er1
   8649   cat conftest.err >&5
   8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8651   (exit $ac_status); } >/dev/null; then
   8652   if test -s conftest.err; then
   8653     ac_cpp_err=$ac_c_preproc_warn_flag
   8654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8655   else
   8656     ac_cpp_err=
   8657   fi
   8658 else
   8659   ac_cpp_err=yes
   8660 fi
   8661 if test -z "$ac_cpp_err"; then
   8662   ac_header_preproc=yes
   8663 else
   8664   echo "$as_me: failed program was:" >&5
   8665 sed 's/^/| /' conftest.$ac_ext >&5
   8666 
   8667   ac_header_preproc=no
   8668 fi
   8669 rm -f conftest.err conftest.$ac_ext
   8670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8671 echo "${ECHO_T}$ac_header_preproc" >&6
   8672 
   8673 # So?  What about this header?
   8674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8675   yes:no: )
   8676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8680     ac_header_preproc=yes
   8681     ;;
   8682   no:yes:* )
   8683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8695     (
   8696       cat <<\_ASBOX
   8697 ## ------------------------------------------ ##
   8698 ## Report this to the AC_PACKAGE_NAME lists.  ##
   8699 ## ------------------------------------------ ##
   8700 _ASBOX
   8701     ) |
   8702       sed "s/^/$as_me: WARNING:     /" >&2
   8703     ;;
   8704 esac
   8705 echo "$as_me:$LINENO: checking for $ac_header" >&5
   8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8708   echo $ECHO_N "(cached) $ECHO_C" >&6
   8709 else
   8710   eval "$as_ac_Header=\$ac_header_preproc"
   8711 fi
   8712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8714 
   8715 fi
   8716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8717   cat >>confdefs.h <<_ACEOF
   8718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8719 _ACEOF
   8720 
   8721 fi
   8722 
   8723 done
   8724 
   8725 
   8726 for ac_func in getpagesize
   8727 do
   8728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8729 echo "$as_me:$LINENO: checking for $ac_func" >&5
   8730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8731 if eval "test \"\${$as_ac_var+set}\" = set"; then
   8732   echo $ECHO_N "(cached) $ECHO_C" >&6
   8733 else
   8734   cat >conftest.$ac_ext <<_ACEOF
   8735 /* confdefs.h.  */
   8736 _ACEOF
   8737 cat confdefs.h >>conftest.$ac_ext
   8738 cat >>conftest.$ac_ext <<_ACEOF
   8739 /* end confdefs.h.  */
   8740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8742 #define $ac_func innocuous_$ac_func
   8743 
   8744 /* System header to define __stub macros and hopefully few prototypes,
   8745     which can conflict with char $ac_func (); below.
   8746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8747     <limits.h> exists even on freestanding compilers.  */
   8748 
   8749 #ifdef __STDC__
   8750 # include <limits.h>
   8751 #else
   8752 # include <assert.h>
   8753 #endif
   8754 
   8755 #undef $ac_func
   8756 
   8757 /* Override any gcc2 internal prototype to avoid an error.  */
   8758 #ifdef __cplusplus
   8759 extern "C"
   8760 {
   8761 #endif
   8762 /* We use char because int might match the return type of a gcc2
   8763    builtin and then its argument prototype would still apply.  */
   8764 char $ac_func ();
   8765 /* The GNU C library defines this for functions which it implements
   8766     to always fail with ENOSYS.  Some functions are actually named
   8767     something starting with __ and the normal name is an alias.  */
   8768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8769 choke me
   8770 #else
   8771 char (*f) () = $ac_func;
   8772 #endif
   8773 #ifdef __cplusplus
   8774 }
   8775 #endif
   8776 
   8777 int
   8778 main ()
   8779 {
   8780 return f != $ac_func;
   8781   ;
   8782   return 0;
   8783 }
   8784 _ACEOF
   8785 rm -f conftest.$ac_objext conftest$ac_exeext
   8786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8787   (eval $ac_link) 2>conftest.er1
   8788   ac_status=$?
   8789   grep -v '^ *+' conftest.er1 >conftest.err
   8790   rm -f conftest.er1
   8791   cat conftest.err >&5
   8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8793   (exit $ac_status); } &&
   8794 	 { ac_try='test -z "$ac_c_werror_flag"
   8795 			 || test ! -s conftest.err'
   8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8797   (eval $ac_try) 2>&5
   8798   ac_status=$?
   8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8800   (exit $ac_status); }; } &&
   8801 	 { ac_try='test -s conftest$ac_exeext'
   8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8803   (eval $ac_try) 2>&5
   8804   ac_status=$?
   8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8806   (exit $ac_status); }; }; then
   8807   eval "$as_ac_var=yes"
   8808 else
   8809   echo "$as_me: failed program was:" >&5
   8810 sed 's/^/| /' conftest.$ac_ext >&5
   8811 
   8812 eval "$as_ac_var=no"
   8813 fi
   8814 rm -f conftest.err conftest.$ac_objext \
   8815       conftest$ac_exeext conftest.$ac_ext
   8816 fi
   8817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8819 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8820   cat >>confdefs.h <<_ACEOF
   8821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8822 _ACEOF
   8823 
   8824 fi
   8825 done
   8826 
   8827 echo "$as_me:$LINENO: checking for working mmap" >&5
   8828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
   8829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   8830   echo $ECHO_N "(cached) $ECHO_C" >&6
   8831 else
   8832   if test "$cross_compiling" = yes; then
   8833   ac_cv_func_mmap_fixed_mapped=no
   8834 else
   8835   cat >conftest.$ac_ext <<_ACEOF
   8836 /* confdefs.h.  */
   8837 _ACEOF
   8838 cat confdefs.h >>conftest.$ac_ext
   8839 cat >>conftest.$ac_ext <<_ACEOF
   8840 /* end confdefs.h.  */
   8841 $ac_includes_default
   8842 /* malloc might have been renamed as rpl_malloc. */
   8843 #undef malloc
   8844 
   8845 /* Thanks to Mike Haertel and Jim Avera for this test.
   8846    Here is a matrix of mmap possibilities:
   8847 	mmap private not fixed
   8848 	mmap private fixed at somewhere currently unmapped
   8849 	mmap private fixed at somewhere already mapped
   8850 	mmap shared not fixed
   8851 	mmap shared fixed at somewhere currently unmapped
   8852 	mmap shared fixed at somewhere already mapped
   8853    For private mappings, we should verify that changes cannot be read()
   8854    back from the file, nor mmap's back from the file at a different
   8855    address.  (There have been systems where private was not correctly
   8856    implemented like the infamous i386 svr4.0, and systems where the
   8857    VM page cache was not coherent with the file system buffer cache
   8858    like early versions of FreeBSD and possibly contemporary NetBSD.)
   8859    For shared mappings, we should conversely verify that changes get
   8860    propagated back to all the places they're supposed to be.
   8861 
   8862    Grep wants private fixed already mapped.
   8863    The main things grep needs to know about mmap are:
   8864    * does it exist and is it safe to write into the mmap'd area
   8865    * how to use it (BSD variants)  */
   8866 
   8867 #include <fcntl.h>
   8868 #include <sys/mman.h>
   8869 
   8870 #if !STDC_HEADERS && !HAVE_STDLIB_H
   8871 char *malloc ();
   8872 #endif
   8873 
   8874 /* This mess was copied from the GNU getpagesize.h.  */
   8875 #if !HAVE_GETPAGESIZE
   8876 /* Assume that all systems that can run configure have sys/param.h.  */
   8877 # if !HAVE_SYS_PARAM_H
   8878 #  define HAVE_SYS_PARAM_H 1
   8879 # endif
   8880 
   8881 # ifdef _SC_PAGESIZE
   8882 #  define getpagesize() sysconf(_SC_PAGESIZE)
   8883 # else /* no _SC_PAGESIZE */
   8884 #  if HAVE_SYS_PARAM_H
   8885 #   include <sys/param.h>
   8886 #   ifdef EXEC_PAGESIZE
   8887 #    define getpagesize() EXEC_PAGESIZE
   8888 #   else /* no EXEC_PAGESIZE */
   8889 #    ifdef NBPG
   8890 #     define getpagesize() NBPG * CLSIZE
   8891 #     ifndef CLSIZE
   8892 #      define CLSIZE 1
   8893 #     endif /* no CLSIZE */
   8894 #    else /* no NBPG */
   8895 #     ifdef NBPC
   8896 #      define getpagesize() NBPC
   8897 #     else /* no NBPC */
   8898 #      ifdef PAGESIZE
   8899 #       define getpagesize() PAGESIZE
   8900 #      endif /* PAGESIZE */
   8901 #     endif /* no NBPC */
   8902 #    endif /* no NBPG */
   8903 #   endif /* no EXEC_PAGESIZE */
   8904 #  else /* no HAVE_SYS_PARAM_H */
   8905 #   define getpagesize() 8192	/* punt totally */
   8906 #  endif /* no HAVE_SYS_PARAM_H */
   8907 # endif /* no _SC_PAGESIZE */
   8908 
   8909 #endif /* no HAVE_GETPAGESIZE */
   8910 
   8911 int
   8912 main ()
   8913 {
   8914   char *data, *data2, *data3;
   8915   int i, pagesize;
   8916   int fd;
   8917 
   8918   pagesize = getpagesize ();
   8919 
   8920   /* First, make a file with some known garbage in it. */
   8921   data = (char *) malloc (pagesize);
   8922   if (!data)
   8923     exit (1);
   8924   for (i = 0; i < pagesize; ++i)
   8925     *(data + i) = rand ();
   8926   umask (0);
   8927   fd = creat ("conftest.mmap", 0600);
   8928   if (fd < 0)
   8929     exit (1);
   8930   if (write (fd, data, pagesize) != pagesize)
   8931     exit (1);
   8932   close (fd);
   8933 
   8934   /* Next, try to mmap the file at a fixed address which already has
   8935      something else allocated at it.  If we can, also make sure that
   8936      we see the same garbage.  */
   8937   fd = open ("conftest.mmap", O_RDWR);
   8938   if (fd < 0)
   8939     exit (1);
   8940   data2 = (char *) malloc (2 * pagesize);
   8941   if (!data2)
   8942     exit (1);
   8943   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   8944   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   8945 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   8946     exit (1);
   8947   for (i = 0; i < pagesize; ++i)
   8948     if (*(data + i) != *(data2 + i))
   8949       exit (1);
   8950 
   8951   /* Finally, make sure that changes to the mapped area do not
   8952      percolate back to the file as seen by read().  (This is a bug on
   8953      some variants of i386 svr4.0.)  */
   8954   for (i = 0; i < pagesize; ++i)
   8955     *(data2 + i) = *(data2 + i) + 1;
   8956   data3 = (char *) malloc (pagesize);
   8957   if (!data3)
   8958     exit (1);
   8959   if (read (fd, data3, pagesize) != pagesize)
   8960     exit (1);
   8961   for (i = 0; i < pagesize; ++i)
   8962     if (*(data + i) != *(data3 + i))
   8963       exit (1);
   8964   close (fd);
   8965   exit (0);
   8966 }
   8967 _ACEOF
   8968 rm -f conftest$ac_exeext
   8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8970   (eval $ac_link) 2>&5
   8971   ac_status=$?
   8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8975   (eval $ac_try) 2>&5
   8976   ac_status=$?
   8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8978   (exit $ac_status); }; }; then
   8979   ac_cv_func_mmap_fixed_mapped=yes
   8980 else
   8981   echo "$as_me: program exited with status $ac_status" >&5
   8982 echo "$as_me: failed program was:" >&5
   8983 sed 's/^/| /' conftest.$ac_ext >&5
   8984 
   8985 ( exit $ac_status )
   8986 ac_cv_func_mmap_fixed_mapped=no
   8987 fi
   8988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8989 fi
   8990 fi
   8991 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   8992 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
   8993 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   8994 
   8995 cat >>confdefs.h <<\_ACEOF
   8996 #define HAVE_MMAP 1
   8997 _ACEOF
   8998 
   8999 fi
   9000 rm -f conftest.mmap
   9001 
   9002 saved_libs="$LIBS"
   9003 LIBS="$LIBS $LIBC $LIBM"
   9004 
   9005 
   9006 
   9007 
   9008 
   9009 
   9010 
   9011 
   9012 for ac_func in fmod getcwd putenv snprintf strcasecmp \
   9013                   strerror strncasecmp strtol
   9014 do
   9015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9016 echo "$as_me:$LINENO: checking for $ac_func" >&5
   9017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9018 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9019   echo $ECHO_N "(cached) $ECHO_C" >&6
   9020 else
   9021   cat >conftest.$ac_ext <<_ACEOF
   9022 /* confdefs.h.  */
   9023 _ACEOF
   9024 cat confdefs.h >>conftest.$ac_ext
   9025 cat >>conftest.$ac_ext <<_ACEOF
   9026 /* end confdefs.h.  */
   9027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9029 #define $ac_func innocuous_$ac_func
   9030 
   9031 /* System header to define __stub macros and hopefully few prototypes,
   9032     which can conflict with char $ac_func (); below.
   9033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9034     <limits.h> exists even on freestanding compilers.  */
   9035 
   9036 #ifdef __STDC__
   9037 # include <limits.h>
   9038 #else
   9039 # include <assert.h>
   9040 #endif
   9041 
   9042 #undef $ac_func
   9043 
   9044 /* Override any gcc2 internal prototype to avoid an error.  */
   9045 #ifdef __cplusplus
   9046 extern "C"
   9047 {
   9048 #endif
   9049 /* We use char because int might match the return type of a gcc2
   9050    builtin and then its argument prototype would still apply.  */
   9051 char $ac_func ();
   9052 /* The GNU C library defines this for functions which it implements
   9053     to always fail with ENOSYS.  Some functions are actually named
   9054     something starting with __ and the normal name is an alias.  */
   9055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9056 choke me
   9057 #else
   9058 char (*f) () = $ac_func;
   9059 #endif
   9060 #ifdef __cplusplus
   9061 }
   9062 #endif
   9063 
   9064 int
   9065 main ()
   9066 {
   9067 return f != $ac_func;
   9068   ;
   9069   return 0;
   9070 }
   9071 _ACEOF
   9072 rm -f conftest.$ac_objext conftest$ac_exeext
   9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9074   (eval $ac_link) 2>conftest.er1
   9075   ac_status=$?
   9076   grep -v '^ *+' conftest.er1 >conftest.err
   9077   rm -f conftest.er1
   9078   cat conftest.err >&5
   9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9080   (exit $ac_status); } &&
   9081 	 { ac_try='test -z "$ac_c_werror_flag"
   9082 			 || test ! -s conftest.err'
   9083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9084   (eval $ac_try) 2>&5
   9085   ac_status=$?
   9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9087   (exit $ac_status); }; } &&
   9088 	 { ac_try='test -s conftest$ac_exeext'
   9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9090   (eval $ac_try) 2>&5
   9091   ac_status=$?
   9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9093   (exit $ac_status); }; }; then
   9094   eval "$as_ac_var=yes"
   9095 else
   9096   echo "$as_me: failed program was:" >&5
   9097 sed 's/^/| /' conftest.$ac_ext >&5
   9098 
   9099 eval "$as_ac_var=no"
   9100 fi
   9101 rm -f conftest.err conftest.$ac_objext \
   9102       conftest$ac_exeext conftest.$ac_ext
   9103 fi
   9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9106 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9107   cat >>confdefs.h <<_ACEOF
   9108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9109 _ACEOF
   9110 
   9111 else
   9112   case $LIBOBJS in
   9113     "$ac_func.$ac_objext"   | \
   9114   *" $ac_func.$ac_objext"   | \
   9115     "$ac_func.$ac_objext "* | \
   9116   *" $ac_func.$ac_objext "* ) ;;
   9117   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
   9118 esac
   9119 
   9120 fi
   9121 done
   9122 
   9123 
   9124 # vsnprintf is in the same source file as snprintf
   9125 
   9126 for ac_func in vsnprintf
   9127 do
   9128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9129 echo "$as_me:$LINENO: checking for $ac_func" >&5
   9130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9131 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9132   echo $ECHO_N "(cached) $ECHO_C" >&6
   9133 else
   9134   cat >conftest.$ac_ext <<_ACEOF
   9135 /* confdefs.h.  */
   9136 _ACEOF
   9137 cat confdefs.h >>conftest.$ac_ext
   9138 cat >>conftest.$ac_ext <<_ACEOF
   9139 /* end confdefs.h.  */
   9140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9142 #define $ac_func innocuous_$ac_func
   9143 
   9144 /* System header to define __stub macros and hopefully few prototypes,
   9145     which can conflict with char $ac_func (); below.
   9146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9147     <limits.h> exists even on freestanding compilers.  */
   9148 
   9149 #ifdef __STDC__
   9150 # include <limits.h>
   9151 #else
   9152 # include <assert.h>
   9153 #endif
   9154 
   9155 #undef $ac_func
   9156 
   9157 /* Override any gcc2 internal prototype to avoid an error.  */
   9158 #ifdef __cplusplus
   9159 extern "C"
   9160 {
   9161 #endif
   9162 /* We use char because int might match the return type of a gcc2
   9163    builtin and then its argument prototype would still apply.  */
   9164 char $ac_func ();
   9165 /* The GNU C library defines this for functions which it implements
   9166     to always fail with ENOSYS.  Some functions are actually named
   9167     something starting with __ and the normal name is an alias.  */
   9168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9169 choke me
   9170 #else
   9171 char (*f) () = $ac_func;
   9172 #endif
   9173 #ifdef __cplusplus
   9174 }
   9175 #endif
   9176 
   9177 int
   9178 main ()
   9179 {
   9180 return f != $ac_func;
   9181   ;
   9182   return 0;
   9183 }
   9184 _ACEOF
   9185 rm -f conftest.$ac_objext conftest$ac_exeext
   9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9187   (eval $ac_link) 2>conftest.er1
   9188   ac_status=$?
   9189   grep -v '^ *+' conftest.er1 >conftest.err
   9190   rm -f conftest.er1
   9191   cat conftest.err >&5
   9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9193   (exit $ac_status); } &&
   9194 	 { ac_try='test -z "$ac_c_werror_flag"
   9195 			 || test ! -s conftest.err'
   9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9197   (eval $ac_try) 2>&5
   9198   ac_status=$?
   9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9200   (exit $ac_status); }; } &&
   9201 	 { ac_try='test -s conftest$ac_exeext'
   9202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9203   (eval $ac_try) 2>&5
   9204   ac_status=$?
   9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9206   (exit $ac_status); }; }; then
   9207   eval "$as_ac_var=yes"
   9208 else
   9209   echo "$as_me: failed program was:" >&5
   9210 sed 's/^/| /' conftest.$ac_ext >&5
   9211 
   9212 eval "$as_ac_var=no"
   9213 fi
   9214 rm -f conftest.err conftest.$ac_objext \
   9215       conftest$ac_exeext conftest.$ac_ext
   9216 fi
   9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9219 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9220   cat >>confdefs.h <<_ACEOF
   9221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9222 _ACEOF
   9223 
   9224 else
   9225   case $LIBOBJS in
   9226     "snprintf.$ac_objext"   | \
   9227   *" snprintf.$ac_objext"   | \
   9228     "snprintf.$ac_objext "* | \
   9229   *" snprintf.$ac_objext "* ) ;;
   9230   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
   9231 esac
   9232 
   9233 fi
   9234 done
   9235 
   9236 LIBS="$saved_libs"
   9237 
   9238 
   9239 
   9240 
   9241 
   9242 
   9243 for ac_func in gettimeofday isatty kill rename setlocale strsep
   9244 do
   9245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9246 echo "$as_me:$LINENO: checking for $ac_func" >&5
   9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9248 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9249   echo $ECHO_N "(cached) $ECHO_C" >&6
   9250 else
   9251   cat >conftest.$ac_ext <<_ACEOF
   9252 /* confdefs.h.  */
   9253 _ACEOF
   9254 cat confdefs.h >>conftest.$ac_ext
   9255 cat >>conftest.$ac_ext <<_ACEOF
   9256 /* end confdefs.h.  */
   9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9259 #define $ac_func innocuous_$ac_func
   9260 
   9261 /* System header to define __stub macros and hopefully few prototypes,
   9262     which can conflict with char $ac_func (); below.
   9263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9264     <limits.h> exists even on freestanding compilers.  */
   9265 
   9266 #ifdef __STDC__
   9267 # include <limits.h>
   9268 #else
   9269 # include <assert.h>
   9270 #endif
   9271 
   9272 #undef $ac_func
   9273 
   9274 /* Override any gcc2 internal prototype to avoid an error.  */
   9275 #ifdef __cplusplus
   9276 extern "C"
   9277 {
   9278 #endif
   9279 /* We use char because int might match the return type of a gcc2
   9280    builtin and then its argument prototype would still apply.  */
   9281 char $ac_func ();
   9282 /* The GNU C library defines this for functions which it implements
   9283     to always fail with ENOSYS.  Some functions are actually named
   9284     something starting with __ and the normal name is an alias.  */
   9285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9286 choke me
   9287 #else
   9288 char (*f) () = $ac_func;
   9289 #endif
   9290 #ifdef __cplusplus
   9291 }
   9292 #endif
   9293 
   9294 int
   9295 main ()
   9296 {
   9297 return f != $ac_func;
   9298   ;
   9299   return 0;
   9300 }
   9301 _ACEOF
   9302 rm -f conftest.$ac_objext conftest$ac_exeext
   9303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9304   (eval $ac_link) 2>conftest.er1
   9305   ac_status=$?
   9306   grep -v '^ *+' conftest.er1 >conftest.err
   9307   rm -f conftest.er1
   9308   cat conftest.err >&5
   9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9310   (exit $ac_status); } &&
   9311 	 { ac_try='test -z "$ac_c_werror_flag"
   9312 			 || test ! -s conftest.err'
   9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9314   (eval $ac_try) 2>&5
   9315   ac_status=$?
   9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9317   (exit $ac_status); }; } &&
   9318 	 { ac_try='test -s conftest$ac_exeext'
   9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9320   (eval $ac_try) 2>&5
   9321   ac_status=$?
   9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9323   (exit $ac_status); }; }; then
   9324   eval "$as_ac_var=yes"
   9325 else
   9326   echo "$as_me: failed program was:" >&5
   9327 sed 's/^/| /' conftest.$ac_ext >&5
   9328 
   9329 eval "$as_ac_var=no"
   9330 fi
   9331 rm -f conftest.err conftest.$ac_objext \
   9332       conftest$ac_exeext conftest.$ac_ext
   9333 fi
   9334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9336 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9337   cat >>confdefs.h <<_ACEOF
   9338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9339 _ACEOF
   9340 
   9341 fi
   9342 done
   9343 
   9344 echo "$as_me:$LINENO: checking for mkstemp" >&5
   9345 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
   9346    ac_ext=cc
   9347 ac_cpp='$CXXCPP $CPPFLAGS'
   9348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9351 
   9352 
   9353    cat >conftest.$ac_ext <<_ACEOF
   9354 
   9355        /* confdefs.h.  */
   9356 _ACEOF
   9357 cat confdefs.h >>conftest.$ac_ext
   9358 cat >>conftest.$ac_ext <<_ACEOF
   9359 /* end confdefs.h.  */
   9360 
   9361 
   9362 #include <stdlib.h>
   9363 #include <unistd.h>
   9364 int (*f) (char *);
   9365 
   9366 
   9367 int
   9368 main ()
   9369 {
   9370 
   9371 
   9372 f = mkstemp;
   9373 
   9374 
   9375   ;
   9376   return 0;
   9377 }
   9378 
   9379 _ACEOF
   9380 rm -f conftest.$ac_objext conftest$ac_exeext
   9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9382   (eval $ac_link) 2>conftest.er1
   9383   ac_status=$?
   9384   grep -v '^ *+' conftest.er1 >conftest.err
   9385   rm -f conftest.er1
   9386   cat conftest.err >&5
   9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9388   (exit $ac_status); } &&
   9389 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9390 			 || test ! -s conftest.err'
   9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9392   (eval $ac_try) 2>&5
   9393   ac_status=$?
   9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9395   (exit $ac_status); }; } &&
   9396 	 { ac_try='test -s conftest$ac_exeext'
   9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9398   (eval $ac_try) 2>&5
   9399   ac_status=$?
   9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9401   (exit $ac_status); }; }; then
   9402   echo "$as_me:$LINENO: result: yes" >&5
   9403 echo "${ECHO_T}yes" >&6
   9404 
   9405 cat >>confdefs.h <<\_ACEOF
   9406 #define HAVE_MKSTEMP 1
   9407 _ACEOF
   9408 
   9409 else
   9410   echo "$as_me: failed program was:" >&5
   9411 sed 's/^/| /' conftest.$ac_ext >&5
   9412 
   9413 echo "$as_me:$LINENO: result: no" >&5
   9414 echo "${ECHO_T}no" >&6
   9415       case $LIBOBJS in
   9416     "mkstemp.$ac_objext"   | \
   9417   *" mkstemp.$ac_objext"   | \
   9418     "mkstemp.$ac_objext "* | \
   9419   *" mkstemp.$ac_objext "* ) ;;
   9420   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
   9421 esac
   9422 
   9423 fi
   9424 rm -f conftest.err conftest.$ac_objext \
   9425       conftest$ac_exeext conftest.$ac_ext
   9426    ac_ext=c
   9427 ac_cpp='$CPP $CPPFLAGS'
   9428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9431 
   9432 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
   9433 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
   9434 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
   9435   echo $ECHO_N "(cached) $ECHO_C" >&6
   9436 else
   9437   cat >conftest.$ac_ext <<_ACEOF
   9438 /* confdefs.h.  */
   9439 _ACEOF
   9440 cat confdefs.h >>conftest.$ac_ext
   9441 cat >>conftest.$ac_ext <<_ACEOF
   9442 /* end confdefs.h.  */
   9443 $ac_includes_default
   9444 int
   9445 main ()
   9446 {
   9447 #ifndef sys_siglist
   9448   char *p = (char *) sys_siglist;
   9449 #endif
   9450 
   9451   ;
   9452   return 0;
   9453 }
   9454 _ACEOF
   9455 rm -f conftest.$ac_objext
   9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9457   (eval $ac_compile) 2>conftest.er1
   9458   ac_status=$?
   9459   grep -v '^ *+' conftest.er1 >conftest.err
   9460   rm -f conftest.er1
   9461   cat conftest.err >&5
   9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9463   (exit $ac_status); } &&
   9464 	 { ac_try='test -z "$ac_c_werror_flag"
   9465 			 || test ! -s conftest.err'
   9466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9467   (eval $ac_try) 2>&5
   9468   ac_status=$?
   9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9470   (exit $ac_status); }; } &&
   9471 	 { ac_try='test -s conftest.$ac_objext'
   9472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9473   (eval $ac_try) 2>&5
   9474   ac_status=$?
   9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9476   (exit $ac_status); }; }; then
   9477   ac_cv_have_decl_sys_siglist=yes
   9478 else
   9479   echo "$as_me: failed program was:" >&5
   9480 sed 's/^/| /' conftest.$ac_ext >&5
   9481 
   9482 ac_cv_have_decl_sys_siglist=no
   9483 fi
   9484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9485 fi
   9486 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
   9487 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
   9488 if test $ac_cv_have_decl_sys_siglist = yes; then
   9489 
   9490 cat >>confdefs.h <<_ACEOF
   9491 #define HAVE_DECL_SYS_SIGLIST 1
   9492 _ACEOF
   9493 
   9494 
   9495 else
   9496   cat >>confdefs.h <<_ACEOF
   9497 #define HAVE_DECL_SYS_SIGLIST 0
   9498 _ACEOF
   9499 
   9500 
   9501 fi
   9502 
   9503 
   9504 
   9505 # checks for compiler characteristics
   9506 ac_ext=cc
   9507 ac_cpp='$CXXCPP $CPPFLAGS'
   9508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9511 
   9512    echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
   9513 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
   9514    cat >conftest.$ac_ext <<_ACEOF
   9515 
   9516        /* confdefs.h.  */
   9517 _ACEOF
   9518 cat confdefs.h >>conftest.$ac_ext
   9519 cat >>conftest.$ac_ext <<_ACEOF
   9520 /* end confdefs.h.  */
   9521 
   9522 int
   9523 main ()
   9524 {
   9525 
   9526 
   9527 char *p = new char[5];
   9528 delete [] p;
   9529 
   9530 
   9531   ;
   9532   return 0;
   9533 }
   9534 
   9535 _ACEOF
   9536 rm -f conftest.$ac_objext
   9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9538   (eval $ac_compile) 2>conftest.er1
   9539   ac_status=$?
   9540   grep -v '^ *+' conftest.er1 >conftest.err
   9541   rm -f conftest.er1
   9542   cat conftest.err >&5
   9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9544   (exit $ac_status); } &&
   9545 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9546 			 || test ! -s conftest.err'
   9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9548   (eval $ac_try) 2>&5
   9549   ac_status=$?
   9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9551   (exit $ac_status); }; } &&
   9552 	 { ac_try='test -s conftest.$ac_objext'
   9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9554   (eval $ac_try) 2>&5
   9555   ac_status=$?
   9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9557   (exit $ac_status); }; }; then
   9558   echo "$as_me:$LINENO: result: yes" >&5
   9559 echo "${ECHO_T}yes" >&6
   9560 else
   9561   echo "$as_me: failed program was:" >&5
   9562 sed 's/^/| /' conftest.$ac_ext >&5
   9563 
   9564 echo "$as_me:$LINENO: result: no" >&5
   9565 echo "${ECHO_T}no" >&6
   9566 
   9567 cat >>confdefs.h <<\_ACEOF
   9568 #define ARRAY_DELETE_NEEDS_SIZE 1
   9569 _ACEOF
   9570 
   9571 fi
   9572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9573    ac_ext=c
   9574 ac_cpp='$CPP $CPPFLAGS'
   9575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9578 
   9579 ac_ext=cc
   9580 ac_cpp='$CXXCPP $CPPFLAGS'
   9581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9584 
   9585    echo "$as_me:$LINENO: checking traditional preprocessor" >&5
   9586 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
   9587    cat >conftest.$ac_ext <<_ACEOF
   9588 
   9589        /* confdefs.h.  */
   9590 _ACEOF
   9591 cat confdefs.h >>conftest.$ac_ext
   9592 cat >>conftest.$ac_ext <<_ACEOF
   9593 /* end confdefs.h.  */
   9594 
   9595 
   9596 #define name2(a, b) a/**/b
   9597 
   9598 
   9599 int
   9600 main ()
   9601 {
   9602 
   9603 
   9604 int name2(foo, bar);
   9605 
   9606 
   9607   ;
   9608   return 0;
   9609 }
   9610 
   9611 _ACEOF
   9612 rm -f conftest.$ac_objext
   9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9614   (eval $ac_compile) 2>conftest.er1
   9615   ac_status=$?
   9616   grep -v '^ *+' conftest.er1 >conftest.err
   9617   rm -f conftest.er1
   9618   cat conftest.err >&5
   9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9620   (exit $ac_status); } &&
   9621 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9622 			 || test ! -s conftest.err'
   9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9624   (eval $ac_try) 2>&5
   9625   ac_status=$?
   9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9627   (exit $ac_status); }; } &&
   9628 	 { ac_try='test -s conftest.$ac_objext'
   9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9630   (eval $ac_try) 2>&5
   9631   ac_status=$?
   9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9633   (exit $ac_status); }; }; then
   9634   echo "$as_me:$LINENO: result: yes" >&5
   9635 echo "${ECHO_T}yes" >&6
   9636 
   9637 cat >>confdefs.h <<\_ACEOF
   9638 #define TRADITIONAL_CPP 1
   9639 _ACEOF
   9640 
   9641 else
   9642   echo "$as_me: failed program was:" >&5
   9643 sed 's/^/| /' conftest.$ac_ext >&5
   9644 
   9645 echo "$as_me:$LINENO: result: no" >&5
   9646 echo "${ECHO_T}no" >&6
   9647 fi
   9648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9649    ac_ext=c
   9650 ac_cpp='$CPP $CPPFLAGS'
   9651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9654 
   9655 
   9656 # checks for operating system services
   9657 echo "$as_me:$LINENO: checking w_coredump" >&5
   9658 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
   9659    if test "$cross_compiling" = yes; then
   9660   echo "$as_me:$LINENO: result: no" >&5
   9661 echo "${ECHO_T}no" >&6
   9662 else
   9663   cat >conftest.$ac_ext <<_ACEOF
   9664 
   9665        /* confdefs.h.  */
   9666 _ACEOF
   9667 cat confdefs.h >>conftest.$ac_ext
   9668 cat >>conftest.$ac_ext <<_ACEOF
   9669 /* end confdefs.h.  */
   9670 
   9671 
   9672 #include <sys/types.h>
   9673 #include <sys/wait.h>
   9674 
   9675 
   9676 int
   9677 main ()
   9678 {
   9679 
   9680 
   9681 main()
   9682 {
   9683 #ifdef WCOREFLAG
   9684   exit(1);
   9685 #else
   9686   int i = 0;
   9687   ((union wait *)&i)->w_coredump = 1;
   9688   exit(i != 0200);
   9689 #endif
   9690 }
   9691 
   9692 
   9693   ;
   9694   return 0;
   9695 }
   9696 
   9697 _ACEOF
   9698 rm -f conftest$ac_exeext
   9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9700   (eval $ac_link) 2>&5
   9701   ac_status=$?
   9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9705   (eval $ac_try) 2>&5
   9706   ac_status=$?
   9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9708   (exit $ac_status); }; }; then
   9709   echo "$as_me:$LINENO: result: yes" >&5
   9710 echo "${ECHO_T}yes" >&6
   9711 
   9712 cat >>confdefs.h <<\_ACEOF
   9713 #define WCOREFLAG 0200
   9714 _ACEOF
   9715 
   9716 else
   9717   echo "$as_me: program exited with status $ac_status" >&5
   9718 echo "$as_me: failed program was:" >&5
   9719 sed 's/^/| /' conftest.$ac_ext >&5
   9720 
   9721 ( exit $ac_status )
   9722 echo "$as_me:$LINENO: result: no" >&5
   9723 echo "${ECHO_T}no" >&6
   9724 fi
   9725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9726 fi
   9727 
   9728 # other random stuff
   9729 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
   9730 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
   9731    test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
   9732    echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
   9733 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
   9734 
   9735 echo "$as_me:$LINENO: checking default paper size" >&5
   9736 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
   9737    groff_prefix=$prefix
   9738    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
   9739    if test -z "$PAGE"; then
   9740      descfile=
   9741      if test -r $groff_prefix/share/groff/font/devps/DESC; then
   9742        descfile=$groff_prefix/share/groff/font/devps/DESC
   9743      elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
   9744        descfile=$groff_prefix/lib/groff/font/devps/DESC
   9745      else
   9746        for f in $groff_prefix/share/groff/*/font/devps/DESC; do
   9747 	 if test -r $f; then
   9748 	   descfile=$f
   9749 	   break
   9750 	 fi
   9751        done
   9752      fi
   9753 
   9754      if test -n "$descfile"; then
   9755        if grep '^paperlength[	 ]\+841890' $descfile >/dev/null 2>&1; then
   9756 	 PAGE=A4
   9757        elif grep '^papersize[	 ]\+[aA]4' $descfile >/dev/null 2>&1; then
   9758 	 PAGE=A4
   9759        fi
   9760      fi
   9761    fi
   9762 
   9763    if test -z "$PAGE"; then
   9764      dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
   9765 	 /etc/resolv.conf 2>/dev/null`
   9766      if test -z "$dom"; then
   9767        dom=`(domainname) 2>/dev/null | tr -d '+'`
   9768        if test -z "$dom" \
   9769 	  || test "$dom" = '(none)'; then
   9770 	 dom=`(hostname) 2>/dev/null | grep '\.'`
   9771        fi
   9772      fi
   9773      # If the top-level domain is two letters and it's not `us' or `ca'
   9774      # then they probably use A4 paper.
   9775      case "$dom" in
   9776      *.[Uu][Ss]|*.[Cc][Aa])
   9777        ;;
   9778      *.[A-Za-z][A-Za-z])
   9779        PAGE=A4 ;;
   9780      esac
   9781    fi
   9782 
   9783    test -n "$PAGE" || PAGE=letter
   9784    if test "x$PAGE" = "xA4"; then
   9785 
   9786 cat >>confdefs.h <<\_ACEOF
   9787 #define PAGEA4 1
   9788 _ACEOF
   9789 
   9790    fi
   9791    echo "$as_me:$LINENO: result: $PAGE" >&5
   9792 echo "${ECHO_T}$PAGE" >&6
   9793 
   9794 echo "$as_me:$LINENO: checking for existing troff installation" >&5
   9795 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
   9796    if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
   9797      echo "$as_me:$LINENO: result: yes" >&5
   9798 echo "${ECHO_T}yes" >&6
   9799      g=g
   9800    else
   9801      echo "$as_me:$LINENO: result: no" >&5
   9802 echo "${ECHO_T}no" >&6
   9803      g=
   9804    fi
   9805 
   9806 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
   9807 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
   9808    sys_tmac_prefix=
   9809    sys_tmac_file_prefix=
   9810    for d in /usr/share/lib/tmac /usr/lib/tmac; do
   9811      for t in "" tmac.; do
   9812        for m in an s m; do
   9813 	 f=$d/$t$m
   9814 	 if test -z "$sys_tmac_prefix" \
   9815 	    && test -f $f \
   9816 	    && grep '^\.if' $f >/dev/null 2>&1; then
   9817 	   sys_tmac_prefix=$d/$t
   9818 	   sys_tmac_file_prefix=$t
   9819 	 fi
   9820        done
   9821      done
   9822    done
   9823    echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
   9824 echo "${ECHO_T}$sys_tmac_prefix" >&6
   9825 
   9826 
   9827    echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
   9828 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
   9829    tmac_wrap=
   9830    if test "x$sys_tmac_file_prefix" = "xtmac."; then
   9831      for f in $sys_tmac_prefix*; do
   9832        suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
   9833        case "$suff" in
   9834        e)
   9835 	 ;;
   9836        *)
   9837 	 grep "Copyright.*Free Software Foundation" $f >/dev/null \
   9838 	      || tmac_wrap="$tmac_wrap $suff" ;;
   9839        esac
   9840      done
   9841    elif test -n "$sys_tmac_prefix"; then
   9842      files=`echo $sys_tmac_prefix*`
   9843      grep "\\.so" $files >conftest.sol
   9844      for f in $files; do
   9845        case "$f" in
   9846        ${sys_tmac_prefix}e)
   9847 	 ;;
   9848        *.me)
   9849 	 ;;
   9850        */ms.*)
   9851 	 ;;
   9852        *)
   9853 	 b=`basename $f`
   9854 	 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
   9855 	    || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
   9856 	   :
   9857 	 else
   9858 	   suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
   9859 	   case "$suff" in
   9860 	   tmac.*)
   9861 	     ;;
   9862 	   *)
   9863 	     tmac_wrap="$tmac_wrap $suff" ;;
   9864 	   esac
   9865 	 fi
   9866        esac
   9867      done
   9868      rm -f conftest.sol
   9869    fi
   9870    echo "$as_me:$LINENO: result: $tmac_wrap" >&5
   9871 echo "${ECHO_T}$tmac_wrap" >&6
   9872 
   9873 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
   9874 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
   9875    cp ${srcdir}/src/include/nonposix.h conftest.h
   9876    cat >conftest.$ac_ext <<_ACEOF
   9877 
   9878        /* confdefs.h.  */
   9879 _ACEOF
   9880 cat confdefs.h >>conftest.$ac_ext
   9881 cat >>conftest.$ac_ext <<_ACEOF
   9882 /* end confdefs.h.  */
   9883 
   9884 
   9885 #include <ctype.h>
   9886 #include "conftest.h"
   9887 
   9888 
   9889 int
   9890 main ()
   9891 {
   9892 
   9893 
   9894 #if PATH_SEP_CHAR == ';'
   9895 make an error "Path separator is ';'"
   9896 #endif
   9897 
   9898 
   9899   ;
   9900   return 0;
   9901 }
   9902 
   9903 _ACEOF
   9904 rm -f conftest.$ac_objext
   9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9906   (eval $ac_compile) 2>conftest.er1
   9907   ac_status=$?
   9908   grep -v '^ *+' conftest.er1 >conftest.err
   9909   rm -f conftest.er1
   9910   cat conftest.err >&5
   9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9912   (exit $ac_status); } &&
   9913 	 { ac_try='test -z "$ac_c_werror_flag"
   9914 			 || test ! -s conftest.err'
   9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9916   (eval $ac_try) 2>&5
   9917   ac_status=$?
   9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9919   (exit $ac_status); }; } &&
   9920 	 { ac_try='test -s conftest.$ac_objext'
   9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9922   (eval $ac_try) 2>&5
   9923   ac_status=$?
   9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9925   (exit $ac_status); }; }; then
   9926   GROFF_PATH_SEPARATOR=":"
   9927 else
   9928   echo "$as_me: failed program was:" >&5
   9929 sed 's/^/| /' conftest.$ac_ext >&5
   9930 
   9931 GROFF_PATH_SEPARATOR=";"
   9932 fi
   9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9934    echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
   9935 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
   9936 
   9937 
   9938 # Check whether --with-alt-gs or --without-alt-gs was given.
   9939 if test "${with_alt_gs+set}" = set; then
   9940   withval="$with_alt_gs"
   9941   ALT_GHOSTSCRIPT_PROGS="$withval"
   9942 else
   9943   ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
   9944 fi;
   9945 
   9946 
   9947 
   9948 # Check whether --with-gs or --without-gs was given.
   9949 if test "${with_gs+set}" = set; then
   9950   withval="$with_gs"
   9951   GHOSTSCRIPT=$withval
   9952 else
   9953   if test -n "$ac_tool_prefix"; then
   9954   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
   9955   do
   9956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   9957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   9958 echo "$as_me:$LINENO: checking for $ac_word" >&5
   9959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   9960 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
   9961   echo $ECHO_N "(cached) $ECHO_C" >&6
   9962 else
   9963   if test -n "$GHOSTSCRIPT"; then
   9964   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
   9965 else
   9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9967 for as_dir in $PATH
   9968 do
   9969   IFS=$as_save_IFS
   9970   test -z "$as_dir" && as_dir=.
   9971   for ac_exec_ext in '' $ac_executable_extensions; do
   9972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9973     ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
   9974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   9975     break 2
   9976   fi
   9977 done
   9978 done
   9979 
   9980 fi
   9981 fi
   9982 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
   9983 if test -n "$GHOSTSCRIPT"; then
   9984   echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
   9985 echo "${ECHO_T}$GHOSTSCRIPT" >&6
   9986 else
   9987   echo "$as_me:$LINENO: result: no" >&5
   9988 echo "${ECHO_T}no" >&6
   9989 fi
   9990 
   9991     test -n "$GHOSTSCRIPT" && break
   9992   done
   9993 fi
   9994 if test -z "$GHOSTSCRIPT"; then
   9995   ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
   9996   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
   9997 do
   9998   # Extract the first word of "$ac_prog", so it can be a program name with args.
   9999 set dummy $ac_prog; ac_word=$2
   10000 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10002 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
   10003   echo $ECHO_N "(cached) $ECHO_C" >&6
   10004 else
   10005   if test -n "$ac_ct_GHOSTSCRIPT"; then
   10006   ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
   10007 else
   10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10009 for as_dir in $PATH
   10010 do
   10011   IFS=$as_save_IFS
   10012   test -z "$as_dir" && as_dir=.
   10013   for ac_exec_ext in '' $ac_executable_extensions; do
   10014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10015     ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
   10016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10017     break 2
   10018   fi
   10019 done
   10020 done
   10021 
   10022 fi
   10023 fi
   10024 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
   10025 if test -n "$ac_ct_GHOSTSCRIPT"; then
   10026   echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
   10027 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
   10028 else
   10029   echo "$as_me:$LINENO: result: no" >&5
   10030 echo "${ECHO_T}no" >&6
   10031 fi
   10032 
   10033   test -n "$ac_ct_GHOSTSCRIPT" && break
   10034 done
   10035 
   10036   if test "x$ac_ct_GHOSTSCRIPT" = x; then
   10037     GHOSTSCRIPT="missing"
   10038   else
   10039     if test "$build" != "$host"; then
   10040       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   10041 whose name does not start with the host triplet.  If you think this
   10042 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   10043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   10044 whose name does not start with the host triplet.  If you think this
   10045 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   10046     fi
   10047     GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
   10048   fi
   10049 fi
   10050 
   10051 fi;
   10052    test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
   10053 
   10054    make_html=html
   10055    make_install_html=install_html
   10056 
   10057    missing=
   10058    # Extract the first word of "pnmcut", so it can be a program name with args.
   10059 set dummy pnmcut; ac_word=$2
   10060 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10062 if test "${ac_cv_prog_pnmcut+set}" = set; then
   10063   echo $ECHO_N "(cached) $ECHO_C" >&6
   10064 else
   10065   if test -n "$pnmcut"; then
   10066   ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
   10067 else
   10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10069 for as_dir in $PATH
   10070 do
   10071   IFS=$as_save_IFS
   10072   test -z "$as_dir" && as_dir=.
   10073   for ac_exec_ext in '' $ac_executable_extensions; do
   10074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10075     ac_cv_prog_pnmcut="found"
   10076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10077     break 2
   10078   fi
   10079 done
   10080 done
   10081 
   10082   test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
   10083 fi
   10084 fi
   10085 pnmcut=$ac_cv_prog_pnmcut
   10086 if test -n "$pnmcut"; then
   10087   echo "$as_me:$LINENO: result: $pnmcut" >&5
   10088 echo "${ECHO_T}$pnmcut" >&6
   10089 else
   10090   echo "$as_me:$LINENO: result: no" >&5
   10091 echo "${ECHO_T}no" >&6
   10092 fi
   10093 
   10094       if test $pnmcut = missing; then
   10095 	missing="$missing \`pnmcut'"
   10096       fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
   10097 set dummy pnmcrop; ac_word=$2
   10098 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10100 if test "${ac_cv_prog_pnmcrop+set}" = set; then
   10101   echo $ECHO_N "(cached) $ECHO_C" >&6
   10102 else
   10103   if test -n "$pnmcrop"; then
   10104   ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
   10105 else
   10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10107 for as_dir in $PATH
   10108 do
   10109   IFS=$as_save_IFS
   10110   test -z "$as_dir" && as_dir=.
   10111   for ac_exec_ext in '' $ac_executable_extensions; do
   10112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10113     ac_cv_prog_pnmcrop="found"
   10114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10115     break 2
   10116   fi
   10117 done
   10118 done
   10119 
   10120   test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
   10121 fi
   10122 fi
   10123 pnmcrop=$ac_cv_prog_pnmcrop
   10124 if test -n "$pnmcrop"; then
   10125   echo "$as_me:$LINENO: result: $pnmcrop" >&5
   10126 echo "${ECHO_T}$pnmcrop" >&6
   10127 else
   10128   echo "$as_me:$LINENO: result: no" >&5
   10129 echo "${ECHO_T}no" >&6
   10130 fi
   10131 
   10132       if test $pnmcrop = missing; then
   10133 	missing="$missing \`pnmcrop'"
   10134       fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
   10135 set dummy pnmtopng; ac_word=$2
   10136 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10138 if test "${ac_cv_prog_pnmtopng+set}" = set; then
   10139   echo $ECHO_N "(cached) $ECHO_C" >&6
   10140 else
   10141   if test -n "$pnmtopng"; then
   10142   ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
   10143 else
   10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10145 for as_dir in $PATH
   10146 do
   10147   IFS=$as_save_IFS
   10148   test -z "$as_dir" && as_dir=.
   10149   for ac_exec_ext in '' $ac_executable_extensions; do
   10150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10151     ac_cv_prog_pnmtopng="found"
   10152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10153     break 2
   10154   fi
   10155 done
   10156 done
   10157 
   10158   test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
   10159 fi
   10160 fi
   10161 pnmtopng=$ac_cv_prog_pnmtopng
   10162 if test -n "$pnmtopng"; then
   10163   echo "$as_me:$LINENO: result: $pnmtopng" >&5
   10164 echo "${ECHO_T}$pnmtopng" >&6
   10165 else
   10166   echo "$as_me:$LINENO: result: no" >&5
   10167 echo "${ECHO_T}no" >&6
   10168 fi
   10169 
   10170       if test $pnmtopng = missing; then
   10171 	missing="$missing \`pnmtopng'"
   10172       fi;# Extract the first word of "psselect", so it can be a program name with args.
   10173 set dummy psselect; ac_word=$2
   10174 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10176 if test "${ac_cv_prog_psselect+set}" = set; then
   10177   echo $ECHO_N "(cached) $ECHO_C" >&6
   10178 else
   10179   if test -n "$psselect"; then
   10180   ac_cv_prog_psselect="$psselect" # Let the user override the test.
   10181 else
   10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10183 for as_dir in $PATH
   10184 do
   10185   IFS=$as_save_IFS
   10186   test -z "$as_dir" && as_dir=.
   10187   for ac_exec_ext in '' $ac_executable_extensions; do
   10188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10189     ac_cv_prog_psselect="found"
   10190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10191     break 2
   10192   fi
   10193 done
   10194 done
   10195 
   10196   test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
   10197 fi
   10198 fi
   10199 psselect=$ac_cv_prog_psselect
   10200 if test -n "$psselect"; then
   10201   echo "$as_me:$LINENO: result: $psselect" >&5
   10202 echo "${ECHO_T}$psselect" >&6
   10203 else
   10204   echo "$as_me:$LINENO: result: no" >&5
   10205 echo "${ECHO_T}no" >&6
   10206 fi
   10207 
   10208       if test $psselect = missing; then
   10209 	missing="$missing \`psselect'"
   10210       fi;# Extract the first word of "pnmtops", so it can be a program name with args.
   10211 set dummy pnmtops; ac_word=$2
   10212 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10214 if test "${ac_cv_prog_pnmtops+set}" = set; then
   10215   echo $ECHO_N "(cached) $ECHO_C" >&6
   10216 else
   10217   if test -n "$pnmtops"; then
   10218   ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
   10219 else
   10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10221 for as_dir in $PATH
   10222 do
   10223   IFS=$as_save_IFS
   10224   test -z "$as_dir" && as_dir=.
   10225   for ac_exec_ext in '' $ac_executable_extensions; do
   10226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10227     ac_cv_prog_pnmtops="found"
   10228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10229     break 2
   10230   fi
   10231 done
   10232 done
   10233 
   10234   test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
   10235 fi
   10236 fi
   10237 pnmtops=$ac_cv_prog_pnmtops
   10238 if test -n "$pnmtops"; then
   10239   echo "$as_me:$LINENO: result: $pnmtops" >&5
   10240 echo "${ECHO_T}$pnmtops" >&6
   10241 else
   10242   echo "$as_me:$LINENO: result: no" >&5
   10243 echo "${ECHO_T}no" >&6
   10244 fi
   10245 
   10246       if test $pnmtops = missing; then
   10247 	missing="$missing \`pnmtops'"
   10248       fi;
   10249 
   10250    test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
   10251 
   10252    if test -n "$missing"; then
   10253      plural=`set $missing; test $# -gt 1 && echo s`
   10254      missing=`set $missing
   10255        missing=""
   10256        while test $# -gt 0
   10257 	 do
   10258 	   case $# in
   10259 	     1) missing="$missing$1" ;;
   10260 	     2) missing="$missing$1 and " ;;
   10261 	     *) missing="$missing$1, " ;;
   10262 	   esac
   10263 	   shift
   10264 	 done
   10265 	 echo $missing`
   10266 
   10267      make_html=
   10268      make_install_html=
   10269 
   10270      { echo "$as_me:$LINENO: WARNING: missing program$plural:
   10271 
   10272   The program$plural
   10273      $missing
   10274   cannot be found in the PATH.
   10275   Consequently, groff's HTML backend (grohtml) will not work properly;
   10276   therefore, it will neither be possible to prepare, nor to install,
   10277   documentation in HTML format.
   10278      " >&5
   10279 echo "$as_me: WARNING: missing program$plural:
   10280 
   10281   The program$plural
   10282      $missing
   10283   cannot be found in the PATH.
   10284   Consequently, groff's HTML backend (grohtml) will not work properly;
   10285   therefore, it will neither be possible to prepare, nor to install,
   10286   documentation in HTML format.
   10287      " >&2;}
   10288    fi
   10289 
   10290 
   10291 
   10292 
   10293 # Check whether --with-alt-awk or --without-alt-awk was given.
   10294 if test "${with_alt_awk+set}" = set; then
   10295   withval="$with_alt_awk"
   10296   ALT_AWK_PROGS="$withval"
   10297 else
   10298   ALT_AWK_PROGS="gawk mawk nawk awk"
   10299 fi;
   10300 
   10301 
   10302 
   10303 # Check whether --with-awk or --without-awk was given.
   10304 if test "${with_awk+set}" = set; then
   10305   withval="$with_awk"
   10306   AWK=$withval
   10307 else
   10308   if test -n "$ac_tool_prefix"; then
   10309   for ac_prog in $ALT_AWK_PROGS
   10310   do
   10311     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   10312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   10313 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10315 if test "${ac_cv_prog_AWK+set}" = set; then
   10316   echo $ECHO_N "(cached) $ECHO_C" >&6
   10317 else
   10318   if test -n "$AWK"; then
   10319   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   10320 else
   10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10322 for as_dir in $PATH
   10323 do
   10324   IFS=$as_save_IFS
   10325   test -z "$as_dir" && as_dir=.
   10326   for ac_exec_ext in '' $ac_executable_extensions; do
   10327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10328     ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
   10329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10330     break 2
   10331   fi
   10332 done
   10333 done
   10334 
   10335 fi
   10336 fi
   10337 AWK=$ac_cv_prog_AWK
   10338 if test -n "$AWK"; then
   10339   echo "$as_me:$LINENO: result: $AWK" >&5
   10340 echo "${ECHO_T}$AWK" >&6
   10341 else
   10342   echo "$as_me:$LINENO: result: no" >&5
   10343 echo "${ECHO_T}no" >&6
   10344 fi
   10345 
   10346     test -n "$AWK" && break
   10347   done
   10348 fi
   10349 if test -z "$AWK"; then
   10350   ac_ct_AWK=$AWK
   10351   for ac_prog in $ALT_AWK_PROGS
   10352 do
   10353   # Extract the first word of "$ac_prog", so it can be a program name with args.
   10354 set dummy $ac_prog; ac_word=$2
   10355 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10357 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
   10358   echo $ECHO_N "(cached) $ECHO_C" >&6
   10359 else
   10360   if test -n "$ac_ct_AWK"; then
   10361   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
   10362 else
   10363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10364 for as_dir in $PATH
   10365 do
   10366   IFS=$as_save_IFS
   10367   test -z "$as_dir" && as_dir=.
   10368   for ac_exec_ext in '' $ac_executable_extensions; do
   10369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10370     ac_cv_prog_ac_ct_AWK="$ac_prog"
   10371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10372     break 2
   10373   fi
   10374 done
   10375 done
   10376 
   10377 fi
   10378 fi
   10379 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
   10380 if test -n "$ac_ct_AWK"; then
   10381   echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
   10382 echo "${ECHO_T}$ac_ct_AWK" >&6
   10383 else
   10384   echo "$as_me:$LINENO: result: no" >&5
   10385 echo "${ECHO_T}no" >&6
   10386 fi
   10387 
   10388   test -n "$ac_ct_AWK" && break
   10389 done
   10390 
   10391   if test "x$ac_ct_AWK" = x; then
   10392     AWK="missing"
   10393   else
   10394     if test "$build" != "$host"; then
   10395       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   10396 whose name does not start with the host triplet.  If you think this
   10397 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   10398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   10399 whose name does not start with the host triplet.  If you think this
   10400 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   10401     fi
   10402     AWK=$ac_ct_AWK
   10403   fi
   10404 fi
   10405 
   10406 fi;
   10407    test "$AWK" = "no" && AWK=missing
   10408 
   10409 
   10410 
   10411    make_pdfdoc=pdfdoc
   10412    make_install_pdfdoc=install_pdfdoc
   10413 
   10414    missing=""
   10415    test "$AWK" = missing && missing="\`awk'"
   10416    test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
   10417    if test -n "$missing"; then
   10418      plural=`set $missing; test $# -eq 2 && echo s`
   10419      test x$plural = xs \
   10420        && missing=`set $missing; echo "$1 and $2"` \
   10421        || missing=`echo $missing`
   10422 
   10423      make_pdfdoc=
   10424      make_install_pdfdoc=
   10425 
   10426      { echo "$as_me:$LINENO: WARNING: missing program$plural:
   10427 
   10428   The program$plural $missing cannot be found in the PATH.
   10429   Consequently, groff's PDF formatter (pdfroff) will not work properly;
   10430   therefore, it will neither be possible to prepare, nor to install,
   10431   documentation in PDF format.
   10432      " >&5
   10433 echo "$as_me: WARNING: missing program$plural:
   10434 
   10435   The program$plural $missing cannot be found in the PATH.
   10436   Consequently, groff's PDF formatter (pdfroff) will not work properly;
   10437   therefore, it will neither be possible to prepare, nor to install,
   10438   documentation in PDF format.
   10439      " >&2;}
   10440    fi
   10441 
   10442 
   10443 
   10444 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
   10445 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
   10446    if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
   10447      echo "$as_me:$LINENO: result: yes" >&5
   10448 echo "${ECHO_T}yes" >&6
   10449      pnmtops_nosetpage="pnmtops -nosetpage"
   10450    else
   10451      echo "$as_me:$LINENO: result: no" >&5
   10452 echo "${ECHO_T}no" >&6
   10453      pnmtops_nosetpage="pnmtops"
   10454    fi
   10455 
   10456 
   10457           ac_config_files="$ac_config_files stamp-h"
   10458 
   10459                               ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
   10460 
   10461           ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
   10462 
   10463           ac_config_files="$ac_config_files test-groff"
   10464 
   10465 cat >confcache <<\_ACEOF
   10466 # This file is a shell script that caches the results of configure
   10467 # tests run on this system so they can be shared between configure
   10468 # scripts and configure runs, see configure's option --config-cache.
   10469 # It is not useful on other systems.  If it contains results you don't
   10470 # want to keep, you may remove or edit it.
   10471 #
   10472 # config.status only pays attention to the cache file if you give it
   10473 # the --recheck option to rerun configure.
   10474 #
   10475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   10476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   10477 # following values.
   10478 
   10479 _ACEOF
   10480 
   10481 # The following way of writing the cache mishandles newlines in values,
   10482 # but we know of no workaround that is simple, portable, and efficient.
   10483 # So, don't put newlines in cache variables' values.
   10484 # Ultrix sh set writes to stderr and can't be redirected directly,
   10485 # and sets the high bit in the cache file unless we assign to the vars.
   10486 {
   10487   (set) 2>&1 |
   10488     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   10489     *ac_space=\ *)
   10490       # `set' does not quote correctly, so add quotes (double-quote
   10491       # substitution turns \\\\ into \\, and sed turns \\ into \).
   10492       sed -n \
   10493 	"s/'/'\\\\''/g;
   10494 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   10495       ;;
   10496     *)
   10497       # `set' quotes correctly as required by POSIX, so do not add quotes.
   10498       sed -n \
   10499 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   10500       ;;
   10501     esac;
   10502 } |
   10503   sed '
   10504      t clear
   10505      : clear
   10506      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   10507      t end
   10508      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   10509      : end' >>confcache
   10510 if diff $cache_file confcache >/dev/null 2>&1; then :; else
   10511   if test -w $cache_file; then
   10512     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   10513     cat confcache >$cache_file
   10514   else
   10515     echo "not updating unwritable cache $cache_file"
   10516   fi
   10517 fi
   10518 rm -f confcache
   10519 
   10520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   10521 # Let make expand exec_prefix.
   10522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   10523 
   10524 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   10525 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   10526 # trailing colons and then remove the whole line if VPATH becomes empty
   10527 # (actually we leave an empty line to preserve line numbers).
   10528 if test "x$srcdir" = x.; then
   10529   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   10530 s/:*\$(srcdir):*/:/;
   10531 s/:*\${srcdir}:*/:/;
   10532 s/:*@srcdir@:*/:/;
   10533 s/^\([^=]*=[	 ]*\):*/\1/;
   10534 s/:*$//;
   10535 s/^[^=]*=[	 ]*$//;
   10536 }'
   10537 fi
   10538 
   10539 DEFS=-DHAVE_CONFIG_H
   10540 
   10541 ac_libobjs=
   10542 ac_ltlibobjs=
   10543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   10544   # 1. Remove the extension, and $U if already installed.
   10545   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   10546   ac_i=`echo "$ac_i" | sed "$ac_script"`
   10547   # 2. Add them.
   10548   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
   10549   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
   10550 done
   10551 LIBOBJS=$ac_libobjs
   10552 
   10553 LTLIBOBJS=$ac_ltlibobjs
   10554 
   10555 
   10556 
   10557 : ${CONFIG_STATUS=./config.status}
   10558 ac_clean_files_save=$ac_clean_files
   10559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   10560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   10561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   10562 cat >$CONFIG_STATUS <<_ACEOF
   10563 #! $SHELL
   10564 # Generated by $as_me.
   10565 # Run this file to recreate the current configuration.
   10566 # Compiler output produced by configure, useful for debugging
   10567 # configure, is in config.log if it exists.
   10568 
   10569 debug=false
   10570 ac_cs_recheck=false
   10571 ac_cs_silent=false
   10572 SHELL=\${CONFIG_SHELL-$SHELL}
   10573 _ACEOF
   10574 
   10575 cat >>$CONFIG_STATUS <<\_ACEOF
   10576 ## --------------------- ##
   10577 ## M4sh Initialization.  ##
   10578 ## --------------------- ##
   10579 
   10580 # Be Bourne compatible
   10581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   10582   emulate sh
   10583   NULLCMD=:
   10584   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   10585   # is contrary to our usage.  Disable this feature.
   10586   alias -g '${1+"$@"}'='"$@"'
   10587   setopt NO_GLOB_SUBST
   10588 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   10589   set -o posix
   10590 fi
   10591 BIN_SH=xpg4; export BIN_SH # for Tru64
   10592 DUALCASE=1; export DUALCASE # for MKS sh
   10593 
   10594 
   10595 # PATH needs CR
   10596 # Avoid depending upon Character Ranges.
   10597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   10598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   10599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   10600 as_cr_digits='0123456789'
   10601 as_cr_alnum=$as_cr_Letters$as_cr_digits
   10602 
   10603 # The user is always right.
   10604 if test "${PATH_SEPARATOR+set}" != set; then
   10605   echo "#! /bin/sh" >conf$$.sh
   10606   echo  "exit 0"   >>conf$$.sh
   10607   chmod +x conf$$.sh
   10608   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   10609     PATH_SEPARATOR=';'
   10610   else
   10611     PATH_SEPARATOR=:
   10612   fi
   10613   rm -f conf$$.sh
   10614 fi
   10615 
   10616 # Support unset when possible.
   10617 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   10618   as_unset=unset
   10619 else
   10620   as_unset=false
   10621 fi
   10622 
   10623 
   10624 # Find who we are.  Look in the path if we contain no path at all
   10625 # relative or not.
   10626 case $0 in
   10627   *[\\/]* ) as_myself=$0 ;;
   10628   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10629 for as_dir in $PATH
   10630 do
   10631   IFS=$as_save_IFS
   10632   test -z "$as_dir" && as_dir=.
   10633   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   10634 done
   10635 
   10636      ;;
   10637 esac
   10638 # We did not find ourselves, most probably we were run as `sh COMMAND'
   10639 # in which case we are not to be found in the path.
   10640 if test "x$as_myself" = x; then
   10641   as_myself=$0
   10642 fi
   10643 if test ! -f "$as_myself"; then
   10644   { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
   10645 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
   10646    { (exit 1); exit 1; }; }
   10647 fi
   10648 
   10649 # Work around bugs in pre-3.0 UWIN ksh.
   10650 for as_var in ENV MAIL MAILPATH
   10651 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   10652 done
   10653 PS1='$ '
   10654 PS2='> '
   10655 PS4='+ '
   10656 
   10657 # NLS nuisances.
   10658 for as_var in \
   10659   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   10660   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   10661   LC_TELEPHONE LC_TIME
   10662 do
   10663   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   10664     eval $as_var=C; export $as_var
   10665   else
   10666     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   10667   fi
   10668 done
   10669 
   10670 # Required to use basename.
   10671 if expr a : '\(a\)' >/dev/null 2>&1; then
   10672   as_expr=expr
   10673 else
   10674   as_expr=false
   10675 fi
   10676 
   10677 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
   10678   as_basename=basename
   10679 else
   10680   as_basename=false
   10681 fi
   10682 
   10683 
   10684 # Name of the executable.
   10685 as_me=`$as_basename "$0" ||
   10686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   10687 	 X"$0" : 'X\(//\)$' \| \
   10688 	 X"$0" : 'X\(/\)$' \| \
   10689 	 .     : '\(.\)' 2>/dev/null ||
   10690 echo X/"$0" |
   10691     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   10692   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   10693   	  /^X\/\(\/\).*/{ s//\1/; q; }
   10694   	  s/.*/./; q'`
   10695 
   10696 
   10697 
   10698 
   10699   as_lineno_1=$LINENO
   10700   as_lineno_2=$LINENO
   10701   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   10702   test "x$as_lineno_1" != "x$as_lineno_2" &&
   10703   test "x$as_lineno_3"  = "x$as_lineno_2" || {
   10704 
   10705   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   10706   # uniformly replaced by the line number.  The first 'sed' inserts a
   10707   # line-number line after each line using $LINENO; the second 'sed'
   10708   # does the real work.  The second script uses 'N' to pair each
   10709   # line-number line with the line containing $LINENO, and appends
   10710   # trailing '-' during substitution so that $LINENO is not a special
   10711   # case at line end.
   10712   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   10713   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   10714   # E. McMahon (1931-1989) for sed's syntax.  :-)
   10715   sed -n '
   10716     p
   10717     /[$]LINENO/=
   10718   ' <$as_myself |
   10719     sed '
   10720       s,[$]LINENO.*,&-,
   10721       t lineno
   10722       b
   10723       : lineno
   10724       N
   10725       : loop
   10726       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
   10727       t loop
   10728       s,-\n.*,,
   10729     ' >$as_me.lineno &&
   10730   chmod +x $as_me.lineno ||
   10731     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
   10732 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   10733    { (exit 1); exit 1; }; }
   10734 
   10735   # Don't try to exec as it changes $[0], causing all sort of problems
   10736   # (the dirname of $[0] is not the place where we might find the
   10737   # original and so on.  Autoconf is especially sensible to this).
   10738   . ./$as_me.lineno
   10739   # Exit status is that of the last command.
   10740   exit
   10741 }
   10742 
   10743 
   10744 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   10745   *c*,-n*) ECHO_N= ECHO_C='
   10746 ' ECHO_T='	' ;;
   10747   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   10748   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   10749 esac
   10750 
   10751 if expr a : '\(a\)' >/dev/null 2>&1; then
   10752   as_expr=expr
   10753 else
   10754   as_expr=false
   10755 fi
   10756 
   10757 rm -f conf$$ conf$$.exe conf$$.file
   10758 echo >conf$$.file
   10759 if ln -s conf$$.file conf$$ 2>/dev/null; then
   10760   # We could just check for DJGPP; but this test a) works b) is more generic
   10761   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   10762   if test -f conf$$.exe; then
   10763     # Don't use ln at all; we don't have any links
   10764     as_ln_s='cp -p'
   10765   else
   10766     as_ln_s='ln -s'
   10767   fi
   10768 elif ln conf$$.file conf$$ 2>/dev/null; then
   10769   as_ln_s=ln
   10770 else
   10771   as_ln_s='cp -p'
   10772 fi
   10773 rm -f conf$$ conf$$.exe conf$$.file
   10774 
   10775 if mkdir -p . 2>/dev/null; then
   10776   as_mkdir_p=:
   10777 else
   10778   test -d ./-p && rmdir ./-p
   10779   as_mkdir_p=false
   10780 fi
   10781 
   10782 as_executable_p="test -f"
   10783 
   10784 # Sed expression to map a string onto a valid CPP name.
   10785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   10786 
   10787 # Sed expression to map a string onto a valid variable name.
   10788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   10789 
   10790 
   10791 # IFS
   10792 # We need space, tab and new line, in precisely that order.
   10793 as_nl='
   10794 '
   10795 IFS=" 	$as_nl"
   10796 
   10797 # CDPATH.
   10798 $as_unset CDPATH
   10799 
   10800 exec 6>&1
   10801 
   10802 # Open the log real soon, to keep \$[0] and so on meaningful, and to
   10803 # report actual input values of CONFIG_FILES etc. instead of their
   10804 # values after options handling.  Logging --version etc. is OK.
   10805 exec 5>>config.log
   10806 {
   10807   echo
   10808   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   10809 ## Running $as_me. ##
   10810 _ASBOX
   10811 } >&5
   10812 cat >&5 <<_CSEOF
   10813 
   10814 This file was extended by $as_me, which was
   10815 generated by GNU Autoconf 2.59b.  Invocation command line was
   10816 
   10817   CONFIG_FILES    = $CONFIG_FILES
   10818   CONFIG_HEADERS  = $CONFIG_HEADERS
   10819   CONFIG_LINKS    = $CONFIG_LINKS
   10820   CONFIG_COMMANDS = $CONFIG_COMMANDS
   10821   $ $0 $@
   10822 
   10823 _CSEOF
   10824 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
   10825 echo >&5
   10826 _ACEOF
   10827 
   10828 # Files that config.status was made for.
   10829 if test -n "$ac_config_files"; then
   10830   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   10831 fi
   10832 
   10833 if test -n "$ac_config_headers"; then
   10834   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   10835 fi
   10836 
   10837 if test -n "$ac_config_links"; then
   10838   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   10839 fi
   10840 
   10841 if test -n "$ac_config_commands"; then
   10842   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   10843 fi
   10844 
   10845 cat >>$CONFIG_STATUS <<\_ACEOF
   10846 
   10847 ac_cs_usage="\
   10848 \`$as_me' instantiates files from templates according to the
   10849 current configuration.
   10850 
   10851 Usage: $0 [OPTIONS] [FILE]...
   10852 
   10853   -h, --help       print this help, then exit
   10854   -V, --version    print version number, then exit
   10855   -q, --quiet      do not print progress messages
   10856   -d, --debug      don't remove temporary files
   10857       --recheck    update $as_me by reconfiguring in the same conditions
   10858   --file=FILE[:TEMPLATE]
   10859 		   instantiate the configuration file FILE
   10860   --header=FILE[:TEMPLATE]
   10861 		   instantiate the configuration header FILE
   10862 
   10863 Configuration files:
   10864 $config_files
   10865 
   10866 Configuration headers:
   10867 $config_headers
   10868 
   10869 Report bugs to <bug-autoconf@gnu.org>."
   10870 _ACEOF
   10871 
   10872 cat >>$CONFIG_STATUS <<_ACEOF
   10873 ac_cs_version="\\
   10874 config.status
   10875 configured by $0, generated by GNU Autoconf 2.59b,
   10876   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   10877 
   10878 Copyright (C) 2004 Free Software Foundation, Inc.
   10879 This config.status script is free software; the Free Software Foundation
   10880 gives unlimited permission to copy, distribute and modify it."
   10881 srcdir=$srcdir
   10882 INSTALL="$INSTALL"
   10883 _ACEOF
   10884 
   10885 cat >>$CONFIG_STATUS <<\_ACEOF
   10886 # If no file are specified by the user, then we need to provide default
   10887 # value.  By we need to know if files were specified by the user.
   10888 ac_need_defaults=:
   10889 while test $# != 0
   10890 do
   10891   case $1 in
   10892   --*=*)
   10893     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   10894     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   10895     ac_shift=:
   10896     ;;
   10897   -*)
   10898     ac_option=$1
   10899     ac_optarg=$2
   10900     ac_shift=shift
   10901     ;;
   10902   *) # This is not an option, so the user has probably given explicit
   10903      # arguments.
   10904      ac_option=$1
   10905      ac_need_defaults=false;;
   10906   esac
   10907 
   10908   case $ac_option in
   10909   # Handling of the options.
   10910 _ACEOF
   10911 cat >>$CONFIG_STATUS <<\_ACEOF
   10912   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   10913     ac_cs_recheck=: ;;
   10914   --version | --vers* | -V )
   10915     echo "$ac_cs_version"; exit 0 ;;
   10916   --he | --h)
   10917     # Conflict between --help and --header
   10918     { { echo "$as_me:$LINENO: error: ambiguous option: $1
   10919 Try \`$0 --help' for more information." >&5
   10920 echo "$as_me: error: ambiguous option: $1
   10921 Try \`$0 --help' for more information." >&2;}
   10922    { (exit 1); exit 1; }; };;
   10923   --help | --hel | -h )
   10924     echo "$ac_cs_usage"; exit 0 ;;
   10925   --debug | --d* | -d )
   10926     debug=: ;;
   10927   --file | --fil | --fi | --f )
   10928     $ac_shift
   10929     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   10930     ac_need_defaults=false;;
   10931   --header | --heade | --head | --hea )
   10932     $ac_shift
   10933     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   10934     ac_need_defaults=false;;
   10935   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   10936   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   10937     ac_cs_silent=: ;;
   10938 
   10939   # This is an error.
   10940   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
   10941 Try \`$0 --help' for more information." >&5
   10942 echo "$as_me: error: unrecognized option: $1
   10943 Try \`$0 --help' for more information." >&2;}
   10944    { (exit 1); exit 1; }; } ;;
   10945 
   10946   *) ac_config_targets="$ac_config_targets $1" ;;
   10947 
   10948   esac
   10949   shift
   10950 done
   10951 
   10952 ac_configure_extra_args=
   10953 
   10954 if $ac_cs_silent; then
   10955   exec 6>/dev/null
   10956   ac_configure_extra_args="$ac_configure_extra_args --silent"
   10957 fi
   10958 
   10959 _ACEOF
   10960 cat >>$CONFIG_STATUS <<_ACEOF
   10961 if \$ac_cs_recheck; then
   10962   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   10963   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   10964 fi
   10965 
   10966 _ACEOF
   10967 
   10968 
   10969 
   10970 
   10971 
   10972 cat >>$CONFIG_STATUS <<\_ACEOF
   10973 for ac_config_target in $ac_config_targets
   10974 do
   10975   case "$ac_config_target" in
   10976   # Handling of arguments.
   10977   "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
   10978   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   10979   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   10980   "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
   10981   "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
   10982   "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
   10983   "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
   10984   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   10985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   10986    { (exit 1); exit 1; }; };;
   10987   esac
   10988 done
   10989 
   10990 # If the user did not use the arguments to specify the items to instantiate,
   10991 # then the envvar interface is used.  Set only those that are not.
   10992 # We use the long form for the default assignment because of an extremely
   10993 # bizarre bug on SunOS 4.1.3.
   10994 if $ac_need_defaults; then
   10995   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   10996   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   10997 fi
   10998 
   10999 # Have a temporary directory for convenience.  Make it in the build tree
   11000 # simply because there is no reason to put it here, and in addition,
   11001 # creating and moving files from /tmp can sometimes cause problems.
   11002 # Create a temporary directory, and hook for its removal unless debugging.
   11003 $debug ||
   11004 {
   11005   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   11006   trap '{ (exit 1); exit 1; }' 1 2 13 15
   11007 }
   11008 
   11009 # Create a (secure) tmp directory for tmp files.
   11010 
   11011 {
   11012   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
   11013   test -n "$tmp" && test -d "$tmp"
   11014 }  ||
   11015 {
   11016   tmp=./confstat$$-$RANDOM
   11017   (umask 077 && mkdir $tmp)
   11018 } ||
   11019 {
   11020    echo "$me: cannot create a temporary directory in ." >&2
   11021    { (exit 1); exit 1; }
   11022 }
   11023 
   11024 _ACEOF
   11025 
   11026 cat >>$CONFIG_STATUS <<_ACEOF
   11027 
   11028 #
   11029 # CONFIG_FILES section.
   11030 #
   11031 
   11032 # No need to generate the scripts if there are no CONFIG_FILES.
   11033 # This happens for instance when ./config.status config.h
   11034 if test -n "\$CONFIG_FILES"; then
   11035   # Protect against being on the right side of a sed subst in config.status.
   11036   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   11037    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   11038 s,@SHELL@,$SHELL,;t t
   11039 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   11040 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   11041 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   11042 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   11043 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   11044 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   11045 s,@exec_prefix@,$exec_prefix,;t t
   11046 s,@prefix@,$prefix,;t t
   11047 s,@program_transform_name@,$program_transform_name,;t t
   11048 s,@bindir@,$bindir,;t t
   11049 s,@sbindir@,$sbindir,;t t
   11050 s,@libexecdir@,$libexecdir,;t t
   11051 s,@datadir@,$datadir,;t t
   11052 s,@sysconfdir@,$sysconfdir,;t t
   11053 s,@sharedstatedir@,$sharedstatedir,;t t
   11054 s,@localstatedir@,$localstatedir,;t t
   11055 s,@libdir@,$libdir,;t t
   11056 s,@includedir@,$includedir,;t t
   11057 s,@oldincludedir@,$oldincludedir,;t t
   11058 s,@infodir@,$infodir,;t t
   11059 s,@mandir@,$mandir,;t t
   11060 s,@build_alias@,$build_alias,;t t
   11061 s,@host_alias@,$host_alias,;t t
   11062 s,@target_alias@,$target_alias,;t t
   11063 s,@DEFS@,$DEFS,;t t
   11064 s,@ECHO_C@,$ECHO_C,;t t
   11065 s,@ECHO_N@,$ECHO_N,;t t
   11066 s,@ECHO_T@,$ECHO_T,;t t
   11067 s,@LIBS@,$LIBS,;t t
   11068 s,@CC@,$CC,;t t
   11069 s,@CFLAGS@,$CFLAGS,;t t
   11070 s,@LDFLAGS@,$LDFLAGS,;t t
   11071 s,@CPPFLAGS@,$CPPFLAGS,;t t
   11072 s,@ac_ct_CC@,$ac_ct_CC,;t t
   11073 s,@EXEEXT@,$EXEEXT,;t t
   11074 s,@OBJEXT@,$OBJEXT,;t t
   11075 s,@CXX@,$CXX,;t t
   11076 s,@CXXFLAGS@,$CXXFLAGS,;t t
   11077 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
   11078 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
   11079 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
   11080 s,@CPP@,$CPP,;t t
   11081 s,@X_CFLAGS@,$X_CFLAGS,;t t
   11082 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   11083 s,@X_LIBS@,$X_LIBS,;t t
   11084 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   11085 s,@XDEVDIRS@,$XDEVDIRS,;t t
   11086 s,@XPROGDIRS@,$XPROGDIRS,;t t
   11087 s,@XLIBDIRS@,$XLIBDIRS,;t t
   11088 s,@appresdir@,$appresdir,;t t
   11089 s,@LPR@,$LPR,;t t
   11090 s,@LP@,$LP,;t t
   11091 s,@LPQ@,$LPQ,;t t
   11092 s,@PSPRINT@,$PSPRINT,;t t
   11093 s,@DVIPRINT@,$DVIPRINT,;t t
   11094 s,@PERLPATH@,$PERLPATH,;t t
   11095 s,@YACC@,$YACC,;t t
   11096 s,@RANLIB@,$RANLIB,;t t
   11097 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
   11098 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
   11099 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   11100 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   11101 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   11102 s,@LN_S@,$LN_S,;t t
   11103 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
   11104 s,@GREP@,$GREP,;t t
   11105 s,@EGREP@,$EGREP,;t t
   11106 s,@LIBC@,$LIBC,;t t
   11107 s,@LIBM@,$LIBM,;t t
   11108 s,@LIBOBJS@,$LIBOBJS,;t t
   11109 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
   11110 s,@PAGE@,$PAGE,;t t
   11111 s,@g@,$g,;t t
   11112 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
   11113 s,@tmac_wrap@,$tmac_wrap,;t t
   11114 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
   11115 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
   11116 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
   11117 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
   11118 s,@pnmcut@,$pnmcut,;t t
   11119 s,@pnmcrop@,$pnmcrop,;t t
   11120 s,@pnmtopng@,$pnmtopng,;t t
   11121 s,@psselect@,$psselect,;t t
   11122 s,@pnmtops@,$pnmtops,;t t
   11123 s,@make_html@,$make_html,;t t
   11124 s,@make_install_html@,$make_install_html,;t t
   11125 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
   11126 s,@AWK@,$AWK,;t t
   11127 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
   11128 s,@make_pdfdoc@,$make_pdfdoc,;t t
   11129 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
   11130 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
   11131 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
   11132 CEOF
   11133 
   11134 _ACEOF
   11135 
   11136   cat >>$CONFIG_STATUS <<\_ACEOF
   11137   # Split the substitutions into bite-sized pieces for seds with
   11138   # small command number limits, like on Digital OSF/1 and HP-UX.
   11139   ac_max_sed_lines=48
   11140   ac_sed_frag=1 # Number of current file.
   11141   ac_beg=1 # First line for current file.
   11142   ac_end=$ac_max_sed_lines # Line after last line for current file.
   11143   ac_more_lines=:
   11144   ac_sed_cmds=
   11145   while $ac_more_lines; do
   11146     if test $ac_beg -gt 1; then
   11147       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   11148     else
   11149       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   11150     fi
   11151     if test ! -s $tmp/subs.frag; then
   11152       ac_more_lines=false
   11153     else
   11154       # The purpose of the label and of the branching condition is to
   11155       # speed up the sed processing (if there are no `@' at all, there
   11156       # is no need to browse any of the substitutions).
   11157       # These are the two extra sed commands mentioned above.
   11158       (echo ':t
   11159   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   11160       if test -z "$ac_sed_cmds"; then
   11161 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   11162       else
   11163 	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   11164       fi
   11165       ac_sed_frag=`expr $ac_sed_frag + 1`
   11166       ac_beg=$ac_end
   11167       ac_end=`expr $ac_end + $ac_max_sed_lines`
   11168     fi
   11169   done
   11170   if test -z "$ac_sed_cmds"; then
   11171     ac_sed_cmds=cat
   11172   fi
   11173 fi # test -n "$CONFIG_FILES"
   11174 
   11175 _ACEOF
   11176 cat >>$CONFIG_STATUS <<\_ACEOF
   11177 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   11178   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   11179   case $ac_file in
   11180   - | *:- | *:-:* ) # input from stdin
   11181 	cat >$tmp/stdin
   11182 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11183 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11184   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11185 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11186   * )   ac_file_in=$ac_file.in ;;
   11187   esac
   11188 
   11189   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   11190   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   11191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11192 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   11193 	 X"$ac_file" : 'X\(//\)$' \| \
   11194 	 X"$ac_file" : 'X\(/\)' \| \
   11195 	 .     : '\(.\)' 2>/dev/null ||
   11196 echo X"$ac_file" |
   11197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11198   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11199   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11200   	  /^X\(\/\).*/{ s//\1/; q; }
   11201   	  s/.*/./; q'`
   11202   { if $as_mkdir_p; then
   11203     test -d "$ac_dir" || mkdir -p "$ac_dir"
   11204   else
   11205     as_dir="$ac_dir"
   11206     as_dirs=
   11207     while test ! -d "$as_dir"; do
   11208       as_dirs="$as_dir $as_dirs"
   11209       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   11210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11211 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11212 	 X"$as_dir" : 'X\(//\)$' \| \
   11213 	 X"$as_dir" : 'X\(/\)' \| \
   11214 	 .     : '\(.\)' 2>/dev/null ||
   11215 echo X"$as_dir" |
   11216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11217   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11218   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11219   	  /^X\(\/\).*/{ s//\1/; q; }
   11220   	  s/.*/./; q'`
   11221     done
   11222     test ! -n "$as_dirs" || mkdir $as_dirs
   11223   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   11224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   11225    { (exit 1); exit 1; }; }; }
   11226 
   11227   ac_builddir=.
   11228 
   11229 if test "$ac_dir" != .; then
   11230   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   11231   # A "../" for each directory in $ac_dir_suffix.
   11232   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   11233 else
   11234   ac_dir_suffix= ac_top_builddir=
   11235 fi
   11236 
   11237 case $srcdir in
   11238   .)  # No --srcdir option.  We are building in place.
   11239     ac_srcdir=.
   11240     if test -z "$ac_top_builddir"; then
   11241        ac_top_srcdir=.
   11242     else
   11243        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   11244     fi ;;
   11245   [\\/]* | ?:[\\/]* )  # Absolute name.
   11246     ac_srcdir=$srcdir$ac_dir_suffix;
   11247     ac_top_srcdir=$srcdir ;;
   11248   *) # Relative name.
   11249     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   11250     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   11251 esac
   11252 
   11253 # Do not use `cd foo && pwd` to compute absolute names, because
   11254 # the directories may not exist.
   11255 case `pwd` in
   11256 .) ac_abs_builddir="$ac_dir";;
   11257 *)
   11258   case "$ac_dir" in
   11259   .) ac_abs_builddir=`pwd`;;
   11260   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   11261   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   11262   esac;;
   11263 esac
   11264 case $ac_abs_builddir in
   11265 .) ac_abs_top_builddir=${ac_top_builddir}.;;
   11266 *)
   11267   case ${ac_top_builddir}. in
   11268   .) ac_abs_top_builddir=$ac_abs_builddir;;
   11269   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   11270   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   11271   esac;;
   11272 esac
   11273 case $ac_abs_builddir in
   11274 .) ac_abs_srcdir=$ac_srcdir;;
   11275 *)
   11276   case $ac_srcdir in
   11277   .) ac_abs_srcdir=$ac_abs_builddir;;
   11278   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   11279   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   11280   esac;;
   11281 esac
   11282 case $ac_abs_builddir in
   11283 .) ac_abs_top_srcdir=$ac_top_srcdir;;
   11284 *)
   11285   case $ac_top_srcdir in
   11286   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   11287   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   11288   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   11289   esac;;
   11290 esac
   11291 
   11292 
   11293   case $INSTALL in
   11294   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   11295   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
   11296   esac
   11297 
   11298   if test x"$ac_file" != x-; then
   11299     { echo "$as_me:$LINENO: creating $ac_file" >&5
   11300 echo "$as_me: creating $ac_file" >&6;}
   11301     rm -f "$ac_file"
   11302   fi
   11303   # Let's still pretend it is `configure' which instantiates (i.e., don't
   11304   # use $as_me), people would be surprised to read:
   11305   #    /* config.h.  Generated by config.status.  */
   11306   if test x"$ac_file" = x-; then
   11307     configure_input=
   11308   else
   11309     configure_input="$ac_file.  "
   11310   fi
   11311   configure_input=$configure_input"Generated from `echo $ac_file_in |
   11312 				     sed 's,.*/,,'` by configure."
   11313 
   11314   # First look for the input files in the build tree, otherwise in the
   11315   # src tree.
   11316   ac_file_inputs=`IFS=:
   11317     for f in $ac_file_in; do
   11318       case $f in
   11319       -) echo $tmp/stdin ;;
   11320       [\\/$]*)
   11321 	 # Absolute (can't be DOS-style, as IFS=:)
   11322 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11323 echo "$as_me: error: cannot find input file: $f" >&2;}
   11324    { (exit 1); exit 1; }; }
   11325 	 echo "$f";;
   11326       *) # Relative
   11327 	 if test -f "$f"; then
   11328 	   # Build tree
   11329 	   echo "$f"
   11330 	 elif test -f "$srcdir/$f"; then
   11331 	   # Source tree
   11332 	   echo "$srcdir/$f"
   11333 	 else
   11334 	   # /dev/null tree
   11335 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11336 echo "$as_me: error: cannot find input file: $f" >&2;}
   11337    { (exit 1); exit 1; }; }
   11338 	 fi;;
   11339       esac
   11340     done` || { (exit 1); exit 1; }
   11341 _ACEOF
   11342 cat >>$CONFIG_STATUS <<_ACEOF
   11343   sed "$ac_vpsub
   11344 $extrasub
   11345 _ACEOF
   11346 cat >>$CONFIG_STATUS <<\_ACEOF
   11347 :t
   11348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   11349 s,@configure_input@,$configure_input,;t t
   11350 s,@srcdir@,$ac_srcdir,;t t
   11351 s,@abs_srcdir@,$ac_abs_srcdir,;t t
   11352 s,@top_srcdir@,$ac_top_srcdir,;t t
   11353 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
   11354 s,@builddir@,$ac_builddir,;t t
   11355 s,@abs_builddir@,$ac_abs_builddir,;t t
   11356 s,@top_builddir@,$ac_top_builddir,;t t
   11357 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
   11358 s,@INSTALL@,$ac_INSTALL,;t t
   11359 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   11360   rm -f $tmp/stdin
   11361   if test x"$ac_file" != x-; then
   11362     mv $tmp/out $ac_file
   11363   else
   11364     cat $tmp/out
   11365     rm -f $tmp/out
   11366   fi
   11367 
   11368   # Run the commands associated with the file.
   11369   case $ac_file in
   11370     stamp-h ) echo timestamp > stamp-h ;;
   11371     contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
   11372     test-groff ) chmod +x test-groff ;;
   11373   esac
   11374 done
   11375 _ACEOF
   11376 cat >>$CONFIG_STATUS <<\_ACEOF
   11377 
   11378 #
   11379 # CONFIG_HEADER section.
   11380 #
   11381 
   11382 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   11383 # NAME is the cpp macro being defined and VALUE is the value it is being given.
   11384 #
   11385 # ac_d sets the value in "#define NAME VALUE" lines.
   11386 ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
   11387 ac_dB='[	 ].*$,\1#\2'
   11388 ac_dC=' '
   11389 ac_dD=',;t'
   11390 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   11391 ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
   11392 ac_uB='$,\1#\2define\3'
   11393 ac_uC=' '
   11394 ac_uD=',;t'
   11395 
   11396 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   11397   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   11398   case $ac_file in
   11399   - | *:- | *:-:* ) # input from stdin
   11400 	cat >$tmp/stdin
   11401 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11402 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11403   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11404 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11405   * )   ac_file_in=$ac_file.in ;;
   11406   esac
   11407 
   11408   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
   11409 echo "$as_me: creating $ac_file" >&6;}
   11410 
   11411   # First look for the input files in the build tree, otherwise in the
   11412   # src tree.
   11413   ac_file_inputs=`IFS=:
   11414     for f in $ac_file_in; do
   11415       case $f in
   11416       -) echo $tmp/stdin ;;
   11417       [\\/$]*)
   11418 	 # Absolute (can't be DOS-style, as IFS=:)
   11419 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11420 echo "$as_me: error: cannot find input file: $f" >&2;}
   11421    { (exit 1); exit 1; }; }
   11422 	 # Quote $f, to prevent DOS file names from being IFS'd.
   11423 	 echo "$f";;
   11424       *) # Relative
   11425 	 if test -f "$f"; then
   11426 	   # Build tree
   11427 	   echo "$f"
   11428 	 elif test -f "$srcdir/$f"; then
   11429 	   # Source tree
   11430 	   echo "$srcdir/$f"
   11431 	 else
   11432 	   # /dev/null tree
   11433 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11434 echo "$as_me: error: cannot find input file: $f" >&2;}
   11435    { (exit 1); exit 1; }; }
   11436 	 fi;;
   11437       esac
   11438     done` || { (exit 1); exit 1; }
   11439   # Remove the trailing spaces.
   11440   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
   11441 
   11442 _ACEOF
   11443 
   11444 # Transform confdefs.h into two sed scripts, `conftest.defines' and
   11445 # `conftest.undefs', that substitutes the proper values into
   11446 # config.h.in to produce config.h.  The first handles `#define'
   11447 # templates, and the second `#undef' templates.
   11448 # And first: Protect against being on the right side of a sed subst in
   11449 # config.status.  Protect against being in an unquoted here document
   11450 # in config.status.
   11451 rm -f conftest.defines conftest.undefs
   11452 # Using a here document instead of a string reduces the quoting nightmare.
   11453 # Putting comments in sed scripts is not portable.
   11454 #
   11455 # `end' is used to avoid that the second main sed command (meant for
   11456 # 0-ary CPP macros) applies to n-ary macro definitions.
   11457 # See the Autoconf documentation for `clear'.
   11458 cat >confdef2sed.sed <<\_ACEOF
   11459 s/[\\&,]/\\&/g
   11460 s,[\\$`],\\&,g
   11461 t clear
   11462 : clear
   11463 s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
   11464 t end
   11465 s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   11466 : end
   11467 _ACEOF
   11468 # If some macros were called several times there might be several times
   11469 # the same #defines, which is useless.  Nevertheless, we may not want to
   11470 # sort them, since we want the *last* AC-DEFINE to be honored.
   11471 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   11472 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   11473 rm -f confdef2sed.sed
   11474 
   11475 # This sed command replaces #undef with comments.  This is necessary, for
   11476 # example, in the case of _POSIX_SOURCE, which is predefined and required
   11477 # on some systems where configure will not decide to define it.
   11478 cat >>conftest.undefs <<\_ACEOF
   11479 s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   11480 _ACEOF
   11481 
   11482 # Break up conftest.defines because some shells have a limit on the size
   11483 # of here documents, and old seds have small limits too (100 cmds).
   11484 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   11485 echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   11486 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   11487 echo '  :' >>$CONFIG_STATUS
   11488 rm -f conftest.tail
   11489 while grep . conftest.defines >/dev/null
   11490 do
   11491   # Write a limited-size here document to $tmp/defines.sed.
   11492   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   11493   # Speed up: don't consider the non `#define' lines.
   11494   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
   11495   # Work around the forget-to-reset-the-flag bug.
   11496   echo 't clr' >>$CONFIG_STATUS
   11497   echo ': clr' >>$CONFIG_STATUS
   11498   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   11499   echo 'CEOF
   11500   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   11501   rm -f $tmp/in
   11502   mv $tmp/out $tmp/in
   11503 ' >>$CONFIG_STATUS
   11504   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   11505   rm -f conftest.defines
   11506   mv conftest.tail conftest.defines
   11507 done
   11508 rm -f conftest.defines
   11509 echo '  fi # grep' >>$CONFIG_STATUS
   11510 echo >>$CONFIG_STATUS
   11511 
   11512 # Break up conftest.undefs because some shells have a limit on the size
   11513 # of here documents, and old seds have small limits too (100 cmds).
   11514 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   11515 rm -f conftest.tail
   11516 while grep . conftest.undefs >/dev/null
   11517 do
   11518   # Write a limited-size here document to $tmp/undefs.sed.
   11519   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   11520   # Speed up: don't consider the non `#undef'
   11521   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
   11522   # Work around the forget-to-reset-the-flag bug.
   11523   echo 't clr' >>$CONFIG_STATUS
   11524   echo ': clr' >>$CONFIG_STATUS
   11525   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   11526   echo 'CEOF
   11527   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   11528   rm -f $tmp/in
   11529   mv $tmp/out $tmp/in
   11530 ' >>$CONFIG_STATUS
   11531   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   11532   rm -f conftest.undefs
   11533   mv conftest.tail conftest.undefs
   11534 done
   11535 rm -f conftest.undefs
   11536 
   11537 cat >>$CONFIG_STATUS <<\_ACEOF
   11538   # Let's still pretend it is `configure' which instantiates (i.e., don't
   11539   # use $as_me), people would be surprised to read:
   11540   #    /* config.h.  Generated by config.status.  */
   11541   if test x"$ac_file" = x-; then
   11542     echo "/* Generated by configure.  */" >$tmp/config.h
   11543   else
   11544     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
   11545   fi
   11546   cat $tmp/in >>$tmp/config.h
   11547   rm -f $tmp/in
   11548   if test x"$ac_file" != x-; then
   11549     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
   11550       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   11551 echo "$as_me: $ac_file is unchanged" >&6;}
   11552     else
   11553       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   11554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11555 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   11556 	 X"$ac_file" : 'X\(//\)$' \| \
   11557 	 X"$ac_file" : 'X\(/\)' \| \
   11558 	 .     : '\(.\)' 2>/dev/null ||
   11559 echo X"$ac_file" |
   11560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11561   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11562   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11563   	  /^X\(\/\).*/{ s//\1/; q; }
   11564   	  s/.*/./; q'`
   11565       { if $as_mkdir_p; then
   11566     test -d "$ac_dir" || mkdir -p "$ac_dir"
   11567   else
   11568     as_dir="$ac_dir"
   11569     as_dirs=
   11570     while test ! -d "$as_dir"; do
   11571       as_dirs="$as_dir $as_dirs"
   11572       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   11573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11574 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11575 	 X"$as_dir" : 'X\(//\)$' \| \
   11576 	 X"$as_dir" : 'X\(/\)' \| \
   11577 	 .     : '\(.\)' 2>/dev/null ||
   11578 echo X"$as_dir" |
   11579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11580   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11581   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11582   	  /^X\(\/\).*/{ s//\1/; q; }
   11583   	  s/.*/./; q'`
   11584     done
   11585     test ! -n "$as_dirs" || mkdir $as_dirs
   11586   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   11587 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   11588    { (exit 1); exit 1; }; }; }
   11589 
   11590       rm -f $ac_file
   11591       mv $tmp/config.h $ac_file
   11592     fi
   11593   else
   11594     cat $tmp/config.h
   11595     rm -f $tmp/config.h
   11596   fi
   11597 done
   11598 _ACEOF
   11599 
   11600 cat >>$CONFIG_STATUS <<\_ACEOF
   11601 
   11602 { (exit 0); exit 0; }
   11603 _ACEOF
   11604 chmod +x $CONFIG_STATUS
   11605 ac_clean_files=$ac_clean_files_save
   11606 
   11607 
   11608 # configure is writing to config.log, and then calls config.status.
   11609 # config.status does its own redirection, appending to config.log.
   11610 # Unfortunately, on DOS this fails, as config.log is still kept open
   11611 # by configure, so config.status won't be able to write to it; its
   11612 # output is simply discarded.  So we exec the FD to /dev/null,
   11613 # effectively closing config.log, so it can be properly (re)opened and
   11614 # appended to by config.status.  When coming back to configure, we
   11615 # need to make the FD available again.
   11616 if test "$no_create" != yes; then
   11617   ac_cs_success=:
   11618   ac_config_status_args=
   11619   test "$silent" = yes &&
   11620     ac_config_status_args="$ac_config_status_args --quiet"
   11621   exec 5>/dev/null
   11622   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   11623   exec 5>>config.log
   11624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   11625   # would make configure fail if this is the last instruction.
   11626   $ac_cs_success || { (exit 1); exit 1; }
   11627 fi
   11628 
   11629 
   11630 if test -z "$groff_no_x"; then
   11631      if test "x$with_appresdir" = "x"; then
   11632        { echo "$as_me:$LINENO:
   11633 
   11634   The application resource file for gxditview will be installed as
   11635 
   11636     $appresdir/GXditview
   11637 
   11638   (an existing file will be saved as \`GXditview.old').
   11639   To install it into a different directory, say, \`/etc/gxditview',
   11640   add \`--with-appresdir=/etc/gxditview' to the configure script
   11641   command line options and rerun it.  The environment variable
   11642   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
   11643   omitting the \`gxditview' part which is automatically appended by
   11644   the X11 searching routines for resource files.  More details can be
   11645   found in the X(7) manual page.
   11646        " >&5
   11647 echo "$as_me:
   11648 
   11649   The application resource file for gxditview will be installed as
   11650 
   11651     $appresdir/GXditview
   11652 
   11653   (an existing file will be saved as \`GXditview.old').
   11654   To install it into a different directory, say, \`/etc/gxditview',
   11655   add \`--with-appresdir=/etc/gxditview' to the configure script
   11656   command line options and rerun it.  The environment variable
   11657   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
   11658   omitting the \`gxditview' part which is automatically appended by
   11659   the X11 searching routines for resource files.  More details can be
   11660   found in the X(7) manual page.
   11661        " >&6;}
   11662      fi
   11663    fi
   11664