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