Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.1.16.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    'extern "C" [[noreturn]] void exit (int);' \
   2515    'extern "C" _Noreturn void exit (int);' \
   2516    'void exit (int);'
   2517 do
   2518   cat >conftest.$ac_ext <<_ACEOF
   2519 /* confdefs.h.  */
   2520 _ACEOF
   2521 cat confdefs.h >>conftest.$ac_ext
   2522 cat >>conftest.$ac_ext <<_ACEOF
   2523 /* end confdefs.h.  */
   2524 $ac_declaration
   2525 #include <stdlib.h>
   2526 int
   2527 main ()
   2528 {
   2529 exit (42);
   2530   ;
   2531   return 0;
   2532 }
   2533 _ACEOF
   2534 rm -f conftest.$ac_objext
   2535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2536   (eval $ac_compile) 2>conftest.er1
   2537   ac_status=$?
   2538   grep -v '^ *+' conftest.er1 >conftest.err
   2539   rm -f conftest.er1
   2540   cat conftest.err >&5
   2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2542   (exit $ac_status); } &&
   2543 	 { ac_try='test -z "$ac_c_werror_flag"
   2544 			 || test ! -s conftest.err'
   2545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2546   (eval $ac_try) 2>&5
   2547   ac_status=$?
   2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2549   (exit $ac_status); }; } &&
   2550 	 { ac_try='test -s conftest.$ac_objext'
   2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2552   (eval $ac_try) 2>&5
   2553   ac_status=$?
   2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2555   (exit $ac_status); }; }; then
   2556   :
   2557 else
   2558   echo "$as_me: failed program was:" >&5
   2559 sed 's/^/| /' conftest.$ac_ext >&5
   2560 
   2561 continue
   2562 fi
   2563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2564   cat >conftest.$ac_ext <<_ACEOF
   2565 /* confdefs.h.  */
   2566 _ACEOF
   2567 cat confdefs.h >>conftest.$ac_ext
   2568 cat >>conftest.$ac_ext <<_ACEOF
   2569 /* end confdefs.h.  */
   2570 $ac_declaration
   2571 int
   2572 main ()
   2573 {
   2574 exit (42);
   2575   ;
   2576   return 0;
   2577 }
   2578 _ACEOF
   2579 rm -f conftest.$ac_objext
   2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2581   (eval $ac_compile) 2>conftest.er1
   2582   ac_status=$?
   2583   grep -v '^ *+' conftest.er1 >conftest.err
   2584   rm -f conftest.er1
   2585   cat conftest.err >&5
   2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2587   (exit $ac_status); } &&
   2588 	 { ac_try='test -z "$ac_c_werror_flag"
   2589 			 || test ! -s conftest.err'
   2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2591   (eval $ac_try) 2>&5
   2592   ac_status=$?
   2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2594   (exit $ac_status); }; } &&
   2595 	 { ac_try='test -s conftest.$ac_objext'
   2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2597   (eval $ac_try) 2>&5
   2598   ac_status=$?
   2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2600   (exit $ac_status); }; }; then
   2601   break
   2602 else
   2603   echo "$as_me: failed program was:" >&5
   2604 sed 's/^/| /' conftest.$ac_ext >&5
   2605 
   2606 fi
   2607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2608 done
   2609 rm -f conftest*
   2610 if test -n "$ac_declaration"; then
   2611   echo '#ifdef __cplusplus' >>confdefs.h
   2612   echo $ac_declaration      >>confdefs.h
   2613   echo '#endif'             >>confdefs.h
   2614 fi
   2615 
   2616 else
   2617   echo "$as_me: failed program was:" >&5
   2618 sed 's/^/| /' conftest.$ac_ext >&5
   2619 
   2620 fi
   2621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2622 ac_ext=c
   2623 ac_cpp='$CPP $CPPFLAGS'
   2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2627 
   2628 ac_ext=cc
   2629 ac_cpp='$CXXCPP $CPPFLAGS'
   2630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   2633 if test -n "$ac_tool_prefix"; then
   2634   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
   2635   do
   2636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2638 echo "$as_me:$LINENO: checking for $ac_word" >&5
   2639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2640 if test "${ac_cv_prog_CXX+set}" = set; then
   2641   echo $ECHO_N "(cached) $ECHO_C" >&6
   2642 else
   2643   if test -n "$CXX"; then
   2644   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   2645 else
   2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2647 for as_dir in $PATH
   2648 do
   2649   IFS=$as_save_IFS
   2650   test -z "$as_dir" && as_dir=.
   2651   for ac_exec_ext in '' $ac_executable_extensions; do
   2652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2653     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   2654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2655     break 2
   2656   fi
   2657 done
   2658 done
   2659 
   2660 fi
   2661 fi
   2662 CXX=$ac_cv_prog_CXX
   2663 if test -n "$CXX"; then
   2664   echo "$as_me:$LINENO: result: $CXX" >&5
   2665 echo "${ECHO_T}$CXX" >&6
   2666 else
   2667   echo "$as_me:$LINENO: result: no" >&5
   2668 echo "${ECHO_T}no" >&6
   2669 fi
   2670 
   2671     test -n "$CXX" && break
   2672   done
   2673 fi
   2674 if test -z "$CXX"; then
   2675   ac_ct_CXX=$CXX
   2676   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
   2677 do
   2678   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2679 set dummy $ac_prog; ac_word=$2
   2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
   2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   2682 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   2683   echo $ECHO_N "(cached) $ECHO_C" >&6
   2684 else
   2685   if test -n "$ac_ct_CXX"; then
   2686   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   2687 else
   2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2689 for as_dir in $PATH
   2690 do
   2691   IFS=$as_save_IFS
   2692   test -z "$as_dir" && as_dir=.
   2693   for ac_exec_ext in '' $ac_executable_extensions; do
   2694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2695     ac_cv_prog_ac_ct_CXX="$ac_prog"
   2696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2697     break 2
   2698   fi
   2699 done
   2700 done
   2701 
   2702 fi
   2703 fi
   2704 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   2705 if test -n "$ac_ct_CXX"; then
   2706   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   2707 echo "${ECHO_T}$ac_ct_CXX" >&6
   2708 else
   2709   echo "$as_me:$LINENO: result: no" >&5
   2710 echo "${ECHO_T}no" >&6
   2711 fi
   2712 
   2713   test -n "$ac_ct_CXX" && break
   2714 done
   2715 
   2716   if test "x$ac_ct_CXX" = x; then
   2717     CXX="g++"
   2718   else
   2719     if test "$build" != "$host"; then
   2720       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2721 whose name does not start with the host triplet.  If you think this
   2722 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2724 whose name does not start with the host triplet.  If you think this
   2725 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2726     fi
   2727     CXX=$ac_ct_CXX
   2728   fi
   2729 fi
   2730 
   2731 
   2732 # Provide some information about the compiler.
   2733 echo "$as_me:$LINENO:" \
   2734      "checking for C++ compiler version" >&5
   2735 ac_compiler=`set X $ac_compile; echo $2`
   2736 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
   2737   (eval $ac_compiler --version </dev/null >&5) 2>&5
   2738   ac_status=$?
   2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2740   (exit $ac_status); }
   2741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
   2742   (eval $ac_compiler -v </dev/null >&5) 2>&5
   2743   ac_status=$?
   2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2745   (exit $ac_status); }
   2746 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
   2747   (eval $ac_compiler -V </dev/null >&5) 2>&5
   2748   ac_status=$?
   2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2750   (exit $ac_status); }
   2751 
   2752 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   2753 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
   2754 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   2755   echo $ECHO_N "(cached) $ECHO_C" >&6
   2756 else
   2757   cat >conftest.$ac_ext <<_ACEOF
   2758 /* confdefs.h.  */
   2759 _ACEOF
   2760 cat confdefs.h >>conftest.$ac_ext
   2761 cat >>conftest.$ac_ext <<_ACEOF
   2762 /* end confdefs.h.  */
   2763 
   2764 int
   2765 main ()
   2766 {
   2767 #ifndef __GNUC__
   2768        choke me
   2769 #endif
   2770 
   2771   ;
   2772   return 0;
   2773 }
   2774 _ACEOF
   2775 rm -f conftest.$ac_objext
   2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2777   (eval $ac_compile) 2>conftest.er1
   2778   ac_status=$?
   2779   grep -v '^ *+' conftest.er1 >conftest.err
   2780   rm -f conftest.er1
   2781   cat conftest.err >&5
   2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2783   (exit $ac_status); } &&
   2784 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2785 			 || test ! -s conftest.err'
   2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2787   (eval $ac_try) 2>&5
   2788   ac_status=$?
   2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2790   (exit $ac_status); }; } &&
   2791 	 { ac_try='test -s conftest.$ac_objext'
   2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2793   (eval $ac_try) 2>&5
   2794   ac_status=$?
   2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2796   (exit $ac_status); }; }; then
   2797   ac_compiler_gnu=yes
   2798 else
   2799   echo "$as_me: failed program was:" >&5
   2800 sed 's/^/| /' conftest.$ac_ext >&5
   2801 
   2802 ac_compiler_gnu=no
   2803 fi
   2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2805 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   2806 
   2807 fi
   2808 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   2809 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
   2810 GXX=`test $ac_compiler_gnu = yes && echo yes`
   2811 ac_test_CXXFLAGS=${CXXFLAGS+set}
   2812 ac_save_CXXFLAGS=$CXXFLAGS
   2813 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   2814 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
   2815 if test "${ac_cv_prog_cxx_g+set}" = set; then
   2816   echo $ECHO_N "(cached) $ECHO_C" >&6
   2817 else
   2818   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   2819    ac_cxx_werror_flag=yes
   2820    ac_cv_prog_cxx_g=no
   2821    CXXFLAGS="-g"
   2822    cat >conftest.$ac_ext <<_ACEOF
   2823 /* confdefs.h.  */
   2824 _ACEOF
   2825 cat confdefs.h >>conftest.$ac_ext
   2826 cat >>conftest.$ac_ext <<_ACEOF
   2827 /* end confdefs.h.  */
   2828 
   2829 int
   2830 main ()
   2831 {
   2832 
   2833   ;
   2834   return 0;
   2835 }
   2836 _ACEOF
   2837 rm -f conftest.$ac_objext
   2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2839   (eval $ac_compile) 2>conftest.er1
   2840   ac_status=$?
   2841   grep -v '^ *+' conftest.er1 >conftest.err
   2842   rm -f conftest.er1
   2843   cat conftest.err >&5
   2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2845   (exit $ac_status); } &&
   2846 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2847 			 || test ! -s conftest.err'
   2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2849   (eval $ac_try) 2>&5
   2850   ac_status=$?
   2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2852   (exit $ac_status); }; } &&
   2853 	 { ac_try='test -s conftest.$ac_objext'
   2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2855   (eval $ac_try) 2>&5
   2856   ac_status=$?
   2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2858   (exit $ac_status); }; }; then
   2859   ac_cv_prog_cxx_g=yes
   2860 else
   2861   echo "$as_me: failed program was:" >&5
   2862 sed 's/^/| /' conftest.$ac_ext >&5
   2863 
   2864 CXXFLAGS=""
   2865       cat >conftest.$ac_ext <<_ACEOF
   2866 /* confdefs.h.  */
   2867 _ACEOF
   2868 cat confdefs.h >>conftest.$ac_ext
   2869 cat >>conftest.$ac_ext <<_ACEOF
   2870 /* end confdefs.h.  */
   2871 
   2872 int
   2873 main ()
   2874 {
   2875 
   2876   ;
   2877   return 0;
   2878 }
   2879 _ACEOF
   2880 rm -f conftest.$ac_objext
   2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2882   (eval $ac_compile) 2>conftest.er1
   2883   ac_status=$?
   2884   grep -v '^ *+' conftest.er1 >conftest.err
   2885   rm -f conftest.er1
   2886   cat conftest.err >&5
   2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2888   (exit $ac_status); } &&
   2889 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2890 			 || test ! -s conftest.err'
   2891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2892   (eval $ac_try) 2>&5
   2893   ac_status=$?
   2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2895   (exit $ac_status); }; } &&
   2896 	 { ac_try='test -s conftest.$ac_objext'
   2897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2898   (eval $ac_try) 2>&5
   2899   ac_status=$?
   2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2901   (exit $ac_status); }; }; then
   2902   :
   2903 else
   2904   echo "$as_me: failed program was:" >&5
   2905 sed 's/^/| /' conftest.$ac_ext >&5
   2906 
   2907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2908 	 CXXFLAGS="-g"
   2909 	 cat >conftest.$ac_ext <<_ACEOF
   2910 /* confdefs.h.  */
   2911 _ACEOF
   2912 cat confdefs.h >>conftest.$ac_ext
   2913 cat >>conftest.$ac_ext <<_ACEOF
   2914 /* end confdefs.h.  */
   2915 
   2916 int
   2917 main ()
   2918 {
   2919 
   2920   ;
   2921   return 0;
   2922 }
   2923 _ACEOF
   2924 rm -f conftest.$ac_objext
   2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   2926   (eval $ac_compile) 2>conftest.er1
   2927   ac_status=$?
   2928   grep -v '^ *+' conftest.er1 >conftest.err
   2929   rm -f conftest.er1
   2930   cat conftest.err >&5
   2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2932   (exit $ac_status); } &&
   2933 	 { ac_try='test -z "$ac_cxx_werror_flag"
   2934 			 || test ! -s conftest.err'
   2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2936   (eval $ac_try) 2>&5
   2937   ac_status=$?
   2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2939   (exit $ac_status); }; } &&
   2940 	 { ac_try='test -s conftest.$ac_objext'
   2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   2942   (eval $ac_try) 2>&5
   2943   ac_status=$?
   2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2945   (exit $ac_status); }; }; then
   2946   ac_cv_prog_cxx_g=yes
   2947 else
   2948   echo "$as_me: failed program was:" >&5
   2949 sed 's/^/| /' conftest.$ac_ext >&5
   2950 
   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 fi
   2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   2957    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   2958 fi
   2959 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   2960 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
   2961 if test "$ac_test_CXXFLAGS" = set; then
   2962   CXXFLAGS=$ac_save_CXXFLAGS
   2963 elif test $ac_cv_prog_cxx_g = yes; then
   2964   if test "$GXX" = yes; then
   2965     CXXFLAGS="-g -O2"
   2966   else
   2967     CXXFLAGS="-g"
   2968   fi
   2969 else
   2970   if test "$GXX" = yes; then
   2971     CXXFLAGS="-O2"
   2972   else
   2973     CXXFLAGS=
   2974   fi
   2975 fi
   2976 for ac_declaration in \
   2977    '' \
   2978    'extern "C" void std::exit (int) throw (); using std::exit;' \
   2979    'extern "C" void std::exit (int); using std::exit;' \
   2980    'extern "C" void exit (int) throw ();' \
   2981    'extern "C" void exit (int);' \
   2982    'extern "C" [[noreturn]] void exit (int);' \
   2983    'extern "C" _Noreturn void exit (int);' \
   2984    'void exit (int);'
   2985 do
   2986   cat >conftest.$ac_ext <<_ACEOF
   2987 /* confdefs.h.  */
   2988 _ACEOF
   2989 cat confdefs.h >>conftest.$ac_ext
   2990 cat >>conftest.$ac_ext <<_ACEOF
   2991 /* end confdefs.h.  */
   2992 $ac_declaration
   2993 #include <stdlib.h>
   2994 int
   2995 main ()
   2996 {
   2997 exit (42);
   2998   ;
   2999   return 0;
   3000 }
   3001 _ACEOF
   3002 rm -f conftest.$ac_objext
   3003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3004   (eval $ac_compile) 2>conftest.er1
   3005   ac_status=$?
   3006   grep -v '^ *+' conftest.er1 >conftest.err
   3007   rm -f conftest.er1
   3008   cat conftest.err >&5
   3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3010   (exit $ac_status); } &&
   3011 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3012 			 || test ! -s conftest.err'
   3013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3014   (eval $ac_try) 2>&5
   3015   ac_status=$?
   3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3017   (exit $ac_status); }; } &&
   3018 	 { ac_try='test -s conftest.$ac_objext'
   3019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3020   (eval $ac_try) 2>&5
   3021   ac_status=$?
   3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3023   (exit $ac_status); }; }; then
   3024   :
   3025 else
   3026   echo "$as_me: failed program was:" >&5
   3027 sed 's/^/| /' conftest.$ac_ext >&5
   3028 
   3029 continue
   3030 fi
   3031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3032   cat >conftest.$ac_ext <<_ACEOF
   3033 /* confdefs.h.  */
   3034 _ACEOF
   3035 cat confdefs.h >>conftest.$ac_ext
   3036 cat >>conftest.$ac_ext <<_ACEOF
   3037 /* end confdefs.h.  */
   3038 $ac_declaration
   3039 int
   3040 main ()
   3041 {
   3042 exit (42);
   3043   ;
   3044   return 0;
   3045 }
   3046 _ACEOF
   3047 rm -f conftest.$ac_objext
   3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3049   (eval $ac_compile) 2>conftest.er1
   3050   ac_status=$?
   3051   grep -v '^ *+' conftest.er1 >conftest.err
   3052   rm -f conftest.er1
   3053   cat conftest.err >&5
   3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3055   (exit $ac_status); } &&
   3056 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3057 			 || test ! -s conftest.err'
   3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3059   (eval $ac_try) 2>&5
   3060   ac_status=$?
   3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3062   (exit $ac_status); }; } &&
   3063 	 { ac_try='test -s conftest.$ac_objext'
   3064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3065   (eval $ac_try) 2>&5
   3066   ac_status=$?
   3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3068   (exit $ac_status); }; }; then
   3069   break
   3070 else
   3071   echo "$as_me: failed program was:" >&5
   3072 sed 's/^/| /' conftest.$ac_ext >&5
   3073 
   3074 fi
   3075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3076 done
   3077 rm -f conftest*
   3078 if test -n "$ac_declaration"; then
   3079   echo '#ifdef __cplusplus' >>confdefs.h
   3080   echo $ac_declaration      >>confdefs.h
   3081   echo '#endif'             >>confdefs.h
   3082 fi
   3083 
   3084 ac_ext=c
   3085 ac_cpp='$CPP $CPPFLAGS'
   3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3089 
   3090 
   3091 
   3092    ac_ext=cc
   3093 ac_cpp='$CXXCPP $CPPFLAGS'
   3094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3097 
   3098    if test "$cross_compiling" = no; then
   3099      echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
   3100 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
   3101    fi
   3102    if test "$cross_compiling" = yes; then
   3103   :
   3104 else
   3105   cat >conftest.$ac_ext <<_ACEOF
   3106 
   3107        /* confdefs.h.  */
   3108 _ACEOF
   3109 cat confdefs.h >>conftest.$ac_ext
   3110 cat >>conftest.$ac_ext <<_ACEOF
   3111 /* end confdefs.h.  */
   3112 
   3113 
   3114 int main() {
   3115   return 0;
   3116 }
   3117 
   3118 
   3119 
   3120 _ACEOF
   3121 rm -f conftest$ac_exeext
   3122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3123   (eval $ac_link) 2>&5
   3124   ac_status=$?
   3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3128   (eval $ac_try) 2>&5
   3129   ac_status=$?
   3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3131   (exit $ac_status); }; }; then
   3132   echo "$as_me:$LINENO: result: yes" >&5
   3133 echo "${ECHO_T}yes" >&6
   3134 else
   3135   echo "$as_me: program exited with status $ac_status" >&5
   3136 echo "$as_me: failed program was:" >&5
   3137 sed 's/^/| /' conftest.$ac_ext >&5
   3138 
   3139 ( exit $ac_status )
   3140 echo "$as_me:$LINENO: result: no" >&5
   3141 echo "${ECHO_T}no" >&6
   3142       { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
   3143 echo "$as_me: error: a working C++ compiler is required" >&2;}
   3144    { (exit 1); exit 1; }; }
   3145 fi
   3146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3147 fi
   3148 
   3149    if test "$cross_compiling" = no; then
   3150      echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
   3151 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
   3152    fi
   3153    if test "$cross_compiling" = yes; then
   3154   :
   3155 else
   3156   cat >conftest.$ac_ext <<_ACEOF
   3157 
   3158        /* confdefs.h.  */
   3159 _ACEOF
   3160 cat confdefs.h >>conftest.$ac_ext
   3161 cat >>conftest.$ac_ext <<_ACEOF
   3162 /* end confdefs.h.  */
   3163 
   3164 
   3165 extern "C" {
   3166   void _exit(int);
   3167 }
   3168 
   3169 int i;
   3170 struct A {
   3171   char dummy;
   3172   A() { i = 1; }
   3173   ~A() { if (i == 1) _exit(0); }
   3174 };
   3175 
   3176 A a;
   3177 
   3178 int main()
   3179 {
   3180   return 1;
   3181 }
   3182 
   3183 
   3184 
   3185 _ACEOF
   3186 rm -f conftest$ac_exeext
   3187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3188   (eval $ac_link) 2>&5
   3189   ac_status=$?
   3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   3192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3193   (eval $ac_try) 2>&5
   3194   ac_status=$?
   3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3196   (exit $ac_status); }; }; then
   3197   echo "$as_me:$LINENO: result: yes" >&5
   3198 echo "${ECHO_T}yes" >&6
   3199 else
   3200   echo "$as_me: program exited with status $ac_status" >&5
   3201 echo "$as_me: failed program was:" >&5
   3202 sed 's/^/| /' conftest.$ac_ext >&5
   3203 
   3204 ( exit $ac_status )
   3205 echo "$as_me:$LINENO: result: no" >&5
   3206 echo "${ECHO_T}no" >&6
   3207       { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
   3208 echo "$as_me: error: a working C++ compiler is required" >&2;}
   3209    { (exit 1); exit 1; }; }
   3210 fi
   3211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   3212 fi
   3213 
   3214    echo "$as_me:$LINENO: checking that header files support C++" >&5
   3215 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
   3216    cat >conftest.$ac_ext <<_ACEOF
   3217 
   3218        /* confdefs.h.  */
   3219 _ACEOF
   3220 cat confdefs.h >>conftest.$ac_ext
   3221 cat >>conftest.$ac_ext <<_ACEOF
   3222 /* end confdefs.h.  */
   3223 
   3224 
   3225 #include <stdio.h>
   3226 
   3227 
   3228 int
   3229 main ()
   3230 {
   3231 
   3232 
   3233 fopen(0, 0);
   3234 
   3235 
   3236   ;
   3237   return 0;
   3238 }
   3239 
   3240 _ACEOF
   3241 rm -f conftest.$ac_objext conftest$ac_exeext
   3242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3243   (eval $ac_link) 2>conftest.er1
   3244   ac_status=$?
   3245   grep -v '^ *+' conftest.er1 >conftest.err
   3246   rm -f conftest.er1
   3247   cat conftest.err >&5
   3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3249   (exit $ac_status); } &&
   3250 	 { ac_try='test -z "$ac_cxx_werror_flag"
   3251 			 || test ! -s conftest.err'
   3252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3253   (eval $ac_try) 2>&5
   3254   ac_status=$?
   3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3256   (exit $ac_status); }; } &&
   3257 	 { ac_try='test -s conftest$ac_exeext'
   3258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3259   (eval $ac_try) 2>&5
   3260   ac_status=$?
   3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3262   (exit $ac_status); }; }; then
   3263   echo "$as_me:$LINENO: result: yes" >&5
   3264 echo "${ECHO_T}yes" >&6
   3265 else
   3266   echo "$as_me: failed program was:" >&5
   3267 sed 's/^/| /' conftest.$ac_ext >&5
   3268 
   3269 echo "$as_me:$LINENO: result: no" >&5
   3270 echo "${ECHO_T}no" >&6
   3271       { { echo "$as_me:$LINENO: error: header files do not support C++
   3272 		   (if you are using a version of gcc/g++ earlier than 2.5,
   3273 		   you should install libg++)" >&5
   3274 echo "$as_me: error: header files do not support C++
   3275 		   (if you are using a version of gcc/g++ earlier than 2.5,
   3276 		   you should install libg++)" >&2;}
   3277    { (exit 1); exit 1; }; }
   3278 fi
   3279 rm -f conftest.err conftest.$ac_objext \
   3280       conftest$ac_exeext conftest.$ac_ext
   3281    ac_ext=c
   3282 ac_cpp='$CPP $CPPFLAGS'
   3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3286 
   3287 
   3288 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
   3289 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
   3290    cat >conftest.$ac_ext <<_ACEOF
   3291 
   3292        /* confdefs.h.  */
   3293 _ACEOF
   3294 cat confdefs.h >>conftest.$ac_ext
   3295 cat >>conftest.$ac_ext <<_ACEOF
   3296 /* end confdefs.h.  */
   3297 
   3298 
   3299 /* Treat any failure as ASCII for compatibility with existing art.
   3300    Use compile-time rather than run-time tests for cross-compiler
   3301    tolerance. */
   3302 #if '0' != 240
   3303 make an error "Character set is not EBCDIC"
   3304 #endif
   3305 
   3306 
   3307 int
   3308 main ()
   3309 {
   3310 
   3311   ;
   3312   return 0;
   3313 }
   3314 
   3315 _ACEOF
   3316 rm -f conftest.$ac_objext
   3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   3318   (eval $ac_compile) 2>conftest.er1
   3319   ac_status=$?
   3320   grep -v '^ *+' conftest.er1 >conftest.err
   3321   rm -f conftest.er1
   3322   cat conftest.err >&5
   3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3324   (exit $ac_status); } &&
   3325 	 { ac_try='test -z "$ac_c_werror_flag"
   3326 			 || test ! -s conftest.err'
   3327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3328   (eval $ac_try) 2>&5
   3329   ac_status=$?
   3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3331   (exit $ac_status); }; } &&
   3332 	 { ac_try='test -s conftest.$ac_objext'
   3333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3334   (eval $ac_try) 2>&5
   3335   ac_status=$?
   3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3337   (exit $ac_status); }; }; then
   3338   groff_cv_ebcdic="yes"
   3339       TTYDEVDIRS="font/devcp1047"
   3340       echo "$as_me:$LINENO: result: yes" >&5
   3341 echo "${ECHO_T}yes" >&6
   3342 
   3343 cat >>confdefs.h <<\_ACEOF
   3344 #define IS_EBCDIC_HOST 1
   3345 _ACEOF
   3346 
   3347 else
   3348   echo "$as_me: failed program was:" >&5
   3349 sed 's/^/| /' conftest.$ac_ext >&5
   3350 
   3351 groff_cv_ebcdic="no"
   3352      TTYDEVDIRS="font/devascii font/devlatin1"
   3353      OTHERDEVDIRS="font/devlj4 font/devlbp"
   3354      echo "$as_me:$LINENO: result: no" >&5
   3355 echo "${ECHO_T}no" >&6
   3356 fi
   3357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   3358 
   3359 
   3360 if test "$groff_cv_ebcdic" = "yes"; then
   3361      echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
   3362 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
   3363      case `uname` in
   3364      OS/390)
   3365        CFLAGS="$CFLAGS -D_ALL_SOURCE"
   3366        echo "$as_me:$LINENO: result: yes" >&5
   3367 echo "${ECHO_T}yes" >&6 ;;
   3368      *)
   3369        echo "$as_me:$LINENO: result: no" >&5
   3370 echo "${ECHO_T}no" >&6 ;;
   3371      esac
   3372    fi
   3373 ac_ext=c
   3374 ac_cpp='$CPP $CPPFLAGS'
   3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3378 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   3379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
   3380 # On Suns, sometimes $CPP names a directory.
   3381 if test -n "$CPP" && test -d "$CPP"; then
   3382   CPP=
   3383 fi
   3384 if test -z "$CPP"; then
   3385   if test "${ac_cv_prog_CPP+set}" = set; then
   3386   echo $ECHO_N "(cached) $ECHO_C" >&6
   3387 else
   3388       # Double quotes because CPP needs to be expanded
   3389     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3390     do
   3391       ac_preproc_ok=false
   3392 for ac_c_preproc_warn_flag in '' yes
   3393 do
   3394   # Use a header file that comes with gcc, so configuring glibc
   3395   # with a fresh cross-compiler works.
   3396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3397   # <limits.h> exists even on freestanding compilers.
   3398   # On the NeXT, cc -E runs the code through the compiler's parser,
   3399   # not just through cpp. "Syntax error" is here to catch this case.
   3400   cat >conftest.$ac_ext <<_ACEOF
   3401 /* confdefs.h.  */
   3402 _ACEOF
   3403 cat confdefs.h >>conftest.$ac_ext
   3404 cat >>conftest.$ac_ext <<_ACEOF
   3405 /* end confdefs.h.  */
   3406 #ifdef __STDC__
   3407 # include <limits.h>
   3408 #else
   3409 # include <assert.h>
   3410 #endif
   3411 		     Syntax error
   3412 _ACEOF
   3413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3415   ac_status=$?
   3416   grep -v '^ *+' conftest.er1 >conftest.err
   3417   rm -f conftest.er1
   3418   cat conftest.err >&5
   3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3420   (exit $ac_status); } >/dev/null; then
   3421   if test -s conftest.err; then
   3422     ac_cpp_err=$ac_c_preproc_warn_flag
   3423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3424   else
   3425     ac_cpp_err=
   3426   fi
   3427 else
   3428   ac_cpp_err=yes
   3429 fi
   3430 if test -z "$ac_cpp_err"; then
   3431   :
   3432 else
   3433   echo "$as_me: failed program was:" >&5
   3434 sed 's/^/| /' conftest.$ac_ext >&5
   3435 
   3436   # Broken: fails on valid input.
   3437 continue
   3438 fi
   3439 rm -f conftest.err conftest.$ac_ext
   3440 
   3441   # OK, works on sane cases.  Now check whether non-existent headers
   3442   # can be detected and how.
   3443   cat >conftest.$ac_ext <<_ACEOF
   3444 /* confdefs.h.  */
   3445 _ACEOF
   3446 cat confdefs.h >>conftest.$ac_ext
   3447 cat >>conftest.$ac_ext <<_ACEOF
   3448 /* end confdefs.h.  */
   3449 #include <ac_nonexistent.h>
   3450 _ACEOF
   3451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3453   ac_status=$?
   3454   grep -v '^ *+' conftest.er1 >conftest.err
   3455   rm -f conftest.er1
   3456   cat conftest.err >&5
   3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3458   (exit $ac_status); } >/dev/null; then
   3459   if test -s conftest.err; then
   3460     ac_cpp_err=$ac_c_preproc_warn_flag
   3461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3462   else
   3463     ac_cpp_err=
   3464   fi
   3465 else
   3466   ac_cpp_err=yes
   3467 fi
   3468 if test -z "$ac_cpp_err"; then
   3469   # Broken: success on invalid input.
   3470 continue
   3471 else
   3472   echo "$as_me: failed program was:" >&5
   3473 sed 's/^/| /' conftest.$ac_ext >&5
   3474 
   3475   # Passes both tests.
   3476 ac_preproc_ok=:
   3477 break
   3478 fi
   3479 rm -f conftest.err conftest.$ac_ext
   3480 
   3481 done
   3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3483 rm -f conftest.err conftest.$ac_ext
   3484 if $ac_preproc_ok; then
   3485   break
   3486 fi
   3487 
   3488     done
   3489     ac_cv_prog_CPP=$CPP
   3490 
   3491 fi
   3492   CPP=$ac_cv_prog_CPP
   3493 else
   3494   ac_cv_prog_CPP=$CPP
   3495 fi
   3496 echo "$as_me:$LINENO: result: $CPP" >&5
   3497 echo "${ECHO_T}$CPP" >&6
   3498 ac_preproc_ok=false
   3499 for ac_c_preproc_warn_flag in '' yes
   3500 do
   3501   # Use a header file that comes with gcc, so configuring glibc
   3502   # with a fresh cross-compiler works.
   3503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3504   # <limits.h> exists even on freestanding compilers.
   3505   # On the NeXT, cc -E runs the code through the compiler's parser,
   3506   # not just through cpp. "Syntax error" is here to catch this case.
   3507   cat >conftest.$ac_ext <<_ACEOF
   3508 /* confdefs.h.  */
   3509 _ACEOF
   3510 cat confdefs.h >>conftest.$ac_ext
   3511 cat >>conftest.$ac_ext <<_ACEOF
   3512 /* end confdefs.h.  */
   3513 #ifdef __STDC__
   3514 # include <limits.h>
   3515 #else
   3516 # include <assert.h>
   3517 #endif
   3518 		     Syntax error
   3519 _ACEOF
   3520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3522   ac_status=$?
   3523   grep -v '^ *+' conftest.er1 >conftest.err
   3524   rm -f conftest.er1
   3525   cat conftest.err >&5
   3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3527   (exit $ac_status); } >/dev/null; then
   3528   if test -s conftest.err; then
   3529     ac_cpp_err=$ac_c_preproc_warn_flag
   3530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3531   else
   3532     ac_cpp_err=
   3533   fi
   3534 else
   3535   ac_cpp_err=yes
   3536 fi
   3537 if test -z "$ac_cpp_err"; then
   3538   :
   3539 else
   3540   echo "$as_me: failed program was:" >&5
   3541 sed 's/^/| /' conftest.$ac_ext >&5
   3542 
   3543   # Broken: fails on valid input.
   3544 continue
   3545 fi
   3546 rm -f conftest.err conftest.$ac_ext
   3547 
   3548   # OK, works on sane cases.  Now check whether non-existent headers
   3549   # can be detected and how.
   3550   cat >conftest.$ac_ext <<_ACEOF
   3551 /* confdefs.h.  */
   3552 _ACEOF
   3553 cat confdefs.h >>conftest.$ac_ext
   3554 cat >>conftest.$ac_ext <<_ACEOF
   3555 /* end confdefs.h.  */
   3556 #include <ac_nonexistent.h>
   3557 _ACEOF
   3558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3560   ac_status=$?
   3561   grep -v '^ *+' conftest.er1 >conftest.err
   3562   rm -f conftest.er1
   3563   cat conftest.err >&5
   3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3565   (exit $ac_status); } >/dev/null; then
   3566   if test -s conftest.err; then
   3567     ac_cpp_err=$ac_c_preproc_warn_flag
   3568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3569   else
   3570     ac_cpp_err=
   3571   fi
   3572 else
   3573   ac_cpp_err=yes
   3574 fi
   3575 if test -z "$ac_cpp_err"; then
   3576   # Broken: success on invalid input.
   3577 continue
   3578 else
   3579   echo "$as_me: failed program was:" >&5
   3580 sed 's/^/| /' conftest.$ac_ext >&5
   3581 
   3582   # Passes both tests.
   3583 ac_preproc_ok=:
   3584 break
   3585 fi
   3586 rm -f conftest.err conftest.$ac_ext
   3587 
   3588 done
   3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3590 rm -f conftest.err conftest.$ac_ext
   3591 if $ac_preproc_ok; then
   3592   :
   3593 else
   3594   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   3595 See \`config.log' for more details." >&5
   3596 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   3597 See \`config.log' for more details." >&2;}
   3598    { (exit 1); exit 1; }; }
   3599 fi
   3600 
   3601 ac_ext=c
   3602 ac_cpp='$CPP $CPPFLAGS'
   3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3606 
   3607 
   3608 echo "$as_me:$LINENO: checking for X" >&5
   3609 echo $ECHO_N "checking for X... $ECHO_C" >&6
   3610 
   3611 
   3612 # Check whether --with-x or --without-x was given.
   3613 if test "${with_x+set}" = set; then
   3614   withval="$with_x"
   3615 
   3616 fi;
   3617 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   3618 if test "x$with_x" = xno; then
   3619   # The user explicitly disabled X.
   3620   have_x=disabled
   3621 else
   3622   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
   3623     # Both variables are already set.
   3624     have_x=yes
   3625   else
   3626     if test "${ac_cv_have_x+set}" = set; then
   3627   echo $ECHO_N "(cached) $ECHO_C" >&6
   3628 else
   3629   # One or both of the vars are not set, and there is no cached value.
   3630 ac_x_includes=no ac_x_libraries=no
   3631 rm -f -r conftest.dir
   3632 if mkdir conftest.dir; then
   3633   cd conftest.dir
   3634   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
   3635   cat >Imakefile <<'_ACEOF'
   3636 acfindx:
   3637 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
   3638 _ACEOF
   3639   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   3640     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   3641     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
   3642     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   3643     for ac_extension in a so sl; do
   3644       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
   3645 	 test -f $ac_im_libdir/libX11.$ac_extension; then
   3646 	ac_im_usrlibdir=$ac_im_libdir; break
   3647       fi
   3648     done
   3649     # Screen out bogus values from the imake configuration.  They are
   3650     # bogus both because they are the default anyway, and because
   3651     # using them would break gcc on systems where it needs fixed includes.
   3652     case $ac_im_incroot in
   3653 	/usr/include) ;;
   3654 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   3655     esac
   3656     case $ac_im_usrlibdir in
   3657 	/usr/lib | /lib) ;;
   3658 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   3659     esac
   3660   fi
   3661   cd ..
   3662   rm -f -r conftest.dir
   3663 fi
   3664 
   3665 # Standard set of common directories for X headers.
   3666 # Check X11 before X11Rn because it is often a symlink to the current release.
   3667 ac_x_header_dirs='
   3668 /usr/X11/include
   3669 /usr/X11R6/include
   3670 /usr/X11R5/include
   3671 /usr/X11R4/include
   3672 
   3673 /usr/include/X11
   3674 /usr/include/X11R6
   3675 /usr/include/X11R5
   3676 /usr/include/X11R4
   3677 
   3678 /usr/local/X11/include
   3679 /usr/local/X11R6/include
   3680 /usr/local/X11R5/include
   3681 /usr/local/X11R4/include
   3682 
   3683 /usr/local/include/X11
   3684 /usr/local/include/X11R6
   3685 /usr/local/include/X11R5
   3686 /usr/local/include/X11R4
   3687 
   3688 /usr/X386/include
   3689 /usr/x386/include
   3690 /usr/XFree86/include/X11
   3691 
   3692 /usr/include
   3693 /usr/local/include
   3694 /usr/unsupported/include
   3695 /usr/athena/include
   3696 /usr/local/x11r5/include
   3697 /usr/lpp/Xamples/include
   3698 
   3699 /usr/openwin/include
   3700 /usr/openwin/share/include'
   3701 
   3702 if test "$ac_x_includes" = no; then
   3703   # Guess where to find include files, by looking for Intrinsic.h.
   3704   # First, try using that file with no special directory specified.
   3705   cat >conftest.$ac_ext <<_ACEOF
   3706 /* confdefs.h.  */
   3707 _ACEOF
   3708 cat confdefs.h >>conftest.$ac_ext
   3709 cat >>conftest.$ac_ext <<_ACEOF
   3710 /* end confdefs.h.  */
   3711 #include <X11/Intrinsic.h>
   3712 _ACEOF
   3713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   3714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   3715   ac_status=$?
   3716   grep -v '^ *+' conftest.er1 >conftest.err
   3717   rm -f conftest.er1
   3718   cat conftest.err >&5
   3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3720   (exit $ac_status); } >/dev/null; then
   3721   if test -s conftest.err; then
   3722     ac_cpp_err=$ac_c_preproc_warn_flag
   3723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   3724   else
   3725     ac_cpp_err=
   3726   fi
   3727 else
   3728   ac_cpp_err=yes
   3729 fi
   3730 if test -z "$ac_cpp_err"; then
   3731   # We can compile using X headers with no special include directory.
   3732 ac_x_includes=
   3733 else
   3734   echo "$as_me: failed program was:" >&5
   3735 sed 's/^/| /' conftest.$ac_ext >&5
   3736 
   3737   for ac_dir in $ac_x_header_dirs; do
   3738   if test -r "$ac_dir/X11/Intrinsic.h"; then
   3739     ac_x_includes=$ac_dir
   3740     break
   3741   fi
   3742 done
   3743 fi
   3744 rm -f conftest.err conftest.$ac_ext
   3745 fi # $ac_x_includes = no
   3746 
   3747 if test "$ac_x_libraries" = no; then
   3748   # Check for the libraries.
   3749   # See if we find them without any special options.
   3750   # Don't add to $LIBS permanently.
   3751   ac_save_LIBS=$LIBS
   3752   LIBS="-lXt $LIBS"
   3753   cat >conftest.$ac_ext <<_ACEOF
   3754 /* confdefs.h.  */
   3755 _ACEOF
   3756 cat confdefs.h >>conftest.$ac_ext
   3757 cat >>conftest.$ac_ext <<_ACEOF
   3758 /* end confdefs.h.  */
   3759 #include <X11/Intrinsic.h>
   3760 int
   3761 main ()
   3762 {
   3763 XtMalloc (0)
   3764   ;
   3765   return 0;
   3766 }
   3767 _ACEOF
   3768 rm -f conftest.$ac_objext conftest$ac_exeext
   3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3770   (eval $ac_link) 2>conftest.er1
   3771   ac_status=$?
   3772   grep -v '^ *+' conftest.er1 >conftest.err
   3773   rm -f conftest.er1
   3774   cat conftest.err >&5
   3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3776   (exit $ac_status); } &&
   3777 	 { ac_try='test -z "$ac_c_werror_flag"
   3778 			 || test ! -s conftest.err'
   3779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3780   (eval $ac_try) 2>&5
   3781   ac_status=$?
   3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3783   (exit $ac_status); }; } &&
   3784 	 { ac_try='test -s conftest$ac_exeext'
   3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3786   (eval $ac_try) 2>&5
   3787   ac_status=$?
   3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3789   (exit $ac_status); }; }; then
   3790   LIBS=$ac_save_LIBS
   3791 # We can link X programs with no special library path.
   3792 ac_x_libraries=
   3793 else
   3794   echo "$as_me: failed program was:" >&5
   3795 sed 's/^/| /' conftest.$ac_ext >&5
   3796 
   3797 LIBS=$ac_save_LIBS
   3798 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   3799 do
   3800   # Don't even attempt the hair of trying to link an X program!
   3801   for ac_extension in a so sl; do
   3802     if test -r $ac_dir/libXt.$ac_extension; then
   3803       ac_x_libraries=$ac_dir
   3804       break 2
   3805     fi
   3806   done
   3807 done
   3808 fi
   3809 rm -f conftest.err conftest.$ac_objext \
   3810       conftest$ac_exeext conftest.$ac_ext
   3811 fi # $ac_x_libraries = no
   3812 
   3813 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   3814   # Didn't find X anywhere.  Cache the known absence of X.
   3815   ac_cv_have_x="have_x=no"
   3816 else
   3817   # Record where we found X for the cache.
   3818   ac_cv_have_x="have_x=yes \
   3819 		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
   3820 fi
   3821 fi
   3822 
   3823   fi
   3824   eval "$ac_cv_have_x"
   3825 fi # $with_x != no
   3826 
   3827 if test "$have_x" != yes; then
   3828   echo "$as_me:$LINENO: result: $have_x" >&5
   3829 echo "${ECHO_T}$have_x" >&6
   3830   no_x=yes
   3831 else
   3832   # If each of the values was on the command line, it overrides each guess.
   3833   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   3834   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   3835   # Update the cache value to reflect the command line values.
   3836   ac_cv_have_x="have_x=yes \
   3837 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
   3838   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
   3839 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
   3840 fi
   3841 
   3842 if test "$no_x" = yes; then
   3843   # Not all programs may use this symbol, but it does not hurt to define it.
   3844 
   3845 cat >>confdefs.h <<\_ACEOF
   3846 #define X_DISPLAY_MISSING 1
   3847 _ACEOF
   3848 
   3849   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   3850 else
   3851   if test -n "$x_includes"; then
   3852     X_CFLAGS="$X_CFLAGS -I$x_includes"
   3853   fi
   3854 
   3855   # It would also be nice to do this for all -L options, not just this one.
   3856   if test -n "$x_libraries"; then
   3857     X_LIBS="$X_LIBS -L$x_libraries"
   3858     # For Solaris; some versions of Sun CC require a space after -R and
   3859     # others require no space.  Words are not sufficient . . . .
   3860     case `(uname -sr) 2>/dev/null` in
   3861     "SunOS 5"*)
   3862       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
   3863 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
   3864       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   3865       cat >conftest.$ac_ext <<_ACEOF
   3866 /* confdefs.h.  */
   3867 _ACEOF
   3868 cat confdefs.h >>conftest.$ac_ext
   3869 cat >>conftest.$ac_ext <<_ACEOF
   3870 /* end confdefs.h.  */
   3871 
   3872 int
   3873 main ()
   3874 {
   3875 
   3876   ;
   3877   return 0;
   3878 }
   3879 _ACEOF
   3880 rm -f conftest.$ac_objext conftest$ac_exeext
   3881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3882   (eval $ac_link) 2>conftest.er1
   3883   ac_status=$?
   3884   grep -v '^ *+' conftest.er1 >conftest.err
   3885   rm -f conftest.er1
   3886   cat conftest.err >&5
   3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3888   (exit $ac_status); } &&
   3889 	 { ac_try='test -z "$ac_c_werror_flag"
   3890 			 || test ! -s conftest.err'
   3891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3892   (eval $ac_try) 2>&5
   3893   ac_status=$?
   3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3895   (exit $ac_status); }; } &&
   3896 	 { ac_try='test -s conftest$ac_exeext'
   3897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3898   (eval $ac_try) 2>&5
   3899   ac_status=$?
   3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3901   (exit $ac_status); }; }; then
   3902   ac_R_nospace=yes
   3903 else
   3904   echo "$as_me: failed program was:" >&5
   3905 sed 's/^/| /' conftest.$ac_ext >&5
   3906 
   3907 ac_R_nospace=no
   3908 fi
   3909 rm -f conftest.err conftest.$ac_objext \
   3910       conftest$ac_exeext conftest.$ac_ext
   3911       if test $ac_R_nospace = yes; then
   3912 	echo "$as_me:$LINENO: result: no" >&5
   3913 echo "${ECHO_T}no" >&6
   3914 	X_LIBS="$X_LIBS -R$x_libraries"
   3915       else
   3916 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   3917 	cat >conftest.$ac_ext <<_ACEOF
   3918 /* confdefs.h.  */
   3919 _ACEOF
   3920 cat confdefs.h >>conftest.$ac_ext
   3921 cat >>conftest.$ac_ext <<_ACEOF
   3922 /* end confdefs.h.  */
   3923 
   3924 int
   3925 main ()
   3926 {
   3927 
   3928   ;
   3929   return 0;
   3930 }
   3931 _ACEOF
   3932 rm -f conftest.$ac_objext conftest$ac_exeext
   3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   3934   (eval $ac_link) 2>conftest.er1
   3935   ac_status=$?
   3936   grep -v '^ *+' conftest.er1 >conftest.err
   3937   rm -f conftest.er1
   3938   cat conftest.err >&5
   3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3940   (exit $ac_status); } &&
   3941 	 { ac_try='test -z "$ac_c_werror_flag"
   3942 			 || test ! -s conftest.err'
   3943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3944   (eval $ac_try) 2>&5
   3945   ac_status=$?
   3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3947   (exit $ac_status); }; } &&
   3948 	 { ac_try='test -s conftest$ac_exeext'
   3949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   3950   (eval $ac_try) 2>&5
   3951   ac_status=$?
   3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3953   (exit $ac_status); }; }; then
   3954   ac_R_space=yes
   3955 else
   3956   echo "$as_me: failed program was:" >&5
   3957 sed 's/^/| /' conftest.$ac_ext >&5
   3958 
   3959 ac_R_space=no
   3960 fi
   3961 rm -f conftest.err conftest.$ac_objext \
   3962       conftest$ac_exeext conftest.$ac_ext
   3963 	if test $ac_R_space = yes; then
   3964 	  echo "$as_me:$LINENO: result: yes" >&5
   3965 echo "${ECHO_T}yes" >&6
   3966 	  X_LIBS="$X_LIBS -R $x_libraries"
   3967 	else
   3968 	  echo "$as_me:$LINENO: result: neither works" >&5
   3969 echo "${ECHO_T}neither works" >&6
   3970 	fi
   3971       fi
   3972       LIBS=$ac_xsave_LIBS
   3973     esac
   3974   fi
   3975 
   3976   # Check for system-dependent libraries X programs must link with.
   3977   # Do this before checking for the system-independent R6 libraries
   3978   # (-lICE), since we may need -lsocket or whatever for X linking.
   3979 
   3980   if test "$ISC" = yes; then
   3981     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   3982   else
   3983     # Martyn Johnson says this is needed for Ultrix, if the X
   3984     # libraries were built with DECnet support.  And Karl Berry says
   3985     # the Alpha needs dnet_stub (dnet does not exist).
   3986     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   3987     cat >conftest.$ac_ext <<_ACEOF
   3988 /* confdefs.h.  */
   3989 _ACEOF
   3990 cat confdefs.h >>conftest.$ac_ext
   3991 cat >>conftest.$ac_ext <<_ACEOF
   3992 /* end confdefs.h.  */
   3993 
   3994 /* Override any gcc2 internal prototype to avoid an error.  */
   3995 #ifdef __cplusplus
   3996 extern "C"
   3997 #endif
   3998 /* We use char because int might match the return type of a gcc2
   3999    builtin and then its argument prototype would still apply.  */
   4000 char XOpenDisplay ();
   4001 int
   4002 main ()
   4003 {
   4004 XOpenDisplay ();
   4005   ;
   4006   return 0;
   4007 }
   4008 _ACEOF
   4009 rm -f conftest.$ac_objext conftest$ac_exeext
   4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4011   (eval $ac_link) 2>conftest.er1
   4012   ac_status=$?
   4013   grep -v '^ *+' conftest.er1 >conftest.err
   4014   rm -f conftest.er1
   4015   cat conftest.err >&5
   4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4017   (exit $ac_status); } &&
   4018 	 { ac_try='test -z "$ac_c_werror_flag"
   4019 			 || test ! -s conftest.err'
   4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4021   (eval $ac_try) 2>&5
   4022   ac_status=$?
   4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4024   (exit $ac_status); }; } &&
   4025 	 { ac_try='test -s conftest$ac_exeext'
   4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4027   (eval $ac_try) 2>&5
   4028   ac_status=$?
   4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4030   (exit $ac_status); }; }; then
   4031   :
   4032 else
   4033   echo "$as_me: failed program was:" >&5
   4034 sed 's/^/| /' conftest.$ac_ext >&5
   4035 
   4036 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
   4037 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
   4038 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   4039   echo $ECHO_N "(cached) $ECHO_C" >&6
   4040 else
   4041   ac_check_lib_save_LIBS=$LIBS
   4042 LIBS="-ldnet  $LIBS"
   4043 cat >conftest.$ac_ext <<_ACEOF
   4044 /* confdefs.h.  */
   4045 _ACEOF
   4046 cat confdefs.h >>conftest.$ac_ext
   4047 cat >>conftest.$ac_ext <<_ACEOF
   4048 /* end confdefs.h.  */
   4049 
   4050 /* Override any gcc2 internal prototype to avoid an error.  */
   4051 #ifdef __cplusplus
   4052 extern "C"
   4053 #endif
   4054 /* We use char because int might match the return type of a gcc2
   4055    builtin and then its argument prototype would still apply.  */
   4056 char dnet_ntoa ();
   4057 int
   4058 main ()
   4059 {
   4060 dnet_ntoa ();
   4061   ;
   4062   return 0;
   4063 }
   4064 _ACEOF
   4065 rm -f conftest.$ac_objext conftest$ac_exeext
   4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4067   (eval $ac_link) 2>conftest.er1
   4068   ac_status=$?
   4069   grep -v '^ *+' conftest.er1 >conftest.err
   4070   rm -f conftest.er1
   4071   cat conftest.err >&5
   4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4073   (exit $ac_status); } &&
   4074 	 { ac_try='test -z "$ac_c_werror_flag"
   4075 			 || test ! -s conftest.err'
   4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4077   (eval $ac_try) 2>&5
   4078   ac_status=$?
   4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4080   (exit $ac_status); }; } &&
   4081 	 { ac_try='test -s conftest$ac_exeext'
   4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4083   (eval $ac_try) 2>&5
   4084   ac_status=$?
   4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4086   (exit $ac_status); }; }; then
   4087   ac_cv_lib_dnet_dnet_ntoa=yes
   4088 else
   4089   echo "$as_me: failed program was:" >&5
   4090 sed 's/^/| /' conftest.$ac_ext >&5
   4091 
   4092 ac_cv_lib_dnet_dnet_ntoa=no
   4093 fi
   4094 rm -f conftest.err conftest.$ac_objext \
   4095       conftest$ac_exeext conftest.$ac_ext
   4096 LIBS=$ac_check_lib_save_LIBS
   4097 fi
   4098 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   4099 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
   4100 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   4101   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   4102 fi
   4103 
   4104     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   4105       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
   4106 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
   4107 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   4108   echo $ECHO_N "(cached) $ECHO_C" >&6
   4109 else
   4110   ac_check_lib_save_LIBS=$LIBS
   4111 LIBS="-ldnet_stub  $LIBS"
   4112 cat >conftest.$ac_ext <<_ACEOF
   4113 /* confdefs.h.  */
   4114 _ACEOF
   4115 cat confdefs.h >>conftest.$ac_ext
   4116 cat >>conftest.$ac_ext <<_ACEOF
   4117 /* end confdefs.h.  */
   4118 
   4119 /* Override any gcc2 internal prototype to avoid an error.  */
   4120 #ifdef __cplusplus
   4121 extern "C"
   4122 #endif
   4123 /* We use char because int might match the return type of a gcc2
   4124    builtin and then its argument prototype would still apply.  */
   4125 char dnet_ntoa ();
   4126 int
   4127 main ()
   4128 {
   4129 dnet_ntoa ();
   4130   ;
   4131   return 0;
   4132 }
   4133 _ACEOF
   4134 rm -f conftest.$ac_objext conftest$ac_exeext
   4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4136   (eval $ac_link) 2>conftest.er1
   4137   ac_status=$?
   4138   grep -v '^ *+' conftest.er1 >conftest.err
   4139   rm -f conftest.er1
   4140   cat conftest.err >&5
   4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4142   (exit $ac_status); } &&
   4143 	 { ac_try='test -z "$ac_c_werror_flag"
   4144 			 || test ! -s conftest.err'
   4145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4146   (eval $ac_try) 2>&5
   4147   ac_status=$?
   4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4149   (exit $ac_status); }; } &&
   4150 	 { ac_try='test -s conftest$ac_exeext'
   4151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4152   (eval $ac_try) 2>&5
   4153   ac_status=$?
   4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4155   (exit $ac_status); }; }; then
   4156   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   4157 else
   4158   echo "$as_me: failed program was:" >&5
   4159 sed 's/^/| /' conftest.$ac_ext >&5
   4160 
   4161 ac_cv_lib_dnet_stub_dnet_ntoa=no
   4162 fi
   4163 rm -f conftest.err conftest.$ac_objext \
   4164       conftest$ac_exeext conftest.$ac_ext
   4165 LIBS=$ac_check_lib_save_LIBS
   4166 fi
   4167 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   4168 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
   4169 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   4170   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   4171 fi
   4172 
   4173     fi
   4174 fi
   4175 rm -f conftest.err conftest.$ac_objext \
   4176       conftest$ac_exeext conftest.$ac_ext
   4177     LIBS="$ac_xsave_LIBS"
   4178 
   4179     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   4180     # to get the SysV transport functions.
   4181     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   4182     # needs -lnsl.
   4183     # The nsl library prevents programs from opening the X display
   4184     # on Irix 5.2, according to T.E. Dickey.
   4185     # The functions gethostbyname, getservbyname, and inet_addr are
   4186     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   4187     echo "$as_me:$LINENO: checking for gethostbyname" >&5
   4188 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
   4189 if test "${ac_cv_func_gethostbyname+set}" = set; then
   4190   echo $ECHO_N "(cached) $ECHO_C" >&6
   4191 else
   4192   cat >conftest.$ac_ext <<_ACEOF
   4193 /* confdefs.h.  */
   4194 _ACEOF
   4195 cat confdefs.h >>conftest.$ac_ext
   4196 cat >>conftest.$ac_ext <<_ACEOF
   4197 /* end confdefs.h.  */
   4198 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   4199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4200 #define gethostbyname innocuous_gethostbyname
   4201 
   4202 /* System header to define __stub macros and hopefully few prototypes,
   4203     which can conflict with char gethostbyname (); below.
   4204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4205     <limits.h> exists even on freestanding compilers.  */
   4206 
   4207 #ifdef __STDC__
   4208 # include <limits.h>
   4209 #else
   4210 # include <assert.h>
   4211 #endif
   4212 
   4213 #undef gethostbyname
   4214 
   4215 /* Override any gcc2 internal prototype to avoid an error.  */
   4216 #ifdef __cplusplus
   4217 extern "C"
   4218 {
   4219 #endif
   4220 /* We use char because int might match the return type of a gcc2
   4221    builtin and then its argument prototype would still apply.  */
   4222 char gethostbyname ();
   4223 /* The GNU C library defines this for functions which it implements
   4224     to always fail with ENOSYS.  Some functions are actually named
   4225     something starting with __ and the normal name is an alias.  */
   4226 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
   4227 choke me
   4228 #else
   4229 char (*f) () = gethostbyname;
   4230 #endif
   4231 #ifdef __cplusplus
   4232 }
   4233 #endif
   4234 
   4235 int
   4236 main ()
   4237 {
   4238 return f != gethostbyname;
   4239   ;
   4240   return 0;
   4241 }
   4242 _ACEOF
   4243 rm -f conftest.$ac_objext conftest$ac_exeext
   4244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4245   (eval $ac_link) 2>conftest.er1
   4246   ac_status=$?
   4247   grep -v '^ *+' conftest.er1 >conftest.err
   4248   rm -f conftest.er1
   4249   cat conftest.err >&5
   4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4251   (exit $ac_status); } &&
   4252 	 { ac_try='test -z "$ac_c_werror_flag"
   4253 			 || test ! -s conftest.err'
   4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4255   (eval $ac_try) 2>&5
   4256   ac_status=$?
   4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4258   (exit $ac_status); }; } &&
   4259 	 { ac_try='test -s conftest$ac_exeext'
   4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4261   (eval $ac_try) 2>&5
   4262   ac_status=$?
   4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4264   (exit $ac_status); }; }; then
   4265   ac_cv_func_gethostbyname=yes
   4266 else
   4267   echo "$as_me: failed program was:" >&5
   4268 sed 's/^/| /' conftest.$ac_ext >&5
   4269 
   4270 ac_cv_func_gethostbyname=no
   4271 fi
   4272 rm -f conftest.err conftest.$ac_objext \
   4273       conftest$ac_exeext conftest.$ac_ext
   4274 fi
   4275 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
   4276 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
   4277 
   4278     if test $ac_cv_func_gethostbyname = no; then
   4279       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
   4280 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
   4281 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   4282   echo $ECHO_N "(cached) $ECHO_C" >&6
   4283 else
   4284   ac_check_lib_save_LIBS=$LIBS
   4285 LIBS="-lnsl  $LIBS"
   4286 cat >conftest.$ac_ext <<_ACEOF
   4287 /* confdefs.h.  */
   4288 _ACEOF
   4289 cat confdefs.h >>conftest.$ac_ext
   4290 cat >>conftest.$ac_ext <<_ACEOF
   4291 /* end confdefs.h.  */
   4292 
   4293 /* Override any gcc2 internal prototype to avoid an error.  */
   4294 #ifdef __cplusplus
   4295 extern "C"
   4296 #endif
   4297 /* We use char because int might match the return type of a gcc2
   4298    builtin and then its argument prototype would still apply.  */
   4299 char gethostbyname ();
   4300 int
   4301 main ()
   4302 {
   4303 gethostbyname ();
   4304   ;
   4305   return 0;
   4306 }
   4307 _ACEOF
   4308 rm -f conftest.$ac_objext conftest$ac_exeext
   4309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4310   (eval $ac_link) 2>conftest.er1
   4311   ac_status=$?
   4312   grep -v '^ *+' conftest.er1 >conftest.err
   4313   rm -f conftest.er1
   4314   cat conftest.err >&5
   4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4316   (exit $ac_status); } &&
   4317 	 { ac_try='test -z "$ac_c_werror_flag"
   4318 			 || test ! -s conftest.err'
   4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4320   (eval $ac_try) 2>&5
   4321   ac_status=$?
   4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4323   (exit $ac_status); }; } &&
   4324 	 { ac_try='test -s conftest$ac_exeext'
   4325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4326   (eval $ac_try) 2>&5
   4327   ac_status=$?
   4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4329   (exit $ac_status); }; }; then
   4330   ac_cv_lib_nsl_gethostbyname=yes
   4331 else
   4332   echo "$as_me: failed program was:" >&5
   4333 sed 's/^/| /' conftest.$ac_ext >&5
   4334 
   4335 ac_cv_lib_nsl_gethostbyname=no
   4336 fi
   4337 rm -f conftest.err conftest.$ac_objext \
   4338       conftest$ac_exeext conftest.$ac_ext
   4339 LIBS=$ac_check_lib_save_LIBS
   4340 fi
   4341 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
   4342 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
   4343 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   4344   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   4345 fi
   4346 
   4347       if test $ac_cv_lib_nsl_gethostbyname = no; then
   4348 	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
   4349 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
   4350 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   4351   echo $ECHO_N "(cached) $ECHO_C" >&6
   4352 else
   4353   ac_check_lib_save_LIBS=$LIBS
   4354 LIBS="-lbsd  $LIBS"
   4355 cat >conftest.$ac_ext <<_ACEOF
   4356 /* confdefs.h.  */
   4357 _ACEOF
   4358 cat confdefs.h >>conftest.$ac_ext
   4359 cat >>conftest.$ac_ext <<_ACEOF
   4360 /* end confdefs.h.  */
   4361 
   4362 /* Override any gcc2 internal prototype to avoid an error.  */
   4363 #ifdef __cplusplus
   4364 extern "C"
   4365 #endif
   4366 /* We use char because int might match the return type of a gcc2
   4367    builtin and then its argument prototype would still apply.  */
   4368 char gethostbyname ();
   4369 int
   4370 main ()
   4371 {
   4372 gethostbyname ();
   4373   ;
   4374   return 0;
   4375 }
   4376 _ACEOF
   4377 rm -f conftest.$ac_objext conftest$ac_exeext
   4378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4379   (eval $ac_link) 2>conftest.er1
   4380   ac_status=$?
   4381   grep -v '^ *+' conftest.er1 >conftest.err
   4382   rm -f conftest.er1
   4383   cat conftest.err >&5
   4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4385   (exit $ac_status); } &&
   4386 	 { ac_try='test -z "$ac_c_werror_flag"
   4387 			 || test ! -s conftest.err'
   4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4389   (eval $ac_try) 2>&5
   4390   ac_status=$?
   4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4392   (exit $ac_status); }; } &&
   4393 	 { ac_try='test -s conftest$ac_exeext'
   4394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4395   (eval $ac_try) 2>&5
   4396   ac_status=$?
   4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4398   (exit $ac_status); }; }; then
   4399   ac_cv_lib_bsd_gethostbyname=yes
   4400 else
   4401   echo "$as_me: failed program was:" >&5
   4402 sed 's/^/| /' conftest.$ac_ext >&5
   4403 
   4404 ac_cv_lib_bsd_gethostbyname=no
   4405 fi
   4406 rm -f conftest.err conftest.$ac_objext \
   4407       conftest$ac_exeext conftest.$ac_ext
   4408 LIBS=$ac_check_lib_save_LIBS
   4409 fi
   4410 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
   4411 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
   4412 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   4413   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   4414 fi
   4415 
   4416       fi
   4417     fi
   4418 
   4419     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   4420     # socket/setsockopt and other routines are undefined under SCO ODT
   4421     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   4422     # on later versions), says Simon Leinen: it contains gethostby*
   4423     # variants that don't use the name server (or something).  -lsocket
   4424     # must be given before -lnsl if both are needed.  We assume that
   4425     # if connect needs -lnsl, so does gethostbyname.
   4426     echo "$as_me:$LINENO: checking for connect" >&5
   4427 echo $ECHO_N "checking for connect... $ECHO_C" >&6
   4428 if test "${ac_cv_func_connect+set}" = set; then
   4429   echo $ECHO_N "(cached) $ECHO_C" >&6
   4430 else
   4431   cat >conftest.$ac_ext <<_ACEOF
   4432 /* confdefs.h.  */
   4433 _ACEOF
   4434 cat confdefs.h >>conftest.$ac_ext
   4435 cat >>conftest.$ac_ext <<_ACEOF
   4436 /* end confdefs.h.  */
   4437 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
   4438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4439 #define connect innocuous_connect
   4440 
   4441 /* System header to define __stub macros and hopefully few prototypes,
   4442     which can conflict with char connect (); below.
   4443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4444     <limits.h> exists even on freestanding compilers.  */
   4445 
   4446 #ifdef __STDC__
   4447 # include <limits.h>
   4448 #else
   4449 # include <assert.h>
   4450 #endif
   4451 
   4452 #undef connect
   4453 
   4454 /* Override any gcc2 internal prototype to avoid an error.  */
   4455 #ifdef __cplusplus
   4456 extern "C"
   4457 {
   4458 #endif
   4459 /* We use char because int might match the return type of a gcc2
   4460    builtin and then its argument prototype would still apply.  */
   4461 char connect ();
   4462 /* The GNU C library defines this for functions which it implements
   4463     to always fail with ENOSYS.  Some functions are actually named
   4464     something starting with __ and the normal name is an alias.  */
   4465 #if defined (__stub_connect) || defined (__stub___connect)
   4466 choke me
   4467 #else
   4468 char (*f) () = connect;
   4469 #endif
   4470 #ifdef __cplusplus
   4471 }
   4472 #endif
   4473 
   4474 int
   4475 main ()
   4476 {
   4477 return f != connect;
   4478   ;
   4479   return 0;
   4480 }
   4481 _ACEOF
   4482 rm -f conftest.$ac_objext conftest$ac_exeext
   4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4484   (eval $ac_link) 2>conftest.er1
   4485   ac_status=$?
   4486   grep -v '^ *+' conftest.er1 >conftest.err
   4487   rm -f conftest.er1
   4488   cat conftest.err >&5
   4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4490   (exit $ac_status); } &&
   4491 	 { ac_try='test -z "$ac_c_werror_flag"
   4492 			 || test ! -s conftest.err'
   4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4494   (eval $ac_try) 2>&5
   4495   ac_status=$?
   4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4497   (exit $ac_status); }; } &&
   4498 	 { ac_try='test -s conftest$ac_exeext'
   4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4500   (eval $ac_try) 2>&5
   4501   ac_status=$?
   4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4503   (exit $ac_status); }; }; then
   4504   ac_cv_func_connect=yes
   4505 else
   4506   echo "$as_me: failed program was:" >&5
   4507 sed 's/^/| /' conftest.$ac_ext >&5
   4508 
   4509 ac_cv_func_connect=no
   4510 fi
   4511 rm -f conftest.err conftest.$ac_objext \
   4512       conftest$ac_exeext conftest.$ac_ext
   4513 fi
   4514 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
   4515 echo "${ECHO_T}$ac_cv_func_connect" >&6
   4516 
   4517     if test $ac_cv_func_connect = no; then
   4518       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
   4519 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
   4520 if test "${ac_cv_lib_socket_connect+set}" = set; then
   4521   echo $ECHO_N "(cached) $ECHO_C" >&6
   4522 else
   4523   ac_check_lib_save_LIBS=$LIBS
   4524 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   4525 cat >conftest.$ac_ext <<_ACEOF
   4526 /* confdefs.h.  */
   4527 _ACEOF
   4528 cat confdefs.h >>conftest.$ac_ext
   4529 cat >>conftest.$ac_ext <<_ACEOF
   4530 /* end confdefs.h.  */
   4531 
   4532 /* Override any gcc2 internal prototype to avoid an error.  */
   4533 #ifdef __cplusplus
   4534 extern "C"
   4535 #endif
   4536 /* We use char because int might match the return type of a gcc2
   4537    builtin and then its argument prototype would still apply.  */
   4538 char connect ();
   4539 int
   4540 main ()
   4541 {
   4542 connect ();
   4543   ;
   4544   return 0;
   4545 }
   4546 _ACEOF
   4547 rm -f conftest.$ac_objext conftest$ac_exeext
   4548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4549   (eval $ac_link) 2>conftest.er1
   4550   ac_status=$?
   4551   grep -v '^ *+' conftest.er1 >conftest.err
   4552   rm -f conftest.er1
   4553   cat conftest.err >&5
   4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4555   (exit $ac_status); } &&
   4556 	 { ac_try='test -z "$ac_c_werror_flag"
   4557 			 || test ! -s conftest.err'
   4558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4559   (eval $ac_try) 2>&5
   4560   ac_status=$?
   4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4562   (exit $ac_status); }; } &&
   4563 	 { ac_try='test -s conftest$ac_exeext'
   4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4565   (eval $ac_try) 2>&5
   4566   ac_status=$?
   4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4568   (exit $ac_status); }; }; then
   4569   ac_cv_lib_socket_connect=yes
   4570 else
   4571   echo "$as_me: failed program was:" >&5
   4572 sed 's/^/| /' conftest.$ac_ext >&5
   4573 
   4574 ac_cv_lib_socket_connect=no
   4575 fi
   4576 rm -f conftest.err conftest.$ac_objext \
   4577       conftest$ac_exeext conftest.$ac_ext
   4578 LIBS=$ac_check_lib_save_LIBS
   4579 fi
   4580 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
   4581 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
   4582 if test $ac_cv_lib_socket_connect = yes; then
   4583   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   4584 fi
   4585 
   4586     fi
   4587 
   4588     # Guillermo Gomez says -lposix is necessary on A/UX.
   4589     echo "$as_me:$LINENO: checking for remove" >&5
   4590 echo $ECHO_N "checking for remove... $ECHO_C" >&6
   4591 if test "${ac_cv_func_remove+set}" = set; then
   4592   echo $ECHO_N "(cached) $ECHO_C" >&6
   4593 else
   4594   cat >conftest.$ac_ext <<_ACEOF
   4595 /* confdefs.h.  */
   4596 _ACEOF
   4597 cat confdefs.h >>conftest.$ac_ext
   4598 cat >>conftest.$ac_ext <<_ACEOF
   4599 /* end confdefs.h.  */
   4600 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
   4601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4602 #define remove innocuous_remove
   4603 
   4604 /* System header to define __stub macros and hopefully few prototypes,
   4605     which can conflict with char remove (); below.
   4606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4607     <limits.h> exists even on freestanding compilers.  */
   4608 
   4609 #ifdef __STDC__
   4610 # include <limits.h>
   4611 #else
   4612 # include <assert.h>
   4613 #endif
   4614 
   4615 #undef remove
   4616 
   4617 /* Override any gcc2 internal prototype to avoid an error.  */
   4618 #ifdef __cplusplus
   4619 extern "C"
   4620 {
   4621 #endif
   4622 /* We use char because int might match the return type of a gcc2
   4623    builtin and then its argument prototype would still apply.  */
   4624 char remove ();
   4625 /* The GNU C library defines this for functions which it implements
   4626     to always fail with ENOSYS.  Some functions are actually named
   4627     something starting with __ and the normal name is an alias.  */
   4628 #if defined (__stub_remove) || defined (__stub___remove)
   4629 choke me
   4630 #else
   4631 char (*f) () = remove;
   4632 #endif
   4633 #ifdef __cplusplus
   4634 }
   4635 #endif
   4636 
   4637 int
   4638 main ()
   4639 {
   4640 return f != remove;
   4641   ;
   4642   return 0;
   4643 }
   4644 _ACEOF
   4645 rm -f conftest.$ac_objext conftest$ac_exeext
   4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4647   (eval $ac_link) 2>conftest.er1
   4648   ac_status=$?
   4649   grep -v '^ *+' conftest.er1 >conftest.err
   4650   rm -f conftest.er1
   4651   cat conftest.err >&5
   4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4653   (exit $ac_status); } &&
   4654 	 { ac_try='test -z "$ac_c_werror_flag"
   4655 			 || test ! -s conftest.err'
   4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4657   (eval $ac_try) 2>&5
   4658   ac_status=$?
   4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4660   (exit $ac_status); }; } &&
   4661 	 { ac_try='test -s conftest$ac_exeext'
   4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4663   (eval $ac_try) 2>&5
   4664   ac_status=$?
   4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4666   (exit $ac_status); }; }; then
   4667   ac_cv_func_remove=yes
   4668 else
   4669   echo "$as_me: failed program was:" >&5
   4670 sed 's/^/| /' conftest.$ac_ext >&5
   4671 
   4672 ac_cv_func_remove=no
   4673 fi
   4674 rm -f conftest.err conftest.$ac_objext \
   4675       conftest$ac_exeext conftest.$ac_ext
   4676 fi
   4677 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
   4678 echo "${ECHO_T}$ac_cv_func_remove" >&6
   4679 
   4680     if test $ac_cv_func_remove = no; then
   4681       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
   4682 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
   4683 if test "${ac_cv_lib_posix_remove+set}" = set; then
   4684   echo $ECHO_N "(cached) $ECHO_C" >&6
   4685 else
   4686   ac_check_lib_save_LIBS=$LIBS
   4687 LIBS="-lposix  $LIBS"
   4688 cat >conftest.$ac_ext <<_ACEOF
   4689 /* confdefs.h.  */
   4690 _ACEOF
   4691 cat confdefs.h >>conftest.$ac_ext
   4692 cat >>conftest.$ac_ext <<_ACEOF
   4693 /* end confdefs.h.  */
   4694 
   4695 /* Override any gcc2 internal prototype to avoid an error.  */
   4696 #ifdef __cplusplus
   4697 extern "C"
   4698 #endif
   4699 /* We use char because int might match the return type of a gcc2
   4700    builtin and then its argument prototype would still apply.  */
   4701 char remove ();
   4702 int
   4703 main ()
   4704 {
   4705 remove ();
   4706   ;
   4707   return 0;
   4708 }
   4709 _ACEOF
   4710 rm -f conftest.$ac_objext conftest$ac_exeext
   4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4712   (eval $ac_link) 2>conftest.er1
   4713   ac_status=$?
   4714   grep -v '^ *+' conftest.er1 >conftest.err
   4715   rm -f conftest.er1
   4716   cat conftest.err >&5
   4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4718   (exit $ac_status); } &&
   4719 	 { ac_try='test -z "$ac_c_werror_flag"
   4720 			 || test ! -s conftest.err'
   4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4722   (eval $ac_try) 2>&5
   4723   ac_status=$?
   4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4725   (exit $ac_status); }; } &&
   4726 	 { ac_try='test -s conftest$ac_exeext'
   4727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4728   (eval $ac_try) 2>&5
   4729   ac_status=$?
   4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4731   (exit $ac_status); }; }; then
   4732   ac_cv_lib_posix_remove=yes
   4733 else
   4734   echo "$as_me: failed program was:" >&5
   4735 sed 's/^/| /' conftest.$ac_ext >&5
   4736 
   4737 ac_cv_lib_posix_remove=no
   4738 fi
   4739 rm -f conftest.err conftest.$ac_objext \
   4740       conftest$ac_exeext conftest.$ac_ext
   4741 LIBS=$ac_check_lib_save_LIBS
   4742 fi
   4743 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
   4744 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
   4745 if test $ac_cv_lib_posix_remove = yes; then
   4746   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   4747 fi
   4748 
   4749     fi
   4750 
   4751     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   4752     echo "$as_me:$LINENO: checking for shmat" >&5
   4753 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
   4754 if test "${ac_cv_func_shmat+set}" = set; then
   4755   echo $ECHO_N "(cached) $ECHO_C" >&6
   4756 else
   4757   cat >conftest.$ac_ext <<_ACEOF
   4758 /* confdefs.h.  */
   4759 _ACEOF
   4760 cat confdefs.h >>conftest.$ac_ext
   4761 cat >>conftest.$ac_ext <<_ACEOF
   4762 /* end confdefs.h.  */
   4763 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   4764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   4765 #define shmat innocuous_shmat
   4766 
   4767 /* System header to define __stub macros and hopefully few prototypes,
   4768     which can conflict with char shmat (); below.
   4769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4770     <limits.h> exists even on freestanding compilers.  */
   4771 
   4772 #ifdef __STDC__
   4773 # include <limits.h>
   4774 #else
   4775 # include <assert.h>
   4776 #endif
   4777 
   4778 #undef shmat
   4779 
   4780 /* Override any gcc2 internal prototype to avoid an error.  */
   4781 #ifdef __cplusplus
   4782 extern "C"
   4783 {
   4784 #endif
   4785 /* We use char because int might match the return type of a gcc2
   4786    builtin and then its argument prototype would still apply.  */
   4787 char shmat ();
   4788 /* The GNU C library defines this for functions which it implements
   4789     to always fail with ENOSYS.  Some functions are actually named
   4790     something starting with __ and the normal name is an alias.  */
   4791 #if defined (__stub_shmat) || defined (__stub___shmat)
   4792 choke me
   4793 #else
   4794 char (*f) () = shmat;
   4795 #endif
   4796 #ifdef __cplusplus
   4797 }
   4798 #endif
   4799 
   4800 int
   4801 main ()
   4802 {
   4803 return f != shmat;
   4804   ;
   4805   return 0;
   4806 }
   4807 _ACEOF
   4808 rm -f conftest.$ac_objext conftest$ac_exeext
   4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4810   (eval $ac_link) 2>conftest.er1
   4811   ac_status=$?
   4812   grep -v '^ *+' conftest.er1 >conftest.err
   4813   rm -f conftest.er1
   4814   cat conftest.err >&5
   4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4816   (exit $ac_status); } &&
   4817 	 { ac_try='test -z "$ac_c_werror_flag"
   4818 			 || test ! -s conftest.err'
   4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4820   (eval $ac_try) 2>&5
   4821   ac_status=$?
   4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4823   (exit $ac_status); }; } &&
   4824 	 { ac_try='test -s conftest$ac_exeext'
   4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4826   (eval $ac_try) 2>&5
   4827   ac_status=$?
   4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4829   (exit $ac_status); }; }; then
   4830   ac_cv_func_shmat=yes
   4831 else
   4832   echo "$as_me: failed program was:" >&5
   4833 sed 's/^/| /' conftest.$ac_ext >&5
   4834 
   4835 ac_cv_func_shmat=no
   4836 fi
   4837 rm -f conftest.err conftest.$ac_objext \
   4838       conftest$ac_exeext conftest.$ac_ext
   4839 fi
   4840 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
   4841 echo "${ECHO_T}$ac_cv_func_shmat" >&6
   4842 
   4843     if test $ac_cv_func_shmat = no; then
   4844       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
   4845 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
   4846 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   4847   echo $ECHO_N "(cached) $ECHO_C" >&6
   4848 else
   4849   ac_check_lib_save_LIBS=$LIBS
   4850 LIBS="-lipc  $LIBS"
   4851 cat >conftest.$ac_ext <<_ACEOF
   4852 /* confdefs.h.  */
   4853 _ACEOF
   4854 cat confdefs.h >>conftest.$ac_ext
   4855 cat >>conftest.$ac_ext <<_ACEOF
   4856 /* end confdefs.h.  */
   4857 
   4858 /* Override any gcc2 internal prototype to avoid an error.  */
   4859 #ifdef __cplusplus
   4860 extern "C"
   4861 #endif
   4862 /* We use char because int might match the return type of a gcc2
   4863    builtin and then its argument prototype would still apply.  */
   4864 char shmat ();
   4865 int
   4866 main ()
   4867 {
   4868 shmat ();
   4869   ;
   4870   return 0;
   4871 }
   4872 _ACEOF
   4873 rm -f conftest.$ac_objext conftest$ac_exeext
   4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4875   (eval $ac_link) 2>conftest.er1
   4876   ac_status=$?
   4877   grep -v '^ *+' conftest.er1 >conftest.err
   4878   rm -f conftest.er1
   4879   cat conftest.err >&5
   4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4881   (exit $ac_status); } &&
   4882 	 { ac_try='test -z "$ac_c_werror_flag"
   4883 			 || test ! -s conftest.err'
   4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4885   (eval $ac_try) 2>&5
   4886   ac_status=$?
   4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4888   (exit $ac_status); }; } &&
   4889 	 { ac_try='test -s conftest$ac_exeext'
   4890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4891   (eval $ac_try) 2>&5
   4892   ac_status=$?
   4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4894   (exit $ac_status); }; }; then
   4895   ac_cv_lib_ipc_shmat=yes
   4896 else
   4897   echo "$as_me: failed program was:" >&5
   4898 sed 's/^/| /' conftest.$ac_ext >&5
   4899 
   4900 ac_cv_lib_ipc_shmat=no
   4901 fi
   4902 rm -f conftest.err conftest.$ac_objext \
   4903       conftest$ac_exeext conftest.$ac_ext
   4904 LIBS=$ac_check_lib_save_LIBS
   4905 fi
   4906 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
   4907 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
   4908 if test $ac_cv_lib_ipc_shmat = yes; then
   4909   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   4910 fi
   4911 
   4912     fi
   4913   fi
   4914 
   4915   # Check for libraries that X11R6 Xt/Xaw programs need.
   4916   ac_save_LDFLAGS=$LDFLAGS
   4917   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   4918   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   4919   # check for ICE first), but we must link in the order -lSM -lICE or
   4920   # we get undefined symbols.  So assume we have SM if we have ICE.
   4921   # These have to be linked with before -lX11, unlike the other
   4922   # libraries we check for below, so use a different variable.
   4923   # John Interrante, Karl Berry
   4924   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
   4925 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
   4926 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   4927   echo $ECHO_N "(cached) $ECHO_C" >&6
   4928 else
   4929   ac_check_lib_save_LIBS=$LIBS
   4930 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   4931 cat >conftest.$ac_ext <<_ACEOF
   4932 /* confdefs.h.  */
   4933 _ACEOF
   4934 cat confdefs.h >>conftest.$ac_ext
   4935 cat >>conftest.$ac_ext <<_ACEOF
   4936 /* end confdefs.h.  */
   4937 
   4938 /* Override any gcc2 internal prototype to avoid an error.  */
   4939 #ifdef __cplusplus
   4940 extern "C"
   4941 #endif
   4942 /* We use char because int might match the return type of a gcc2
   4943    builtin and then its argument prototype would still apply.  */
   4944 char IceConnectionNumber ();
   4945 int
   4946 main ()
   4947 {
   4948 IceConnectionNumber ();
   4949   ;
   4950   return 0;
   4951 }
   4952 _ACEOF
   4953 rm -f conftest.$ac_objext conftest$ac_exeext
   4954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   4955   (eval $ac_link) 2>conftest.er1
   4956   ac_status=$?
   4957   grep -v '^ *+' conftest.er1 >conftest.err
   4958   rm -f conftest.er1
   4959   cat conftest.err >&5
   4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4961   (exit $ac_status); } &&
   4962 	 { ac_try='test -z "$ac_c_werror_flag"
   4963 			 || test ! -s conftest.err'
   4964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4965   (eval $ac_try) 2>&5
   4966   ac_status=$?
   4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4968   (exit $ac_status); }; } &&
   4969 	 { ac_try='test -s conftest$ac_exeext'
   4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   4971   (eval $ac_try) 2>&5
   4972   ac_status=$?
   4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4974   (exit $ac_status); }; }; then
   4975   ac_cv_lib_ICE_IceConnectionNumber=yes
   4976 else
   4977   echo "$as_me: failed program was:" >&5
   4978 sed 's/^/| /' conftest.$ac_ext >&5
   4979 
   4980 ac_cv_lib_ICE_IceConnectionNumber=no
   4981 fi
   4982 rm -f conftest.err conftest.$ac_objext \
   4983       conftest$ac_exeext conftest.$ac_ext
   4984 LIBS=$ac_check_lib_save_LIBS
   4985 fi
   4986 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   4987 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
   4988 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   4989   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   4990 fi
   4991 
   4992   LDFLAGS=$ac_save_LDFLAGS
   4993 
   4994 fi
   4995 
   4996 
   4997    groff_no_x=$no_x
   4998    if test -z "$groff_no_x"; then
   4999      OLDCFLAGS=$CFLAGS
   5000      OLDLDFLAGS=$LDFLAGS
   5001      OLDLIBS=$LIBS
   5002      CFLAGS="$CFLAGS $X_CFLAGS"
   5003      LDFLAGS="$LDFLAGS $X_LIBS"
   5004      LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
   5005 
   5006      LIBS="$LIBS -lXaw"
   5007      echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
   5008 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
   5009      cat >conftest.$ac_ext <<_ACEOF
   5010 
   5011 	 /* confdefs.h.  */
   5012 _ACEOF
   5013 cat confdefs.h >>conftest.$ac_ext
   5014 cat >>conftest.$ac_ext <<_ACEOF
   5015 /* end confdefs.h.  */
   5016 
   5017 
   5018 #include <X11/Intrinsic.h>
   5019 #include <X11/Xaw/Simple.h>
   5020 
   5021 
   5022 int
   5023 main ()
   5024 {
   5025 
   5026   ;
   5027   return 0;
   5028 }
   5029 
   5030 _ACEOF
   5031 rm -f conftest.$ac_objext conftest$ac_exeext
   5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5033   (eval $ac_link) 2>conftest.er1
   5034   ac_status=$?
   5035   grep -v '^ *+' conftest.er1 >conftest.err
   5036   rm -f conftest.er1
   5037   cat conftest.err >&5
   5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5039   (exit $ac_status); } &&
   5040 	 { ac_try='test -z "$ac_c_werror_flag"
   5041 			 || test ! -s conftest.err'
   5042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5043   (eval $ac_try) 2>&5
   5044   ac_status=$?
   5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5046   (exit $ac_status); }; } &&
   5047 	 { ac_try='test -s conftest$ac_exeext'
   5048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5049   (eval $ac_try) 2>&5
   5050   ac_status=$?
   5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5052   (exit $ac_status); }; }; then
   5053   echo "$as_me:$LINENO: result: yes" >&5
   5054 echo "${ECHO_T}yes" >&6
   5055 else
   5056   echo "$as_me: failed program was:" >&5
   5057 sed 's/^/| /' conftest.$ac_ext >&5
   5058 
   5059 echo "$as_me:$LINENO: result: no" >&5
   5060 echo "${ECHO_T}no" >&6
   5061 	groff_no_x="yes"
   5062 fi
   5063 rm -f conftest.err conftest.$ac_objext \
   5064       conftest$ac_exeext conftest.$ac_ext
   5065 
   5066      LIBS="$LIBS -lXmu"
   5067      echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
   5068 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
   5069      cat >conftest.$ac_ext <<_ACEOF
   5070 
   5071 	 /* confdefs.h.  */
   5072 _ACEOF
   5073 cat confdefs.h >>conftest.$ac_ext
   5074 cat >>conftest.$ac_ext <<_ACEOF
   5075 /* end confdefs.h.  */
   5076 
   5077 
   5078 #include <X11/Intrinsic.h>
   5079 #include <X11/Xmu/Converters.h>
   5080 
   5081 
   5082 int
   5083 main ()
   5084 {
   5085 
   5086   ;
   5087   return 0;
   5088 }
   5089 
   5090 _ACEOF
   5091 rm -f conftest.$ac_objext conftest$ac_exeext
   5092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5093   (eval $ac_link) 2>conftest.er1
   5094   ac_status=$?
   5095   grep -v '^ *+' conftest.er1 >conftest.err
   5096   rm -f conftest.er1
   5097   cat conftest.err >&5
   5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5099   (exit $ac_status); } &&
   5100 	 { ac_try='test -z "$ac_c_werror_flag"
   5101 			 || test ! -s conftest.err'
   5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5103   (eval $ac_try) 2>&5
   5104   ac_status=$?
   5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5106   (exit $ac_status); }; } &&
   5107 	 { ac_try='test -s conftest$ac_exeext'
   5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5109   (eval $ac_try) 2>&5
   5110   ac_status=$?
   5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5112   (exit $ac_status); }; }; then
   5113   echo "$as_me:$LINENO: result: yes" >&5
   5114 echo "${ECHO_T}yes" >&6
   5115 else
   5116   echo "$as_me: failed program was:" >&5
   5117 sed 's/^/| /' conftest.$ac_ext >&5
   5118 
   5119 echo "$as_me:$LINENO: result: no" >&5
   5120 echo "${ECHO_T}no" >&6
   5121 	groff_no_x="yes"
   5122 fi
   5123 rm -f conftest.err conftest.$ac_objext \
   5124       conftest$ac_exeext conftest.$ac_ext
   5125 
   5126      CFLAGS=$OLDCFLAGS
   5127      LDFLAGS=$OLDLDFLAGS
   5128      LIBS=$OLDLIBS
   5129    fi
   5130 
   5131    if test "x$groff_no_x" = "xyes"; then
   5132      { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
   5133 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
   5134    else
   5135      XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
   5136      XPROGDIRS="src/devices/xditview src/utils/xtotroff"
   5137      XLIBDIRS="src/libs/libxutil"
   5138    fi
   5139 
   5140 
   5141 
   5142 
   5143 
   5144 # Check whether --with-appresdir or --without-appresdir was given.
   5145 if test "${with_appresdir+set}" = set; then
   5146   withval="$with_appresdir"
   5147 
   5148 fi;
   5149 if test -z "$groff_no_x"; then
   5150      # Create an Imakefile, run `xmkmf', then `make'.
   5151      rm -f -r conftest.dir
   5152      if mkdir conftest.dir; then
   5153        cd conftest.dir
   5154        # Make sure to not put `make' in the Imakefile rules,
   5155        # since we grep it out.
   5156        cat >Imakefile <<'EOF'
   5157 
   5158 xlibdirs:
   5159 	@echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
   5160 EOF
   5161 
   5162        if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
   5163 	 # GNU make sometimes prints "make[1]: Entering...",
   5164 	 # which would confuse us.
   5165 	 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
   5166 
   5167 	 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
   5168 	 for groff_extension in a so sl; do
   5169 	   if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
   5170 	      test -f $groff_x_libdir/libX11.$groff_extension; then
   5171 	     groff_x_usrlibdir=$groff_x_libdir
   5172 	     break
   5173 	   fi
   5174 	 done
   5175        fi
   5176 
   5177        cd ..
   5178        rm -f -r conftest.dir
   5179      fi
   5180 
   5181      # In case the test with `xmkmf' wasn't successful, try a suite of
   5182      # standard directories.  Check `X11' before `X11Rn' because it is often
   5183      # a symlink to the current release.
   5184      groff_x_libdirs='
   5185        /usr/X11/lib
   5186        /usr/X11R6/lib
   5187        /usr/X11R5/lib
   5188        /usr/X11R4/lib
   5189 
   5190        /usr/lib/X11
   5191        /usr/lib/X11R6
   5192        /usr/lib/X11R5
   5193        /usr/lib/X11R4
   5194 
   5195        /usr/local/X11/lib
   5196        /usr/local/X11R6/lib
   5197        /usr/local/X11R5/lib
   5198        /usr/local/X11R4/lib
   5199 
   5200        /usr/local/lib/X11
   5201        /usr/local/lib/X11R6
   5202        /usr/local/lib/X11R5
   5203        /usr/local/lib/X11R4
   5204 
   5205        /usr/X386/lib
   5206        /usr/x386/lib
   5207        /usr/XFree86/lib/X11
   5208 
   5209        /usr/lib
   5210        /usr/local/lib
   5211        /usr/unsupported/lib
   5212        /usr/athena/lib
   5213        /usr/local/x11r5/lib
   5214        /usr/lpp/Xamples/lib
   5215 
   5216        /usr/openwin/lib
   5217        /usr/openwin/share/lib'
   5218 
   5219      if test -z "$groff_x_usrlibdir"; then
   5220        # We only test whether libX11 exists.
   5221        for groff_dir in $groff_x_libdirs; do
   5222 	 for groff_extension in a so sl; do
   5223 	   if test ! -r $groff_dir/libX11.$groff_extension; then
   5224 	     groff_x_usrlibdir=$groff_dir
   5225 	     break 2
   5226 	   fi
   5227 	 done
   5228        done
   5229      fi
   5230 
   5231      if test "x$with_appresdir" = "x"; then
   5232        appresdir=$groff_x_usrlibdir/X11/app-defaults
   5233      else
   5234        appresdir=$with_appresdir
   5235      fi
   5236    fi
   5237 
   5238 if test -z "$PSPRINT"; then
   5239      for ac_prog in lpr
   5240 do
   5241   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5242 set dummy $ac_prog; ac_word=$2
   5243 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5245 if test "${ac_cv_prog_LPR+set}" = set; then
   5246   echo $ECHO_N "(cached) $ECHO_C" >&6
   5247 else
   5248   if test -n "$LPR"; then
   5249   ac_cv_prog_LPR="$LPR" # Let the user override the test.
   5250 else
   5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5252 for as_dir in $PATH
   5253 do
   5254   IFS=$as_save_IFS
   5255   test -z "$as_dir" && as_dir=.
   5256   for ac_exec_ext in '' $ac_executable_extensions; do
   5257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5258     ac_cv_prog_LPR="$ac_prog"
   5259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5260     break 2
   5261   fi
   5262 done
   5263 done
   5264 
   5265 fi
   5266 fi
   5267 LPR=$ac_cv_prog_LPR
   5268 if test -n "$LPR"; then
   5269   echo "$as_me:$LINENO: result: $LPR" >&5
   5270 echo "${ECHO_T}$LPR" >&6
   5271 else
   5272   echo "$as_me:$LINENO: result: no" >&5
   5273 echo "${ECHO_T}no" >&6
   5274 fi
   5275 
   5276   test -n "$LPR" && break
   5277 done
   5278 
   5279      for ac_prog in lp
   5280 do
   5281   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5282 set dummy $ac_prog; ac_word=$2
   5283 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5285 if test "${ac_cv_prog_LP+set}" = set; then
   5286   echo $ECHO_N "(cached) $ECHO_C" >&6
   5287 else
   5288   if test -n "$LP"; then
   5289   ac_cv_prog_LP="$LP" # Let the user override the test.
   5290 else
   5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5292 for as_dir in $PATH
   5293 do
   5294   IFS=$as_save_IFS
   5295   test -z "$as_dir" && as_dir=.
   5296   for ac_exec_ext in '' $ac_executable_extensions; do
   5297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5298     ac_cv_prog_LP="$ac_prog"
   5299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5300     break 2
   5301   fi
   5302 done
   5303 done
   5304 
   5305 fi
   5306 fi
   5307 LP=$ac_cv_prog_LP
   5308 if test -n "$LP"; then
   5309   echo "$as_me:$LINENO: result: $LP" >&5
   5310 echo "${ECHO_T}$LP" >&6
   5311 else
   5312   echo "$as_me:$LINENO: result: no" >&5
   5313 echo "${ECHO_T}no" >&6
   5314 fi
   5315 
   5316   test -n "$LP" && break
   5317 done
   5318 
   5319      if test -n "$LPR" && test -n "$LP"; then
   5320        # HP-UX provides an lpr command that emulates lpr using lp,
   5321        # but it doesn't have lpq; in this case we want to use lp
   5322        # rather than lpr.
   5323        for ac_prog in lpq
   5324 do
   5325   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5326 set dummy $ac_prog; ac_word=$2
   5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5329 if test "${ac_cv_prog_LPQ+set}" = set; then
   5330   echo $ECHO_N "(cached) $ECHO_C" >&6
   5331 else
   5332   if test -n "$LPQ"; then
   5333   ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
   5334 else
   5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5336 for as_dir in $PATH
   5337 do
   5338   IFS=$as_save_IFS
   5339   test -z "$as_dir" && as_dir=.
   5340   for ac_exec_ext in '' $ac_executable_extensions; do
   5341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5342     ac_cv_prog_LPQ="$ac_prog"
   5343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5344     break 2
   5345   fi
   5346 done
   5347 done
   5348 
   5349 fi
   5350 fi
   5351 LPQ=$ac_cv_prog_LPQ
   5352 if test -n "$LPQ"; then
   5353   echo "$as_me:$LINENO: result: $LPQ" >&5
   5354 echo "${ECHO_T}$LPQ" >&6
   5355 else
   5356   echo "$as_me:$LINENO: result: no" >&5
   5357 echo "${ECHO_T}no" >&6
   5358 fi
   5359 
   5360   test -n "$LPQ" && break
   5361 done
   5362 
   5363        test -n "$LPQ" || LPR=
   5364      fi
   5365      if test -n "$LPR"; then
   5366        PSPRINT="$LPR"
   5367      elif test -n "$LP"; then
   5368        PSPRINT="$LP"
   5369      fi
   5370    fi
   5371 
   5372    echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
   5373 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
   5374    echo "$as_me:$LINENO: result: $PSPRINT" >&5
   5375 echo "${ECHO_T}$PSPRINT" >&6
   5376 
   5377    # Figure out DVIPRINT from PSPRINT.
   5378    echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
   5379 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
   5380    if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
   5381      if test "x$PSPRINT" = "xlpr"; then
   5382        DVIPRINT="lpr -d"
   5383      else
   5384        DVIPRINT="$PSPRINT"
   5385      fi
   5386    fi
   5387 
   5388    echo "$as_me:$LINENO: result: $DVIPRINT" >&5
   5389 echo "${ECHO_T}$DVIPRINT" >&6
   5390 # Extract the first word of "perl", so it can be a program name with args.
   5391 set dummy perl; ac_word=$2
   5392 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5394 if test "${ac_cv_path_PERLPATH+set}" = set; then
   5395   echo $ECHO_N "(cached) $ECHO_C" >&6
   5396 else
   5397   case $PERLPATH in
   5398   [\\/]* | ?:[\\/]*)
   5399   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
   5400   ;;
   5401   *)
   5402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5403 for as_dir in $PATH
   5404 do
   5405   IFS=$as_save_IFS
   5406   test -z "$as_dir" && as_dir=.
   5407   for ac_exec_ext in '' $ac_executable_extensions; do
   5408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5409     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
   5410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5411     break 2
   5412   fi
   5413 done
   5414 done
   5415 
   5416   test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
   5417   ;;
   5418 esac
   5419 fi
   5420 PERLPATH=$ac_cv_path_PERLPATH
   5421 
   5422 if test -n "$PERLPATH"; then
   5423   echo "$as_me:$LINENO: result: $PERLPATH" >&5
   5424 echo "${ECHO_T}$PERLPATH" >&6
   5425 else
   5426   echo "$as_me:$LINENO: result: no" >&5
   5427 echo "${ECHO_T}no" >&6
   5428 fi
   5429 
   5430 for ac_prog in byacc 'bison -y'
   5431 do
   5432   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5433 set dummy $ac_prog; ac_word=$2
   5434 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5436 if test "${ac_cv_prog_YACC+set}" = set; then
   5437   echo $ECHO_N "(cached) $ECHO_C" >&6
   5438 else
   5439   if test -n "$YACC"; then
   5440   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   5441 else
   5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5443 for as_dir in $PATH
   5444 do
   5445   IFS=$as_save_IFS
   5446   test -z "$as_dir" && as_dir=.
   5447   for ac_exec_ext in '' $ac_executable_extensions; do
   5448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5449     ac_cv_prog_YACC="$ac_prog"
   5450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5451     break 2
   5452   fi
   5453 done
   5454 done
   5455 
   5456 fi
   5457 fi
   5458 YACC=$ac_cv_prog_YACC
   5459 if test -n "$YACC"; then
   5460   echo "$as_me:$LINENO: result: $YACC" >&5
   5461 echo "${ECHO_T}$YACC" >&6
   5462 else
   5463   echo "$as_me:$LINENO: result: no" >&5
   5464 echo "${ECHO_T}no" >&6
   5465 fi
   5466 
   5467   test -n "$YACC" && break
   5468 done
   5469 test -n "$YACC" || YACC="yacc"
   5470 
   5471 if test -n "$ac_tool_prefix"; then
   5472   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5474 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5476 if test "${ac_cv_prog_RANLIB+set}" = set; then
   5477   echo $ECHO_N "(cached) $ECHO_C" >&6
   5478 else
   5479   if test -n "$RANLIB"; then
   5480   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5481 else
   5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5483 for as_dir in $PATH
   5484 do
   5485   IFS=$as_save_IFS
   5486   test -z "$as_dir" && as_dir=.
   5487   for ac_exec_ext in '' $ac_executable_extensions; do
   5488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5489     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5491     break 2
   5492   fi
   5493 done
   5494 done
   5495 
   5496 fi
   5497 fi
   5498 RANLIB=$ac_cv_prog_RANLIB
   5499 if test -n "$RANLIB"; then
   5500   echo "$as_me:$LINENO: result: $RANLIB" >&5
   5501 echo "${ECHO_T}$RANLIB" >&6
   5502 else
   5503   echo "$as_me:$LINENO: result: no" >&5
   5504 echo "${ECHO_T}no" >&6
   5505 fi
   5506 
   5507 fi
   5508 if test -z "$ac_cv_prog_RANLIB"; then
   5509   ac_ct_RANLIB=$RANLIB
   5510   # Extract the first word of "ranlib", so it can be a program name with args.
   5511 set dummy ranlib; ac_word=$2
   5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   5515   echo $ECHO_N "(cached) $ECHO_C" >&6
   5516 else
   5517   if test -n "$ac_ct_RANLIB"; then
   5518   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5519 else
   5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5521 for as_dir in $PATH
   5522 do
   5523   IFS=$as_save_IFS
   5524   test -z "$as_dir" && as_dir=.
   5525   for ac_exec_ext in '' $ac_executable_extensions; do
   5526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5527     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5529     break 2
   5530   fi
   5531 done
   5532 done
   5533 
   5534 fi
   5535 fi
   5536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5537 if test -n "$ac_ct_RANLIB"; then
   5538   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   5539 echo "${ECHO_T}$ac_ct_RANLIB" >&6
   5540 else
   5541   echo "$as_me:$LINENO: result: no" >&5
   5542 echo "${ECHO_T}no" >&6
   5543 fi
   5544 
   5545   if test "x$ac_ct_RANLIB" = x; then
   5546     RANLIB=":"
   5547   else
   5548     if test "$build" != "$host"; then
   5549       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5550 whose name does not start with the host triplet.  If you think this
   5551 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5553 whose name does not start with the host triplet.  If you think this
   5554 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5555     fi
   5556     RANLIB=$ac_ct_RANLIB
   5557   fi
   5558 else
   5559   RANLIB="$ac_cv_prog_RANLIB"
   5560 fi
   5561 
   5562 ac_aux_dir=
   5563 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   5564   if 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/install.sh; then
   5569     ac_aux_dir=$ac_dir
   5570     ac_install_sh="$ac_aux_dir/install.sh -c"
   5571     break
   5572   elif test -f $ac_dir/shtool; then
   5573     ac_aux_dir=$ac_dir
   5574     ac_install_sh="$ac_aux_dir/shtool install -c"
   5575     break
   5576   fi
   5577 done
   5578 if test -z "$ac_aux_dir"; then
   5579   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
   5580 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
   5581    { (exit 1); exit 1; }; }
   5582 fi
   5583 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
   5584 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
   5585 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
   5586 
   5587 
   5588    ac_dir=`cd $ac_aux_dir; pwd`
   5589    ac_install_sh="$ac_dir/install-sh -c"
   5590 for ac_prog in install-info
   5591 do
   5592   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5593 set dummy $ac_prog; ac_word=$2
   5594 echo "$as_me:$LINENO: checking for $ac_word" >&5
   5595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   5596 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
   5597   echo $ECHO_N "(cached) $ECHO_C" >&6
   5598 else
   5599   if test -n "$INSTALL_INFO"; then
   5600   ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
   5601 else
   5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5603 for as_dir in $PATH
   5604 do
   5605   IFS=$as_save_IFS
   5606   test -z "$as_dir" && as_dir=.
   5607   for ac_exec_ext in '' $ac_executable_extensions; do
   5608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5609     ac_cv_prog_INSTALL_INFO="$ac_prog"
   5610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5611     break 2
   5612   fi
   5613 done
   5614 done
   5615 
   5616 fi
   5617 fi
   5618 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
   5619 if test -n "$INSTALL_INFO"; then
   5620   echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
   5621 echo "${ECHO_T}$INSTALL_INFO" >&6
   5622 else
   5623   echo "$as_me:$LINENO: result: no" >&5
   5624 echo "${ECHO_T}no" >&6
   5625 fi
   5626 
   5627   test -n "$INSTALL_INFO" && break
   5628 done
   5629 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
   5630 
   5631 # Find a good install program.  We prefer a C program (faster),
   5632 # so one script is as good as another.  But avoid the broken or
   5633 # incompatible versions:
   5634 # SysV /etc/install, /usr/sbin/install
   5635 # SunOS /usr/etc/install
   5636 # IRIX /sbin/install
   5637 # AIX /bin/install
   5638 # AmigaOS /C/install, which installs bootblocks on floppy discs
   5639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   5640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   5641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   5642 # OS/2's system install, which has a completely different semantic
   5643 # ./install, which can be erroneously created by make from ./install.sh.
   5644 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   5645 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
   5646 if test -z "$INSTALL"; then
   5647 if test "${ac_cv_path_install+set}" = set; then
   5648   echo $ECHO_N "(cached) $ECHO_C" >&6
   5649 else
   5650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5651 for as_dir in $PATH
   5652 do
   5653   IFS=$as_save_IFS
   5654   test -z "$as_dir" && as_dir=.
   5655   # Account for people who put trailing slashes in PATH elements.
   5656 case $as_dir/ in
   5657   ./ | .// | /cC/* | \
   5658   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   5659   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   5660   /usr/ucb/* ) ;;
   5661   *)
   5662     # OSF1 and SCO ODT 3.0 have their own names for install.
   5663     # Don't use installbsd from OSF since it installs stuff as root
   5664     # by default.
   5665     for ac_prog in ginstall scoinst install; do
   5666       for ac_exec_ext in '' $ac_executable_extensions; do
   5667 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   5668 	  if test $ac_prog = install &&
   5669 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5670 	    # AIX install.  It has an incompatible calling convention.
   5671 	    :
   5672 	  elif test $ac_prog = install &&
   5673 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5674 	    # program-specific install script used by HP pwplus--don't use.
   5675 	    :
   5676 	  else
   5677 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   5678 	    break 3
   5679 	  fi
   5680 	fi
   5681       done
   5682     done
   5683     ;;
   5684 esac
   5685 done
   5686 
   5687 
   5688 fi
   5689   if test "${ac_cv_path_install+set}" = set; then
   5690     INSTALL=$ac_cv_path_install
   5691   else
   5692     # As a last resort, use the slow shell script.  Don't cache a
   5693     # value for INSTALL within a source directory, because that will
   5694     # break other packages using the cache if that directory is
   5695     # removed, or if the value is a relative name.
   5696     INSTALL=$ac_install_sh
   5697   fi
   5698 fi
   5699 echo "$as_me:$LINENO: result: $INSTALL" >&5
   5700 echo "${ECHO_T}$INSTALL" >&6
   5701 
   5702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5703 # It thinks the first close brace ends the variable substitution.
   5704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5705 
   5706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5707 
   5708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5709 
   5710 echo "$as_me:$LINENO: checking whether ln -s works" >&5
   5711 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
   5712 LN_S=$as_ln_s
   5713 if test "$LN_S" = "ln -s"; then
   5714   echo "$as_me:$LINENO: result: yes" >&5
   5715 echo "${ECHO_T}yes" >&6
   5716 else
   5717   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   5718 echo "${ECHO_T}no, using $LN_S" >&6
   5719 fi
   5720 
   5721 
   5722 # use a dummy substitution if no csh hack is necessary to avoid errors
   5723 # with non-GNU sed programs
   5724 echo "$as_me:$LINENO: checking for csh hash hack" >&5
   5725 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
   5726 
   5727 cat <<EOF >conftest.sh
   5728 #! /bin/sh
   5729 true || exit 0
   5730 export PATH || exit 0
   5731 exit 1
   5732 EOF
   5733 
   5734    chmod +x conftest.sh
   5735    if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
   5736      echo "$as_me:$LINENO: result: yes" >&5
   5737 echo "${ECHO_T}yes" >&6
   5738      SH_SCRIPT_SED_CMD='1s/.*/:/'
   5739    else
   5740      echo "$as_me:$LINENO: result: no" >&5
   5741 echo "${ECHO_T}no" >&6
   5742      SH_SCRIPT_SED_CMD='1s/a/a/'
   5743    fi
   5744    rm -f conftest.sh
   5745 
   5746 
   5747 # checks for headers
   5748 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   5749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
   5750 if test "${ac_cv_path_GREP+set}" = set; then
   5751   echo $ECHO_N "(cached) $ECHO_C" >&6
   5752 else
   5753   # Extract the first word of "grep ggrep" to use in msg output
   5754 if test -z "$GREP"; then
   5755 set dummy grep ggrep; ac_prog_name=$2
   5756 if test "${ac_cv_path_GREP+set}" = set; then
   5757   echo $ECHO_N "(cached) $ECHO_C" >&6
   5758 else
   5759   # Create a temporary directory, and hook for its removal unless debugging.
   5760 $debug ||
   5761 {
   5762   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   5763   trap '{ (exit 1); exit 1; }' 1 2 13 15
   5764 }
   5765 
   5766 # Create a (secure) tmp directory for tmp files.
   5767 : ${TMPDIR=/tmp}
   5768 {
   5769   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
   5770   test -n "$tmp" && test -d "$tmp"
   5771 }  ||
   5772 {
   5773   tmp=$TMPDIR/GREP$$-$RANDOM
   5774   (umask 077 && mkdir $tmp)
   5775 } ||
   5776 {
   5777    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   5778    { (exit 1); exit 1; }
   5779 }
   5780 ac_path_GREP_found=false
   5781 # Loop through the user's path and test for each of PROGNAME-LIST
   5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5783 as_dummy="$PATH:/usr/xpg4/bin"
   5784 for as_dir in $as_dummy
   5785 do
   5786   IFS=$as_save_IFS
   5787   test -z "$as_dir" && as_dir=.
   5788   for ac_prog in grep ggrep; do
   5789   for ac_exec_ext in '' $ac_executable_extensions; do
   5790     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5791     test -f "$ac_path_GREP" || continue
   5792     $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
   5793   # Check for GNU ac_path_GREP and select it if it is found.
   5794   # Check for GNU $ac_path_GREP
   5795 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
   5796   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
   5797 else
   5798   ac_count=0
   5799   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   5800   while :
   5801   do
   5802     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
   5803     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
   5804     cp "$tmp/conftest.in" "$tmp/conftest.nl"
   5805     echo 'GREP' >> "$tmp/conftest.nl"
   5806     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
   5807     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
   5808     ac_count=`expr $ac_count + 1`
   5809     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5810       # Best one so far, save it but keep looking for a better one
   5811       ac_cv_path_GREP="$ac_path_GREP"
   5812       ac_path_GREP_max=$ac_count
   5813     fi
   5814     # 10*(2^10) chars as input seems more than enough
   5815     test $ac_count -gt 10 && break
   5816   done
   5817 fi
   5818 
   5819 fi
   5820 
   5821     $ac_path_GREP_found && break 3
   5822   done
   5823 done
   5824 
   5825 done
   5826 
   5827 rm -rf "$tmp"
   5828 
   5829 fi
   5830 
   5831 GREP="$ac_cv_path_GREP"
   5832 if test -z "$GREP"; then
   5833   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
   5834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
   5835    { (exit 1); exit 1; }; }
   5836 fi
   5837 
   5838 fi
   5839 
   5840 
   5841 fi
   5842 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   5843 echo "${ECHO_T}$ac_cv_path_GREP" >&6
   5844  GREP="$ac_cv_path_GREP"
   5845 
   5846 
   5847 echo "$as_me:$LINENO: checking for egrep" >&5
   5848 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
   5849 if test "${ac_cv_path_EGREP+set}" = set; then
   5850   echo $ECHO_N "(cached) $ECHO_C" >&6
   5851 else
   5852   if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
   5853    then ac_cv_path_EGREP="$GREP -E"
   5854    else
   5855      # Extract the first word of "egrep" to use in msg output
   5856 if test -z "$EGREP"; then
   5857 set dummy egrep; ac_prog_name=$2
   5858 if test "${ac_cv_path_EGREP+set}" = set; then
   5859   echo $ECHO_N "(cached) $ECHO_C" >&6
   5860 else
   5861   # Create a temporary directory, and hook for its removal unless debugging.
   5862 $debug ||
   5863 {
   5864   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   5865   trap '{ (exit 1); exit 1; }' 1 2 13 15
   5866 }
   5867 
   5868 # Create a (secure) tmp directory for tmp files.
   5869 : ${TMPDIR=/tmp}
   5870 {
   5871   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
   5872   test -n "$tmp" && test -d "$tmp"
   5873 }  ||
   5874 {
   5875   tmp=$TMPDIR/EGREP$$-$RANDOM
   5876   (umask 077 && mkdir $tmp)
   5877 } ||
   5878 {
   5879    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
   5880    { (exit 1); exit 1; }
   5881 }
   5882 ac_path_EGREP_found=false
   5883 # Loop through the user's path and test for each of PROGNAME-LIST
   5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5885 as_dummy="$PATH:/usr/xpg4/bin"
   5886 for as_dir in $as_dummy
   5887 do
   5888   IFS=$as_save_IFS
   5889   test -z "$as_dir" && as_dir=.
   5890   for ac_prog in egrep; do
   5891   for ac_exec_ext in '' $ac_executable_extensions; do
   5892     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5893     test -f "$ac_path_EGREP" || continue
   5894     $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
   5895   # Check for GNU ac_path_EGREP and select it if it is found.
   5896   # Check for GNU $ac_path_EGREP
   5897 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
   5898   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
   5899 else
   5900   ac_count=0
   5901   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   5902   while :
   5903   do
   5904     cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
   5905     mv "$tmp/conftest.tmp" "$tmp/conftest.in"
   5906     cp "$tmp/conftest.in" "$tmp/conftest.nl"
   5907     echo 'EGREP' >> "$tmp/conftest.nl"
   5908     "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
   5909     diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
   5910     ac_count=`expr $ac_count + 1`
   5911     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5912       # Best one so far, save it but keep looking for a better one
   5913       ac_cv_path_EGREP="$ac_path_EGREP"
   5914       ac_path_EGREP_max=$ac_count
   5915     fi
   5916     # 10*(2^10) chars as input seems more than enough
   5917     test $ac_count -gt 10 && break
   5918   done
   5919 fi
   5920 
   5921 fi
   5922 
   5923     $ac_path_EGREP_found && break 3
   5924   done
   5925 done
   5926 
   5927 done
   5928 
   5929 rm -rf "$tmp"
   5930 
   5931 fi
   5932 
   5933 EGREP="$ac_cv_path_EGREP"
   5934 if test -z "$EGREP"; then
   5935   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
   5936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
   5937    { (exit 1); exit 1; }; }
   5938 fi
   5939 
   5940 fi
   5941 
   5942 
   5943    fi
   5944 fi
   5945 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   5946 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
   5947  EGREP="$ac_cv_path_EGREP"
   5948 
   5949 
   5950 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   5951 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
   5952 if test "${ac_cv_header_stdc+set}" = set; then
   5953   echo $ECHO_N "(cached) $ECHO_C" >&6
   5954 else
   5955   cat >conftest.$ac_ext <<_ACEOF
   5956 /* confdefs.h.  */
   5957 _ACEOF
   5958 cat confdefs.h >>conftest.$ac_ext
   5959 cat >>conftest.$ac_ext <<_ACEOF
   5960 /* end confdefs.h.  */
   5961 #include <stdlib.h>
   5962 #include <stdarg.h>
   5963 #include <string.h>
   5964 #include <float.h>
   5965 
   5966 int
   5967 main ()
   5968 {
   5969 
   5970   ;
   5971   return 0;
   5972 }
   5973 _ACEOF
   5974 rm -f conftest.$ac_objext
   5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5976   (eval $ac_compile) 2>conftest.er1
   5977   ac_status=$?
   5978   grep -v '^ *+' conftest.er1 >conftest.err
   5979   rm -f conftest.er1
   5980   cat conftest.err >&5
   5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5982   (exit $ac_status); } &&
   5983 	 { ac_try='test -z "$ac_c_werror_flag"
   5984 			 || test ! -s conftest.err'
   5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5986   (eval $ac_try) 2>&5
   5987   ac_status=$?
   5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5989   (exit $ac_status); }; } &&
   5990 	 { ac_try='test -s conftest.$ac_objext'
   5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   5992   (eval $ac_try) 2>&5
   5993   ac_status=$?
   5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5995   (exit $ac_status); }; }; then
   5996   ac_cv_header_stdc=yes
   5997 else
   5998   echo "$as_me: failed program was:" >&5
   5999 sed 's/^/| /' conftest.$ac_ext >&5
   6000 
   6001 ac_cv_header_stdc=no
   6002 fi
   6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6004 
   6005 if test $ac_cv_header_stdc = yes; then
   6006   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6007   cat >conftest.$ac_ext <<_ACEOF
   6008 /* confdefs.h.  */
   6009 _ACEOF
   6010 cat confdefs.h >>conftest.$ac_ext
   6011 cat >>conftest.$ac_ext <<_ACEOF
   6012 /* end confdefs.h.  */
   6013 #include <string.h>
   6014 
   6015 _ACEOF
   6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6017   $EGREP "memchr" >/dev/null 2>&1; then
   6018   :
   6019 else
   6020   ac_cv_header_stdc=no
   6021 fi
   6022 rm -f conftest*
   6023 
   6024 fi
   6025 
   6026 if test $ac_cv_header_stdc = yes; then
   6027   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6028   cat >conftest.$ac_ext <<_ACEOF
   6029 /* confdefs.h.  */
   6030 _ACEOF
   6031 cat confdefs.h >>conftest.$ac_ext
   6032 cat >>conftest.$ac_ext <<_ACEOF
   6033 /* end confdefs.h.  */
   6034 #include <stdlib.h>
   6035 
   6036 _ACEOF
   6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6038   $EGREP "free" >/dev/null 2>&1; then
   6039   :
   6040 else
   6041   ac_cv_header_stdc=no
   6042 fi
   6043 rm -f conftest*
   6044 
   6045 fi
   6046 
   6047 if test $ac_cv_header_stdc = yes; then
   6048   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6049   if test "$cross_compiling" = yes; then
   6050   :
   6051 else
   6052   cat >conftest.$ac_ext <<_ACEOF
   6053 /* confdefs.h.  */
   6054 _ACEOF
   6055 cat confdefs.h >>conftest.$ac_ext
   6056 cat >>conftest.$ac_ext <<_ACEOF
   6057 /* end confdefs.h.  */
   6058 #include <ctype.h>
   6059 #include <stdlib.h>
   6060 #if ((' ' & 0x0FF) == 0x020)
   6061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6063 #else
   6064 # define ISLOWER(c) \
   6065 		   (('a' <= (c) && (c) <= 'i') \
   6066 		     || ('j' <= (c) && (c) <= 'r') \
   6067 		     || ('s' <= (c) && (c) <= 'z'))
   6068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6069 #endif
   6070 
   6071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6072 int
   6073 main ()
   6074 {
   6075   int i;
   6076   for (i = 0; i < 256; i++)
   6077     if (XOR (islower (i), ISLOWER (i))
   6078 	|| toupper (i) != TOUPPER (i))
   6079       exit (2);
   6080   exit (0);
   6081 }
   6082 _ACEOF
   6083 rm -f conftest$ac_exeext
   6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   6085   (eval $ac_link) 2>&5
   6086   ac_status=$?
   6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6090   (eval $ac_try) 2>&5
   6091   ac_status=$?
   6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6093   (exit $ac_status); }; }; then
   6094   :
   6095 else
   6096   echo "$as_me: program exited with status $ac_status" >&5
   6097 echo "$as_me: failed program was:" >&5
   6098 sed 's/^/| /' conftest.$ac_ext >&5
   6099 
   6100 ( exit $ac_status )
   6101 ac_cv_header_stdc=no
   6102 fi
   6103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6104 fi
   6105 fi
   6106 fi
   6107 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   6108 echo "${ECHO_T}$ac_cv_header_stdc" >&6
   6109 if test $ac_cv_header_stdc = yes; then
   6110 
   6111 cat >>confdefs.h <<\_ACEOF
   6112 #define STDC_HEADERS 1
   6113 _ACEOF
   6114 
   6115 fi
   6116 
   6117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6118 
   6119 
   6120 
   6121 
   6122 
   6123 
   6124 
   6125 
   6126 
   6127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6128 		  inttypes.h stdint.h unistd.h
   6129 do
   6130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6131 echo "$as_me:$LINENO: checking for $ac_header" >&5
   6132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6134   echo $ECHO_N "(cached) $ECHO_C" >&6
   6135 else
   6136   cat >conftest.$ac_ext <<_ACEOF
   6137 /* confdefs.h.  */
   6138 _ACEOF
   6139 cat confdefs.h >>conftest.$ac_ext
   6140 cat >>conftest.$ac_ext <<_ACEOF
   6141 /* end confdefs.h.  */
   6142 $ac_includes_default
   6143 
   6144 #include <$ac_header>
   6145 _ACEOF
   6146 rm -f conftest.$ac_objext
   6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6148   (eval $ac_compile) 2>conftest.er1
   6149   ac_status=$?
   6150   grep -v '^ *+' conftest.er1 >conftest.err
   6151   rm -f conftest.er1
   6152   cat conftest.err >&5
   6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6154   (exit $ac_status); } &&
   6155 	 { ac_try='test -z "$ac_c_werror_flag"
   6156 			 || test ! -s conftest.err'
   6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6158   (eval $ac_try) 2>&5
   6159   ac_status=$?
   6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6161   (exit $ac_status); }; } &&
   6162 	 { ac_try='test -s conftest.$ac_objext'
   6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6164   (eval $ac_try) 2>&5
   6165   ac_status=$?
   6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6167   (exit $ac_status); }; }; then
   6168   eval "$as_ac_Header=yes"
   6169 else
   6170   echo "$as_me: failed program was:" >&5
   6171 sed 's/^/| /' conftest.$ac_ext >&5
   6172 
   6173 eval "$as_ac_Header=no"
   6174 fi
   6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6176 fi
   6177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6180   cat >>confdefs.h <<_ACEOF
   6181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6182 _ACEOF
   6183 
   6184 fi
   6185 
   6186 done
   6187 
   6188 
   6189 
   6190 
   6191 
   6192 
   6193 
   6194 
   6195 
   6196 
   6197 
   6198 
   6199 
   6200 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
   6201                   string.h strings.h math.h sys/time.h direct.h process.h
   6202 do
   6203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6205   echo "$as_me:$LINENO: checking for $ac_header" >&5
   6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6208   echo $ECHO_N "(cached) $ECHO_C" >&6
   6209 fi
   6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6212 else
   6213   # Is the header compilable?
   6214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
   6215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   6216 cat >conftest.$ac_ext <<_ACEOF
   6217 /* confdefs.h.  */
   6218 _ACEOF
   6219 cat confdefs.h >>conftest.$ac_ext
   6220 cat >>conftest.$ac_ext <<_ACEOF
   6221 /* end confdefs.h.  */
   6222 $ac_includes_default
   6223 #include <$ac_header>
   6224 _ACEOF
   6225 rm -f conftest.$ac_objext
   6226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6227   (eval $ac_compile) 2>conftest.er1
   6228   ac_status=$?
   6229   grep -v '^ *+' conftest.er1 >conftest.err
   6230   rm -f conftest.er1
   6231   cat conftest.err >&5
   6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6233   (exit $ac_status); } &&
   6234 	 { ac_try='test -z "$ac_c_werror_flag"
   6235 			 || test ! -s conftest.err'
   6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6237   (eval $ac_try) 2>&5
   6238   ac_status=$?
   6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6240   (exit $ac_status); }; } &&
   6241 	 { ac_try='test -s conftest.$ac_objext'
   6242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6243   (eval $ac_try) 2>&5
   6244   ac_status=$?
   6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6246   (exit $ac_status); }; }; then
   6247   ac_header_compiler=yes
   6248 else
   6249   echo "$as_me: failed program was:" >&5
   6250 sed 's/^/| /' conftest.$ac_ext >&5
   6251 
   6252 ac_header_compiler=no
   6253 fi
   6254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   6256 echo "${ECHO_T}$ac_header_compiler" >&6
   6257 
   6258 # Is the header present?
   6259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
   6260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   6261 cat >conftest.$ac_ext <<_ACEOF
   6262 /* confdefs.h.  */
   6263 _ACEOF
   6264 cat confdefs.h >>conftest.$ac_ext
   6265 cat >>conftest.$ac_ext <<_ACEOF
   6266 /* end confdefs.h.  */
   6267 #include <$ac_header>
   6268 _ACEOF
   6269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   6270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   6271   ac_status=$?
   6272   grep -v '^ *+' conftest.er1 >conftest.err
   6273   rm -f conftest.er1
   6274   cat conftest.err >&5
   6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6276   (exit $ac_status); } >/dev/null; then
   6277   if test -s conftest.err; then
   6278     ac_cpp_err=$ac_c_preproc_warn_flag
   6279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   6280   else
   6281     ac_cpp_err=
   6282   fi
   6283 else
   6284   ac_cpp_err=yes
   6285 fi
   6286 if test -z "$ac_cpp_err"; then
   6287   ac_header_preproc=yes
   6288 else
   6289   echo "$as_me: failed program was:" >&5
   6290 sed 's/^/| /' conftest.$ac_ext >&5
   6291 
   6292   ac_header_preproc=no
   6293 fi
   6294 rm -f conftest.err conftest.$ac_ext
   6295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   6296 echo "${ECHO_T}$ac_header_preproc" >&6
   6297 
   6298 # So?  What about this header?
   6299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   6300   yes:no: )
   6301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   6302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   6303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   6304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   6305     ac_header_preproc=yes
   6306     ;;
   6307   no:yes:* )
   6308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   6309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   6310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   6311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   6312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   6313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   6314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   6315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   6316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   6317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   6318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   6319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   6320     (
   6321       cat <<\_ASBOX
   6322 ## ------------------------------------------ ##
   6323 ## Report this to the AC_PACKAGE_NAME lists.  ##
   6324 ## ------------------------------------------ ##
   6325 _ASBOX
   6326     ) |
   6327       sed "s/^/$as_me: WARNING:     /" >&2
   6328     ;;
   6329 esac
   6330 echo "$as_me:$LINENO: checking for $ac_header" >&5
   6331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   6332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   6333   echo $ECHO_N "(cached) $ECHO_C" >&6
   6334 else
   6335   eval "$as_ac_Header=\$ac_header_preproc"
   6336 fi
   6337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   6338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   6339 
   6340 fi
   6341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6342   cat >>confdefs.h <<_ACEOF
   6343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6344 _ACEOF
   6345 
   6346 fi
   6347 
   6348 done
   6349 
   6350 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
   6351 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
   6352    if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
   6353    then
   6354      echo "$as_me:$LINENO: result: yes" >&5
   6355 echo "${ECHO_T}yes" >&6
   6356 
   6357 cat >>confdefs.h <<\_ACEOF
   6358 #define _SYSV3 1
   6359 _ACEOF
   6360 
   6361    else
   6362      echo "$as_me:$LINENO: result: no" >&5
   6363 echo "${ECHO_T}no" >&6
   6364    fi
   6365 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
   6366 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
   6367    ac_ext=cc
   6368 ac_cpp='$CXXCPP $CPPFLAGS'
   6369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6372 
   6373    cat >conftest.$ac_ext <<_ACEOF
   6374 
   6375        /* confdefs.h.  */
   6376 _ACEOF
   6377 cat confdefs.h >>conftest.$ac_ext
   6378 cat >>conftest.$ac_ext <<_ACEOF
   6379 /* end confdefs.h.  */
   6380 
   6381 
   6382 #include <stdio.h>
   6383 extern "C" { void fileno(int); }
   6384 
   6385 
   6386 int
   6387 main ()
   6388 {
   6389 
   6390   ;
   6391   return 0;
   6392 }
   6393 
   6394 _ACEOF
   6395 rm -f conftest.$ac_objext
   6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6397   (eval $ac_compile) 2>conftest.er1
   6398   ac_status=$?
   6399   grep -v '^ *+' conftest.er1 >conftest.err
   6400   rm -f conftest.er1
   6401   cat conftest.err >&5
   6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6403   (exit $ac_status); } &&
   6404 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6405 			 || test ! -s conftest.err'
   6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6407   (eval $ac_try) 2>&5
   6408   ac_status=$?
   6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6410   (exit $ac_status); }; } &&
   6411 	 { ac_try='test -s conftest.$ac_objext'
   6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6413   (eval $ac_try) 2>&5
   6414   ac_status=$?
   6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6416   (exit $ac_status); }; }; then
   6417   echo "$as_me:$LINENO: result: yes" >&5
   6418 echo "${ECHO_T}yes" >&6
   6419 
   6420 cat >>confdefs.h <<\_ACEOF
   6421 #define _POSIX_SOURCE 1
   6422 _ACEOF
   6423 
   6424 else
   6425   echo "$as_me: failed program was:" >&5
   6426 sed 's/^/| /' conftest.$ac_ext >&5
   6427 
   6428 echo "$as_me:$LINENO: result: no" >&5
   6429 echo "${ECHO_T}no" >&6
   6430 fi
   6431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6432    ac_ext=c
   6433 ac_cpp='$CPP $CPPFLAGS'
   6434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6437 
   6438 
   6439 # checks for header stuff
   6440 ac_ext=cc
   6441 ac_cpp='$CXXCPP $CPPFLAGS'
   6442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6445 
   6446    echo "$as_me:$LINENO: checking for return type of srand" >&5
   6447 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
   6448    cat >conftest.$ac_ext <<_ACEOF
   6449 
   6450        /* confdefs.h.  */
   6451 _ACEOF
   6452 cat confdefs.h >>conftest.$ac_ext
   6453 cat >>conftest.$ac_ext <<_ACEOF
   6454 /* end confdefs.h.  */
   6455 
   6456 
   6457 #include <stdlib.h>
   6458 extern "C" { void srand(unsigned int); }
   6459 
   6460 
   6461 int
   6462 main ()
   6463 {
   6464 
   6465   ;
   6466   return 0;
   6467 }
   6468 
   6469 _ACEOF
   6470 rm -f conftest.$ac_objext
   6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6472   (eval $ac_compile) 2>conftest.er1
   6473   ac_status=$?
   6474   grep -v '^ *+' conftest.er1 >conftest.err
   6475   rm -f conftest.er1
   6476   cat conftest.err >&5
   6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6478   (exit $ac_status); } &&
   6479 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6480 			 || test ! -s conftest.err'
   6481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6482   (eval $ac_try) 2>&5
   6483   ac_status=$?
   6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6485   (exit $ac_status); }; } &&
   6486 	 { ac_try='test -s conftest.$ac_objext'
   6487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6488   (eval $ac_try) 2>&5
   6489   ac_status=$?
   6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6491   (exit $ac_status); }; }; then
   6492   echo "$as_me:$LINENO: result: void" >&5
   6493 echo "${ECHO_T}void" >&6
   6494 
   6495 cat >>confdefs.h <<\_ACEOF
   6496 #define RET_TYPE_SRAND_IS_VOID 1
   6497 _ACEOF
   6498 
   6499 else
   6500   echo "$as_me: failed program was:" >&5
   6501 sed 's/^/| /' conftest.$ac_ext >&5
   6502 
   6503 echo "$as_me:$LINENO: result: int" >&5
   6504 echo "${ECHO_T}int" >&6
   6505 fi
   6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6507    ac_ext=c
   6508 ac_cpp='$CPP $CPPFLAGS'
   6509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6512 
   6513 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
   6514 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
   6515    ac_ext=cc
   6516 ac_cpp='$CXXCPP $CPPFLAGS'
   6517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6520 
   6521    if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
   6522   echo $ECHO_N "(cached) $ECHO_C" >&6
   6523 else
   6524   cat >conftest.$ac_ext <<_ACEOF
   6525 
   6526 	  /* confdefs.h.  */
   6527 _ACEOF
   6528 cat confdefs.h >>conftest.$ac_ext
   6529 cat >>conftest.$ac_ext <<_ACEOF
   6530 /* end confdefs.h.  */
   6531 
   6532 
   6533 #include <stdio.h>
   6534 #ifdef HAVE_STRING_H
   6535 #include <string.h>
   6536 #endif
   6537 #ifdef HAVE_STRINGS_H
   6538 #include <strings.h>
   6539 #endif
   6540 #ifdef HAVE_STDLIB_H
   6541 #include <stdlib.h>
   6542 #endif
   6543 #ifdef HAVE_SYS_TIME_H
   6544 #include <sys/time.h>
   6545 #endif
   6546 #ifdef HAVE_UNISTD_H
   6547 #include <unistd.h>
   6548 #endif
   6549 #ifdef HAVE_MATH_H
   6550 #include <math.h>
   6551 #endif
   6552 
   6553 
   6554 int
   6555 main ()
   6556 {
   6557 
   6558 
   6559 #ifndef gettimeofday
   6560   char *p = (char *) gettimeofday;
   6561 #endif
   6562 
   6563 
   6564   ;
   6565   return 0;
   6566 }
   6567 
   6568 _ACEOF
   6569 rm -f conftest.$ac_objext
   6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6571   (eval $ac_compile) 2>conftest.er1
   6572   ac_status=$?
   6573   grep -v '^ *+' conftest.er1 >conftest.err
   6574   rm -f conftest.er1
   6575   cat conftest.err >&5
   6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6577   (exit $ac_status); } &&
   6578 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6579 			 || test ! -s conftest.err'
   6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6581   (eval $ac_try) 2>&5
   6582   ac_status=$?
   6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6584   (exit $ac_status); }; } &&
   6585 	 { ac_try='test -s conftest.$ac_objext'
   6586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6587   (eval $ac_try) 2>&5
   6588   ac_status=$?
   6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6590   (exit $ac_status); }; }; then
   6591   groff_cv_decl_needed_gettimeofday=no
   6592 else
   6593   echo "$as_me: failed program was:" >&5
   6594 sed 's/^/| /' conftest.$ac_ext >&5
   6595 
   6596 groff_cv_decl_needed_gettimeofday=yes
   6597 fi
   6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6599 fi
   6600 
   6601    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
   6602 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
   6603    if test $groff_cv_decl_needed_gettimeofday = yes; then
   6604 
   6605 cat >>confdefs.h <<\_ACEOF
   6606 #define NEED_DECLARATION_GETTIMEOFDAY 1
   6607 _ACEOF
   6608 
   6609    fi
   6610    ac_ext=c
   6611 ac_cpp='$CPP $CPPFLAGS'
   6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6615 
   6616 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
   6617 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
   6618    ac_ext=cc
   6619 ac_cpp='$CXXCPP $CPPFLAGS'
   6620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6623 
   6624    if test "${groff_cv_decl_needed_hypot+set}" = set; then
   6625   echo $ECHO_N "(cached) $ECHO_C" >&6
   6626 else
   6627   cat >conftest.$ac_ext <<_ACEOF
   6628 
   6629 	  /* confdefs.h.  */
   6630 _ACEOF
   6631 cat confdefs.h >>conftest.$ac_ext
   6632 cat >>conftest.$ac_ext <<_ACEOF
   6633 /* end confdefs.h.  */
   6634 
   6635 
   6636 #include <stdio.h>
   6637 #ifdef HAVE_STRING_H
   6638 #include <string.h>
   6639 #endif
   6640 #ifdef HAVE_STRINGS_H
   6641 #include <strings.h>
   6642 #endif
   6643 #ifdef HAVE_STDLIB_H
   6644 #include <stdlib.h>
   6645 #endif
   6646 #ifdef HAVE_SYS_TIME_H
   6647 #include <sys/time.h>
   6648 #endif
   6649 #ifdef HAVE_UNISTD_H
   6650 #include <unistd.h>
   6651 #endif
   6652 #ifdef HAVE_MATH_H
   6653 #include <math.h>
   6654 #endif
   6655 
   6656 
   6657 int
   6658 main ()
   6659 {
   6660 
   6661 
   6662 #ifndef hypot
   6663   char *p = (char *) hypot;
   6664 #endif
   6665 
   6666 
   6667   ;
   6668   return 0;
   6669 }
   6670 
   6671 _ACEOF
   6672 rm -f conftest.$ac_objext
   6673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6674   (eval $ac_compile) 2>conftest.er1
   6675   ac_status=$?
   6676   grep -v '^ *+' conftest.er1 >conftest.err
   6677   rm -f conftest.er1
   6678   cat conftest.err >&5
   6679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6680   (exit $ac_status); } &&
   6681 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6682 			 || test ! -s conftest.err'
   6683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6684   (eval $ac_try) 2>&5
   6685   ac_status=$?
   6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6687   (exit $ac_status); }; } &&
   6688 	 { ac_try='test -s conftest.$ac_objext'
   6689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6690   (eval $ac_try) 2>&5
   6691   ac_status=$?
   6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6693   (exit $ac_status); }; }; then
   6694   groff_cv_decl_needed_hypot=no
   6695 else
   6696   echo "$as_me: failed program was:" >&5
   6697 sed 's/^/| /' conftest.$ac_ext >&5
   6698 
   6699 groff_cv_decl_needed_hypot=yes
   6700 fi
   6701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6702 fi
   6703 
   6704    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
   6705 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
   6706    if test $groff_cv_decl_needed_hypot = yes; then
   6707 
   6708 cat >>confdefs.h <<\_ACEOF
   6709 #define NEED_DECLARATION_HYPOT 1
   6710 _ACEOF
   6711 
   6712    fi
   6713    ac_ext=c
   6714 ac_cpp='$CPP $CPPFLAGS'
   6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6718 
   6719 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
   6720 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
   6721    ac_ext=cc
   6722 ac_cpp='$CXXCPP $CPPFLAGS'
   6723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6726 
   6727    if test "${groff_cv_decl_needed_popen+set}" = set; then
   6728   echo $ECHO_N "(cached) $ECHO_C" >&6
   6729 else
   6730   cat >conftest.$ac_ext <<_ACEOF
   6731 
   6732 	  /* confdefs.h.  */
   6733 _ACEOF
   6734 cat confdefs.h >>conftest.$ac_ext
   6735 cat >>conftest.$ac_ext <<_ACEOF
   6736 /* end confdefs.h.  */
   6737 
   6738 
   6739 #include <stdio.h>
   6740 #ifdef HAVE_STRING_H
   6741 #include <string.h>
   6742 #endif
   6743 #ifdef HAVE_STRINGS_H
   6744 #include <strings.h>
   6745 #endif
   6746 #ifdef HAVE_STDLIB_H
   6747 #include <stdlib.h>
   6748 #endif
   6749 #ifdef HAVE_SYS_TIME_H
   6750 #include <sys/time.h>
   6751 #endif
   6752 #ifdef HAVE_UNISTD_H
   6753 #include <unistd.h>
   6754 #endif
   6755 #ifdef HAVE_MATH_H
   6756 #include <math.h>
   6757 #endif
   6758 
   6759 
   6760 int
   6761 main ()
   6762 {
   6763 
   6764 
   6765 #ifndef popen
   6766   char *p = (char *) popen;
   6767 #endif
   6768 
   6769 
   6770   ;
   6771   return 0;
   6772 }
   6773 
   6774 _ACEOF
   6775 rm -f conftest.$ac_objext
   6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6777   (eval $ac_compile) 2>conftest.er1
   6778   ac_status=$?
   6779   grep -v '^ *+' conftest.er1 >conftest.err
   6780   rm -f conftest.er1
   6781   cat conftest.err >&5
   6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6783   (exit $ac_status); } &&
   6784 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6785 			 || test ! -s conftest.err'
   6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6787   (eval $ac_try) 2>&5
   6788   ac_status=$?
   6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6790   (exit $ac_status); }; } &&
   6791 	 { ac_try='test -s conftest.$ac_objext'
   6792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6793   (eval $ac_try) 2>&5
   6794   ac_status=$?
   6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6796   (exit $ac_status); }; }; then
   6797   groff_cv_decl_needed_popen=no
   6798 else
   6799   echo "$as_me: failed program was:" >&5
   6800 sed 's/^/| /' conftest.$ac_ext >&5
   6801 
   6802 groff_cv_decl_needed_popen=yes
   6803 fi
   6804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6805 fi
   6806 
   6807    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
   6808 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
   6809    if test $groff_cv_decl_needed_popen = yes; then
   6810 
   6811 cat >>confdefs.h <<\_ACEOF
   6812 #define NEED_DECLARATION_POPEN 1
   6813 _ACEOF
   6814 
   6815    fi
   6816    ac_ext=c
   6817 ac_cpp='$CPP $CPPFLAGS'
   6818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6821 
   6822 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
   6823 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
   6824    ac_ext=cc
   6825 ac_cpp='$CXXCPP $CPPFLAGS'
   6826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6829 
   6830    if test "${groff_cv_decl_needed_pclose+set}" = set; then
   6831   echo $ECHO_N "(cached) $ECHO_C" >&6
   6832 else
   6833   cat >conftest.$ac_ext <<_ACEOF
   6834 
   6835 	  /* confdefs.h.  */
   6836 _ACEOF
   6837 cat confdefs.h >>conftest.$ac_ext
   6838 cat >>conftest.$ac_ext <<_ACEOF
   6839 /* end confdefs.h.  */
   6840 
   6841 
   6842 #include <stdio.h>
   6843 #ifdef HAVE_STRING_H
   6844 #include <string.h>
   6845 #endif
   6846 #ifdef HAVE_STRINGS_H
   6847 #include <strings.h>
   6848 #endif
   6849 #ifdef HAVE_STDLIB_H
   6850 #include <stdlib.h>
   6851 #endif
   6852 #ifdef HAVE_SYS_TIME_H
   6853 #include <sys/time.h>
   6854 #endif
   6855 #ifdef HAVE_UNISTD_H
   6856 #include <unistd.h>
   6857 #endif
   6858 #ifdef HAVE_MATH_H
   6859 #include <math.h>
   6860 #endif
   6861 
   6862 
   6863 int
   6864 main ()
   6865 {
   6866 
   6867 
   6868 #ifndef pclose
   6869   char *p = (char *) pclose;
   6870 #endif
   6871 
   6872 
   6873   ;
   6874   return 0;
   6875 }
   6876 
   6877 _ACEOF
   6878 rm -f conftest.$ac_objext
   6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6880   (eval $ac_compile) 2>conftest.er1
   6881   ac_status=$?
   6882   grep -v '^ *+' conftest.er1 >conftest.err
   6883   rm -f conftest.er1
   6884   cat conftest.err >&5
   6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6886   (exit $ac_status); } &&
   6887 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6888 			 || test ! -s conftest.err'
   6889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6890   (eval $ac_try) 2>&5
   6891   ac_status=$?
   6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6893   (exit $ac_status); }; } &&
   6894 	 { ac_try='test -s conftest.$ac_objext'
   6895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6896   (eval $ac_try) 2>&5
   6897   ac_status=$?
   6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6899   (exit $ac_status); }; }; then
   6900   groff_cv_decl_needed_pclose=no
   6901 else
   6902   echo "$as_me: failed program was:" >&5
   6903 sed 's/^/| /' conftest.$ac_ext >&5
   6904 
   6905 groff_cv_decl_needed_pclose=yes
   6906 fi
   6907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   6908 fi
   6909 
   6910    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
   6911 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
   6912    if test $groff_cv_decl_needed_pclose = yes; then
   6913 
   6914 cat >>confdefs.h <<\_ACEOF
   6915 #define NEED_DECLARATION_PCLOSE 1
   6916 _ACEOF
   6917 
   6918    fi
   6919    ac_ext=c
   6920 ac_cpp='$CPP $CPPFLAGS'
   6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6924 
   6925 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
   6926 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
   6927    ac_ext=cc
   6928 ac_cpp='$CXXCPP $CPPFLAGS'
   6929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   6932 
   6933    if test "${groff_cv_decl_needed_putenv+set}" = set; then
   6934   echo $ECHO_N "(cached) $ECHO_C" >&6
   6935 else
   6936   cat >conftest.$ac_ext <<_ACEOF
   6937 
   6938 	  /* confdefs.h.  */
   6939 _ACEOF
   6940 cat confdefs.h >>conftest.$ac_ext
   6941 cat >>conftest.$ac_ext <<_ACEOF
   6942 /* end confdefs.h.  */
   6943 
   6944 
   6945 #include <stdio.h>
   6946 #ifdef HAVE_STRING_H
   6947 #include <string.h>
   6948 #endif
   6949 #ifdef HAVE_STRINGS_H
   6950 #include <strings.h>
   6951 #endif
   6952 #ifdef HAVE_STDLIB_H
   6953 #include <stdlib.h>
   6954 #endif
   6955 #ifdef HAVE_SYS_TIME_H
   6956 #include <sys/time.h>
   6957 #endif
   6958 #ifdef HAVE_UNISTD_H
   6959 #include <unistd.h>
   6960 #endif
   6961 #ifdef HAVE_MATH_H
   6962 #include <math.h>
   6963 #endif
   6964 
   6965 
   6966 int
   6967 main ()
   6968 {
   6969 
   6970 
   6971 #ifndef putenv
   6972   char *p = (char *) putenv;
   6973 #endif
   6974 
   6975 
   6976   ;
   6977   return 0;
   6978 }
   6979 
   6980 _ACEOF
   6981 rm -f conftest.$ac_objext
   6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   6983   (eval $ac_compile) 2>conftest.er1
   6984   ac_status=$?
   6985   grep -v '^ *+' conftest.er1 >conftest.err
   6986   rm -f conftest.er1
   6987   cat conftest.err >&5
   6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6989   (exit $ac_status); } &&
   6990 	 { ac_try='test -z "$ac_cxx_werror_flag"
   6991 			 || test ! -s conftest.err'
   6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6993   (eval $ac_try) 2>&5
   6994   ac_status=$?
   6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6996   (exit $ac_status); }; } &&
   6997 	 { ac_try='test -s conftest.$ac_objext'
   6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   6999   (eval $ac_try) 2>&5
   7000   ac_status=$?
   7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7002   (exit $ac_status); }; }; then
   7003   groff_cv_decl_needed_putenv=no
   7004 else
   7005   echo "$as_me: failed program was:" >&5
   7006 sed 's/^/| /' conftest.$ac_ext >&5
   7007 
   7008 groff_cv_decl_needed_putenv=yes
   7009 fi
   7010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7011 fi
   7012 
   7013    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
   7014 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
   7015    if test $groff_cv_decl_needed_putenv = yes; then
   7016 
   7017 cat >>confdefs.h <<\_ACEOF
   7018 #define NEED_DECLARATION_PUTENV 1
   7019 _ACEOF
   7020 
   7021    fi
   7022    ac_ext=c
   7023 ac_cpp='$CPP $CPPFLAGS'
   7024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7027 
   7028 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
   7029 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
   7030    ac_ext=cc
   7031 ac_cpp='$CXXCPP $CPPFLAGS'
   7032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7035 
   7036    if test "${groff_cv_decl_needed_rand+set}" = set; then
   7037   echo $ECHO_N "(cached) $ECHO_C" >&6
   7038 else
   7039   cat >conftest.$ac_ext <<_ACEOF
   7040 
   7041 	  /* confdefs.h.  */
   7042 _ACEOF
   7043 cat confdefs.h >>conftest.$ac_ext
   7044 cat >>conftest.$ac_ext <<_ACEOF
   7045 /* end confdefs.h.  */
   7046 
   7047 
   7048 #include <stdio.h>
   7049 #ifdef HAVE_STRING_H
   7050 #include <string.h>
   7051 #endif
   7052 #ifdef HAVE_STRINGS_H
   7053 #include <strings.h>
   7054 #endif
   7055 #ifdef HAVE_STDLIB_H
   7056 #include <stdlib.h>
   7057 #endif
   7058 #ifdef HAVE_SYS_TIME_H
   7059 #include <sys/time.h>
   7060 #endif
   7061 #ifdef HAVE_UNISTD_H
   7062 #include <unistd.h>
   7063 #endif
   7064 #ifdef HAVE_MATH_H
   7065 #include <math.h>
   7066 #endif
   7067 
   7068 
   7069 int
   7070 main ()
   7071 {
   7072 
   7073 
   7074 #ifndef rand
   7075   char *p = (char *) rand;
   7076 #endif
   7077 
   7078 
   7079   ;
   7080   return 0;
   7081 }
   7082 
   7083 _ACEOF
   7084 rm -f conftest.$ac_objext
   7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7086   (eval $ac_compile) 2>conftest.er1
   7087   ac_status=$?
   7088   grep -v '^ *+' conftest.er1 >conftest.err
   7089   rm -f conftest.er1
   7090   cat conftest.err >&5
   7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7092   (exit $ac_status); } &&
   7093 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7094 			 || test ! -s conftest.err'
   7095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7096   (eval $ac_try) 2>&5
   7097   ac_status=$?
   7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7099   (exit $ac_status); }; } &&
   7100 	 { ac_try='test -s conftest.$ac_objext'
   7101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7102   (eval $ac_try) 2>&5
   7103   ac_status=$?
   7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7105   (exit $ac_status); }; }; then
   7106   groff_cv_decl_needed_rand=no
   7107 else
   7108   echo "$as_me: failed program was:" >&5
   7109 sed 's/^/| /' conftest.$ac_ext >&5
   7110 
   7111 groff_cv_decl_needed_rand=yes
   7112 fi
   7113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7114 fi
   7115 
   7116    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
   7117 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
   7118    if test $groff_cv_decl_needed_rand = yes; then
   7119 
   7120 cat >>confdefs.h <<\_ACEOF
   7121 #define NEED_DECLARATION_RAND 1
   7122 _ACEOF
   7123 
   7124    fi
   7125    ac_ext=c
   7126 ac_cpp='$CPP $CPPFLAGS'
   7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7130 
   7131 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
   7132 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
   7133    ac_ext=cc
   7134 ac_cpp='$CXXCPP $CPPFLAGS'
   7135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7138 
   7139    if test "${groff_cv_decl_needed_snprintf+set}" = set; then
   7140   echo $ECHO_N "(cached) $ECHO_C" >&6
   7141 else
   7142   cat >conftest.$ac_ext <<_ACEOF
   7143 
   7144 	  /* confdefs.h.  */
   7145 _ACEOF
   7146 cat confdefs.h >>conftest.$ac_ext
   7147 cat >>conftest.$ac_ext <<_ACEOF
   7148 /* end confdefs.h.  */
   7149 
   7150 
   7151 #include <stdio.h>
   7152 #ifdef HAVE_STRING_H
   7153 #include <string.h>
   7154 #endif
   7155 #ifdef HAVE_STRINGS_H
   7156 #include <strings.h>
   7157 #endif
   7158 #ifdef HAVE_STDLIB_H
   7159 #include <stdlib.h>
   7160 #endif
   7161 #ifdef HAVE_SYS_TIME_H
   7162 #include <sys/time.h>
   7163 #endif
   7164 #ifdef HAVE_UNISTD_H
   7165 #include <unistd.h>
   7166 #endif
   7167 #ifdef HAVE_MATH_H
   7168 #include <math.h>
   7169 #endif
   7170 
   7171 
   7172 int
   7173 main ()
   7174 {
   7175 
   7176 
   7177 #ifndef snprintf
   7178   char *p = (char *) snprintf;
   7179 #endif
   7180 
   7181 
   7182   ;
   7183   return 0;
   7184 }
   7185 
   7186 _ACEOF
   7187 rm -f conftest.$ac_objext
   7188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7189   (eval $ac_compile) 2>conftest.er1
   7190   ac_status=$?
   7191   grep -v '^ *+' conftest.er1 >conftest.err
   7192   rm -f conftest.er1
   7193   cat conftest.err >&5
   7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7195   (exit $ac_status); } &&
   7196 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7197 			 || test ! -s conftest.err'
   7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7199   (eval $ac_try) 2>&5
   7200   ac_status=$?
   7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7202   (exit $ac_status); }; } &&
   7203 	 { ac_try='test -s conftest.$ac_objext'
   7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7205   (eval $ac_try) 2>&5
   7206   ac_status=$?
   7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7208   (exit $ac_status); }; }; then
   7209   groff_cv_decl_needed_snprintf=no
   7210 else
   7211   echo "$as_me: failed program was:" >&5
   7212 sed 's/^/| /' conftest.$ac_ext >&5
   7213 
   7214 groff_cv_decl_needed_snprintf=yes
   7215 fi
   7216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7217 fi
   7218 
   7219    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
   7220 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
   7221    if test $groff_cv_decl_needed_snprintf = yes; then
   7222 
   7223 cat >>confdefs.h <<\_ACEOF
   7224 #define NEED_DECLARATION_SNPRINTF 1
   7225 _ACEOF
   7226 
   7227    fi
   7228    ac_ext=c
   7229 ac_cpp='$CPP $CPPFLAGS'
   7230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7233 
   7234 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
   7235 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
   7236    ac_ext=cc
   7237 ac_cpp='$CXXCPP $CPPFLAGS'
   7238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7241 
   7242    if test "${groff_cv_decl_needed_srand+set}" = set; then
   7243   echo $ECHO_N "(cached) $ECHO_C" >&6
   7244 else
   7245   cat >conftest.$ac_ext <<_ACEOF
   7246 
   7247 	  /* confdefs.h.  */
   7248 _ACEOF
   7249 cat confdefs.h >>conftest.$ac_ext
   7250 cat >>conftest.$ac_ext <<_ACEOF
   7251 /* end confdefs.h.  */
   7252 
   7253 
   7254 #include <stdio.h>
   7255 #ifdef HAVE_STRING_H
   7256 #include <string.h>
   7257 #endif
   7258 #ifdef HAVE_STRINGS_H
   7259 #include <strings.h>
   7260 #endif
   7261 #ifdef HAVE_STDLIB_H
   7262 #include <stdlib.h>
   7263 #endif
   7264 #ifdef HAVE_SYS_TIME_H
   7265 #include <sys/time.h>
   7266 #endif
   7267 #ifdef HAVE_UNISTD_H
   7268 #include <unistd.h>
   7269 #endif
   7270 #ifdef HAVE_MATH_H
   7271 #include <math.h>
   7272 #endif
   7273 
   7274 
   7275 int
   7276 main ()
   7277 {
   7278 
   7279 
   7280 #ifndef srand
   7281   char *p = (char *) srand;
   7282 #endif
   7283 
   7284 
   7285   ;
   7286   return 0;
   7287 }
   7288 
   7289 _ACEOF
   7290 rm -f conftest.$ac_objext
   7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7292   (eval $ac_compile) 2>conftest.er1
   7293   ac_status=$?
   7294   grep -v '^ *+' conftest.er1 >conftest.err
   7295   rm -f conftest.er1
   7296   cat conftest.err >&5
   7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7298   (exit $ac_status); } &&
   7299 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7300 			 || test ! -s conftest.err'
   7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7302   (eval $ac_try) 2>&5
   7303   ac_status=$?
   7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7305   (exit $ac_status); }; } &&
   7306 	 { ac_try='test -s conftest.$ac_objext'
   7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7308   (eval $ac_try) 2>&5
   7309   ac_status=$?
   7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7311   (exit $ac_status); }; }; then
   7312   groff_cv_decl_needed_srand=no
   7313 else
   7314   echo "$as_me: failed program was:" >&5
   7315 sed 's/^/| /' conftest.$ac_ext >&5
   7316 
   7317 groff_cv_decl_needed_srand=yes
   7318 fi
   7319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7320 fi
   7321 
   7322    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
   7323 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
   7324    if test $groff_cv_decl_needed_srand = yes; then
   7325 
   7326 cat >>confdefs.h <<\_ACEOF
   7327 #define NEED_DECLARATION_SRAND 1
   7328 _ACEOF
   7329 
   7330    fi
   7331    ac_ext=c
   7332 ac_cpp='$CPP $CPPFLAGS'
   7333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7336 
   7337 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
   7338 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
   7339    ac_ext=cc
   7340 ac_cpp='$CXXCPP $CPPFLAGS'
   7341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7344 
   7345    if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
   7346   echo $ECHO_N "(cached) $ECHO_C" >&6
   7347 else
   7348   cat >conftest.$ac_ext <<_ACEOF
   7349 
   7350 	  /* confdefs.h.  */
   7351 _ACEOF
   7352 cat confdefs.h >>conftest.$ac_ext
   7353 cat >>conftest.$ac_ext <<_ACEOF
   7354 /* end confdefs.h.  */
   7355 
   7356 
   7357 #include <stdio.h>
   7358 #ifdef HAVE_STRING_H
   7359 #include <string.h>
   7360 #endif
   7361 #ifdef HAVE_STRINGS_H
   7362 #include <strings.h>
   7363 #endif
   7364 #ifdef HAVE_STDLIB_H
   7365 #include <stdlib.h>
   7366 #endif
   7367 #ifdef HAVE_SYS_TIME_H
   7368 #include <sys/time.h>
   7369 #endif
   7370 #ifdef HAVE_UNISTD_H
   7371 #include <unistd.h>
   7372 #endif
   7373 #ifdef HAVE_MATH_H
   7374 #include <math.h>
   7375 #endif
   7376 
   7377 
   7378 int
   7379 main ()
   7380 {
   7381 
   7382 
   7383 #ifndef strcasecmp
   7384   char *p = (char *) strcasecmp;
   7385 #endif
   7386 
   7387 
   7388   ;
   7389   return 0;
   7390 }
   7391 
   7392 _ACEOF
   7393 rm -f conftest.$ac_objext
   7394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7395   (eval $ac_compile) 2>conftest.er1
   7396   ac_status=$?
   7397   grep -v '^ *+' conftest.er1 >conftest.err
   7398   rm -f conftest.er1
   7399   cat conftest.err >&5
   7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7401   (exit $ac_status); } &&
   7402 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7403 			 || test ! -s conftest.err'
   7404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7405   (eval $ac_try) 2>&5
   7406   ac_status=$?
   7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7408   (exit $ac_status); }; } &&
   7409 	 { ac_try='test -s conftest.$ac_objext'
   7410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7411   (eval $ac_try) 2>&5
   7412   ac_status=$?
   7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7414   (exit $ac_status); }; }; then
   7415   groff_cv_decl_needed_strcasecmp=no
   7416 else
   7417   echo "$as_me: failed program was:" >&5
   7418 sed 's/^/| /' conftest.$ac_ext >&5
   7419 
   7420 groff_cv_decl_needed_strcasecmp=yes
   7421 fi
   7422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7423 fi
   7424 
   7425    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
   7426 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
   7427    if test $groff_cv_decl_needed_strcasecmp = yes; then
   7428 
   7429 cat >>confdefs.h <<\_ACEOF
   7430 #define NEED_DECLARATION_STRCASECMP 1
   7431 _ACEOF
   7432 
   7433    fi
   7434    ac_ext=c
   7435 ac_cpp='$CPP $CPPFLAGS'
   7436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7439 
   7440 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
   7441 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
   7442    ac_ext=cc
   7443 ac_cpp='$CXXCPP $CPPFLAGS'
   7444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7447 
   7448    if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
   7449   echo $ECHO_N "(cached) $ECHO_C" >&6
   7450 else
   7451   cat >conftest.$ac_ext <<_ACEOF
   7452 
   7453 	  /* confdefs.h.  */
   7454 _ACEOF
   7455 cat confdefs.h >>conftest.$ac_ext
   7456 cat >>conftest.$ac_ext <<_ACEOF
   7457 /* end confdefs.h.  */
   7458 
   7459 
   7460 #include <stdio.h>
   7461 #ifdef HAVE_STRING_H
   7462 #include <string.h>
   7463 #endif
   7464 #ifdef HAVE_STRINGS_H
   7465 #include <strings.h>
   7466 #endif
   7467 #ifdef HAVE_STDLIB_H
   7468 #include <stdlib.h>
   7469 #endif
   7470 #ifdef HAVE_SYS_TIME_H
   7471 #include <sys/time.h>
   7472 #endif
   7473 #ifdef HAVE_UNISTD_H
   7474 #include <unistd.h>
   7475 #endif
   7476 #ifdef HAVE_MATH_H
   7477 #include <math.h>
   7478 #endif
   7479 
   7480 
   7481 int
   7482 main ()
   7483 {
   7484 
   7485 
   7486 #ifndef strncasecmp
   7487   char *p = (char *) strncasecmp;
   7488 #endif
   7489 
   7490 
   7491   ;
   7492   return 0;
   7493 }
   7494 
   7495 _ACEOF
   7496 rm -f conftest.$ac_objext
   7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7498   (eval $ac_compile) 2>conftest.er1
   7499   ac_status=$?
   7500   grep -v '^ *+' conftest.er1 >conftest.err
   7501   rm -f conftest.er1
   7502   cat conftest.err >&5
   7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7504   (exit $ac_status); } &&
   7505 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7506 			 || test ! -s conftest.err'
   7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7508   (eval $ac_try) 2>&5
   7509   ac_status=$?
   7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7511   (exit $ac_status); }; } &&
   7512 	 { ac_try='test -s conftest.$ac_objext'
   7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7514   (eval $ac_try) 2>&5
   7515   ac_status=$?
   7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7517   (exit $ac_status); }; }; then
   7518   groff_cv_decl_needed_strncasecmp=no
   7519 else
   7520   echo "$as_me: failed program was:" >&5
   7521 sed 's/^/| /' conftest.$ac_ext >&5
   7522 
   7523 groff_cv_decl_needed_strncasecmp=yes
   7524 fi
   7525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7526 fi
   7527 
   7528    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
   7529 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
   7530    if test $groff_cv_decl_needed_strncasecmp = yes; then
   7531 
   7532 cat >>confdefs.h <<\_ACEOF
   7533 #define NEED_DECLARATION_STRNCASECMP 1
   7534 _ACEOF
   7535 
   7536    fi
   7537    ac_ext=c
   7538 ac_cpp='$CPP $CPPFLAGS'
   7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7542 
   7543 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
   7544 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
   7545    ac_ext=cc
   7546 ac_cpp='$CXXCPP $CPPFLAGS'
   7547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7550 
   7551    if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
   7552   echo $ECHO_N "(cached) $ECHO_C" >&6
   7553 else
   7554   cat >conftest.$ac_ext <<_ACEOF
   7555 
   7556 	  /* confdefs.h.  */
   7557 _ACEOF
   7558 cat confdefs.h >>conftest.$ac_ext
   7559 cat >>conftest.$ac_ext <<_ACEOF
   7560 /* end confdefs.h.  */
   7561 
   7562 
   7563 #include <stdio.h>
   7564 #ifdef HAVE_STRING_H
   7565 #include <string.h>
   7566 #endif
   7567 #ifdef HAVE_STRINGS_H
   7568 #include <strings.h>
   7569 #endif
   7570 #ifdef HAVE_STDLIB_H
   7571 #include <stdlib.h>
   7572 #endif
   7573 #ifdef HAVE_SYS_TIME_H
   7574 #include <sys/time.h>
   7575 #endif
   7576 #ifdef HAVE_UNISTD_H
   7577 #include <unistd.h>
   7578 #endif
   7579 #ifdef HAVE_MATH_H
   7580 #include <math.h>
   7581 #endif
   7582 
   7583 
   7584 int
   7585 main ()
   7586 {
   7587 
   7588 
   7589 #ifndef vfprintf
   7590   char *p = (char *) vfprintf;
   7591 #endif
   7592 
   7593 
   7594   ;
   7595   return 0;
   7596 }
   7597 
   7598 _ACEOF
   7599 rm -f conftest.$ac_objext
   7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7601   (eval $ac_compile) 2>conftest.er1
   7602   ac_status=$?
   7603   grep -v '^ *+' conftest.er1 >conftest.err
   7604   rm -f conftest.er1
   7605   cat conftest.err >&5
   7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7607   (exit $ac_status); } &&
   7608 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7609 			 || test ! -s conftest.err'
   7610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7611   (eval $ac_try) 2>&5
   7612   ac_status=$?
   7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7614   (exit $ac_status); }; } &&
   7615 	 { ac_try='test -s conftest.$ac_objext'
   7616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7617   (eval $ac_try) 2>&5
   7618   ac_status=$?
   7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7620   (exit $ac_status); }; }; then
   7621   groff_cv_decl_needed_vfprintf=no
   7622 else
   7623   echo "$as_me: failed program was:" >&5
   7624 sed 's/^/| /' conftest.$ac_ext >&5
   7625 
   7626 groff_cv_decl_needed_vfprintf=yes
   7627 fi
   7628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7629 fi
   7630 
   7631    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
   7632 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
   7633    if test $groff_cv_decl_needed_vfprintf = yes; then
   7634 
   7635 cat >>confdefs.h <<\_ACEOF
   7636 #define NEED_DECLARATION_VFPRINTF 1
   7637 _ACEOF
   7638 
   7639    fi
   7640    ac_ext=c
   7641 ac_cpp='$CPP $CPPFLAGS'
   7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7645 
   7646 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
   7647 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
   7648    ac_ext=cc
   7649 ac_cpp='$CXXCPP $CPPFLAGS'
   7650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7653 
   7654    if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
   7655   echo $ECHO_N "(cached) $ECHO_C" >&6
   7656 else
   7657   cat >conftest.$ac_ext <<_ACEOF
   7658 
   7659 	  /* confdefs.h.  */
   7660 _ACEOF
   7661 cat confdefs.h >>conftest.$ac_ext
   7662 cat >>conftest.$ac_ext <<_ACEOF
   7663 /* end confdefs.h.  */
   7664 
   7665 
   7666 #include <stdio.h>
   7667 #ifdef HAVE_STRING_H
   7668 #include <string.h>
   7669 #endif
   7670 #ifdef HAVE_STRINGS_H
   7671 #include <strings.h>
   7672 #endif
   7673 #ifdef HAVE_STDLIB_H
   7674 #include <stdlib.h>
   7675 #endif
   7676 #ifdef HAVE_SYS_TIME_H
   7677 #include <sys/time.h>
   7678 #endif
   7679 #ifdef HAVE_UNISTD_H
   7680 #include <unistd.h>
   7681 #endif
   7682 #ifdef HAVE_MATH_H
   7683 #include <math.h>
   7684 #endif
   7685 
   7686 
   7687 int
   7688 main ()
   7689 {
   7690 
   7691 
   7692 #ifndef vsnprintf
   7693   char *p = (char *) vsnprintf;
   7694 #endif
   7695 
   7696 
   7697   ;
   7698   return 0;
   7699 }
   7700 
   7701 _ACEOF
   7702 rm -f conftest.$ac_objext
   7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7704   (eval $ac_compile) 2>conftest.er1
   7705   ac_status=$?
   7706   grep -v '^ *+' conftest.er1 >conftest.err
   7707   rm -f conftest.er1
   7708   cat conftest.err >&5
   7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7710   (exit $ac_status); } &&
   7711 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7712 			 || test ! -s conftest.err'
   7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7714   (eval $ac_try) 2>&5
   7715   ac_status=$?
   7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7717   (exit $ac_status); }; } &&
   7718 	 { ac_try='test -s conftest.$ac_objext'
   7719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7720   (eval $ac_try) 2>&5
   7721   ac_status=$?
   7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7723   (exit $ac_status); }; }; then
   7724   groff_cv_decl_needed_vsnprintf=no
   7725 else
   7726   echo "$as_me: failed program was:" >&5
   7727 sed 's/^/| /' conftest.$ac_ext >&5
   7728 
   7729 groff_cv_decl_needed_vsnprintf=yes
   7730 fi
   7731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7732 fi
   7733 
   7734    echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
   7735 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
   7736    if test $groff_cv_decl_needed_vsnprintf = yes; then
   7737 
   7738 cat >>confdefs.h <<\_ACEOF
   7739 #define NEED_DECLARATION_VSNPRINTF 1
   7740 _ACEOF
   7741 
   7742    fi
   7743    ac_ext=c
   7744 ac_cpp='$CPP $CPPFLAGS'
   7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7748 
   7749 ac_ext=cc
   7750 ac_cpp='$CXXCPP $CPPFLAGS'
   7751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7754 
   7755    echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
   7756 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
   7757    cat >conftest.$ac_ext <<_ACEOF
   7758 
   7759        /* confdefs.h.  */
   7760 _ACEOF
   7761 cat confdefs.h >>conftest.$ac_ext
   7762 cat >>conftest.$ac_ext <<_ACEOF
   7763 /* end confdefs.h.  */
   7764 
   7765 
   7766 #include <errno.h>
   7767 #include <stdio.h>
   7768 #include <stdlib.h>
   7769 
   7770 
   7771 int
   7772 main ()
   7773 {
   7774 
   7775 
   7776 int k;
   7777 k = sys_nerr;
   7778 
   7779 
   7780   ;
   7781   return 0;
   7782 }
   7783 
   7784 _ACEOF
   7785 rm -f conftest.$ac_objext
   7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7787   (eval $ac_compile) 2>conftest.er1
   7788   ac_status=$?
   7789   grep -v '^ *+' conftest.er1 >conftest.err
   7790   rm -f conftest.er1
   7791   cat conftest.err >&5
   7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7793   (exit $ac_status); } &&
   7794 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7795 			 || test ! -s conftest.err'
   7796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7797   (eval $ac_try) 2>&5
   7798   ac_status=$?
   7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7800   (exit $ac_status); }; } &&
   7801 	 { ac_try='test -s conftest.$ac_objext'
   7802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7803   (eval $ac_try) 2>&5
   7804   ac_status=$?
   7805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7806   (exit $ac_status); }; }; then
   7807   echo "$as_me:$LINENO: result: yes" >&5
   7808 echo "${ECHO_T}yes" >&6
   7809 
   7810 cat >>confdefs.h <<\_ACEOF
   7811 #define HAVE_SYS_NERR 1
   7812 _ACEOF
   7813 
   7814 else
   7815   echo "$as_me: failed program was:" >&5
   7816 sed 's/^/| /' conftest.$ac_ext >&5
   7817 
   7818 echo "$as_me:$LINENO: result: no" >&5
   7819 echo "${ECHO_T}no" >&6
   7820 fi
   7821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7822    ac_ext=c
   7823 ac_cpp='$CPP $CPPFLAGS'
   7824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7827 
   7828 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
   7829 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
   7830    cat >conftest.$ac_ext <<_ACEOF
   7831 
   7832        /* confdefs.h.  */
   7833 _ACEOF
   7834 cat confdefs.h >>conftest.$ac_ext
   7835 cat >>conftest.$ac_ext <<_ACEOF
   7836 /* end confdefs.h.  */
   7837 
   7838 
   7839 #include <errno.h>
   7840 #include <stdio.h>
   7841 #include <stdlib.h>
   7842 
   7843 
   7844 int
   7845 main ()
   7846 {
   7847 
   7848 
   7849 int k;
   7850 k = (int)sys_errlist[0];
   7851 
   7852 
   7853   ;
   7854   return 0;
   7855 }
   7856 
   7857 _ACEOF
   7858 rm -f conftest.$ac_objext
   7859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7860   (eval $ac_compile) 2>conftest.er1
   7861   ac_status=$?
   7862   grep -v '^ *+' conftest.er1 >conftest.err
   7863   rm -f conftest.er1
   7864   cat conftest.err >&5
   7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7866   (exit $ac_status); } &&
   7867 	 { ac_try='test -z "$ac_c_werror_flag"
   7868 			 || test ! -s conftest.err'
   7869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7870   (eval $ac_try) 2>&5
   7871   ac_status=$?
   7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7873   (exit $ac_status); }; } &&
   7874 	 { ac_try='test -s conftest.$ac_objext'
   7875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7876   (eval $ac_try) 2>&5
   7877   ac_status=$?
   7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7879   (exit $ac_status); }; }; then
   7880   echo "$as_me:$LINENO: result: yes" >&5
   7881 echo "${ECHO_T}yes" >&6
   7882 
   7883 cat >>confdefs.h <<\_ACEOF
   7884 #define HAVE_SYS_ERRLIST 1
   7885 _ACEOF
   7886 
   7887 else
   7888   echo "$as_me: failed program was:" >&5
   7889 sed 's/^/| /' conftest.$ac_ext >&5
   7890 
   7891 echo "$as_me:$LINENO: result: no" >&5
   7892 echo "${ECHO_T}no" >&6
   7893 fi
   7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7895 ac_ext=cc
   7896 ac_cpp='$CXXCPP $CPPFLAGS'
   7897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7900 
   7901    echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
   7902 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
   7903    cat >conftest.$ac_ext <<_ACEOF
   7904 
   7905        /* confdefs.h.  */
   7906 _ACEOF
   7907 cat confdefs.h >>conftest.$ac_ext
   7908 cat >>conftest.$ac_ext <<_ACEOF
   7909 /* end confdefs.h.  */
   7910 
   7911 
   7912 #include <osfcn.h>
   7913 
   7914 
   7915 int
   7916 main ()
   7917 {
   7918 
   7919 
   7920 read(0, 0, 0);
   7921 open(0, 0);
   7922 
   7923 
   7924   ;
   7925   return 0;
   7926 }
   7927 
   7928 _ACEOF
   7929 rm -f conftest.$ac_objext
   7930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7931   (eval $ac_compile) 2>conftest.er1
   7932   ac_status=$?
   7933   grep -v '^ *+' conftest.er1 >conftest.err
   7934   rm -f conftest.er1
   7935   cat conftest.err >&5
   7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7937   (exit $ac_status); } &&
   7938 	 { ac_try='test -z "$ac_cxx_werror_flag"
   7939 			 || test ! -s conftest.err'
   7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7941   (eval $ac_try) 2>&5
   7942   ac_status=$?
   7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7944   (exit $ac_status); }; } &&
   7945 	 { ac_try='test -s conftest.$ac_objext'
   7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   7947   (eval $ac_try) 2>&5
   7948   ac_status=$?
   7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7950   (exit $ac_status); }; }; then
   7951   echo "$as_me:$LINENO: result: yes" >&5
   7952 echo "${ECHO_T}yes" >&6
   7953 
   7954 cat >>confdefs.h <<\_ACEOF
   7955 #define HAVE_CC_OSFCN_H 1
   7956 _ACEOF
   7957 
   7958 else
   7959   echo "$as_me: failed program was:" >&5
   7960 sed 's/^/| /' conftest.$ac_ext >&5
   7961 
   7962 echo "$as_me:$LINENO: result: no" >&5
   7963 echo "${ECHO_T}no" >&6
   7964 fi
   7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   7966    ac_ext=c
   7967 ac_cpp='$CPP $CPPFLAGS'
   7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7971 
   7972 ac_ext=cc
   7973 ac_cpp='$CXXCPP $CPPFLAGS'
   7974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7977 
   7978    echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
   7979 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
   7980    cat >conftest.$ac_ext <<_ACEOF
   7981 
   7982        /* confdefs.h.  */
   7983 _ACEOF
   7984 cat confdefs.h >>conftest.$ac_ext
   7985 cat >>conftest.$ac_ext <<_ACEOF
   7986 /* end confdefs.h.  */
   7987 
   7988 
   7989 #include <limits.h>
   7990 
   7991 
   7992 int
   7993 main ()
   7994 {
   7995 
   7996 
   7997 int x = INT_MIN;
   7998 int y = INT_MAX;
   7999 int z = UCHAR_MAX;
   8000 
   8001 
   8002   ;
   8003   return 0;
   8004 }
   8005 
   8006 _ACEOF
   8007 rm -f conftest.$ac_objext
   8008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8009   (eval $ac_compile) 2>conftest.er1
   8010   ac_status=$?
   8011   grep -v '^ *+' conftest.er1 >conftest.err
   8012   rm -f conftest.er1
   8013   cat conftest.err >&5
   8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8015   (exit $ac_status); } &&
   8016 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8017 			 || test ! -s conftest.err'
   8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8019   (eval $ac_try) 2>&5
   8020   ac_status=$?
   8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8022   (exit $ac_status); }; } &&
   8023 	 { ac_try='test -s conftest.$ac_objext'
   8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8025   (eval $ac_try) 2>&5
   8026   ac_status=$?
   8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8028   (exit $ac_status); }; }; then
   8029   echo "$as_me:$LINENO: result: yes" >&5
   8030 echo "${ECHO_T}yes" >&6
   8031 
   8032 cat >>confdefs.h <<\_ACEOF
   8033 #define HAVE_CC_LIMITS_H 1
   8034 _ACEOF
   8035 
   8036 else
   8037   echo "$as_me: failed program was:" >&5
   8038 sed 's/^/| /' conftest.$ac_ext >&5
   8039 
   8040 echo "$as_me:$LINENO: result: no" >&5
   8041 echo "${ECHO_T}no" >&6
   8042 fi
   8043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8044    ac_ext=c
   8045 ac_cpp='$CPP $CPPFLAGS'
   8046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8049 
   8050 ac_ext=cc
   8051 ac_cpp='$CXXCPP $CPPFLAGS'
   8052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8055 
   8056    echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
   8057 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
   8058    cat >conftest.$ac_ext <<_ACEOF
   8059 
   8060        /* confdefs.h.  */
   8061 _ACEOF
   8062 cat confdefs.h >>conftest.$ac_ext
   8063 cat >>conftest.$ac_ext <<_ACEOF
   8064 /* end confdefs.h.  */
   8065 
   8066 
   8067 #include <sys/types.h>
   8068 #include <inttypes.h>
   8069 
   8070 
   8071 int
   8072 main ()
   8073 {
   8074 
   8075 
   8076 uintmax_t i = (uintmax_t)-1;
   8077 
   8078 
   8079   ;
   8080   return 0;
   8081 }
   8082 
   8083 _ACEOF
   8084 rm -f conftest.$ac_objext
   8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8086   (eval $ac_compile) 2>conftest.er1
   8087   ac_status=$?
   8088   grep -v '^ *+' conftest.er1 >conftest.err
   8089   rm -f conftest.er1
   8090   cat conftest.err >&5
   8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8092   (exit $ac_status); } &&
   8093 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8094 			 || test ! -s conftest.err'
   8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8096   (eval $ac_try) 2>&5
   8097   ac_status=$?
   8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8099   (exit $ac_status); }; } &&
   8100 	 { ac_try='test -s conftest.$ac_objext'
   8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8102   (eval $ac_try) 2>&5
   8103   ac_status=$?
   8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8105   (exit $ac_status); }; }; then
   8106   groff_cv_header_inttypes_h=yes
   8107 
   8108 cat >>confdefs.h <<\_ACEOF
   8109 #define HAVE_CC_INTTYPES_H 1
   8110 _ACEOF
   8111 
   8112 else
   8113   echo "$as_me: failed program was:" >&5
   8114 sed 's/^/| /' conftest.$ac_ext >&5
   8115 
   8116 groff_cv_header_inttypes_h=no
   8117 fi
   8118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8119    echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
   8120 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
   8121    ac_ext=c
   8122 ac_cpp='$CPP $CPPFLAGS'
   8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8126 
   8127 
   8128 # checks for typedefs
   8129 ac_ext=cc
   8130 ac_cpp='$CXXCPP $CPPFLAGS'
   8131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8134 
   8135    echo "$as_me:$LINENO: checking for unsigned long long" >&5
   8136 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
   8137    cat >conftest.$ac_ext <<_ACEOF
   8138 
   8139        /* confdefs.h.  */
   8140 _ACEOF
   8141 cat confdefs.h >>conftest.$ac_ext
   8142 cat >>conftest.$ac_ext <<_ACEOF
   8143 /* end confdefs.h.  */
   8144 
   8145 
   8146 unsigned long long ull = 1;
   8147 int i = 63;
   8148 unsigned long long ullmax = (unsigned long long)-1;
   8149 
   8150 
   8151 int
   8152 main ()
   8153 {
   8154 
   8155 
   8156 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
   8157 
   8158 
   8159   ;
   8160   return 0;
   8161 }
   8162 
   8163 _ACEOF
   8164 rm -f conftest.$ac_objext conftest$ac_exeext
   8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8166   (eval $ac_link) 2>conftest.er1
   8167   ac_status=$?
   8168   grep -v '^ *+' conftest.er1 >conftest.err
   8169   rm -f conftest.er1
   8170   cat conftest.err >&5
   8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8172   (exit $ac_status); } &&
   8173 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8174 			 || test ! -s conftest.err'
   8175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8176   (eval $ac_try) 2>&5
   8177   ac_status=$?
   8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8179   (exit $ac_status); }; } &&
   8180 	 { ac_try='test -s conftest$ac_exeext'
   8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8182   (eval $ac_try) 2>&5
   8183   ac_status=$?
   8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8185   (exit $ac_status); }; }; then
   8186   groff_cv_type_unsigned_long_long=yes
   8187 else
   8188   echo "$as_me: failed program was:" >&5
   8189 sed 's/^/| /' conftest.$ac_ext >&5
   8190 
   8191 groff_cv_type_unsigned_long_long=no
   8192 fi
   8193 rm -f conftest.err conftest.$ac_objext \
   8194       conftest$ac_exeext conftest.$ac_ext
   8195    echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
   8196 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
   8197    ac_ext=c
   8198 ac_cpp='$CPP $CPPFLAGS'
   8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8202 
   8203 
   8204    if test $groff_cv_header_inttypes_h = no; then
   8205 
   8206      test $groff_cv_type_unsigned_long_long = yes \
   8207 	  && ac_type='unsigned long long' \
   8208 	  || ac_type='unsigned long'
   8209 
   8210 cat >>confdefs.h <<_ACEOF
   8211 #define uintmax_t $ac_type
   8212 _ACEOF
   8213 
   8214    fi
   8215 ac_ext=cc
   8216 ac_cpp='$CXXCPP $CPPFLAGS'
   8217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   8220 
   8221    echo "$as_me:$LINENO: checking for declaration of time_t" >&5
   8222 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
   8223    cat >conftest.$ac_ext <<_ACEOF
   8224 
   8225        /* confdefs.h.  */
   8226 _ACEOF
   8227 cat confdefs.h >>conftest.$ac_ext
   8228 cat >>conftest.$ac_ext <<_ACEOF
   8229 /* end confdefs.h.  */
   8230 
   8231 
   8232 #include <time.h>
   8233 
   8234 
   8235 int
   8236 main ()
   8237 {
   8238 
   8239 
   8240 time_t t = time(0);
   8241 struct tm *p = localtime(&t);
   8242 
   8243 
   8244   ;
   8245   return 0;
   8246 }
   8247 
   8248 _ACEOF
   8249 rm -f conftest.$ac_objext
   8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8251   (eval $ac_compile) 2>conftest.er1
   8252   ac_status=$?
   8253   grep -v '^ *+' conftest.er1 >conftest.err
   8254   rm -f conftest.er1
   8255   cat conftest.err >&5
   8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8257   (exit $ac_status); } &&
   8258 	 { ac_try='test -z "$ac_cxx_werror_flag"
   8259 			 || test ! -s conftest.err'
   8260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8261   (eval $ac_try) 2>&5
   8262   ac_status=$?
   8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8264   (exit $ac_status); }; } &&
   8265 	 { ac_try='test -s conftest.$ac_objext'
   8266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8267   (eval $ac_try) 2>&5
   8268   ac_status=$?
   8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8270   (exit $ac_status); }; }; then
   8271   echo "$as_me:$LINENO: result: yes" >&5
   8272 echo "${ECHO_T}yes" >&6
   8273 else
   8274   echo "$as_me: failed program was:" >&5
   8275 sed 's/^/| /' conftest.$ac_ext >&5
   8276 
   8277 echo "$as_me:$LINENO: result: no" >&5
   8278 echo "${ECHO_T}no" >&6
   8279 
   8280 cat >>confdefs.h <<\_ACEOF
   8281 #define LONG_FOR_TIME_T 1
   8282 _ACEOF
   8283 
   8284 fi
   8285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8286    ac_ext=c
   8287 ac_cpp='$CPP $CPPFLAGS'
   8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8291 
   8292 echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
   8293 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6
   8294    for groff_declaration in \
   8295      'extern "C" void (*signal (int, void (*)(int)))(int);' \
   8296      'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
   8297      'void (*signal ()) ();'
   8298    do
   8299      cat >conftest.$ac_ext <<_ACEOF
   8300 
   8301 	 /* confdefs.h.  */
   8302 _ACEOF
   8303 cat confdefs.h >>conftest.$ac_ext
   8304 cat >>conftest.$ac_ext <<_ACEOF
   8305 /* end confdefs.h.  */
   8306 
   8307 
   8308 #include <sys/types.h>
   8309 #include <signal.h>
   8310 #ifdef signal
   8311 # undef signal
   8312 #endif
   8313 $groff_declaration
   8314 
   8315 
   8316 int
   8317 main ()
   8318 {
   8319 
   8320 
   8321 int i;
   8322 
   8323 
   8324   ;
   8325   return 0;
   8326 }
   8327 
   8328 _ACEOF
   8329 rm -f conftest.$ac_objext
   8330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8331   (eval $ac_compile) 2>conftest.er1
   8332   ac_status=$?
   8333   grep -v '^ *+' conftest.er1 >conftest.err
   8334   rm -f conftest.er1
   8335   cat conftest.err >&5
   8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8337   (exit $ac_status); } &&
   8338 	 { ac_try='test -z "$ac_c_werror_flag"
   8339 			 || test ! -s conftest.err'
   8340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8341   (eval $ac_try) 2>&5
   8342   ac_status=$?
   8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8344   (exit $ac_status); }; } &&
   8345 	 { ac_try='test -s conftest.$ac_objext'
   8346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8347   (eval $ac_try) 2>&5
   8348   ac_status=$?
   8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8350   (exit $ac_status); }; }; then
   8351   break
   8352 else
   8353   echo "$as_me: failed program was:" >&5
   8354 sed 's/^/| /' conftest.$ac_ext >&5
   8355 
   8356 continue
   8357 fi
   8358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8359    done
   8360 
   8361    if test -n "$groff_declaration"; then
   8362      echo "$as_me:$LINENO: result: void" >&5
   8363 echo "${ECHO_T}void" >&6
   8364 
   8365 cat >>confdefs.h <<\_ACEOF
   8366 #define RETSIGTYPE void
   8367 _ACEOF
   8368 
   8369    else
   8370      echo "$as_me:$LINENO: result: int" >&5
   8371 echo "${ECHO_T}int" >&6
   8372 
   8373 cat >>confdefs.h <<\_ACEOF
   8374 #define RETSIGTYPE int
   8375 _ACEOF
   8376 
   8377    fi
   8378 echo "$as_me:$LINENO: checking struct exception" >&5
   8379 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
   8380    cat >conftest.$ac_ext <<_ACEOF
   8381 
   8382        /* confdefs.h.  */
   8383 _ACEOF
   8384 cat confdefs.h >>conftest.$ac_ext
   8385 cat >>conftest.$ac_ext <<_ACEOF
   8386 /* end confdefs.h.  */
   8387 
   8388 
   8389 #include <math.h>
   8390 
   8391 
   8392 int
   8393 main ()
   8394 {
   8395 
   8396 
   8397 struct exception e;
   8398 
   8399 
   8400   ;
   8401   return 0;
   8402 }
   8403 
   8404 _ACEOF
   8405 rm -f conftest.$ac_objext
   8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8407   (eval $ac_compile) 2>conftest.er1
   8408   ac_status=$?
   8409   grep -v '^ *+' conftest.er1 >conftest.err
   8410   rm -f conftest.er1
   8411   cat conftest.err >&5
   8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8413   (exit $ac_status); } &&
   8414 	 { ac_try='test -z "$ac_c_werror_flag"
   8415 			 || test ! -s conftest.err'
   8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8417   (eval $ac_try) 2>&5
   8418   ac_status=$?
   8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8420   (exit $ac_status); }; } &&
   8421 	 { ac_try='test -s conftest.$ac_objext'
   8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8423   (eval $ac_try) 2>&5
   8424   ac_status=$?
   8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8426   (exit $ac_status); }; }; then
   8427   echo "$as_me:$LINENO: result: yes" >&5
   8428 echo "${ECHO_T}yes" >&6
   8429 
   8430 cat >>confdefs.h <<\_ACEOF
   8431 #define HAVE_STRUCT_EXCEPTION 1
   8432 _ACEOF
   8433 
   8434 else
   8435   echo "$as_me: failed program was:" >&5
   8436 sed 's/^/| /' conftest.$ac_ext >&5
   8437 
   8438 echo "$as_me:$LINENO: result: no" >&5
   8439 echo "${ECHO_T}no" >&6
   8440 fi
   8441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8442 
   8443 # checks for libraries
   8444 echo "$as_me:$LINENO: checking for main in -lc" >&5
   8445 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
   8446 if test "${ac_cv_lib_c_main+set}" = set; then
   8447   echo $ECHO_N "(cached) $ECHO_C" >&6
   8448 else
   8449   ac_check_lib_save_LIBS=$LIBS
   8450 LIBS="-lc  $LIBS"
   8451 cat >conftest.$ac_ext <<_ACEOF
   8452 /* confdefs.h.  */
   8453 _ACEOF
   8454 cat confdefs.h >>conftest.$ac_ext
   8455 cat >>conftest.$ac_ext <<_ACEOF
   8456 /* end confdefs.h.  */
   8457 
   8458 
   8459 int
   8460 main ()
   8461 {
   8462 main ();
   8463   ;
   8464   return 0;
   8465 }
   8466 _ACEOF
   8467 rm -f conftest.$ac_objext conftest$ac_exeext
   8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8469   (eval $ac_link) 2>conftest.er1
   8470   ac_status=$?
   8471   grep -v '^ *+' conftest.er1 >conftest.err
   8472   rm -f conftest.er1
   8473   cat conftest.err >&5
   8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8475   (exit $ac_status); } &&
   8476 	 { ac_try='test -z "$ac_c_werror_flag"
   8477 			 || test ! -s conftest.err'
   8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8479   (eval $ac_try) 2>&5
   8480   ac_status=$?
   8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8482   (exit $ac_status); }; } &&
   8483 	 { ac_try='test -s conftest$ac_exeext'
   8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8485   (eval $ac_try) 2>&5
   8486   ac_status=$?
   8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8488   (exit $ac_status); }; }; then
   8489   ac_cv_lib_c_main=yes
   8490 else
   8491   echo "$as_me: failed program was:" >&5
   8492 sed 's/^/| /' conftest.$ac_ext >&5
   8493 
   8494 ac_cv_lib_c_main=no
   8495 fi
   8496 rm -f conftest.err conftest.$ac_objext \
   8497       conftest$ac_exeext conftest.$ac_ext
   8498 LIBS=$ac_check_lib_save_LIBS
   8499 fi
   8500 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
   8501 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
   8502 if test $ac_cv_lib_c_main = yes; then
   8503   LIBC=-lc
   8504 fi
   8505 
   8506 
   8507 echo "$as_me:$LINENO: checking for sin in -lm" >&5
   8508 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
   8509 if test "${ac_cv_lib_m_sin+set}" = set; then
   8510   echo $ECHO_N "(cached) $ECHO_C" >&6
   8511 else
   8512   ac_check_lib_save_LIBS=$LIBS
   8513 LIBS="-lm  $LIBS"
   8514 cat >conftest.$ac_ext <<_ACEOF
   8515 /* confdefs.h.  */
   8516 _ACEOF
   8517 cat confdefs.h >>conftest.$ac_ext
   8518 cat >>conftest.$ac_ext <<_ACEOF
   8519 /* end confdefs.h.  */
   8520 
   8521 /* Override any gcc2 internal prototype to avoid an error.  */
   8522 #ifdef __cplusplus
   8523 extern "C"
   8524 #endif
   8525 /* We use char because int might match the return type of a gcc2
   8526    builtin and then its argument prototype would still apply.  */
   8527 char sin ();
   8528 int
   8529 main ()
   8530 {
   8531 sin ();
   8532   ;
   8533   return 0;
   8534 }
   8535 _ACEOF
   8536 rm -f conftest.$ac_objext conftest$ac_exeext
   8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8538   (eval $ac_link) 2>conftest.er1
   8539   ac_status=$?
   8540   grep -v '^ *+' conftest.er1 >conftest.err
   8541   rm -f conftest.er1
   8542   cat conftest.err >&5
   8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8544   (exit $ac_status); } &&
   8545 	 { ac_try='test -z "$ac_c_werror_flag"
   8546 			 || test ! -s conftest.err'
   8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8548   (eval $ac_try) 2>&5
   8549   ac_status=$?
   8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8551   (exit $ac_status); }; } &&
   8552 	 { ac_try='test -s conftest$ac_exeext'
   8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8554   (eval $ac_try) 2>&5
   8555   ac_status=$?
   8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8557   (exit $ac_status); }; }; then
   8558   ac_cv_lib_m_sin=yes
   8559 else
   8560   echo "$as_me: failed program was:" >&5
   8561 sed 's/^/| /' conftest.$ac_ext >&5
   8562 
   8563 ac_cv_lib_m_sin=no
   8564 fi
   8565 rm -f conftest.err conftest.$ac_objext \
   8566       conftest$ac_exeext conftest.$ac_ext
   8567 LIBS=$ac_check_lib_save_LIBS
   8568 fi
   8569 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
   8570 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
   8571 if test $ac_cv_lib_m_sin = yes; then
   8572   LIBM=-lm
   8573 fi
   8574 
   8575 
   8576 
   8577 # checks for functions
   8578 
   8579 
   8580 for ac_header in stdlib.h unistd.h
   8581 do
   8582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8584   echo "$as_me:$LINENO: checking for $ac_header" >&5
   8585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8587   echo $ECHO_N "(cached) $ECHO_C" >&6
   8588 fi
   8589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8591 else
   8592   # Is the header compilable?
   8593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
   8594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
   8595 cat >conftest.$ac_ext <<_ACEOF
   8596 /* confdefs.h.  */
   8597 _ACEOF
   8598 cat confdefs.h >>conftest.$ac_ext
   8599 cat >>conftest.$ac_ext <<_ACEOF
   8600 /* end confdefs.h.  */
   8601 $ac_includes_default
   8602 #include <$ac_header>
   8603 _ACEOF
   8604 rm -f conftest.$ac_objext
   8605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   8606   (eval $ac_compile) 2>conftest.er1
   8607   ac_status=$?
   8608   grep -v '^ *+' conftest.er1 >conftest.err
   8609   rm -f conftest.er1
   8610   cat conftest.err >&5
   8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8612   (exit $ac_status); } &&
   8613 	 { ac_try='test -z "$ac_c_werror_flag"
   8614 			 || test ! -s conftest.err'
   8615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8616   (eval $ac_try) 2>&5
   8617   ac_status=$?
   8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8619   (exit $ac_status); }; } &&
   8620 	 { ac_try='test -s conftest.$ac_objext'
   8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8622   (eval $ac_try) 2>&5
   8623   ac_status=$?
   8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8625   (exit $ac_status); }; }; then
   8626   ac_header_compiler=yes
   8627 else
   8628   echo "$as_me: failed program was:" >&5
   8629 sed 's/^/| /' conftest.$ac_ext >&5
   8630 
   8631 ac_header_compiler=no
   8632 fi
   8633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   8634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   8635 echo "${ECHO_T}$ac_header_compiler" >&6
   8636 
   8637 # Is the header present?
   8638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
   8639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
   8640 cat >conftest.$ac_ext <<_ACEOF
   8641 /* confdefs.h.  */
   8642 _ACEOF
   8643 cat confdefs.h >>conftest.$ac_ext
   8644 cat >>conftest.$ac_ext <<_ACEOF
   8645 /* end confdefs.h.  */
   8646 #include <$ac_header>
   8647 _ACEOF
   8648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
   8649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   8650   ac_status=$?
   8651   grep -v '^ *+' conftest.er1 >conftest.err
   8652   rm -f conftest.er1
   8653   cat conftest.err >&5
   8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8655   (exit $ac_status); } >/dev/null; then
   8656   if test -s conftest.err; then
   8657     ac_cpp_err=$ac_c_preproc_warn_flag
   8658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
   8659   else
   8660     ac_cpp_err=
   8661   fi
   8662 else
   8663   ac_cpp_err=yes
   8664 fi
   8665 if test -z "$ac_cpp_err"; then
   8666   ac_header_preproc=yes
   8667 else
   8668   echo "$as_me: failed program was:" >&5
   8669 sed 's/^/| /' conftest.$ac_ext >&5
   8670 
   8671   ac_header_preproc=no
   8672 fi
   8673 rm -f conftest.err conftest.$ac_ext
   8674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   8675 echo "${ECHO_T}$ac_header_preproc" >&6
   8676 
   8677 # So?  What about this header?
   8678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   8679   yes:no: )
   8680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   8681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   8682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   8683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   8684     ac_header_preproc=yes
   8685     ;;
   8686   no:yes:* )
   8687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   8688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   8689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   8690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   8691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   8692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   8693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   8694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   8695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   8696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   8697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   8698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   8699     (
   8700       cat <<\_ASBOX
   8701 ## ------------------------------------------ ##
   8702 ## Report this to the AC_PACKAGE_NAME lists.  ##
   8703 ## ------------------------------------------ ##
   8704 _ASBOX
   8705     ) |
   8706       sed "s/^/$as_me: WARNING:     /" >&2
   8707     ;;
   8708 esac
   8709 echo "$as_me:$LINENO: checking for $ac_header" >&5
   8710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
   8711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
   8712   echo $ECHO_N "(cached) $ECHO_C" >&6
   8713 else
   8714   eval "$as_ac_Header=\$ac_header_preproc"
   8715 fi
   8716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
   8717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
   8718 
   8719 fi
   8720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   8721   cat >>confdefs.h <<_ACEOF
   8722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8723 _ACEOF
   8724 
   8725 fi
   8726 
   8727 done
   8728 
   8729 
   8730 for ac_func in getpagesize
   8731 do
   8732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   8733 echo "$as_me:$LINENO: checking for $ac_func" >&5
   8734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   8735 if eval "test \"\${$as_ac_var+set}\" = set"; then
   8736   echo $ECHO_N "(cached) $ECHO_C" >&6
   8737 else
   8738   cat >conftest.$ac_ext <<_ACEOF
   8739 /* confdefs.h.  */
   8740 _ACEOF
   8741 cat confdefs.h >>conftest.$ac_ext
   8742 cat >>conftest.$ac_ext <<_ACEOF
   8743 /* end confdefs.h.  */
   8744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   8745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8746 #define $ac_func innocuous_$ac_func
   8747 
   8748 /* System header to define __stub macros and hopefully few prototypes,
   8749     which can conflict with char $ac_func (); below.
   8750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8751     <limits.h> exists even on freestanding compilers.  */
   8752 
   8753 #ifdef __STDC__
   8754 # include <limits.h>
   8755 #else
   8756 # include <assert.h>
   8757 #endif
   8758 
   8759 #undef $ac_func
   8760 
   8761 /* Override any gcc2 internal prototype to avoid an error.  */
   8762 #ifdef __cplusplus
   8763 extern "C"
   8764 {
   8765 #endif
   8766 /* We use char because int might match the return type of a gcc2
   8767    builtin and then its argument prototype would still apply.  */
   8768 char $ac_func ();
   8769 /* The GNU C library defines this for functions which it implements
   8770     to always fail with ENOSYS.  Some functions are actually named
   8771     something starting with __ and the normal name is an alias.  */
   8772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   8773 choke me
   8774 #else
   8775 char (*f) () = $ac_func;
   8776 #endif
   8777 #ifdef __cplusplus
   8778 }
   8779 #endif
   8780 
   8781 int
   8782 main ()
   8783 {
   8784 return f != $ac_func;
   8785   ;
   8786   return 0;
   8787 }
   8788 _ACEOF
   8789 rm -f conftest.$ac_objext conftest$ac_exeext
   8790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8791   (eval $ac_link) 2>conftest.er1
   8792   ac_status=$?
   8793   grep -v '^ *+' conftest.er1 >conftest.err
   8794   rm -f conftest.er1
   8795   cat conftest.err >&5
   8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8797   (exit $ac_status); } &&
   8798 	 { ac_try='test -z "$ac_c_werror_flag"
   8799 			 || test ! -s conftest.err'
   8800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8801   (eval $ac_try) 2>&5
   8802   ac_status=$?
   8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8804   (exit $ac_status); }; } &&
   8805 	 { ac_try='test -s conftest$ac_exeext'
   8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8807   (eval $ac_try) 2>&5
   8808   ac_status=$?
   8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8810   (exit $ac_status); }; }; then
   8811   eval "$as_ac_var=yes"
   8812 else
   8813   echo "$as_me: failed program was:" >&5
   8814 sed 's/^/| /' conftest.$ac_ext >&5
   8815 
   8816 eval "$as_ac_var=no"
   8817 fi
   8818 rm -f conftest.err conftest.$ac_objext \
   8819       conftest$ac_exeext conftest.$ac_ext
   8820 fi
   8821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   8822 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   8823 if test `eval echo '${'$as_ac_var'}'` = yes; then
   8824   cat >>confdefs.h <<_ACEOF
   8825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   8826 _ACEOF
   8827 
   8828 fi
   8829 done
   8830 
   8831 echo "$as_me:$LINENO: checking for working mmap" >&5
   8832 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
   8833 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
   8834   echo $ECHO_N "(cached) $ECHO_C" >&6
   8835 else
   8836   if test "$cross_compiling" = yes; then
   8837   ac_cv_func_mmap_fixed_mapped=no
   8838 else
   8839   cat >conftest.$ac_ext <<_ACEOF
   8840 /* confdefs.h.  */
   8841 _ACEOF
   8842 cat confdefs.h >>conftest.$ac_ext
   8843 cat >>conftest.$ac_ext <<_ACEOF
   8844 /* end confdefs.h.  */
   8845 $ac_includes_default
   8846 /* malloc might have been renamed as rpl_malloc. */
   8847 #undef malloc
   8848 
   8849 /* Thanks to Mike Haertel and Jim Avera for this test.
   8850    Here is a matrix of mmap possibilities:
   8851 	mmap private not fixed
   8852 	mmap private fixed at somewhere currently unmapped
   8853 	mmap private fixed at somewhere already mapped
   8854 	mmap shared not fixed
   8855 	mmap shared fixed at somewhere currently unmapped
   8856 	mmap shared fixed at somewhere already mapped
   8857    For private mappings, we should verify that changes cannot be read()
   8858    back from the file, nor mmap's back from the file at a different
   8859    address.  (There have been systems where private was not correctly
   8860    implemented like the infamous i386 svr4.0, and systems where the
   8861    VM page cache was not coherent with the file system buffer cache
   8862    like early versions of FreeBSD and possibly contemporary NetBSD.)
   8863    For shared mappings, we should conversely verify that changes get
   8864    propagated back to all the places they're supposed to be.
   8865 
   8866    Grep wants private fixed already mapped.
   8867    The main things grep needs to know about mmap are:
   8868    * does it exist and is it safe to write into the mmap'd area
   8869    * how to use it (BSD variants)  */
   8870 
   8871 #include <fcntl.h>
   8872 #include <sys/mman.h>
   8873 
   8874 #if !STDC_HEADERS && !HAVE_STDLIB_H
   8875 char *malloc ();
   8876 #endif
   8877 
   8878 /* This mess was copied from the GNU getpagesize.h.  */
   8879 #if !HAVE_GETPAGESIZE
   8880 /* Assume that all systems that can run configure have sys/param.h.  */
   8881 # if !HAVE_SYS_PARAM_H
   8882 #  define HAVE_SYS_PARAM_H 1
   8883 # endif
   8884 
   8885 # ifdef _SC_PAGESIZE
   8886 #  define getpagesize() sysconf(_SC_PAGESIZE)
   8887 # else /* no _SC_PAGESIZE */
   8888 #  if HAVE_SYS_PARAM_H
   8889 #   include <sys/param.h>
   8890 #   ifdef EXEC_PAGESIZE
   8891 #    define getpagesize() EXEC_PAGESIZE
   8892 #   else /* no EXEC_PAGESIZE */
   8893 #    ifdef NBPG
   8894 #     define getpagesize() NBPG * CLSIZE
   8895 #     ifndef CLSIZE
   8896 #      define CLSIZE 1
   8897 #     endif /* no CLSIZE */
   8898 #    else /* no NBPG */
   8899 #     ifdef NBPC
   8900 #      define getpagesize() NBPC
   8901 #     else /* no NBPC */
   8902 #      ifdef PAGESIZE
   8903 #       define getpagesize() PAGESIZE
   8904 #      endif /* PAGESIZE */
   8905 #     endif /* no NBPC */
   8906 #    endif /* no NBPG */
   8907 #   endif /* no EXEC_PAGESIZE */
   8908 #  else /* no HAVE_SYS_PARAM_H */
   8909 #   define getpagesize() 8192	/* punt totally */
   8910 #  endif /* no HAVE_SYS_PARAM_H */
   8911 # endif /* no _SC_PAGESIZE */
   8912 
   8913 #endif /* no HAVE_GETPAGESIZE */
   8914 
   8915 int
   8916 main ()
   8917 {
   8918   char *data, *data2, *data3;
   8919   int i, pagesize;
   8920   int fd;
   8921 
   8922   pagesize = getpagesize ();
   8923 
   8924   /* First, make a file with some known garbage in it. */
   8925   data = (char *) malloc (pagesize);
   8926   if (!data)
   8927     exit (1);
   8928   for (i = 0; i < pagesize; ++i)
   8929     *(data + i) = rand ();
   8930   umask (0);
   8931   fd = creat ("conftest.mmap", 0600);
   8932   if (fd < 0)
   8933     exit (1);
   8934   if (write (fd, data, pagesize) != pagesize)
   8935     exit (1);
   8936   close (fd);
   8937 
   8938   /* Next, try to mmap the file at a fixed address which already has
   8939      something else allocated at it.  If we can, also make sure that
   8940      we see the same garbage.  */
   8941   fd = open ("conftest.mmap", O_RDWR);
   8942   if (fd < 0)
   8943     exit (1);
   8944   data2 = (char *) malloc (2 * pagesize);
   8945   if (!data2)
   8946     exit (1);
   8947   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   8948   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   8949 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   8950     exit (1);
   8951   for (i = 0; i < pagesize; ++i)
   8952     if (*(data + i) != *(data2 + i))
   8953       exit (1);
   8954 
   8955   /* Finally, make sure that changes to the mapped area do not
   8956      percolate back to the file as seen by read().  (This is a bug on
   8957      some variants of i386 svr4.0.)  */
   8958   for (i = 0; i < pagesize; ++i)
   8959     *(data2 + i) = *(data2 + i) + 1;
   8960   data3 = (char *) malloc (pagesize);
   8961   if (!data3)
   8962     exit (1);
   8963   if (read (fd, data3, pagesize) != pagesize)
   8964     exit (1);
   8965   for (i = 0; i < pagesize; ++i)
   8966     if (*(data + i) != *(data3 + i))
   8967       exit (1);
   8968   close (fd);
   8969   exit (0);
   8970 }
   8971 _ACEOF
   8972 rm -f conftest$ac_exeext
   8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   8974   (eval $ac_link) 2>&5
   8975   ac_status=$?
   8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   8979   (eval $ac_try) 2>&5
   8980   ac_status=$?
   8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8982   (exit $ac_status); }; }; then
   8983   ac_cv_func_mmap_fixed_mapped=yes
   8984 else
   8985   echo "$as_me: program exited with status $ac_status" >&5
   8986 echo "$as_me: failed program was:" >&5
   8987 sed 's/^/| /' conftest.$ac_ext >&5
   8988 
   8989 ( exit $ac_status )
   8990 ac_cv_func_mmap_fixed_mapped=no
   8991 fi
   8992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   8993 fi
   8994 fi
   8995 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
   8996 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
   8997 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   8998 
   8999 cat >>confdefs.h <<\_ACEOF
   9000 #define HAVE_MMAP 1
   9001 _ACEOF
   9002 
   9003 fi
   9004 rm -f conftest.mmap
   9005 
   9006 saved_libs="$LIBS"
   9007 LIBS="$LIBS $LIBC $LIBM"
   9008 
   9009 
   9010 
   9011 
   9012 
   9013 
   9014 
   9015 
   9016 for ac_func in fmod getcwd putenv snprintf strcasecmp \
   9017                   strerror strncasecmp strtol
   9018 do
   9019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9020 echo "$as_me:$LINENO: checking for $ac_func" >&5
   9021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9022 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9023   echo $ECHO_N "(cached) $ECHO_C" >&6
   9024 else
   9025   cat >conftest.$ac_ext <<_ACEOF
   9026 /* confdefs.h.  */
   9027 _ACEOF
   9028 cat confdefs.h >>conftest.$ac_ext
   9029 cat >>conftest.$ac_ext <<_ACEOF
   9030 /* end confdefs.h.  */
   9031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9033 #define $ac_func innocuous_$ac_func
   9034 
   9035 /* System header to define __stub macros and hopefully few prototypes,
   9036     which can conflict with char $ac_func (); below.
   9037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9038     <limits.h> exists even on freestanding compilers.  */
   9039 
   9040 #ifdef __STDC__
   9041 # include <limits.h>
   9042 #else
   9043 # include <assert.h>
   9044 #endif
   9045 
   9046 #undef $ac_func
   9047 
   9048 /* Override any gcc2 internal prototype to avoid an error.  */
   9049 #ifdef __cplusplus
   9050 extern "C"
   9051 {
   9052 #endif
   9053 /* We use char because int might match the return type of a gcc2
   9054    builtin and then its argument prototype would still apply.  */
   9055 char $ac_func ();
   9056 /* The GNU C library defines this for functions which it implements
   9057     to always fail with ENOSYS.  Some functions are actually named
   9058     something starting with __ and the normal name is an alias.  */
   9059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9060 choke me
   9061 #else
   9062 char (*f) () = $ac_func;
   9063 #endif
   9064 #ifdef __cplusplus
   9065 }
   9066 #endif
   9067 
   9068 int
   9069 main ()
   9070 {
   9071 return f != $ac_func;
   9072   ;
   9073   return 0;
   9074 }
   9075 _ACEOF
   9076 rm -f conftest.$ac_objext conftest$ac_exeext
   9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9078   (eval $ac_link) 2>conftest.er1
   9079   ac_status=$?
   9080   grep -v '^ *+' conftest.er1 >conftest.err
   9081   rm -f conftest.er1
   9082   cat conftest.err >&5
   9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9084   (exit $ac_status); } &&
   9085 	 { ac_try='test -z "$ac_c_werror_flag"
   9086 			 || test ! -s conftest.err'
   9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9088   (eval $ac_try) 2>&5
   9089   ac_status=$?
   9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9091   (exit $ac_status); }; } &&
   9092 	 { ac_try='test -s conftest$ac_exeext'
   9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9094   (eval $ac_try) 2>&5
   9095   ac_status=$?
   9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9097   (exit $ac_status); }; }; then
   9098   eval "$as_ac_var=yes"
   9099 else
   9100   echo "$as_me: failed program was:" >&5
   9101 sed 's/^/| /' conftest.$ac_ext >&5
   9102 
   9103 eval "$as_ac_var=no"
   9104 fi
   9105 rm -f conftest.err conftest.$ac_objext \
   9106       conftest$ac_exeext conftest.$ac_ext
   9107 fi
   9108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9110 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9111   cat >>confdefs.h <<_ACEOF
   9112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9113 _ACEOF
   9114 
   9115 else
   9116   case $LIBOBJS in
   9117     "$ac_func.$ac_objext"   | \
   9118   *" $ac_func.$ac_objext"   | \
   9119     "$ac_func.$ac_objext "* | \
   9120   *" $ac_func.$ac_objext "* ) ;;
   9121   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
   9122 esac
   9123 
   9124 fi
   9125 done
   9126 
   9127 
   9128 # vsnprintf is in the same source file as snprintf
   9129 
   9130 for ac_func in vsnprintf
   9131 do
   9132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9133 echo "$as_me:$LINENO: checking for $ac_func" >&5
   9134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9135 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9136   echo $ECHO_N "(cached) $ECHO_C" >&6
   9137 else
   9138   cat >conftest.$ac_ext <<_ACEOF
   9139 /* confdefs.h.  */
   9140 _ACEOF
   9141 cat confdefs.h >>conftest.$ac_ext
   9142 cat >>conftest.$ac_ext <<_ACEOF
   9143 /* end confdefs.h.  */
   9144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9146 #define $ac_func innocuous_$ac_func
   9147 
   9148 /* System header to define __stub macros and hopefully few prototypes,
   9149     which can conflict with char $ac_func (); below.
   9150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9151     <limits.h> exists even on freestanding compilers.  */
   9152 
   9153 #ifdef __STDC__
   9154 # include <limits.h>
   9155 #else
   9156 # include <assert.h>
   9157 #endif
   9158 
   9159 #undef $ac_func
   9160 
   9161 /* Override any gcc2 internal prototype to avoid an error.  */
   9162 #ifdef __cplusplus
   9163 extern "C"
   9164 {
   9165 #endif
   9166 /* We use char because int might match the return type of a gcc2
   9167    builtin and then its argument prototype would still apply.  */
   9168 char $ac_func ();
   9169 /* The GNU C library defines this for functions which it implements
   9170     to always fail with ENOSYS.  Some functions are actually named
   9171     something starting with __ and the normal name is an alias.  */
   9172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9173 choke me
   9174 #else
   9175 char (*f) () = $ac_func;
   9176 #endif
   9177 #ifdef __cplusplus
   9178 }
   9179 #endif
   9180 
   9181 int
   9182 main ()
   9183 {
   9184 return f != $ac_func;
   9185   ;
   9186   return 0;
   9187 }
   9188 _ACEOF
   9189 rm -f conftest.$ac_objext conftest$ac_exeext
   9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9191   (eval $ac_link) 2>conftest.er1
   9192   ac_status=$?
   9193   grep -v '^ *+' conftest.er1 >conftest.err
   9194   rm -f conftest.er1
   9195   cat conftest.err >&5
   9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9197   (exit $ac_status); } &&
   9198 	 { ac_try='test -z "$ac_c_werror_flag"
   9199 			 || test ! -s conftest.err'
   9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9201   (eval $ac_try) 2>&5
   9202   ac_status=$?
   9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9204   (exit $ac_status); }; } &&
   9205 	 { ac_try='test -s conftest$ac_exeext'
   9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9207   (eval $ac_try) 2>&5
   9208   ac_status=$?
   9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9210   (exit $ac_status); }; }; then
   9211   eval "$as_ac_var=yes"
   9212 else
   9213   echo "$as_me: failed program was:" >&5
   9214 sed 's/^/| /' conftest.$ac_ext >&5
   9215 
   9216 eval "$as_ac_var=no"
   9217 fi
   9218 rm -f conftest.err conftest.$ac_objext \
   9219       conftest$ac_exeext conftest.$ac_ext
   9220 fi
   9221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9223 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9224   cat >>confdefs.h <<_ACEOF
   9225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9226 _ACEOF
   9227 
   9228 else
   9229   case $LIBOBJS in
   9230     "snprintf.$ac_objext"   | \
   9231   *" snprintf.$ac_objext"   | \
   9232     "snprintf.$ac_objext "* | \
   9233   *" snprintf.$ac_objext "* ) ;;
   9234   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
   9235 esac
   9236 
   9237 fi
   9238 done
   9239 
   9240 LIBS="$saved_libs"
   9241 
   9242 
   9243 
   9244 
   9245 
   9246 
   9247 for ac_func in gettimeofday isatty kill rename setlocale strsep
   9248 do
   9249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9250 echo "$as_me:$LINENO: checking for $ac_func" >&5
   9251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
   9252 if eval "test \"\${$as_ac_var+set}\" = set"; then
   9253   echo $ECHO_N "(cached) $ECHO_C" >&6
   9254 else
   9255   cat >conftest.$ac_ext <<_ACEOF
   9256 /* confdefs.h.  */
   9257 _ACEOF
   9258 cat confdefs.h >>conftest.$ac_ext
   9259 cat >>conftest.$ac_ext <<_ACEOF
   9260 /* end confdefs.h.  */
   9261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   9262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   9263 #define $ac_func innocuous_$ac_func
   9264 
   9265 /* System header to define __stub macros and hopefully few prototypes,
   9266     which can conflict with char $ac_func (); below.
   9267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   9268     <limits.h> exists even on freestanding compilers.  */
   9269 
   9270 #ifdef __STDC__
   9271 # include <limits.h>
   9272 #else
   9273 # include <assert.h>
   9274 #endif
   9275 
   9276 #undef $ac_func
   9277 
   9278 /* Override any gcc2 internal prototype to avoid an error.  */
   9279 #ifdef __cplusplus
   9280 extern "C"
   9281 {
   9282 #endif
   9283 /* We use char because int might match the return type of a gcc2
   9284    builtin and then its argument prototype would still apply.  */
   9285 char $ac_func ();
   9286 /* The GNU C library defines this for functions which it implements
   9287     to always fail with ENOSYS.  Some functions are actually named
   9288     something starting with __ and the normal name is an alias.  */
   9289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   9290 choke me
   9291 #else
   9292 char (*f) () = $ac_func;
   9293 #endif
   9294 #ifdef __cplusplus
   9295 }
   9296 #endif
   9297 
   9298 int
   9299 main ()
   9300 {
   9301 return f != $ac_func;
   9302   ;
   9303   return 0;
   9304 }
   9305 _ACEOF
   9306 rm -f conftest.$ac_objext conftest$ac_exeext
   9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9308   (eval $ac_link) 2>conftest.er1
   9309   ac_status=$?
   9310   grep -v '^ *+' conftest.er1 >conftest.err
   9311   rm -f conftest.er1
   9312   cat conftest.err >&5
   9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9314   (exit $ac_status); } &&
   9315 	 { ac_try='test -z "$ac_c_werror_flag"
   9316 			 || test ! -s conftest.err'
   9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9318   (eval $ac_try) 2>&5
   9319   ac_status=$?
   9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9321   (exit $ac_status); }; } &&
   9322 	 { ac_try='test -s conftest$ac_exeext'
   9323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9324   (eval $ac_try) 2>&5
   9325   ac_status=$?
   9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9327   (exit $ac_status); }; }; then
   9328   eval "$as_ac_var=yes"
   9329 else
   9330   echo "$as_me: failed program was:" >&5
   9331 sed 's/^/| /' conftest.$ac_ext >&5
   9332 
   9333 eval "$as_ac_var=no"
   9334 fi
   9335 rm -f conftest.err conftest.$ac_objext \
   9336       conftest$ac_exeext conftest.$ac_ext
   9337 fi
   9338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
   9339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
   9340 if test `eval echo '${'$as_ac_var'}'` = yes; then
   9341   cat >>confdefs.h <<_ACEOF
   9342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9343 _ACEOF
   9344 
   9345 fi
   9346 done
   9347 
   9348 echo "$as_me:$LINENO: checking for mkstemp" >&5
   9349 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
   9350    ac_ext=cc
   9351 ac_cpp='$CXXCPP $CPPFLAGS'
   9352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9355 
   9356 
   9357    cat >conftest.$ac_ext <<_ACEOF
   9358 
   9359        /* confdefs.h.  */
   9360 _ACEOF
   9361 cat confdefs.h >>conftest.$ac_ext
   9362 cat >>conftest.$ac_ext <<_ACEOF
   9363 /* end confdefs.h.  */
   9364 
   9365 
   9366 #include <stdlib.h>
   9367 #include <unistd.h>
   9368 int (*f) (char *);
   9369 
   9370 
   9371 int
   9372 main ()
   9373 {
   9374 
   9375 
   9376 f = mkstemp;
   9377 
   9378 
   9379   ;
   9380   return 0;
   9381 }
   9382 
   9383 _ACEOF
   9384 rm -f conftest.$ac_objext conftest$ac_exeext
   9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9386   (eval $ac_link) 2>conftest.er1
   9387   ac_status=$?
   9388   grep -v '^ *+' conftest.er1 >conftest.err
   9389   rm -f conftest.er1
   9390   cat conftest.err >&5
   9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9392   (exit $ac_status); } &&
   9393 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9394 			 || test ! -s conftest.err'
   9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9396   (eval $ac_try) 2>&5
   9397   ac_status=$?
   9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9399   (exit $ac_status); }; } &&
   9400 	 { ac_try='test -s conftest$ac_exeext'
   9401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9402   (eval $ac_try) 2>&5
   9403   ac_status=$?
   9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9405   (exit $ac_status); }; }; then
   9406   echo "$as_me:$LINENO: result: yes" >&5
   9407 echo "${ECHO_T}yes" >&6
   9408 
   9409 cat >>confdefs.h <<\_ACEOF
   9410 #define HAVE_MKSTEMP 1
   9411 _ACEOF
   9412 
   9413 else
   9414   echo "$as_me: failed program was:" >&5
   9415 sed 's/^/| /' conftest.$ac_ext >&5
   9416 
   9417 echo "$as_me:$LINENO: result: no" >&5
   9418 echo "${ECHO_T}no" >&6
   9419       case $LIBOBJS in
   9420     "mkstemp.$ac_objext"   | \
   9421   *" mkstemp.$ac_objext"   | \
   9422     "mkstemp.$ac_objext "* | \
   9423   *" mkstemp.$ac_objext "* ) ;;
   9424   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
   9425 esac
   9426 
   9427 fi
   9428 rm -f conftest.err conftest.$ac_objext \
   9429       conftest$ac_exeext conftest.$ac_ext
   9430    ac_ext=c
   9431 ac_cpp='$CPP $CPPFLAGS'
   9432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9435 
   9436 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
   9437 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
   9438 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
   9439   echo $ECHO_N "(cached) $ECHO_C" >&6
   9440 else
   9441   cat >conftest.$ac_ext <<_ACEOF
   9442 /* confdefs.h.  */
   9443 _ACEOF
   9444 cat confdefs.h >>conftest.$ac_ext
   9445 cat >>conftest.$ac_ext <<_ACEOF
   9446 /* end confdefs.h.  */
   9447 $ac_includes_default
   9448 int
   9449 main ()
   9450 {
   9451 #ifndef sys_siglist
   9452   char *p = (char *) sys_siglist;
   9453 #endif
   9454 
   9455   ;
   9456   return 0;
   9457 }
   9458 _ACEOF
   9459 rm -f conftest.$ac_objext
   9460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9461   (eval $ac_compile) 2>conftest.er1
   9462   ac_status=$?
   9463   grep -v '^ *+' conftest.er1 >conftest.err
   9464   rm -f conftest.er1
   9465   cat conftest.err >&5
   9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9467   (exit $ac_status); } &&
   9468 	 { ac_try='test -z "$ac_c_werror_flag"
   9469 			 || test ! -s conftest.err'
   9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9471   (eval $ac_try) 2>&5
   9472   ac_status=$?
   9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9474   (exit $ac_status); }; } &&
   9475 	 { ac_try='test -s conftest.$ac_objext'
   9476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9477   (eval $ac_try) 2>&5
   9478   ac_status=$?
   9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9480   (exit $ac_status); }; }; then
   9481   ac_cv_have_decl_sys_siglist=yes
   9482 else
   9483   echo "$as_me: failed program was:" >&5
   9484 sed 's/^/| /' conftest.$ac_ext >&5
   9485 
   9486 ac_cv_have_decl_sys_siglist=no
   9487 fi
   9488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9489 fi
   9490 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
   9491 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
   9492 if test $ac_cv_have_decl_sys_siglist = yes; then
   9493 
   9494 cat >>confdefs.h <<_ACEOF
   9495 #define HAVE_DECL_SYS_SIGLIST 1
   9496 _ACEOF
   9497 
   9498 
   9499 else
   9500   cat >>confdefs.h <<_ACEOF
   9501 #define HAVE_DECL_SYS_SIGLIST 0
   9502 _ACEOF
   9503 
   9504 
   9505 fi
   9506 
   9507 
   9508 
   9509 # checks for compiler characteristics
   9510 ac_ext=cc
   9511 ac_cpp='$CXXCPP $CPPFLAGS'
   9512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9515 
   9516    echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
   9517 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
   9518    cat >conftest.$ac_ext <<_ACEOF
   9519 
   9520        /* confdefs.h.  */
   9521 _ACEOF
   9522 cat confdefs.h >>conftest.$ac_ext
   9523 cat >>conftest.$ac_ext <<_ACEOF
   9524 /* end confdefs.h.  */
   9525 
   9526 int
   9527 main ()
   9528 {
   9529 
   9530 
   9531 char *p = new char[5];
   9532 delete [] p;
   9533 
   9534 
   9535   ;
   9536   return 0;
   9537 }
   9538 
   9539 _ACEOF
   9540 rm -f conftest.$ac_objext
   9541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9542   (eval $ac_compile) 2>conftest.er1
   9543   ac_status=$?
   9544   grep -v '^ *+' conftest.er1 >conftest.err
   9545   rm -f conftest.er1
   9546   cat conftest.err >&5
   9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9548   (exit $ac_status); } &&
   9549 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9550 			 || test ! -s conftest.err'
   9551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9552   (eval $ac_try) 2>&5
   9553   ac_status=$?
   9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9555   (exit $ac_status); }; } &&
   9556 	 { ac_try='test -s conftest.$ac_objext'
   9557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9558   (eval $ac_try) 2>&5
   9559   ac_status=$?
   9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9561   (exit $ac_status); }; }; then
   9562   echo "$as_me:$LINENO: result: yes" >&5
   9563 echo "${ECHO_T}yes" >&6
   9564 else
   9565   echo "$as_me: failed program was:" >&5
   9566 sed 's/^/| /' conftest.$ac_ext >&5
   9567 
   9568 echo "$as_me:$LINENO: result: no" >&5
   9569 echo "${ECHO_T}no" >&6
   9570 
   9571 cat >>confdefs.h <<\_ACEOF
   9572 #define ARRAY_DELETE_NEEDS_SIZE 1
   9573 _ACEOF
   9574 
   9575 fi
   9576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9577    ac_ext=c
   9578 ac_cpp='$CPP $CPPFLAGS'
   9579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9582 
   9583 ac_ext=cc
   9584 ac_cpp='$CXXCPP $CPPFLAGS'
   9585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9588 
   9589    echo "$as_me:$LINENO: checking traditional preprocessor" >&5
   9590 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
   9591    cat >conftest.$ac_ext <<_ACEOF
   9592 
   9593        /* confdefs.h.  */
   9594 _ACEOF
   9595 cat confdefs.h >>conftest.$ac_ext
   9596 cat >>conftest.$ac_ext <<_ACEOF
   9597 /* end confdefs.h.  */
   9598 
   9599 
   9600 #define name2(a, b) a/**/b
   9601 
   9602 
   9603 int
   9604 main ()
   9605 {
   9606 
   9607 
   9608 int name2(foo, bar);
   9609 
   9610 
   9611   ;
   9612   return 0;
   9613 }
   9614 
   9615 _ACEOF
   9616 rm -f conftest.$ac_objext
   9617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9618   (eval $ac_compile) 2>conftest.er1
   9619   ac_status=$?
   9620   grep -v '^ *+' conftest.er1 >conftest.err
   9621   rm -f conftest.er1
   9622   cat conftest.err >&5
   9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9624   (exit $ac_status); } &&
   9625 	 { ac_try='test -z "$ac_cxx_werror_flag"
   9626 			 || test ! -s conftest.err'
   9627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9628   (eval $ac_try) 2>&5
   9629   ac_status=$?
   9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9631   (exit $ac_status); }; } &&
   9632 	 { ac_try='test -s conftest.$ac_objext'
   9633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9634   (eval $ac_try) 2>&5
   9635   ac_status=$?
   9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9637   (exit $ac_status); }; }; then
   9638   echo "$as_me:$LINENO: result: yes" >&5
   9639 echo "${ECHO_T}yes" >&6
   9640 
   9641 cat >>confdefs.h <<\_ACEOF
   9642 #define TRADITIONAL_CPP 1
   9643 _ACEOF
   9644 
   9645 else
   9646   echo "$as_me: failed program was:" >&5
   9647 sed 's/^/| /' conftest.$ac_ext >&5
   9648 
   9649 echo "$as_me:$LINENO: result: no" >&5
   9650 echo "${ECHO_T}no" >&6
   9651 fi
   9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9653    ac_ext=c
   9654 ac_cpp='$CPP $CPPFLAGS'
   9655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9658 
   9659 
   9660 # checks for operating system services
   9661 echo "$as_me:$LINENO: checking w_coredump" >&5
   9662 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
   9663    if test "$cross_compiling" = yes; then
   9664   echo "$as_me:$LINENO: result: no" >&5
   9665 echo "${ECHO_T}no" >&6
   9666 else
   9667   cat >conftest.$ac_ext <<_ACEOF
   9668 
   9669        /* confdefs.h.  */
   9670 _ACEOF
   9671 cat confdefs.h >>conftest.$ac_ext
   9672 cat >>conftest.$ac_ext <<_ACEOF
   9673 /* end confdefs.h.  */
   9674 
   9675 
   9676 #include <sys/types.h>
   9677 #include <sys/wait.h>
   9678 
   9679 
   9680 int
   9681 main ()
   9682 {
   9683 
   9684 
   9685 main()
   9686 {
   9687 #ifdef WCOREFLAG
   9688   exit(1);
   9689 #else
   9690   int i = 0;
   9691   ((union wait *)&i)->w_coredump = 1;
   9692   exit(i != 0200);
   9693 #endif
   9694 }
   9695 
   9696 
   9697   ;
   9698   return 0;
   9699 }
   9700 
   9701 _ACEOF
   9702 rm -f conftest$ac_exeext
   9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9704   (eval $ac_link) 2>&5
   9705   ac_status=$?
   9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9709   (eval $ac_try) 2>&5
   9710   ac_status=$?
   9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9712   (exit $ac_status); }; }; then
   9713   echo "$as_me:$LINENO: result: yes" >&5
   9714 echo "${ECHO_T}yes" >&6
   9715 
   9716 cat >>confdefs.h <<\_ACEOF
   9717 #define WCOREFLAG 0200
   9718 _ACEOF
   9719 
   9720 else
   9721   echo "$as_me: program exited with status $ac_status" >&5
   9722 echo "$as_me: failed program was:" >&5
   9723 sed 's/^/| /' conftest.$ac_ext >&5
   9724 
   9725 ( exit $ac_status )
   9726 echo "$as_me:$LINENO: result: no" >&5
   9727 echo "${ECHO_T}no" >&6
   9728 fi
   9729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   9730 fi
   9731 
   9732 # other random stuff
   9733 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
   9734 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
   9735    test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
   9736    echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
   9737 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
   9738 
   9739 echo "$as_me:$LINENO: checking default paper size" >&5
   9740 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
   9741    groff_prefix=$prefix
   9742    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
   9743    if test -z "$PAGE"; then
   9744      descfile=
   9745      if test -r $groff_prefix/share/groff/font/devps/DESC; then
   9746        descfile=$groff_prefix/share/groff/font/devps/DESC
   9747      elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
   9748        descfile=$groff_prefix/lib/groff/font/devps/DESC
   9749      else
   9750        for f in $groff_prefix/share/groff/*/font/devps/DESC; do
   9751 	 if test -r $f; then
   9752 	   descfile=$f
   9753 	   break
   9754 	 fi
   9755        done
   9756      fi
   9757 
   9758      if test -n "$descfile"; then
   9759        if grep '^paperlength[	 ]\+841890' $descfile >/dev/null 2>&1; then
   9760 	 PAGE=A4
   9761        elif grep '^papersize[	 ]\+[aA]4' $descfile >/dev/null 2>&1; then
   9762 	 PAGE=A4
   9763        fi
   9764      fi
   9765    fi
   9766 
   9767    if test -z "$PAGE"; then
   9768      dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
   9769 	 /etc/resolv.conf 2>/dev/null`
   9770      if test -z "$dom"; then
   9771        dom=`(domainname) 2>/dev/null | tr -d '+'`
   9772        if test -z "$dom" \
   9773 	  || test "$dom" = '(none)'; then
   9774 	 dom=`(hostname) 2>/dev/null | grep '\.'`
   9775        fi
   9776      fi
   9777      # If the top-level domain is two letters and it's not `us' or `ca'
   9778      # then they probably use A4 paper.
   9779      case "$dom" in
   9780      *.[Uu][Ss]|*.[Cc][Aa])
   9781        ;;
   9782      *.[A-Za-z][A-Za-z])
   9783        PAGE=A4 ;;
   9784      esac
   9785    fi
   9786 
   9787    test -n "$PAGE" || PAGE=letter
   9788    if test "x$PAGE" = "xA4"; then
   9789 
   9790 cat >>confdefs.h <<\_ACEOF
   9791 #define PAGEA4 1
   9792 _ACEOF
   9793 
   9794    fi
   9795    echo "$as_me:$LINENO: result: $PAGE" >&5
   9796 echo "${ECHO_T}$PAGE" >&6
   9797 
   9798 echo "$as_me:$LINENO: checking for existing troff installation" >&5
   9799 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
   9800    if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
   9801      echo "$as_me:$LINENO: result: yes" >&5
   9802 echo "${ECHO_T}yes" >&6
   9803      g=g
   9804    else
   9805      echo "$as_me:$LINENO: result: no" >&5
   9806 echo "${ECHO_T}no" >&6
   9807      g=
   9808    fi
   9809 
   9810 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
   9811 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
   9812    sys_tmac_prefix=
   9813    sys_tmac_file_prefix=
   9814    for d in /usr/share/lib/tmac /usr/lib/tmac; do
   9815      for t in "" tmac.; do
   9816        for m in an s m; do
   9817 	 f=$d/$t$m
   9818 	 if test -z "$sys_tmac_prefix" \
   9819 	    && test -f $f \
   9820 	    && grep '^\.if' $f >/dev/null 2>&1; then
   9821 	   sys_tmac_prefix=$d/$t
   9822 	   sys_tmac_file_prefix=$t
   9823 	 fi
   9824        done
   9825      done
   9826    done
   9827    echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
   9828 echo "${ECHO_T}$sys_tmac_prefix" >&6
   9829 
   9830 
   9831    echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
   9832 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
   9833    tmac_wrap=
   9834    if test "x$sys_tmac_file_prefix" = "xtmac."; then
   9835      for f in $sys_tmac_prefix*; do
   9836        suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
   9837        case "$suff" in
   9838        e)
   9839 	 ;;
   9840        *)
   9841 	 grep "Copyright.*Free Software Foundation" $f >/dev/null \
   9842 	      || tmac_wrap="$tmac_wrap $suff" ;;
   9843        esac
   9844      done
   9845    elif test -n "$sys_tmac_prefix"; then
   9846      files=`echo $sys_tmac_prefix*`
   9847      grep "\\.so" $files >conftest.sol
   9848      for f in $files; do
   9849        case "$f" in
   9850        ${sys_tmac_prefix}e)
   9851 	 ;;
   9852        *.me)
   9853 	 ;;
   9854        */ms.*)
   9855 	 ;;
   9856        *)
   9857 	 b=`basename $f`
   9858 	 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
   9859 	    || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
   9860 	   :
   9861 	 else
   9862 	   suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
   9863 	   case "$suff" in
   9864 	   tmac.*)
   9865 	     ;;
   9866 	   *)
   9867 	     tmac_wrap="$tmac_wrap $suff" ;;
   9868 	   esac
   9869 	 fi
   9870        esac
   9871      done
   9872      rm -f conftest.sol
   9873    fi
   9874    echo "$as_me:$LINENO: result: $tmac_wrap" >&5
   9875 echo "${ECHO_T}$tmac_wrap" >&6
   9876 
   9877 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
   9878 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
   9879    cp ${srcdir}/src/include/nonposix.h conftest.h
   9880    cat >conftest.$ac_ext <<_ACEOF
   9881 
   9882        /* confdefs.h.  */
   9883 _ACEOF
   9884 cat confdefs.h >>conftest.$ac_ext
   9885 cat >>conftest.$ac_ext <<_ACEOF
   9886 /* end confdefs.h.  */
   9887 
   9888 
   9889 #include <ctype.h>
   9890 #include "conftest.h"
   9891 
   9892 
   9893 int
   9894 main ()
   9895 {
   9896 
   9897 
   9898 #if PATH_SEP_CHAR == ';'
   9899 make an error "Path separator is ';'"
   9900 #endif
   9901 
   9902 
   9903   ;
   9904   return 0;
   9905 }
   9906 
   9907 _ACEOF
   9908 rm -f conftest.$ac_objext
   9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9910   (eval $ac_compile) 2>conftest.er1
   9911   ac_status=$?
   9912   grep -v '^ *+' conftest.er1 >conftest.err
   9913   rm -f conftest.er1
   9914   cat conftest.err >&5
   9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9916   (exit $ac_status); } &&
   9917 	 { ac_try='test -z "$ac_c_werror_flag"
   9918 			 || test ! -s conftest.err'
   9919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9920   (eval $ac_try) 2>&5
   9921   ac_status=$?
   9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9923   (exit $ac_status); }; } &&
   9924 	 { ac_try='test -s conftest.$ac_objext'
   9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   9926   (eval $ac_try) 2>&5
   9927   ac_status=$?
   9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9929   (exit $ac_status); }; }; then
   9930   GROFF_PATH_SEPARATOR=":"
   9931 else
   9932   echo "$as_me: failed program was:" >&5
   9933 sed 's/^/| /' conftest.$ac_ext >&5
   9934 
   9935 GROFF_PATH_SEPARATOR=";"
   9936 fi
   9937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
   9938    echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
   9939 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
   9940 
   9941 
   9942 # Check whether --with-alt-gs or --without-alt-gs was given.
   9943 if test "${with_alt_gs+set}" = set; then
   9944   withval="$with_alt_gs"
   9945   ALT_GHOSTSCRIPT_PROGS="$withval"
   9946 else
   9947   ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
   9948 fi;
   9949 
   9950 
   9951 
   9952 # Check whether --with-gs or --without-gs was given.
   9953 if test "${with_gs+set}" = set; then
   9954   withval="$with_gs"
   9955   GHOSTSCRIPT=$withval
   9956 else
   9957   if test -n "$ac_tool_prefix"; then
   9958   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
   9959   do
   9960     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   9961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   9962 echo "$as_me:$LINENO: checking for $ac_word" >&5
   9963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   9964 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
   9965   echo $ECHO_N "(cached) $ECHO_C" >&6
   9966 else
   9967   if test -n "$GHOSTSCRIPT"; then
   9968   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
   9969 else
   9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9971 for as_dir in $PATH
   9972 do
   9973   IFS=$as_save_IFS
   9974   test -z "$as_dir" && as_dir=.
   9975   for ac_exec_ext in '' $ac_executable_extensions; do
   9976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   9977     ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
   9978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   9979     break 2
   9980   fi
   9981 done
   9982 done
   9983 
   9984 fi
   9985 fi
   9986 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
   9987 if test -n "$GHOSTSCRIPT"; then
   9988   echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
   9989 echo "${ECHO_T}$GHOSTSCRIPT" >&6
   9990 else
   9991   echo "$as_me:$LINENO: result: no" >&5
   9992 echo "${ECHO_T}no" >&6
   9993 fi
   9994 
   9995     test -n "$GHOSTSCRIPT" && break
   9996   done
   9997 fi
   9998 if test -z "$GHOSTSCRIPT"; then
   9999   ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
   10000   for ac_prog in $ALT_GHOSTSCRIPT_PROGS
   10001 do
   10002   # Extract the first word of "$ac_prog", so it can be a program name with args.
   10003 set dummy $ac_prog; ac_word=$2
   10004 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10006 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
   10007   echo $ECHO_N "(cached) $ECHO_C" >&6
   10008 else
   10009   if test -n "$ac_ct_GHOSTSCRIPT"; then
   10010   ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
   10011 else
   10012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10013 for as_dir in $PATH
   10014 do
   10015   IFS=$as_save_IFS
   10016   test -z "$as_dir" && as_dir=.
   10017   for ac_exec_ext in '' $ac_executable_extensions; do
   10018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10019     ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
   10020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10021     break 2
   10022   fi
   10023 done
   10024 done
   10025 
   10026 fi
   10027 fi
   10028 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
   10029 if test -n "$ac_ct_GHOSTSCRIPT"; then
   10030   echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
   10031 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6
   10032 else
   10033   echo "$as_me:$LINENO: result: no" >&5
   10034 echo "${ECHO_T}no" >&6
   10035 fi
   10036 
   10037   test -n "$ac_ct_GHOSTSCRIPT" && break
   10038 done
   10039 
   10040   if test "x$ac_ct_GHOSTSCRIPT" = x; then
   10041     GHOSTSCRIPT="missing"
   10042   else
   10043     if test "$build" != "$host"; then
   10044       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   10045 whose name does not start with the host triplet.  If you think this
   10046 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   10047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   10048 whose name does not start with the host triplet.  If you think this
   10049 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   10050     fi
   10051     GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
   10052   fi
   10053 fi
   10054 
   10055 fi;
   10056    test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
   10057 
   10058    make_html=html
   10059    make_install_html=install_html
   10060 
   10061    missing=
   10062    # Extract the first word of "pnmcut", so it can be a program name with args.
   10063 set dummy pnmcut; ac_word=$2
   10064 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10066 if test "${ac_cv_prog_pnmcut+set}" = set; then
   10067   echo $ECHO_N "(cached) $ECHO_C" >&6
   10068 else
   10069   if test -n "$pnmcut"; then
   10070   ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
   10071 else
   10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10073 for as_dir in $PATH
   10074 do
   10075   IFS=$as_save_IFS
   10076   test -z "$as_dir" && as_dir=.
   10077   for ac_exec_ext in '' $ac_executable_extensions; do
   10078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10079     ac_cv_prog_pnmcut="found"
   10080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10081     break 2
   10082   fi
   10083 done
   10084 done
   10085 
   10086   test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
   10087 fi
   10088 fi
   10089 pnmcut=$ac_cv_prog_pnmcut
   10090 if test -n "$pnmcut"; then
   10091   echo "$as_me:$LINENO: result: $pnmcut" >&5
   10092 echo "${ECHO_T}$pnmcut" >&6
   10093 else
   10094   echo "$as_me:$LINENO: result: no" >&5
   10095 echo "${ECHO_T}no" >&6
   10096 fi
   10097 
   10098       if test $pnmcut = missing; then
   10099 	missing="$missing \`pnmcut'"
   10100       fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
   10101 set dummy pnmcrop; ac_word=$2
   10102 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10104 if test "${ac_cv_prog_pnmcrop+set}" = set; then
   10105   echo $ECHO_N "(cached) $ECHO_C" >&6
   10106 else
   10107   if test -n "$pnmcrop"; then
   10108   ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
   10109 else
   10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10111 for as_dir in $PATH
   10112 do
   10113   IFS=$as_save_IFS
   10114   test -z "$as_dir" && as_dir=.
   10115   for ac_exec_ext in '' $ac_executable_extensions; do
   10116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10117     ac_cv_prog_pnmcrop="found"
   10118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10119     break 2
   10120   fi
   10121 done
   10122 done
   10123 
   10124   test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
   10125 fi
   10126 fi
   10127 pnmcrop=$ac_cv_prog_pnmcrop
   10128 if test -n "$pnmcrop"; then
   10129   echo "$as_me:$LINENO: result: $pnmcrop" >&5
   10130 echo "${ECHO_T}$pnmcrop" >&6
   10131 else
   10132   echo "$as_me:$LINENO: result: no" >&5
   10133 echo "${ECHO_T}no" >&6
   10134 fi
   10135 
   10136       if test $pnmcrop = missing; then
   10137 	missing="$missing \`pnmcrop'"
   10138       fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
   10139 set dummy pnmtopng; ac_word=$2
   10140 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10142 if test "${ac_cv_prog_pnmtopng+set}" = set; then
   10143   echo $ECHO_N "(cached) $ECHO_C" >&6
   10144 else
   10145   if test -n "$pnmtopng"; then
   10146   ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
   10147 else
   10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10149 for as_dir in $PATH
   10150 do
   10151   IFS=$as_save_IFS
   10152   test -z "$as_dir" && as_dir=.
   10153   for ac_exec_ext in '' $ac_executable_extensions; do
   10154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10155     ac_cv_prog_pnmtopng="found"
   10156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10157     break 2
   10158   fi
   10159 done
   10160 done
   10161 
   10162   test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
   10163 fi
   10164 fi
   10165 pnmtopng=$ac_cv_prog_pnmtopng
   10166 if test -n "$pnmtopng"; then
   10167   echo "$as_me:$LINENO: result: $pnmtopng" >&5
   10168 echo "${ECHO_T}$pnmtopng" >&6
   10169 else
   10170   echo "$as_me:$LINENO: result: no" >&5
   10171 echo "${ECHO_T}no" >&6
   10172 fi
   10173 
   10174       if test $pnmtopng = missing; then
   10175 	missing="$missing \`pnmtopng'"
   10176       fi;# Extract the first word of "psselect", so it can be a program name with args.
   10177 set dummy psselect; ac_word=$2
   10178 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10180 if test "${ac_cv_prog_psselect+set}" = set; then
   10181   echo $ECHO_N "(cached) $ECHO_C" >&6
   10182 else
   10183   if test -n "$psselect"; then
   10184   ac_cv_prog_psselect="$psselect" # Let the user override the test.
   10185 else
   10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10187 for as_dir in $PATH
   10188 do
   10189   IFS=$as_save_IFS
   10190   test -z "$as_dir" && as_dir=.
   10191   for ac_exec_ext in '' $ac_executable_extensions; do
   10192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10193     ac_cv_prog_psselect="found"
   10194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10195     break 2
   10196   fi
   10197 done
   10198 done
   10199 
   10200   test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
   10201 fi
   10202 fi
   10203 psselect=$ac_cv_prog_psselect
   10204 if test -n "$psselect"; then
   10205   echo "$as_me:$LINENO: result: $psselect" >&5
   10206 echo "${ECHO_T}$psselect" >&6
   10207 else
   10208   echo "$as_me:$LINENO: result: no" >&5
   10209 echo "${ECHO_T}no" >&6
   10210 fi
   10211 
   10212       if test $psselect = missing; then
   10213 	missing="$missing \`psselect'"
   10214       fi;# Extract the first word of "pnmtops", so it can be a program name with args.
   10215 set dummy pnmtops; ac_word=$2
   10216 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10218 if test "${ac_cv_prog_pnmtops+set}" = set; then
   10219   echo $ECHO_N "(cached) $ECHO_C" >&6
   10220 else
   10221   if test -n "$pnmtops"; then
   10222   ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
   10223 else
   10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10225 for as_dir in $PATH
   10226 do
   10227   IFS=$as_save_IFS
   10228   test -z "$as_dir" && as_dir=.
   10229   for ac_exec_ext in '' $ac_executable_extensions; do
   10230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10231     ac_cv_prog_pnmtops="found"
   10232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10233     break 2
   10234   fi
   10235 done
   10236 done
   10237 
   10238   test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
   10239 fi
   10240 fi
   10241 pnmtops=$ac_cv_prog_pnmtops
   10242 if test -n "$pnmtops"; then
   10243   echo "$as_me:$LINENO: result: $pnmtops" >&5
   10244 echo "${ECHO_T}$pnmtops" >&6
   10245 else
   10246   echo "$as_me:$LINENO: result: no" >&5
   10247 echo "${ECHO_T}no" >&6
   10248 fi
   10249 
   10250       if test $pnmtops = missing; then
   10251 	missing="$missing \`pnmtops'"
   10252       fi;
   10253 
   10254    test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
   10255 
   10256    if test -n "$missing"; then
   10257      plural=`set $missing; test $# -gt 1 && echo s`
   10258      missing=`set $missing
   10259        missing=""
   10260        while test $# -gt 0
   10261 	 do
   10262 	   case $# in
   10263 	     1) missing="$missing$1" ;;
   10264 	     2) missing="$missing$1 and " ;;
   10265 	     *) missing="$missing$1, " ;;
   10266 	   esac
   10267 	   shift
   10268 	 done
   10269 	 echo $missing`
   10270 
   10271      make_html=
   10272      make_install_html=
   10273 
   10274      { echo "$as_me:$LINENO: WARNING: missing program$plural:
   10275 
   10276   The program$plural
   10277      $missing
   10278   cannot be found in the PATH.
   10279   Consequently, groff's HTML backend (grohtml) will not work properly;
   10280   therefore, it will neither be possible to prepare, nor to install,
   10281   documentation in HTML format.
   10282      " >&5
   10283 echo "$as_me: WARNING: missing program$plural:
   10284 
   10285   The program$plural
   10286      $missing
   10287   cannot be found in the PATH.
   10288   Consequently, groff's HTML backend (grohtml) will not work properly;
   10289   therefore, it will neither be possible to prepare, nor to install,
   10290   documentation in HTML format.
   10291      " >&2;}
   10292    fi
   10293 
   10294 
   10295 
   10296 
   10297 # Check whether --with-alt-awk or --without-alt-awk was given.
   10298 if test "${with_alt_awk+set}" = set; then
   10299   withval="$with_alt_awk"
   10300   ALT_AWK_PROGS="$withval"
   10301 else
   10302   ALT_AWK_PROGS="gawk mawk nawk awk"
   10303 fi;
   10304 
   10305 
   10306 
   10307 # Check whether --with-awk or --without-awk was given.
   10308 if test "${with_awk+set}" = set; then
   10309   withval="$with_awk"
   10310   AWK=$withval
   10311 else
   10312   if test -n "$ac_tool_prefix"; then
   10313   for ac_prog in $ALT_AWK_PROGS
   10314   do
   10315     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   10316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   10317 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10319 if test "${ac_cv_prog_AWK+set}" = set; then
   10320   echo $ECHO_N "(cached) $ECHO_C" >&6
   10321 else
   10322   if test -n "$AWK"; then
   10323   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   10324 else
   10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10326 for as_dir in $PATH
   10327 do
   10328   IFS=$as_save_IFS
   10329   test -z "$as_dir" && as_dir=.
   10330   for ac_exec_ext in '' $ac_executable_extensions; do
   10331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10332     ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
   10333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10334     break 2
   10335   fi
   10336 done
   10337 done
   10338 
   10339 fi
   10340 fi
   10341 AWK=$ac_cv_prog_AWK
   10342 if test -n "$AWK"; then
   10343   echo "$as_me:$LINENO: result: $AWK" >&5
   10344 echo "${ECHO_T}$AWK" >&6
   10345 else
   10346   echo "$as_me:$LINENO: result: no" >&5
   10347 echo "${ECHO_T}no" >&6
   10348 fi
   10349 
   10350     test -n "$AWK" && break
   10351   done
   10352 fi
   10353 if test -z "$AWK"; then
   10354   ac_ct_AWK=$AWK
   10355   for ac_prog in $ALT_AWK_PROGS
   10356 do
   10357   # Extract the first word of "$ac_prog", so it can be a program name with args.
   10358 set dummy $ac_prog; ac_word=$2
   10359 echo "$as_me:$LINENO: checking for $ac_word" >&5
   10360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
   10361 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
   10362   echo $ECHO_N "(cached) $ECHO_C" >&6
   10363 else
   10364   if test -n "$ac_ct_AWK"; then
   10365   ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
   10366 else
   10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10368 for as_dir in $PATH
   10369 do
   10370   IFS=$as_save_IFS
   10371   test -z "$as_dir" && as_dir=.
   10372   for ac_exec_ext in '' $ac_executable_extensions; do
   10373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10374     ac_cv_prog_ac_ct_AWK="$ac_prog"
   10375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   10376     break 2
   10377   fi
   10378 done
   10379 done
   10380 
   10381 fi
   10382 fi
   10383 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
   10384 if test -n "$ac_ct_AWK"; then
   10385   echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
   10386 echo "${ECHO_T}$ac_ct_AWK" >&6
   10387 else
   10388   echo "$as_me:$LINENO: result: no" >&5
   10389 echo "${ECHO_T}no" >&6
   10390 fi
   10391 
   10392   test -n "$ac_ct_AWK" && break
   10393 done
   10394 
   10395   if test "x$ac_ct_AWK" = x; then
   10396     AWK="missing"
   10397   else
   10398     if test "$build" != "$host"; then
   10399       { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   10400 whose name does not start with the host triplet.  If you think this
   10401 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   10402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   10403 whose name does not start with the host triplet.  If you think this
   10404 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   10405     fi
   10406     AWK=$ac_ct_AWK
   10407   fi
   10408 fi
   10409 
   10410 fi;
   10411    test "$AWK" = "no" && AWK=missing
   10412 
   10413 
   10414 
   10415    make_pdfdoc=pdfdoc
   10416    make_install_pdfdoc=install_pdfdoc
   10417 
   10418    missing=""
   10419    test "$AWK" = missing && missing="\`awk'"
   10420    test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
   10421    if test -n "$missing"; then
   10422      plural=`set $missing; test $# -eq 2 && echo s`
   10423      test x$plural = xs \
   10424        && missing=`set $missing; echo "$1 and $2"` \
   10425        || missing=`echo $missing`
   10426 
   10427      make_pdfdoc=
   10428      make_install_pdfdoc=
   10429 
   10430      { echo "$as_me:$LINENO: WARNING: missing program$plural:
   10431 
   10432   The program$plural $missing cannot be found in the PATH.
   10433   Consequently, groff's PDF formatter (pdfroff) will not work properly;
   10434   therefore, it will neither be possible to prepare, nor to install,
   10435   documentation in PDF format.
   10436      " >&5
   10437 echo "$as_me: WARNING: missing program$plural:
   10438 
   10439   The program$plural $missing cannot be found in the PATH.
   10440   Consequently, groff's PDF formatter (pdfroff) will not work properly;
   10441   therefore, it will neither be possible to prepare, nor to install,
   10442   documentation in PDF format.
   10443      " >&2;}
   10444    fi
   10445 
   10446 
   10447 
   10448 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
   10449 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
   10450    if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
   10451      echo "$as_me:$LINENO: result: yes" >&5
   10452 echo "${ECHO_T}yes" >&6
   10453      pnmtops_nosetpage="pnmtops -nosetpage"
   10454    else
   10455      echo "$as_me:$LINENO: result: no" >&5
   10456 echo "${ECHO_T}no" >&6
   10457      pnmtops_nosetpage="pnmtops"
   10458    fi
   10459 
   10460 
   10461           ac_config_files="$ac_config_files stamp-h"
   10462 
   10463                               ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
   10464 
   10465           ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
   10466 
   10467           ac_config_files="$ac_config_files test-groff"
   10468 
   10469 cat >confcache <<\_ACEOF
   10470 # This file is a shell script that caches the results of configure
   10471 # tests run on this system so they can be shared between configure
   10472 # scripts and configure runs, see configure's option --config-cache.
   10473 # It is not useful on other systems.  If it contains results you don't
   10474 # want to keep, you may remove or edit it.
   10475 #
   10476 # config.status only pays attention to the cache file if you give it
   10477 # the --recheck option to rerun configure.
   10478 #
   10479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   10480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   10481 # following values.
   10482 
   10483 _ACEOF
   10484 
   10485 # The following way of writing the cache mishandles newlines in values,
   10486 # but we know of no workaround that is simple, portable, and efficient.
   10487 # So, don't put newlines in cache variables' values.
   10488 # Ultrix sh set writes to stderr and can't be redirected directly,
   10489 # and sets the high bit in the cache file unless we assign to the vars.
   10490 {
   10491   (set) 2>&1 |
   10492     case `(ac_space=' '; set | grep ac_space) 2>&1` in
   10493     *ac_space=\ *)
   10494       # `set' does not quote correctly, so add quotes (double-quote
   10495       # substitution turns \\\\ into \\, and sed turns \\ into \).
   10496       sed -n \
   10497 	"s/'/'\\\\''/g;
   10498 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   10499       ;;
   10500     *)
   10501       # `set' quotes correctly as required by POSIX, so do not add quotes.
   10502       sed -n \
   10503 	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
   10504       ;;
   10505     esac;
   10506 } |
   10507   sed '
   10508      t clear
   10509      : clear
   10510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   10511      t end
   10512      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   10513      : end' >>confcache
   10514 if diff $cache_file confcache >/dev/null 2>&1; then :; else
   10515   if test -w $cache_file; then
   10516     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
   10517     cat confcache >$cache_file
   10518   else
   10519     echo "not updating unwritable cache $cache_file"
   10520   fi
   10521 fi
   10522 rm -f confcache
   10523 
   10524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   10525 # Let make expand exec_prefix.
   10526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   10527 
   10528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   10529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   10530 # trailing colons and then remove the whole line if VPATH becomes empty
   10531 # (actually we leave an empty line to preserve line numbers).
   10532 if test "x$srcdir" = x.; then
   10533   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   10534 s/:*\$(srcdir):*/:/;
   10535 s/:*\${srcdir}:*/:/;
   10536 s/:*@srcdir@:*/:/;
   10537 s/^\([^=]*=[	 ]*\):*/\1/;
   10538 s/:*$//;
   10539 s/^[^=]*=[	 ]*$//;
   10540 }'
   10541 fi
   10542 
   10543 DEFS=-DHAVE_CONFIG_H
   10544 
   10545 ac_libobjs=
   10546 ac_ltlibobjs=
   10547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   10548   # 1. Remove the extension, and $U if already installed.
   10549   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   10550   ac_i=`echo "$ac_i" | sed "$ac_script"`
   10551   # 2. Add them.
   10552   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
   10553   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
   10554 done
   10555 LIBOBJS=$ac_libobjs
   10556 
   10557 LTLIBOBJS=$ac_ltlibobjs
   10558 
   10559 
   10560 
   10561 : ${CONFIG_STATUS=./config.status}
   10562 ac_clean_files_save=$ac_clean_files
   10563 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   10564 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
   10565 echo "$as_me: creating $CONFIG_STATUS" >&6;}
   10566 cat >$CONFIG_STATUS <<_ACEOF
   10567 #! $SHELL
   10568 # Generated by $as_me.
   10569 # Run this file to recreate the current configuration.
   10570 # Compiler output produced by configure, useful for debugging
   10571 # configure, is in config.log if it exists.
   10572 
   10573 debug=false
   10574 ac_cs_recheck=false
   10575 ac_cs_silent=false
   10576 SHELL=\${CONFIG_SHELL-$SHELL}
   10577 _ACEOF
   10578 
   10579 cat >>$CONFIG_STATUS <<\_ACEOF
   10580 ## --------------------- ##
   10581 ## M4sh Initialization.  ##
   10582 ## --------------------- ##
   10583 
   10584 # Be Bourne compatible
   10585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   10586   emulate sh
   10587   NULLCMD=:
   10588   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   10589   # is contrary to our usage.  Disable this feature.
   10590   alias -g '${1+"$@"}'='"$@"'
   10591   setopt NO_GLOB_SUBST
   10592 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   10593   set -o posix
   10594 fi
   10595 BIN_SH=xpg4; export BIN_SH # for Tru64
   10596 DUALCASE=1; export DUALCASE # for MKS sh
   10597 
   10598 
   10599 # PATH needs CR
   10600 # Avoid depending upon Character Ranges.
   10601 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   10602 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   10603 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   10604 as_cr_digits='0123456789'
   10605 as_cr_alnum=$as_cr_Letters$as_cr_digits
   10606 
   10607 # The user is always right.
   10608 if test "${PATH_SEPARATOR+set}" != set; then
   10609   echo "#! /bin/sh" >conf$$.sh
   10610   echo  "exit 0"   >>conf$$.sh
   10611   chmod +x conf$$.sh
   10612   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   10613     PATH_SEPARATOR=';'
   10614   else
   10615     PATH_SEPARATOR=:
   10616   fi
   10617   rm -f conf$$.sh
   10618 fi
   10619 
   10620 # Support unset when possible.
   10621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   10622   as_unset=unset
   10623 else
   10624   as_unset=false
   10625 fi
   10626 
   10627 
   10628 # Find who we are.  Look in the path if we contain no path at all
   10629 # relative or not.
   10630 case $0 in
   10631   *[\\/]* ) as_myself=$0 ;;
   10632   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10633 for as_dir in $PATH
   10634 do
   10635   IFS=$as_save_IFS
   10636   test -z "$as_dir" && as_dir=.
   10637   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   10638 done
   10639 
   10640      ;;
   10641 esac
   10642 # We did not find ourselves, most probably we were run as `sh COMMAND'
   10643 # in which case we are not to be found in the path.
   10644 if test "x$as_myself" = x; then
   10645   as_myself=$0
   10646 fi
   10647 if test ! -f "$as_myself"; then
   10648   { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
   10649 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
   10650    { (exit 1); exit 1; }; }
   10651 fi
   10652 
   10653 # Work around bugs in pre-3.0 UWIN ksh.
   10654 for as_var in ENV MAIL MAILPATH
   10655 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   10656 done
   10657 PS1='$ '
   10658 PS2='> '
   10659 PS4='+ '
   10660 
   10661 # NLS nuisances.
   10662 for as_var in \
   10663   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   10664   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   10665   LC_TELEPHONE LC_TIME
   10666 do
   10667   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   10668     eval $as_var=C; export $as_var
   10669   else
   10670     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   10671   fi
   10672 done
   10673 
   10674 # Required to use basename.
   10675 if expr a : '\(a\)' >/dev/null 2>&1; then
   10676   as_expr=expr
   10677 else
   10678   as_expr=false
   10679 fi
   10680 
   10681 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
   10682   as_basename=basename
   10683 else
   10684   as_basename=false
   10685 fi
   10686 
   10687 
   10688 # Name of the executable.
   10689 as_me=`$as_basename "$0" ||
   10690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   10691 	 X"$0" : 'X\(//\)$' \| \
   10692 	 X"$0" : 'X\(/\)$' \| \
   10693 	 .     : '\(.\)' 2>/dev/null ||
   10694 echo X/"$0" |
   10695     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   10696   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   10697   	  /^X\/\(\/\).*/{ s//\1/; q; }
   10698   	  s/.*/./; q'`
   10699 
   10700 
   10701 
   10702 
   10703   as_lineno_1=$LINENO
   10704   as_lineno_2=$LINENO
   10705   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
   10706   test "x$as_lineno_1" != "x$as_lineno_2" &&
   10707   test "x$as_lineno_3"  = "x$as_lineno_2" || {
   10708 
   10709   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   10710   # uniformly replaced by the line number.  The first 'sed' inserts a
   10711   # line-number line after each line using $LINENO; the second 'sed'
   10712   # does the real work.  The second script uses 'N' to pair each
   10713   # line-number line with the line containing $LINENO, and appends
   10714   # trailing '-' during substitution so that $LINENO is not a special
   10715   # case at line end.
   10716   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   10717   # scripts with optimization help from Paolo Bonzini.  Blame Lee
   10718   # E. McMahon (1931-1989) for sed's syntax.  :-)
   10719   sed -n '
   10720     p
   10721     /[$]LINENO/=
   10722   ' <$as_myself |
   10723     sed '
   10724       s,[$]LINENO.*,&-,
   10725       t lineno
   10726       b
   10727       : lineno
   10728       N
   10729       : loop
   10730       s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
   10731       t loop
   10732       s,-\n.*,,
   10733     ' >$as_me.lineno &&
   10734   chmod +x $as_me.lineno ||
   10735     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
   10736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
   10737    { (exit 1); exit 1; }; }
   10738 
   10739   # Don't try to exec as it changes $[0], causing all sort of problems
   10740   # (the dirname of $[0] is not the place where we might find the
   10741   # original and so on.  Autoconf is especially sensible to this).
   10742   . ./$as_me.lineno
   10743   # Exit status is that of the last command.
   10744   exit
   10745 }
   10746 
   10747 
   10748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
   10749   *c*,-n*) ECHO_N= ECHO_C='
   10750 ' ECHO_T='	' ;;
   10751   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
   10752   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
   10753 esac
   10754 
   10755 if expr a : '\(a\)' >/dev/null 2>&1; then
   10756   as_expr=expr
   10757 else
   10758   as_expr=false
   10759 fi
   10760 
   10761 rm -f conf$$ conf$$.exe conf$$.file
   10762 echo >conf$$.file
   10763 if ln -s conf$$.file conf$$ 2>/dev/null; then
   10764   # We could just check for DJGPP; but this test a) works b) is more generic
   10765   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
   10766   if test -f conf$$.exe; then
   10767     # Don't use ln at all; we don't have any links
   10768     as_ln_s='cp -p'
   10769   else
   10770     as_ln_s='ln -s'
   10771   fi
   10772 elif ln conf$$.file conf$$ 2>/dev/null; then
   10773   as_ln_s=ln
   10774 else
   10775   as_ln_s='cp -p'
   10776 fi
   10777 rm -f conf$$ conf$$.exe conf$$.file
   10778 
   10779 if mkdir -p . 2>/dev/null; then
   10780   as_mkdir_p=:
   10781 else
   10782   test -d ./-p && rmdir ./-p
   10783   as_mkdir_p=false
   10784 fi
   10785 
   10786 as_executable_p="test -f"
   10787 
   10788 # Sed expression to map a string onto a valid CPP name.
   10789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   10790 
   10791 # Sed expression to map a string onto a valid variable name.
   10792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   10793 
   10794 
   10795 # IFS
   10796 # We need space, tab and new line, in precisely that order.
   10797 as_nl='
   10798 '
   10799 IFS=" 	$as_nl"
   10800 
   10801 # CDPATH.
   10802 $as_unset CDPATH
   10803 
   10804 exec 6>&1
   10805 
   10806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
   10807 # report actual input values of CONFIG_FILES etc. instead of their
   10808 # values after options handling.  Logging --version etc. is OK.
   10809 exec 5>>config.log
   10810 {
   10811   echo
   10812   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   10813 ## Running $as_me. ##
   10814 _ASBOX
   10815 } >&5
   10816 cat >&5 <<_CSEOF
   10817 
   10818 This file was extended by $as_me, which was
   10819 generated by GNU Autoconf 2.59b.  Invocation command line was
   10820 
   10821   CONFIG_FILES    = $CONFIG_FILES
   10822   CONFIG_HEADERS  = $CONFIG_HEADERS
   10823   CONFIG_LINKS    = $CONFIG_LINKS
   10824   CONFIG_COMMANDS = $CONFIG_COMMANDS
   10825   $ $0 $@
   10826 
   10827 _CSEOF
   10828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
   10829 echo >&5
   10830 _ACEOF
   10831 
   10832 # Files that config.status was made for.
   10833 if test -n "$ac_config_files"; then
   10834   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
   10835 fi
   10836 
   10837 if test -n "$ac_config_headers"; then
   10838   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
   10839 fi
   10840 
   10841 if test -n "$ac_config_links"; then
   10842   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
   10843 fi
   10844 
   10845 if test -n "$ac_config_commands"; then
   10846   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
   10847 fi
   10848 
   10849 cat >>$CONFIG_STATUS <<\_ACEOF
   10850 
   10851 ac_cs_usage="\
   10852 \`$as_me' instantiates files from templates according to the
   10853 current configuration.
   10854 
   10855 Usage: $0 [OPTIONS] [FILE]...
   10856 
   10857   -h, --help       print this help, then exit
   10858   -V, --version    print version number, then exit
   10859   -q, --quiet      do not print progress messages
   10860   -d, --debug      don't remove temporary files
   10861       --recheck    update $as_me by reconfiguring in the same conditions
   10862   --file=FILE[:TEMPLATE]
   10863 		   instantiate the configuration file FILE
   10864   --header=FILE[:TEMPLATE]
   10865 		   instantiate the configuration header FILE
   10866 
   10867 Configuration files:
   10868 $config_files
   10869 
   10870 Configuration headers:
   10871 $config_headers
   10872 
   10873 Report bugs to <bug-autoconf@gnu.org>."
   10874 _ACEOF
   10875 
   10876 cat >>$CONFIG_STATUS <<_ACEOF
   10877 ac_cs_version="\\
   10878 config.status
   10879 configured by $0, generated by GNU Autoconf 2.59b,
   10880   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
   10881 
   10882 Copyright (C) 2004 Free Software Foundation, Inc.
   10883 This config.status script is free software; the Free Software Foundation
   10884 gives unlimited permission to copy, distribute and modify it."
   10885 srcdir=$srcdir
   10886 INSTALL="$INSTALL"
   10887 _ACEOF
   10888 
   10889 cat >>$CONFIG_STATUS <<\_ACEOF
   10890 # If no file are specified by the user, then we need to provide default
   10891 # value.  By we need to know if files were specified by the user.
   10892 ac_need_defaults=:
   10893 while test $# != 0
   10894 do
   10895   case $1 in
   10896   --*=*)
   10897     ac_option=`expr "x$1" : 'x\([^=]*\)='`
   10898     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
   10899     ac_shift=:
   10900     ;;
   10901   -*)
   10902     ac_option=$1
   10903     ac_optarg=$2
   10904     ac_shift=shift
   10905     ;;
   10906   *) # This is not an option, so the user has probably given explicit
   10907      # arguments.
   10908      ac_option=$1
   10909      ac_need_defaults=false;;
   10910   esac
   10911 
   10912   case $ac_option in
   10913   # Handling of the options.
   10914 _ACEOF
   10915 cat >>$CONFIG_STATUS <<\_ACEOF
   10916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   10917     ac_cs_recheck=: ;;
   10918   --version | --vers* | -V )
   10919     echo "$ac_cs_version"; exit 0 ;;
   10920   --he | --h)
   10921     # Conflict between --help and --header
   10922     { { echo "$as_me:$LINENO: error: ambiguous option: $1
   10923 Try \`$0 --help' for more information." >&5
   10924 echo "$as_me: error: ambiguous option: $1
   10925 Try \`$0 --help' for more information." >&2;}
   10926    { (exit 1); exit 1; }; };;
   10927   --help | --hel | -h )
   10928     echo "$ac_cs_usage"; exit 0 ;;
   10929   --debug | --d* | -d )
   10930     debug=: ;;
   10931   --file | --fil | --fi | --f )
   10932     $ac_shift
   10933     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
   10934     ac_need_defaults=false;;
   10935   --header | --heade | --head | --hea )
   10936     $ac_shift
   10937     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
   10938     ac_need_defaults=false;;
   10939   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   10940   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   10941     ac_cs_silent=: ;;
   10942 
   10943   # This is an error.
   10944   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
   10945 Try \`$0 --help' for more information." >&5
   10946 echo "$as_me: error: unrecognized option: $1
   10947 Try \`$0 --help' for more information." >&2;}
   10948    { (exit 1); exit 1; }; } ;;
   10949 
   10950   *) ac_config_targets="$ac_config_targets $1" ;;
   10951 
   10952   esac
   10953   shift
   10954 done
   10955 
   10956 ac_configure_extra_args=
   10957 
   10958 if $ac_cs_silent; then
   10959   exec 6>/dev/null
   10960   ac_configure_extra_args="$ac_configure_extra_args --silent"
   10961 fi
   10962 
   10963 _ACEOF
   10964 cat >>$CONFIG_STATUS <<_ACEOF
   10965 if \$ac_cs_recheck; then
   10966   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
   10967   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   10968 fi
   10969 
   10970 _ACEOF
   10971 
   10972 
   10973 
   10974 
   10975 
   10976 cat >>$CONFIG_STATUS <<\_ACEOF
   10977 for ac_config_target in $ac_config_targets
   10978 do
   10979   case "$ac_config_target" in
   10980   # Handling of arguments.
   10981   "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
   10982   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   10983   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   10984   "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
   10985   "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
   10986   "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
   10987   "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
   10988   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
   10989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   10990    { (exit 1); exit 1; }; };;
   10991   esac
   10992 done
   10993 
   10994 # If the user did not use the arguments to specify the items to instantiate,
   10995 # then the envvar interface is used.  Set only those that are not.
   10996 # We use the long form for the default assignment because of an extremely
   10997 # bizarre bug on SunOS 4.1.3.
   10998 if $ac_need_defaults; then
   10999   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   11000   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   11001 fi
   11002 
   11003 # Have a temporary directory for convenience.  Make it in the build tree
   11004 # simply because there is no reason to put it here, and in addition,
   11005 # creating and moving files from /tmp can sometimes cause problems.
   11006 # Create a temporary directory, and hook for its removal unless debugging.
   11007 $debug ||
   11008 {
   11009   trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
   11010   trap '{ (exit 1); exit 1; }' 1 2 13 15
   11011 }
   11012 
   11013 # Create a (secure) tmp directory for tmp files.
   11014 
   11015 {
   11016   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
   11017   test -n "$tmp" && test -d "$tmp"
   11018 }  ||
   11019 {
   11020   tmp=./confstat$$-$RANDOM
   11021   (umask 077 && mkdir $tmp)
   11022 } ||
   11023 {
   11024    echo "$me: cannot create a temporary directory in ." >&2
   11025    { (exit 1); exit 1; }
   11026 }
   11027 
   11028 _ACEOF
   11029 
   11030 cat >>$CONFIG_STATUS <<_ACEOF
   11031 
   11032 #
   11033 # CONFIG_FILES section.
   11034 #
   11035 
   11036 # No need to generate the scripts if there are no CONFIG_FILES.
   11037 # This happens for instance when ./config.status config.h
   11038 if test -n "\$CONFIG_FILES"; then
   11039   # Protect against being on the right side of a sed subst in config.status.
   11040   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
   11041    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
   11042 s,@SHELL@,$SHELL,;t t
   11043 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
   11044 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
   11045 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
   11046 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
   11047 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
   11048 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
   11049 s,@exec_prefix@,$exec_prefix,;t t
   11050 s,@prefix@,$prefix,;t t
   11051 s,@program_transform_name@,$program_transform_name,;t t
   11052 s,@bindir@,$bindir,;t t
   11053 s,@sbindir@,$sbindir,;t t
   11054 s,@libexecdir@,$libexecdir,;t t
   11055 s,@datadir@,$datadir,;t t
   11056 s,@sysconfdir@,$sysconfdir,;t t
   11057 s,@sharedstatedir@,$sharedstatedir,;t t
   11058 s,@localstatedir@,$localstatedir,;t t
   11059 s,@libdir@,$libdir,;t t
   11060 s,@includedir@,$includedir,;t t
   11061 s,@oldincludedir@,$oldincludedir,;t t
   11062 s,@infodir@,$infodir,;t t
   11063 s,@mandir@,$mandir,;t t
   11064 s,@build_alias@,$build_alias,;t t
   11065 s,@host_alias@,$host_alias,;t t
   11066 s,@target_alias@,$target_alias,;t t
   11067 s,@DEFS@,$DEFS,;t t
   11068 s,@ECHO_C@,$ECHO_C,;t t
   11069 s,@ECHO_N@,$ECHO_N,;t t
   11070 s,@ECHO_T@,$ECHO_T,;t t
   11071 s,@LIBS@,$LIBS,;t t
   11072 s,@CC@,$CC,;t t
   11073 s,@CFLAGS@,$CFLAGS,;t t
   11074 s,@LDFLAGS@,$LDFLAGS,;t t
   11075 s,@CPPFLAGS@,$CPPFLAGS,;t t
   11076 s,@ac_ct_CC@,$ac_ct_CC,;t t
   11077 s,@EXEEXT@,$EXEEXT,;t t
   11078 s,@OBJEXT@,$OBJEXT,;t t
   11079 s,@CXX@,$CXX,;t t
   11080 s,@CXXFLAGS@,$CXXFLAGS,;t t
   11081 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
   11082 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
   11083 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
   11084 s,@CPP@,$CPP,;t t
   11085 s,@X_CFLAGS@,$X_CFLAGS,;t t
   11086 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
   11087 s,@X_LIBS@,$X_LIBS,;t t
   11088 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
   11089 s,@XDEVDIRS@,$XDEVDIRS,;t t
   11090 s,@XPROGDIRS@,$XPROGDIRS,;t t
   11091 s,@XLIBDIRS@,$XLIBDIRS,;t t
   11092 s,@appresdir@,$appresdir,;t t
   11093 s,@LPR@,$LPR,;t t
   11094 s,@LP@,$LP,;t t
   11095 s,@LPQ@,$LPQ,;t t
   11096 s,@PSPRINT@,$PSPRINT,;t t
   11097 s,@DVIPRINT@,$DVIPRINT,;t t
   11098 s,@PERLPATH@,$PERLPATH,;t t
   11099 s,@YACC@,$YACC,;t t
   11100 s,@RANLIB@,$RANLIB,;t t
   11101 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
   11102 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
   11103 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
   11104 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
   11105 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
   11106 s,@LN_S@,$LN_S,;t t
   11107 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
   11108 s,@GREP@,$GREP,;t t
   11109 s,@EGREP@,$EGREP,;t t
   11110 s,@LIBC@,$LIBC,;t t
   11111 s,@LIBM@,$LIBM,;t t
   11112 s,@LIBOBJS@,$LIBOBJS,;t t
   11113 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
   11114 s,@PAGE@,$PAGE,;t t
   11115 s,@g@,$g,;t t
   11116 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
   11117 s,@tmac_wrap@,$tmac_wrap,;t t
   11118 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
   11119 s,@ALT_GHOSTSCRIPT_PROGS@,$ALT_GHOSTSCRIPT_PROGS,;t t
   11120 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
   11121 s,@ac_ct_GHOSTSCRIPT@,$ac_ct_GHOSTSCRIPT,;t t
   11122 s,@pnmcut@,$pnmcut,;t t
   11123 s,@pnmcrop@,$pnmcrop,;t t
   11124 s,@pnmtopng@,$pnmtopng,;t t
   11125 s,@psselect@,$psselect,;t t
   11126 s,@pnmtops@,$pnmtops,;t t
   11127 s,@make_html@,$make_html,;t t
   11128 s,@make_install_html@,$make_install_html,;t t
   11129 s,@ALT_AWK_PROGS@,$ALT_AWK_PROGS,;t t
   11130 s,@AWK@,$AWK,;t t
   11131 s,@ac_ct_AWK@,$ac_ct_AWK,;t t
   11132 s,@make_pdfdoc@,$make_pdfdoc,;t t
   11133 s,@make_install_pdfdoc@,$make_install_pdfdoc,;t t
   11134 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
   11135 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
   11136 CEOF
   11137 
   11138 _ACEOF
   11139 
   11140   cat >>$CONFIG_STATUS <<\_ACEOF
   11141   # Split the substitutions into bite-sized pieces for seds with
   11142   # small command number limits, like on Digital OSF/1 and HP-UX.
   11143   ac_max_sed_lines=48
   11144   ac_sed_frag=1 # Number of current file.
   11145   ac_beg=1 # First line for current file.
   11146   ac_end=$ac_max_sed_lines # Line after last line for current file.
   11147   ac_more_lines=:
   11148   ac_sed_cmds=
   11149   while $ac_more_lines; do
   11150     if test $ac_beg -gt 1; then
   11151       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   11152     else
   11153       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
   11154     fi
   11155     if test ! -s $tmp/subs.frag; then
   11156       ac_more_lines=false
   11157     else
   11158       # The purpose of the label and of the branching condition is to
   11159       # speed up the sed processing (if there are no `@' at all, there
   11160       # is no need to browse any of the substitutions).
   11161       # These are the two extra sed commands mentioned above.
   11162       (echo ':t
   11163   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
   11164       if test -z "$ac_sed_cmds"; then
   11165 	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
   11166       else
   11167 	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
   11168       fi
   11169       ac_sed_frag=`expr $ac_sed_frag + 1`
   11170       ac_beg=$ac_end
   11171       ac_end=`expr $ac_end + $ac_max_sed_lines`
   11172     fi
   11173   done
   11174   if test -z "$ac_sed_cmds"; then
   11175     ac_sed_cmds=cat
   11176   fi
   11177 fi # test -n "$CONFIG_FILES"
   11178 
   11179 _ACEOF
   11180 cat >>$CONFIG_STATUS <<\_ACEOF
   11181 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   11182   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   11183   case $ac_file in
   11184   - | *:- | *:-:* ) # input from stdin
   11185 	cat >$tmp/stdin
   11186 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11187 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11188   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11189 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11190   * )   ac_file_in=$ac_file.in ;;
   11191   esac
   11192 
   11193   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
   11194   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   11195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11196 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   11197 	 X"$ac_file" : 'X\(//\)$' \| \
   11198 	 X"$ac_file" : 'X\(/\)' \| \
   11199 	 .     : '\(.\)' 2>/dev/null ||
   11200 echo X"$ac_file" |
   11201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11202   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11203   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11204   	  /^X\(\/\).*/{ s//\1/; q; }
   11205   	  s/.*/./; q'`
   11206   { if $as_mkdir_p; then
   11207     test -d "$ac_dir" || mkdir -p "$ac_dir"
   11208   else
   11209     as_dir="$ac_dir"
   11210     as_dirs=
   11211     while test ! -d "$as_dir"; do
   11212       as_dirs="$as_dir $as_dirs"
   11213       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   11214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11215 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11216 	 X"$as_dir" : 'X\(//\)$' \| \
   11217 	 X"$as_dir" : 'X\(/\)' \| \
   11218 	 .     : '\(.\)' 2>/dev/null ||
   11219 echo X"$as_dir" |
   11220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11221   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11222   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11223   	  /^X\(\/\).*/{ s//\1/; q; }
   11224   	  s/.*/./; q'`
   11225     done
   11226     test ! -n "$as_dirs" || mkdir $as_dirs
   11227   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   11228 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   11229    { (exit 1); exit 1; }; }; }
   11230 
   11231   ac_builddir=.
   11232 
   11233 if test "$ac_dir" != .; then
   11234   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   11235   # A "../" for each directory in $ac_dir_suffix.
   11236   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
   11237 else
   11238   ac_dir_suffix= ac_top_builddir=
   11239 fi
   11240 
   11241 case $srcdir in
   11242   .)  # No --srcdir option.  We are building in place.
   11243     ac_srcdir=.
   11244     if test -z "$ac_top_builddir"; then
   11245        ac_top_srcdir=.
   11246     else
   11247        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
   11248     fi ;;
   11249   [\\/]* | ?:[\\/]* )  # Absolute name.
   11250     ac_srcdir=$srcdir$ac_dir_suffix;
   11251     ac_top_srcdir=$srcdir ;;
   11252   *) # Relative name.
   11253     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
   11254     ac_top_srcdir=$ac_top_builddir$srcdir ;;
   11255 esac
   11256 
   11257 # Do not use `cd foo && pwd` to compute absolute names, because
   11258 # the directories may not exist.
   11259 case `pwd` in
   11260 .) ac_abs_builddir="$ac_dir";;
   11261 *)
   11262   case "$ac_dir" in
   11263   .) ac_abs_builddir=`pwd`;;
   11264   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
   11265   *) ac_abs_builddir=`pwd`/"$ac_dir";;
   11266   esac;;
   11267 esac
   11268 case $ac_abs_builddir in
   11269 .) ac_abs_top_builddir=${ac_top_builddir}.;;
   11270 *)
   11271   case ${ac_top_builddir}. in
   11272   .) ac_abs_top_builddir=$ac_abs_builddir;;
   11273   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
   11274   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
   11275   esac;;
   11276 esac
   11277 case $ac_abs_builddir in
   11278 .) ac_abs_srcdir=$ac_srcdir;;
   11279 *)
   11280   case $ac_srcdir in
   11281   .) ac_abs_srcdir=$ac_abs_builddir;;
   11282   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
   11283   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
   11284   esac;;
   11285 esac
   11286 case $ac_abs_builddir in
   11287 .) ac_abs_top_srcdir=$ac_top_srcdir;;
   11288 *)
   11289   case $ac_top_srcdir in
   11290   .) ac_abs_top_srcdir=$ac_abs_builddir;;
   11291   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
   11292   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
   11293   esac;;
   11294 esac
   11295 
   11296 
   11297   case $INSTALL in
   11298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   11299   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
   11300   esac
   11301 
   11302   if test x"$ac_file" != x-; then
   11303     { echo "$as_me:$LINENO: creating $ac_file" >&5
   11304 echo "$as_me: creating $ac_file" >&6;}
   11305     rm -f "$ac_file"
   11306   fi
   11307   # Let's still pretend it is `configure' which instantiates (i.e., don't
   11308   # use $as_me), people would be surprised to read:
   11309   #    /* config.h.  Generated by config.status.  */
   11310   if test x"$ac_file" = x-; then
   11311     configure_input=
   11312   else
   11313     configure_input="$ac_file.  "
   11314   fi
   11315   configure_input=$configure_input"Generated from `echo $ac_file_in |
   11316 				     sed 's,.*/,,'` by configure."
   11317 
   11318   # First look for the input files in the build tree, otherwise in the
   11319   # src tree.
   11320   ac_file_inputs=`IFS=:
   11321     for f in $ac_file_in; do
   11322       case $f in
   11323       -) echo $tmp/stdin ;;
   11324       [\\/$]*)
   11325 	 # Absolute (can't be DOS-style, as IFS=:)
   11326 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11327 echo "$as_me: error: cannot find input file: $f" >&2;}
   11328    { (exit 1); exit 1; }; }
   11329 	 echo "$f";;
   11330       *) # Relative
   11331 	 if test -f "$f"; then
   11332 	   # Build tree
   11333 	   echo "$f"
   11334 	 elif test -f "$srcdir/$f"; then
   11335 	   # Source tree
   11336 	   echo "$srcdir/$f"
   11337 	 else
   11338 	   # /dev/null tree
   11339 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11340 echo "$as_me: error: cannot find input file: $f" >&2;}
   11341    { (exit 1); exit 1; }; }
   11342 	 fi;;
   11343       esac
   11344     done` || { (exit 1); exit 1; }
   11345 _ACEOF
   11346 cat >>$CONFIG_STATUS <<_ACEOF
   11347   sed "$ac_vpsub
   11348 $extrasub
   11349 _ACEOF
   11350 cat >>$CONFIG_STATUS <<\_ACEOF
   11351 :t
   11352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   11353 s,@configure_input@,$configure_input,;t t
   11354 s,@srcdir@,$ac_srcdir,;t t
   11355 s,@abs_srcdir@,$ac_abs_srcdir,;t t
   11356 s,@top_srcdir@,$ac_top_srcdir,;t t
   11357 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
   11358 s,@builddir@,$ac_builddir,;t t
   11359 s,@abs_builddir@,$ac_abs_builddir,;t t
   11360 s,@top_builddir@,$ac_top_builddir,;t t
   11361 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
   11362 s,@INSTALL@,$ac_INSTALL,;t t
   11363 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
   11364   rm -f $tmp/stdin
   11365   if test x"$ac_file" != x-; then
   11366     mv $tmp/out $ac_file
   11367   else
   11368     cat $tmp/out
   11369     rm -f $tmp/out
   11370   fi
   11371 
   11372   # Run the commands associated with the file.
   11373   case $ac_file in
   11374     stamp-h ) echo timestamp > stamp-h ;;
   11375     contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
   11376     test-groff ) chmod +x test-groff ;;
   11377   esac
   11378 done
   11379 _ACEOF
   11380 cat >>$CONFIG_STATUS <<\_ACEOF
   11381 
   11382 #
   11383 # CONFIG_HEADER section.
   11384 #
   11385 
   11386 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   11387 # NAME is the cpp macro being defined and VALUE is the value it is being given.
   11388 #
   11389 # ac_d sets the value in "#define NAME VALUE" lines.
   11390 ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
   11391 ac_dB='[	 ].*$,\1#\2'
   11392 ac_dC=' '
   11393 ac_dD=',;t'
   11394 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   11395 ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
   11396 ac_uB='$,\1#\2define\3'
   11397 ac_uC=' '
   11398 ac_uD=',;t'
   11399 
   11400 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   11401   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   11402   case $ac_file in
   11403   - | *:- | *:-:* ) # input from stdin
   11404 	cat >$tmp/stdin
   11405 	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11406 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11407   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
   11408 	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
   11409   * )   ac_file_in=$ac_file.in ;;
   11410   esac
   11411 
   11412   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
   11413 echo "$as_me: creating $ac_file" >&6;}
   11414 
   11415   # First look for the input files in the build tree, otherwise in the
   11416   # src tree.
   11417   ac_file_inputs=`IFS=:
   11418     for f in $ac_file_in; do
   11419       case $f in
   11420       -) echo $tmp/stdin ;;
   11421       [\\/$]*)
   11422 	 # Absolute (can't be DOS-style, as IFS=:)
   11423 	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11424 echo "$as_me: error: cannot find input file: $f" >&2;}
   11425    { (exit 1); exit 1; }; }
   11426 	 # Quote $f, to prevent DOS file names from being IFS'd.
   11427 	 echo "$f";;
   11428       *) # Relative
   11429 	 if test -f "$f"; then
   11430 	   # Build tree
   11431 	   echo "$f"
   11432 	 elif test -f "$srcdir/$f"; then
   11433 	   # Source tree
   11434 	   echo "$srcdir/$f"
   11435 	 else
   11436 	   # /dev/null tree
   11437 	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
   11438 echo "$as_me: error: cannot find input file: $f" >&2;}
   11439    { (exit 1); exit 1; }; }
   11440 	 fi;;
   11441       esac
   11442     done` || { (exit 1); exit 1; }
   11443   # Remove the trailing spaces.
   11444   sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
   11445 
   11446 _ACEOF
   11447 
   11448 # Transform confdefs.h into two sed scripts, `conftest.defines' and
   11449 # `conftest.undefs', that substitutes the proper values into
   11450 # config.h.in to produce config.h.  The first handles `#define'
   11451 # templates, and the second `#undef' templates.
   11452 # And first: Protect against being on the right side of a sed subst in
   11453 # config.status.  Protect against being in an unquoted here document
   11454 # in config.status.
   11455 rm -f conftest.defines conftest.undefs
   11456 # Using a here document instead of a string reduces the quoting nightmare.
   11457 # Putting comments in sed scripts is not portable.
   11458 #
   11459 # `end' is used to avoid that the second main sed command (meant for
   11460 # 0-ary CPP macros) applies to n-ary macro definitions.
   11461 # See the Autoconf documentation for `clear'.
   11462 cat >confdef2sed.sed <<\_ACEOF
   11463 s/[\\&,]/\\&/g
   11464 s,[\\$`],\\&,g
   11465 t clear
   11466 : clear
   11467 s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
   11468 t end
   11469 s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
   11470 : end
   11471 _ACEOF
   11472 # If some macros were called several times there might be several times
   11473 # the same #defines, which is useless.  Nevertheless, we may not want to
   11474 # sort them, since we want the *last* AC-DEFINE to be honored.
   11475 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
   11476 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
   11477 rm -f confdef2sed.sed
   11478 
   11479 # This sed command replaces #undef with comments.  This is necessary, for
   11480 # example, in the case of _POSIX_SOURCE, which is predefined and required
   11481 # on some systems where configure will not decide to define it.
   11482 cat >>conftest.undefs <<\_ACEOF
   11483 s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
   11484 _ACEOF
   11485 
   11486 # Break up conftest.defines because some shells have a limit on the size
   11487 # of here documents, and old seds have small limits too (100 cmds).
   11488 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
   11489 echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
   11490 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
   11491 echo '  :' >>$CONFIG_STATUS
   11492 rm -f conftest.tail
   11493 while grep . conftest.defines >/dev/null
   11494 do
   11495   # Write a limited-size here document to $tmp/defines.sed.
   11496   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
   11497   # Speed up: don't consider the non `#define' lines.
   11498   echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
   11499   # Work around the forget-to-reset-the-flag bug.
   11500   echo 't clr' >>$CONFIG_STATUS
   11501   echo ': clr' >>$CONFIG_STATUS
   11502   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   11503   echo 'CEOF
   11504   sed -f $tmp/defines.sed $tmp/in >$tmp/out
   11505   rm -f $tmp/in
   11506   mv $tmp/out $tmp/in
   11507 ' >>$CONFIG_STATUS
   11508   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
   11509   rm -f conftest.defines
   11510   mv conftest.tail conftest.defines
   11511 done
   11512 rm -f conftest.defines
   11513 echo '  fi # grep' >>$CONFIG_STATUS
   11514 echo >>$CONFIG_STATUS
   11515 
   11516 # Break up conftest.undefs because some shells have a limit on the size
   11517 # of here documents, and old seds have small limits too (100 cmds).
   11518 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
   11519 rm -f conftest.tail
   11520 while grep . conftest.undefs >/dev/null
   11521 do
   11522   # Write a limited-size here document to $tmp/undefs.sed.
   11523   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
   11524   # Speed up: don't consider the non `#undef'
   11525   echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
   11526   # Work around the forget-to-reset-the-flag bug.
   11527   echo 't clr' >>$CONFIG_STATUS
   11528   echo ': clr' >>$CONFIG_STATUS
   11529   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
   11530   echo 'CEOF
   11531   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
   11532   rm -f $tmp/in
   11533   mv $tmp/out $tmp/in
   11534 ' >>$CONFIG_STATUS
   11535   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
   11536   rm -f conftest.undefs
   11537   mv conftest.tail conftest.undefs
   11538 done
   11539 rm -f conftest.undefs
   11540 
   11541 cat >>$CONFIG_STATUS <<\_ACEOF
   11542   # Let's still pretend it is `configure' which instantiates (i.e., don't
   11543   # use $as_me), people would be surprised to read:
   11544   #    /* config.h.  Generated by config.status.  */
   11545   if test x"$ac_file" = x-; then
   11546     echo "/* Generated by configure.  */" >$tmp/config.h
   11547   else
   11548     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
   11549   fi
   11550   cat $tmp/in >>$tmp/config.h
   11551   rm -f $tmp/in
   11552   if test x"$ac_file" != x-; then
   11553     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
   11554       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
   11555 echo "$as_me: $ac_file is unchanged" >&6;}
   11556     else
   11557       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
   11558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11559 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   11560 	 X"$ac_file" : 'X\(//\)$' \| \
   11561 	 X"$ac_file" : 'X\(/\)' \| \
   11562 	 .     : '\(.\)' 2>/dev/null ||
   11563 echo X"$ac_file" |
   11564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11565   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11566   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11567   	  /^X\(\/\).*/{ s//\1/; q; }
   11568   	  s/.*/./; q'`
   11569       { if $as_mkdir_p; then
   11570     test -d "$ac_dir" || mkdir -p "$ac_dir"
   11571   else
   11572     as_dir="$ac_dir"
   11573     as_dirs=
   11574     while test ! -d "$as_dir"; do
   11575       as_dirs="$as_dir $as_dirs"
   11576       as_dir=`(dirname "$as_dir") 2>/dev/null ||
   11577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   11578 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   11579 	 X"$as_dir" : 'X\(//\)$' \| \
   11580 	 X"$as_dir" : 'X\(/\)' \| \
   11581 	 .     : '\(.\)' 2>/dev/null ||
   11582 echo X"$as_dir" |
   11583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
   11584   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
   11585   	  /^X\(\/\/\)$/{ s//\1/; q; }
   11586   	  /^X\(\/\).*/{ s//\1/; q; }
   11587   	  s/.*/./; q'`
   11588     done
   11589     test ! -n "$as_dirs" || mkdir $as_dirs
   11590   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
   11591 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
   11592    { (exit 1); exit 1; }; }; }
   11593 
   11594       rm -f $ac_file
   11595       mv $tmp/config.h $ac_file
   11596     fi
   11597   else
   11598     cat $tmp/config.h
   11599     rm -f $tmp/config.h
   11600   fi
   11601 done
   11602 _ACEOF
   11603 
   11604 cat >>$CONFIG_STATUS <<\_ACEOF
   11605 
   11606 { (exit 0); exit 0; }
   11607 _ACEOF
   11608 chmod +x $CONFIG_STATUS
   11609 ac_clean_files=$ac_clean_files_save
   11610 
   11611 
   11612 # configure is writing to config.log, and then calls config.status.
   11613 # config.status does its own redirection, appending to config.log.
   11614 # Unfortunately, on DOS this fails, as config.log is still kept open
   11615 # by configure, so config.status won't be able to write to it; its
   11616 # output is simply discarded.  So we exec the FD to /dev/null,
   11617 # effectively closing config.log, so it can be properly (re)opened and
   11618 # appended to by config.status.  When coming back to configure, we
   11619 # need to make the FD available again.
   11620 if test "$no_create" != yes; then
   11621   ac_cs_success=:
   11622   ac_config_status_args=
   11623   test "$silent" = yes &&
   11624     ac_config_status_args="$ac_config_status_args --quiet"
   11625   exec 5>/dev/null
   11626   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   11627   exec 5>>config.log
   11628   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   11629   # would make configure fail if this is the last instruction.
   11630   $ac_cs_success || { (exit 1); exit 1; }
   11631 fi
   11632 
   11633 
   11634 if test -z "$groff_no_x"; then
   11635      if test "x$with_appresdir" = "x"; then
   11636        { echo "$as_me:$LINENO:
   11637 
   11638   The application resource file for gxditview will be installed as
   11639 
   11640     $appresdir/GXditview
   11641 
   11642   (an existing file will be saved as \`GXditview.old').
   11643   To install it into a different directory, say, \`/etc/gxditview',
   11644   add \`--with-appresdir=/etc/gxditview' to the configure script
   11645   command line options and rerun it.  The environment variable
   11646   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
   11647   omitting the \`gxditview' part which is automatically appended by
   11648   the X11 searching routines for resource files.  More details can be
   11649   found in the X(7) manual page.
   11650        " >&5
   11651 echo "$as_me:
   11652 
   11653   The application resource file for gxditview will be installed as
   11654 
   11655     $appresdir/GXditview
   11656 
   11657   (an existing file will be saved as \`GXditview.old').
   11658   To install it into a different directory, say, \`/etc/gxditview',
   11659   add \`--with-appresdir=/etc/gxditview' to the configure script
   11660   command line options and rerun it.  The environment variable
   11661   \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
   11662   omitting the \`gxditview' part which is automatically appended by
   11663   the X11 searching routines for resource files.  More details can be
   11664   found in the X(7) manual page.
   11665        " >&6;}
   11666      fi
   11667    fi
   11668