2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/roff/groff/groff.cpp"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS 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 CPP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR pnmcut pnmcrop pnmtopng psselect pnmtops gs make_html make_install_html pnmtops_nosetpage LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CXX_set
=${CXX+set}
770 ac_env_CXX_value
=$CXX
771 ac_cv_env_CXX_set
=${CXX+set}
772 ac_cv_env_CXX_value
=$CXX
773 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value
=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
777 ac_env_CPP_set
=${CPP+set}
778 ac_env_CPP_value
=$CPP
779 ac_cv_env_CPP_set
=${CPP+set}
780 ac_cv_env_CPP_value
=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
844 if test -n "$ac_init_help"; then
848 Some influential environment variables
:
849 CC C compiler
command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
852 nonstandard directory
<lib dir
>
853 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
854 headers
in a nonstandard directory
<include dir
>
855 CXX C
++ compiler
command
856 CXXFLAGS C
++ compiler flags
859 Use these variables to override the choices made by
`configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
877 ac_dir_suffix= ac_top_builddir=
881 .) # No --srcdir option. We are building in place.
883 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 # Do not use `cd foo
&& pwd` to compute absolute paths, because
897 # the directories may not exist.
899 .) ac_abs_builddir="$ac_dir";;
902 .) ac_abs_builddir=`pwd`;;
903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
907 case $ac_abs_builddir in
908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
910 case ${ac_top_builddir}. in
911 .) ac_abs_top_builddir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916 case $ac_abs_builddir in
917 .) ac_abs_srcdir=$ac_srcdir;;
920 .) ac_abs_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925 case $ac_abs_builddir in
926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
928 case $ac_top_srcdir in
929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.59. Invocation command line was
981 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
982 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
983 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
984 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
985 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
987 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
988 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
990 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
992 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
993 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
994 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
996 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_must_keep_next=false
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 -* ) ac_must_keep_next=true ;;
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close
' the trap.
1076 trap 'exit_status
=$?
1077 # Save into config.log some information that might help in debugging.
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1087 # The following way of writing the cache mishandles newlines in values,
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1110 for ac_var
in $ac_subst_vars
1112 eval ac_val
=$
`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -n "$ac_subst_files"; then
1124 for ac_var
in $ac_subst_files
1126 eval ac_val
=$
`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -s confdefs.h
; then
1139 sed "/^$/d" confdefs.h |
sort
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1146 rm -f core
*.core
&&
1147 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 # Predefined preprocessor variables.
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's
/^
/|
/' "$ac_site_file" >&5
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1222 # Check that the precious variables saved in the cache have kept the same
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1235 ac_cache_corrupted=: ;;
1237 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1244 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1269 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1276 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1302 # checks for programs
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1306 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308 if test -n "$ac_tool_prefix"; then
1309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1311 echo "$as_me:$LINENO: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323 test -z "$as_dir" && as_dir=.
1324 for ac_exec_ext in '' $ac_executable_extensions; do
1325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1336 if test -n "$CC"; then
1337 echo "$as_me:$LINENO: result: $CC" >&5
1338 echo "${ECHO_T}$CC" >&6
1340 echo "$as_me:$LINENO: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1345 if test -z "$ac_cv_prog_CC"; then
1347 # Extract the first word of "gcc", so it can be a program name with args.
1348 set dummy gcc; ac_word=$2
1349 echo "$as_me:$LINENO: checking for $ac_word" >&5
1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 if test -n "$ac_ct_CC"; then
1355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 test -z "$as_dir" && as_dir=.
1362 for ac_exec_ext in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1364 ac_cv_prog_ac_ct_CC="gcc"
1365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374 if test -n "$ac_ct_CC"; then
1375 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1376 echo "${ECHO_T}$ac_ct_CC" >&6
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1387 if test -z "$CC"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1390 set dummy ${ac_tool_prefix}cc; ac_word=$2
1391 echo "$as_me:$LINENO: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_CC="${ac_tool_prefix}cc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1416 if test -n "$CC"; then
1417 echo "$as_me:$LINENO: result: $CC" >&5
1418 echo "${ECHO_T}$CC" >&6
1420 echo "$as_me:$LINENO: result: no" >&5
1421 echo "${ECHO_T}no" >&6
1425 if test -z "$ac_cv_prog_CC"; then
1427 # Extract the first word of "cc", so it can be a program name with args.
1428 set dummy cc; ac_word=$2
1429 echo "$as_me:$LINENO: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_ac_ct_CC="cc"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454 if test -n "$ac_ct_CC"; then
1455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456 echo "${ECHO_T}$ac_ct_CC" >&6
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 # Extract the first word of "cc", so it can be a program name with args.
1470 set dummy cc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1488 ac_prog_rejected=yes
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test $ac_prog_rejected = yes; then
1499 # We found a bogon in the path, so make sure we never use it.
1500 set dummy $ac_cv_prog_CC
1502 if test $# != 0; then
1503 # We chose a different compiler from the bogus one.
1504 # However, it has the same basename, so the bogon will be chosen
1505 # first if we set CC to just the basename; use the full file name.
1507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1513 if test -n "$CC"; then
1514 echo "$as_me:$LINENO: result: $CC" >&5
1515 echo "${ECHO_T}$CC" >&6
1517 echo "$as_me:$LINENO: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1522 if test -z "$CC"; then
1523 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1561 test -n "$CC" && break
1564 if test -z "$CC"; then
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy $ac_prog; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="$ac_prog"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 test -n "$ac_ct_CC" && break
1612 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1613 See \`config.log' for more details.
" >&5
1614 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1615 See \
`config.log' for more details." >&2;}
1616 { (exit 1); exit 1; }; }
1618 # Provide some information about the compiler.
1619 echo "$as_me:$LINENO:" \
1620 "checking for C compiler version" >&5
1621 ac_compiler=`set X
$ac_compile; echo $2`
1622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1623 (eval $ac_compiler --version </dev/null >&5) 2>&5
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); }
1627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1628 (eval $ac_compiler -v </dev/null >&5) 2>&5
1630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631 (exit $ac_status); }
1632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1633 (eval $ac_compiler -V </dev/null >&5) 2>&5
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }
1638 cat >conftest.$ac_ext <<_ACEOF
1641 cat confdefs.h >>conftest.$ac_ext
1642 cat >>conftest.$ac_ext <<_ACEOF
1643 /* end confdefs.h. */
1653 ac_clean_files_save=$ac_clean_files
1654 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1655 # Try to create an executable without -o first, disregard a.out.
1656 # It will help us diagnose broken compilers, and finding out an intuition
1658 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1659 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1660 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1661 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1662 (eval $ac_link_default) 2>&5
1664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665 (exit $ac_status); }; then
1666 # Find the output, starting from the most likely. This scheme is
1667 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1670 # Be careful to initialize this variable, since it used to be cached.
1671 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1673 # b.out is created by i960 compilers.
1674 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1676 test -f "$ac_file" || continue
1678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1681 # This is the source file.
1684 # We found the default executable, but exeext='' is most
1688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1689 # FIXME: I believe we export ac_cv_exeext for Libtool,
1690 # but it would be cool to find out if it's true. Does anybody
1691 # maintain Libtool? --akim.
1699 echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1703 See \`config.log
' for more details." >&5
1704 echo "$as_me: error: C compiler cannot create executables
1705 See \`config.log' for more details.
" >&2;}
1706 { (exit 77); exit 77; }; }
1709 ac_exeext=$ac_cv_exeext
1710 echo "$as_me:$LINENO: result
: $ac_file" >&5
1711 echo "${ECHO_T}$ac_file" >&6
1713 # Check the compiler produces executables we can run. If not, either
1714 # the compiler is broken, or we cross compile.
1715 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1716 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1718 # If not cross compiling, check that we can run a simple program.
1719 if test "$cross_compiling" != yes; then
1720 if { ac_try='./$ac_file'
1721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1725 (exit $ac_status); }; }; then
1728 if test "$cross_compiling" = maybe; then
1731 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1732 If you meant to cross compile
, use \
`--host'.
1733 See \`config.log
' for more details." >&5
1734 echo "$as_me: error: cannot run C compiled programs.
1735 If you meant to cross compile, use \`--host'.
1736 See \
`config.log' for more details." >&2;}
1737 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1745 ac_clean_files=$ac_clean_files_save
1746 # Check the compiler produces executables we can run. If not, either
1747 # the compiler is broken, or we cross compile.
1748 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1750 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1751 echo "${ECHO_T}$cross_compiling" >&6
1753 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1756 (eval $ac_link) 2>&5
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1761 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1762 # work properly (i.e., refer to `conftest.exe'), while it won't with
1764 for ac_file
in conftest.exe conftest conftest.
*; do
1765 test -f "$ac_file" ||
continue
1767 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1768 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1776 See \`config.log' for more details." >&5
1777 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1778 See \`config.log' for more details." >&2;}
1779 { (exit 1); exit 1; }; }
1782 rm -f conftest
$ac_cv_exeext
1783 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1784 echo "${ECHO_T}$ac_cv_exeext" >&6
1786 rm -f conftest.
$ac_ext
1787 EXEEXT
=$ac_cv_exeext
1789 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1790 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1791 if test "${ac_cv_objext+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 cat >conftest.
$ac_ext <<_ACEOF
1797 cat confdefs.h
>>conftest.
$ac_ext
1798 cat >>conftest.
$ac_ext <<_ACEOF
1799 /* end confdefs.h. */
1809 rm -f conftest.o conftest.obj
1810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1811 (eval $ac_compile) 2>&5
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }; then
1815 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1817 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1818 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1823 echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.
$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1829 See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1833 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1835 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1836 echo "${ECHO_T}$ac_cv_objext" >&6
1837 OBJEXT
=$ac_cv_objext
1839 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1840 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1841 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 cat >conftest.
$ac_ext <<_ACEOF
1847 cat confdefs.h
>>conftest.
$ac_ext
1848 cat >>conftest.
$ac_ext <<_ACEOF
1849 /* end confdefs.h. */
1862 rm -f conftest.
$ac_objext
1863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>conftest.er1
1866 grep -v '^ *+' conftest.er1
>conftest.err
1868 cat conftest.err
>&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); } &&
1871 { ac_try
='test -z "$ac_c_werror_flag"
1872 || test ! -s conftest.err'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; } &&
1878 { ac_try
='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1886 echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.
$ac_ext >&5
1891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1892 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1895 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1896 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1897 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1898 ac_test_CFLAGS
=${CFLAGS+set}
1899 ac_save_CFLAGS
=$CFLAGS
1901 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1902 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1903 if test "${ac_cv_prog_cc_g+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 cat >conftest.
$ac_ext <<_ACEOF
1909 cat confdefs.h
>>conftest.
$ac_ext
1910 cat >>conftest.
$ac_ext <<_ACEOF
1911 /* end confdefs.h. */
1921 rm -f conftest.
$ac_objext
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>conftest.er1
1925 grep -v '^ *+' conftest.er1
>conftest.err
1927 cat conftest.err
>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try
='test -z "$ac_c_werror_flag"
1931 || test ! -s conftest.err'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; } &&
1937 { ac_try
='test -s conftest.$ac_objext'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.
$ac_ext >&5
1950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1954 if test "$ac_test_CFLAGS" = set; then
1955 CFLAGS
=$ac_save_CFLAGS
1956 elif test $ac_cv_prog_cc_g = yes; then
1957 if test "$GCC" = yes; then
1963 if test "$GCC" = yes; then
1969 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1970 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1971 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 ac_cv_prog_cc_stdc
=no
1976 cat >conftest.
$ac_ext <<_ACEOF
1979 cat confdefs.h
>>conftest.
$ac_ext
1980 cat >>conftest.
$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1984 #include <sys/types.h>
1985 #include <sys/stat.h>
1986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1987 struct buf { int x; };
1988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1989 static char *e (p, i)
1995 static char *f (char * (*g) (char **, int), char **p, ...)
2000 s = g (p, va_arg (v,int));
2005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2006 function prototypes and stuff, but not '\xHH' hex character constants.
2007 These don't provoke an error unfortunately, instead are silently treated
2008 as 'x'. The following induces an error, until -std1 is added to get
2009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2010 array size at least. It's necessary to write '\x00'==0 to get something
2011 that's true only with -std1. */
2012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2014 int test (int i, double x);
2015 struct s1 {int (*f) (int a);};
2016 struct s2 {int (*f) (double a);};
2017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2023 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2028 # Don't try gcc -ansi; that turns off useful extensions and
2029 # breaks some systems' header files.
2030 # AIX -qlanglvl=ansi
2031 # Ultrix and OSF/1 -std1
2032 # HP-UX 10.20 and later -Ae
2033 # HP-UX older versions -Aa -D_HPUX_SOURCE
2034 # SVR4 -Xc -D__EXTENSIONS__
2035 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2037 CC
="$ac_save_CC $ac_arg"
2038 rm -f conftest.
$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>conftest.er1
2042 grep -v '^ *+' conftest.er1
>conftest.err
2044 cat conftest.err
>&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try
='test -z "$ac_c_werror_flag"
2048 || test ! -s conftest.err'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; } &&
2054 { ac_try
='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2060 ac_cv_prog_cc_stdc
=$ac_arg
2063 echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.
$ac_ext >&5
2067 rm -f conftest.err conftest.
$ac_objext
2069 rm -f conftest.
$ac_ext conftest.
$ac_objext
2074 case "x$ac_cv_prog_cc_stdc" in
2076 echo "$as_me:$LINENO: result: none needed" >&5
2077 echo "${ECHO_T}none needed" >&6 ;;
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2081 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2084 # Some people use a C++ compiler to compile C. Since we use `exit',
2085 # in C++ we need to declare it. In case someone uses the same compiler
2086 # for both compiling C and C++ we need to have the C++ compiler decide
2087 # the declaration of exit, since it's the most demanding environment.
2088 cat >conftest.
$ac_ext <<_ACEOF
2093 rm -f conftest.
$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>conftest.er1
2097 grep -v '^ *+' conftest.er1
>conftest.err
2099 cat conftest.err
>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try
='test -z "$ac_c_werror_flag"
2103 || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try
='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 for ac_declaration
in \
2117 'extern "C" void std::exit (int) throw (); using std::exit;' \
2118 'extern "C" void std::exit (int); using std::exit;' \
2119 'extern "C" void exit (int) throw ();' \
2120 'extern "C" void exit (int);' \
2123 cat >conftest.
$ac_ext <<_ACEOF
2126 cat confdefs.h
>>conftest.
$ac_ext
2127 cat >>conftest.
$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2139 rm -f conftest.
$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1
>conftest.err
2145 cat conftest.err
>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try
='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try
='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.
$ac_ext >&5
2168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 cat >conftest.
$ac_ext <<_ACEOF
2172 cat confdefs.h
>>conftest.
$ac_ext
2173 cat >>conftest.
$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2184 rm -f conftest.
$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>conftest.er1
2188 grep -v '^ *+' conftest.er1
>conftest.err
2190 cat conftest.err
>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } &&
2193 { ac_try
='test -z "$ac_c_werror_flag"
2194 || test ! -s conftest.err'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; } &&
2200 { ac_try
='test -s conftest.$ac_objext'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.
$ac_ext >&5
2212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 if test -n "$ac_declaration"; then
2216 echo '#ifdef __cplusplus' >>confdefs.h
2217 echo $ac_declaration >>confdefs.h
2218 echo '#endif' >>confdefs.h
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.
$ac_ext >&5
2226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2228 ac_cpp
='$CPP $CPPFLAGS'
2229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2234 ac_cpp
='$CXXCPP $CPPFLAGS'
2235 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2238 if test -n "$ac_tool_prefix"; then
2239 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2242 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_CXX+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 if test -n "$CXX"; then
2249 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir
=.
2256 for ac_exec_ext
in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 if test -n "$CXX"; then
2269 echo "$as_me:$LINENO: result: $CXX" >&5
2270 echo "${ECHO_T}$CXX" >&6
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2276 test -n "$CXX" && break
2279 if test -z "$CXX"; then
2281 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2283 # Extract the first word of "$ac_prog", so it can be a program name with args.
2284 set dummy
$ac_prog; ac_word
=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 if test -n "$ac_ct_CXX"; then
2291 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir
=.
2298 for ac_exec_ext
in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2310 if test -n "$ac_ct_CXX"; then
2311 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2312 echo "${ECHO_T}$ac_ct_CXX" >&6
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2318 test -n "$ac_ct_CXX" && break
2320 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2326 # Provide some information about the compiler.
2327 echo "$as_me:$LINENO:" \
2328 "checking for C++ compiler version" >&5
2329 ac_compiler
=`set X $ac_compile; echo $2`
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2331 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2336 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }
2340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2341 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2348 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.
$ac_ext <<_ACEOF
2354 cat confdefs.h
>>conftest.
$ac_ext
2355 cat >>conftest.
$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2369 rm -f conftest.
$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1
>conftest.err
2375 cat conftest.err
>&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try
='test -z "$ac_cxx_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try
='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.
$ac_ext >&5
2398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2399 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2402 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2404 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2406 ac_save_CXXFLAGS
=$CXXFLAGS
2408 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2409 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cxx_g+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 cat >conftest.
$ac_ext <<_ACEOF
2416 cat confdefs.h
>>conftest.
$ac_ext
2417 cat >>conftest.
$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2428 rm -f conftest.
$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2432 grep -v '^ *+' conftest.er1
>conftest.err
2434 cat conftest.err
>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try
='test -z "$ac_cxx_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try
='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 ac_cv_prog_cxx_g
=yes
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.
$ac_ext >&5
2457 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2461 if test "$ac_test_CXXFLAGS" = set; then
2462 CXXFLAGS
=$ac_save_CXXFLAGS
2463 elif test $ac_cv_prog_cxx_g = yes; then
2464 if test "$GXX" = yes; then
2470 if test "$GXX" = yes; then
2476 for ac_declaration
in \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2500 rm -f conftest.
$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1
>conftest.err
2506 cat conftest.err
>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -z "$ac_cxx_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try
='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.
$ac_ext >&5
2529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2530 cat >conftest.
$ac_ext <<_ACEOF
2533 cat confdefs.h
>>conftest.
$ac_ext
2534 cat >>conftest.
$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.
$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1
>conftest.err
2551 cat conftest.err
>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try
='test -z "$ac_cxx_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try
='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.
$ac_ext >&5
2573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2583 ac_cpp
='$CPP $CPPFLAGS'
2584 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2591 ac_cpp
='$CXXCPP $CPPFLAGS'
2592 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2596 if test "$cross_compiling" = no
; then
2597 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
2598 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
2600 if test "$cross_compiling" = yes; then
2603 cat >conftest.
$ac_ext <<_ACEOF
2607 cat confdefs.h
>>conftest.
$ac_ext
2608 cat >>conftest.
$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest
$ac_exeext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621 (eval $ac_link) 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2633 echo "$as_me: program exited with status $ac_status" >&5
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.
$ac_ext >&5
2638 echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6
2640 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2641 echo "$as_me: error: a working C++ compiler is required" >&2;}
2642 { (exit 1); exit 1; }; }
2644 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2647 if test "$cross_compiling" = no
; then
2648 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
2649 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2651 if test "$cross_compiling" = yes; then
2654 cat >conftest.
$ac_ext <<_ACEOF
2658 cat confdefs.h
>>conftest.
$ac_ext
2659 cat >>conftest.
$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2671 ~A() { if (i == 1) _exit(0); }
2684 rm -f conftest
$ac_exeext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2686 (eval $ac_link) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 echo "$as_me:$LINENO: result: yes" >&5
2696 echo "${ECHO_T}yes" >&6
2698 echo "$as_me: program exited with status $ac_status" >&5
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.
$ac_ext >&5
2703 echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6
2705 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2706 echo "$as_me: error: a working C++ compiler is required" >&2;}
2707 { (exit 1); exit 1; }; }
2709 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2712 echo "$as_me:$LINENO: checking that header files support C++" >&5
2713 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2714 cat >conftest.
$ac_ext <<_ACEOF
2718 cat confdefs.h
>>conftest.
$ac_ext
2719 cat >>conftest.
$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2739 rm -f conftest.
$ac_objext conftest
$ac_exeext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741 (eval $ac_link) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1
>conftest.err
2745 cat conftest.err
>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try
='test -z "$ac_cxx_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try
='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.
$ac_ext >&5
2767 echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2769 { { echo "$as_me:$LINENO: error: header files do not support C++
2770 (if you are using a version of gcc/g++ earlier than 2.5,
2771 you should install libg++)" >&5
2772 echo "$as_me: error: header files do not support C++
2773 (if you are using a version of gcc/g++ earlier than 2.5,
2774 you should install libg++)" >&2;}
2775 { (exit 1); exit 1; }; }
2777 rm -f conftest.err conftest.
$ac_objext \
2778 conftest
$ac_exeext conftest.
$ac_ext
2780 ac_cpp
='$CPP $CPPFLAGS'
2781 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2786 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
2787 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
2788 cat >conftest.
$ac_ext <<_ACEOF
2792 cat confdefs.h
>>conftest.
$ac_ext
2793 cat >>conftest.
$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 /* Treat any failure as ASCII for compatibility with existing art.
2798 Use compile-time rather than run-time tests for cross-compiler
2801 make an error "Character set is not EBCDIC"
2814 rm -f conftest.
$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2818 grep -v '^ *+' conftest.er1
>conftest.err
2820 cat conftest.err
>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try
='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try
='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 groff_cv_ebcdic
="yes"
2837 TTYDEVDIRS
="font/devcp1047"
2838 echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2841 cat >>confdefs.h
<<\_ACEOF
2842 #define IS_EBCDIC_HOST 1
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.
$ac_ext >&5
2849 groff_cv_ebcdic
="no"
2850 TTYDEVDIRS
="font/devascii font/devlatin1"
2851 OTHERDEVDIRS
="font/devlj4 font/devlbp"
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2858 if test "$groff_cv_ebcdic" = "yes"; then
2859 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
2860 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2863 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6 ;;
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6 ;;
2871 if test -z "$PSPRINT"; then
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy
$ac_prog; ac_word
=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_LPR+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 if test -n "$LPR"; then
2882 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
2884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir
=.
2889 for ac_exec_ext
in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_LPR
="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$LPR"; then
2902 echo "$as_me:$LINENO: result: $LPR" >&5
2903 echo "${ECHO_T}$LPR" >&6
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$LPR" && break
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy
$ac_prog; ac_word
=$2
2916 echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_LP+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 if test -n "$LP"; then
2922 ac_cv_prog_LP
="$LP" # Let the user override the test.
2924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir
=.
2929 for ac_exec_ext
in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_LP
="$ac_prog"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 if test -n "$LP"; then
2942 echo "$as_me:$LINENO: result: $LP" >&5
2943 echo "${ECHO_T}$LP" >&6
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 test -n "$LP" && break
2952 if test -n "$LPR" && test -n "$LP"; then
2953 # HP-UX provides an lpr command that emulates lpr using lp,
2954 # but it doesn't have lpq; in this case we want to use lp
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy
$ac_prog; ac_word
=$2
2960 echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2962 if test "${ac_cv_prog_LPQ+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -n "$LPQ"; then
2966 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
2968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir
=.
2973 for ac_exec_ext
in '' $ac_executable_extensions; do
2974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_LPQ
="$ac_prog"
2976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 if test -n "$LPQ"; then
2986 echo "$as_me:$LINENO: result: $LPQ" >&5
2987 echo "${ECHO_T}$LPQ" >&6
2989 echo "$as_me:$LINENO: result: no" >&5
2990 echo "${ECHO_T}no" >&6
2993 test -n "$LPQ" && break
2996 test -n "$LPQ" || LPR
=
2998 if test -n "$LPR"; then
3000 elif test -n "$LP"; then
3005 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
3006 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
3007 echo "$as_me:$LINENO: result: $PSPRINT" >&5
3008 echo "${ECHO_T}$PSPRINT" >&6
3010 # Figure out DVIPRINT from PSPRINT.
3011 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
3012 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
3013 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
3014 if test "X$PSPRINT" = "Xlpr"; then
3021 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
3022 echo "${ECHO_T}$DVIPRINT" >&6
3023 # Extract the first word of "perl", so it can be a program name with args.
3024 set dummy perl
; ac_word
=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_path_PERLPATH+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
3053 PERLPATH
=$ac_cv_path_PERLPATH
3055 if test -n "$PERLPATH"; then
3056 echo "$as_me:$LINENO: result: $PERLPATH" >&5
3057 echo "${ECHO_T}$PERLPATH" >&6
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3063 for ac_prog
in byacc
'bison -y'
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy
$ac_prog; ac_word
=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_YACC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test -n "$YACC"; then
3073 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 for ac_exec_ext
in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_YACC
="$ac_prog"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 YACC
=$ac_cv_prog_YACC
3092 if test -n "$YACC"; then
3093 echo "$as_me:$LINENO: result: $YACC" >&5
3094 echo "${ECHO_T}$YACC" >&6
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3100 test -n "$YACC" && break
3102 test -n "$YACC" || YACC
="yacc"
3104 if test -n "$ac_tool_prefix"; then
3105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3106 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_RANLIB+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 if test -n "$RANLIB"; then
3113 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir
=.
3120 for ac_exec_ext
in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 RANLIB
=$ac_cv_prog_RANLIB
3132 if test -n "$RANLIB"; then
3133 echo "$as_me:$LINENO: result: $RANLIB" >&5
3134 echo "${ECHO_T}$RANLIB" >&6
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3141 if test -z "$ac_cv_prog_RANLIB"; then
3142 ac_ct_RANLIB
=$RANLIB
3143 # Extract the first word of "ranlib", so it can be a program name with args.
3144 set dummy ranlib
; ac_word
=$2
3145 echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 if test -n "$ac_ct_RANLIB"; then
3151 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir
=.
3158 for ac_exec_ext
in '' $ac_executable_extensions; do
3159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3170 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3171 if test -n "$ac_ct_RANLIB"; then
3172 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3173 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3179 RANLIB
=$ac_ct_RANLIB
3181 RANLIB
="$ac_cv_prog_RANLIB"
3185 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
3186 if test -f $ac_dir/install-sh
; then
3188 ac_install_sh
="$ac_aux_dir/install-sh -c"
3190 elif test -f $ac_dir/install.sh
; then
3192 ac_install_sh
="$ac_aux_dir/install.sh -c"
3194 elif test -f $ac_dir/shtool
; then
3196 ac_install_sh
="$ac_aux_dir/shtool install -c"
3200 if test -z "$ac_aux_dir"; then
3201 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3202 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3203 { (exit 1); exit 1; }; }
3205 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
3206 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
3207 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3210 ac_dir
=`cd $ac_aux_dir; pwd`
3211 ac_install_sh
="$ac_dir/install-sh -c"
3212 for ac_prog
in install-info
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy
$ac_prog; ac_word
=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 if test -n "$INSTALL_INFO"; then
3222 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_INSTALL_INFO
="$ac_prog"
3232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
3241 if test -n "$INSTALL_INFO"; then
3242 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3243 echo "${ECHO_T}$INSTALL_INFO" >&6
3245 echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3249 test -n "$INSTALL_INFO" && break
3251 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
3253 # Find a good install program. We prefer a C program (faster),
3254 # so one script is as good as another. But avoid the broken or
3255 # incompatible versions:
3256 # SysV /etc/install, /usr/sbin/install
3257 # SunOS /usr/etc/install
3258 # IRIX /sbin/install
3260 # AmigaOS /C/install, which installs bootblocks on floppy discs
3261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264 # OS/2's system install, which has a completely different semantic
3265 # ./install, which can be erroneously created by make from ./install.sh.
3266 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3267 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3268 if test -z "$INSTALL"; then
3269 if test "${ac_cv_path_install+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir
=.
3277 # Account for people who put trailing slashes in PATH elements.
3279 .
/ | .
// |
/cC
/* | \
3280 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3281 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3284 # OSF1 and SCO ODT 3.0 have their own names for install.
3285 # Don't use installbsd from OSF since it installs stuff as root
3287 for ac_prog
in ginstall scoinst
install; do
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3290 if test $ac_prog = install &&
3291 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3292 # AIX install. It has an incompatible calling convention.
3294 elif test $ac_prog = install &&
3295 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3296 # program-specific install script used by HP pwplus--don't use.
3299 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3311 if test "${ac_cv_path_install+set}" = set; then
3312 INSTALL
=$ac_cv_path_install
3314 # As a last resort, use the slow shell script. We don't cache a
3315 # path for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the path is relative.
3318 INSTALL
=$ac_install_sh
3321 echo "$as_me:$LINENO: result: $INSTALL" >&5
3322 echo "${ECHO_T}$INSTALL" >&6
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3330 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3332 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3335 if test "$LN_S" = "ln -s"; then
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3339 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3340 echo "${ECHO_T}no, using $LN_S" >&6
3344 # use a dummy substitution if no csh hack is necessary to avoid errors
3345 # with non-GNU sed programs
3346 echo "$as_me:$LINENO: checking for csh hash hack" >&5
3347 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
3349 cat <<EOF >conftest.sh
3352 export PATH || exit 0
3356 chmod +x conftest.sh
3357 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
3358 echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6
3360 SH_SCRIPT_SED_CMD
='1s/.*/:/'
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 SH_SCRIPT_SED_CMD
='1s/a/a/'
3369 # checks for headers
3371 ac_cpp
='$CPP $CPPFLAGS'
3372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3375 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3377 # On Suns, sometimes $CPP names a directory.
3378 if test -n "$CPP" && test -d "$CPP"; then
3381 if test -z "$CPP"; then
3382 if test "${ac_cv_prog_CPP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 # Double quotes because CPP needs to be expanded
3386 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3389 for ac_c_preproc_warn_flag
in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.
$ac_ext <<_ACEOF
3400 cat confdefs.h
>>conftest.
$ac_ext
3401 cat >>conftest.
$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3404 # include <limits.h>
3406 # include <assert.h>
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3413 grep -v '^ *+' conftest.er1
>conftest.err
3415 cat conftest.err
>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev
/null
; then
3418 if test -s conftest.err
; then
3419 ac_cpp_err
=$ac_c_preproc_warn_flag
3420 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3427 if test -z "$ac_cpp_err"; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.
$ac_ext >&5
3433 # Broken: fails on valid input.
3436 rm -f conftest.err conftest.
$ac_ext
3438 # OK, works on sane cases. Now check whether non-existent headers
3439 # can be detected and how.
3440 cat >conftest.
$ac_ext <<_ACEOF
3443 cat confdefs.h
>>conftest.
$ac_ext
3444 cat >>conftest.
$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3451 grep -v '^ *+' conftest.er1
>conftest.err
3453 cat conftest.err
>&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev
/null
; then
3456 if test -s conftest.err
; then
3457 ac_cpp_err
=$ac_c_preproc_warn_flag
3458 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.
$ac_ext >&5
3472 # Passes both tests.
3476 rm -f conftest.err conftest.
$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.
$ac_ext
3481 if $ac_preproc_ok; then
3493 echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6
3496 for ac_c_preproc_warn_flag
in '' yes
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat >conftest.
$ac_ext <<_ACEOF
3507 cat confdefs.h
>>conftest.
$ac_ext
3508 cat >>conftest.
$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3511 # include <limits.h>
3513 # include <assert.h>
3517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3518 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3520 grep -v '^ *+' conftest.er1
>conftest.err
3522 cat conftest.err
>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev
/null
; then
3525 if test -s conftest.err
; then
3526 ac_cpp_err
=$ac_c_preproc_warn_flag
3527 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3534 if test -z "$ac_cpp_err"; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3540 # Broken: fails on valid input.
3543 rm -f conftest.err conftest.
$ac_ext
3545 # OK, works on sane cases. Now check whether non-existent headers
3546 # can be detected and how.
3547 cat >conftest.
$ac_ext <<_ACEOF
3550 cat confdefs.h
>>conftest.
$ac_ext
3551 cat >>conftest.
$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <ac_nonexistent.h>
3555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3558 grep -v '^ *+' conftest.er1
>conftest.err
3560 cat conftest.err
>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev
/null
; then
3563 if test -s conftest.err
; then
3564 ac_cpp_err
=$ac_c_preproc_warn_flag
3565 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3572 if test -z "$ac_cpp_err"; then
3573 # Broken: success on invalid input.
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.
$ac_ext >&5
3579 # Passes both tests.
3583 rm -f conftest.err conftest.
$ac_ext
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.
$ac_ext
3588 if $ac_preproc_ok; then
3591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3599 ac_cpp
='$CPP $CPPFLAGS'
3600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3605 echo "$as_me:$LINENO: checking for egrep" >&5
3606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3607 if test "${ac_cv_prog_egrep+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3611 then ac_cv_prog_egrep
='grep -E'
3612 else ac_cv_prog_egrep
='egrep'
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3617 EGREP
=$ac_cv_prog_egrep
3620 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3622 if test "${ac_cv_header_stdc+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.
$ac_ext <<_ACEOF
3628 cat confdefs.h
>>conftest.
$ac_ext
3629 cat >>conftest.
$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3644 rm -f conftest.
$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>conftest.er1
3648 grep -v '^ *+' conftest.er1
>conftest.err
3650 cat conftest.err
>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try
='test -z "$ac_c_werror_flag"
3654 || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try
='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_header_stdc
=yes
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.
$ac_ext >&5
3671 ac_cv_header_stdc
=no
3673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3675 if test $ac_cv_header_stdc = yes; then
3676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3677 cat >conftest.
$ac_ext <<_ACEOF
3680 cat confdefs.h
>>conftest.
$ac_ext
3681 cat >>conftest.
$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 $EGREP "memchr" >/dev
/null
2>&1; then
3690 ac_cv_header_stdc
=no
3696 if test $ac_cv_header_stdc = yes; then
3697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3698 cat >conftest.
$ac_ext <<_ACEOF
3701 cat confdefs.h
>>conftest.
$ac_ext
3702 cat >>conftest.
$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "free" >/dev
/null
2>&1; then
3711 ac_cv_header_stdc
=no
3717 if test $ac_cv_header_stdc = yes; then
3718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3719 if test "$cross_compiling" = yes; then
3722 cat >conftest.
$ac_ext <<_ACEOF
3725 cat confdefs.h
>>conftest.
$ac_ext
3726 cat >>conftest.
$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3729 #if ((' ' & 0x0FF) == 0x020)
3730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3733 # define ISLOWER(c) \
3734 (('a' <= (c) && (c) <= 'i') \
3735 || ('j' <= (c) && (c) <= 'r') \
3736 || ('s' <= (c) && (c) <= 'z'))
3737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3745 for (i = 0; i < 256; i++)
3746 if (XOR (islower (i), ISLOWER (i))
3747 || toupper (i) != TOUPPER (i))
3752 rm -f conftest
$ac_exeext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754 (eval $ac_link) 2>&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3765 echo "$as_me: program exited with status $ac_status" >&5
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.
$ac_ext >&5
3770 ac_cv_header_stdc
=no
3772 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3776 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3777 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3778 if test $ac_cv_header_stdc = yes; then
3780 cat >>confdefs.h
<<\_ACEOF
3781 #define STDC_HEADERS 1
3786 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3796 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3797 inttypes.h stdint.h unistd.h
3799 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800 echo "$as_me:$LINENO: checking for $ac_header" >&5
3801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.
$ac_ext <<_ACEOF
3808 cat confdefs.h
>>conftest.
$ac_ext
3809 cat >>conftest.
$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3813 #include <$ac_header>
3815 rm -f conftest.
$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3819 grep -v '^ *+' conftest.er1
>conftest.err
3821 cat conftest.err
>&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try
='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try
='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 eval "$as_ac_Header=yes"
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.
$ac_ext >&5
3842 eval "$as_ac_Header=no"
3844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3849 cat >>confdefs.h
<<_ACEOF
3850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3869 for ac_header
in stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
3870 string.h
strings.h math.h sys
/time.h direct.h process.h
3872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3874 echo "$as_me:$LINENO: checking for $ac_header" >&5
3875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3882 # Is the header compilable?
3883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3885 cat >conftest.
$ac_ext <<_ACEOF
3888 cat confdefs.h
>>conftest.
$ac_ext
3889 cat >>conftest.
$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 $ac_includes_default
3892 #include <$ac_header>
3894 rm -f conftest.
$ac_objext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3898 grep -v '^ *+' conftest.er1
>conftest.err
3900 cat conftest.err
>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try
='test -z "$ac_c_werror_flag"
3904 || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try
='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_header_compiler
=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.
$ac_ext >&5
3921 ac_header_compiler
=no
3923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3925 echo "${ECHO_T}$ac_header_compiler" >&6
3927 # Is the header present?
3928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3930 cat >conftest.
$ac_ext <<_ACEOF
3933 cat confdefs.h
>>conftest.
$ac_ext
3934 cat >>conftest.
$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #include <$ac_header>
3938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3941 grep -v '^ *+' conftest.er1
>conftest.err
3943 cat conftest.err
>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev
/null
; then
3946 if test -s conftest.err
; then
3947 ac_cpp_err
=$ac_c_preproc_warn_flag
3948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3955 if test -z "$ac_cpp_err"; then
3956 ac_header_preproc
=yes
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3961 ac_header_preproc
=no
3963 rm -f conftest.err conftest.
$ac_ext
3964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3965 echo "${ECHO_T}$ac_header_preproc" >&6
3967 # So? What about this header?
3968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3974 ac_header_preproc
=yes
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3991 ## ------------------------------------------ ##
3992 ## Report this to the AC_PACKAGE_NAME lists. ##
3993 ## ------------------------------------------ ##
3996 sed "s/^/$as_me: WARNING: /" >&2
3999 echo "$as_me:$LINENO: checking for $ac_header" >&5
4000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 eval "$as_ac_Header=\$ac_header_preproc"
4006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4011 cat >>confdefs.h
<<_ACEOF
4012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4019 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
4020 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
4021 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
4023 echo "$as_me:$LINENO: result: yes" >&5
4024 echo "${ECHO_T}yes" >&6
4026 cat >>confdefs.h
<<\_ACEOF
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4034 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
4035 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
4037 ac_cpp
='$CXXCPP $CPPFLAGS'
4038 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4042 cat >conftest.
$ac_ext <<_ACEOF
4046 cat confdefs.h
>>conftest.
$ac_ext
4047 cat >>conftest.
$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4052 extern "C" { void fileno(int); }
4064 rm -f conftest.
$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1
>conftest.err
4070 cat conftest.err
>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try
='test -z "$ac_cxx_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try
='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 echo "$as_me:$LINENO: result: yes" >&5
4087 echo "${ECHO_T}yes" >&6
4089 cat >>confdefs.h
<<\_ACEOF
4090 #define _POSIX_SOURCE 1
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.
$ac_ext >&5
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4102 ac_cpp
='$CPP $CPPFLAGS'
4103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4108 # checks for header stuff
4110 ac_cpp
='$CXXCPP $CPPFLAGS'
4111 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4115 echo "$as_me:$LINENO: checking for return type of srand" >&5
4116 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
4117 cat >conftest.
$ac_ext <<_ACEOF
4121 cat confdefs.h
>>conftest.
$ac_ext
4122 cat >>conftest.
$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4127 extern "C" { void srand(unsigned int); }
4139 rm -f conftest.
$ac_objext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>conftest.er1
4143 grep -v '^ *+' conftest.er1
>conftest.err
4145 cat conftest.err
>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try
='test -z "$ac_cxx_werror_flag"
4149 || test ! -s conftest.err'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try
='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 echo "$as_me:$LINENO: result: void" >&5
4162 echo "${ECHO_T}void" >&6
4164 cat >>confdefs.h
<<\_ACEOF
4165 #define RET_TYPE_SRAND_IS_VOID 1
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.
$ac_ext >&5
4172 echo "$as_me:$LINENO: result: int" >&5
4173 echo "${ECHO_T}int" >&6
4175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4177 ac_cpp
='$CPP $CPPFLAGS'
4178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4182 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
4183 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
4185 ac_cpp
='$CXXCPP $CPPFLAGS'
4186 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4190 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.
$ac_ext <<_ACEOF
4197 cat confdefs.h
>>conftest.
$ac_ext
4198 cat >>conftest.
$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4203 #ifdef HAVE_STRING_H
4206 #ifdef HAVE_STRINGS_H
4207 #include <strings.h>
4209 #ifdef HAVE_STDLIB_H
4212 #ifdef HAVE_SYS_TIME_H
4213 #include <sys/time.h>
4215 #ifdef HAVE_UNISTD_H
4228 #ifndef gettimeofday
4229 char *p = (char *) gettimeofday;
4238 rm -f conftest.
$ac_objext
4239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>conftest.er1
4242 grep -v '^ *+' conftest.er1
>conftest.err
4244 cat conftest.err
>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
4247 { ac_try
='test -z "$ac_cxx_werror_flag"
4248 || test ! -s conftest.err'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try
='test -s conftest.$ac_objext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 groff_cv_decl_needed_gettimeofday
=no
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.
$ac_ext >&5
4265 groff_cv_decl_needed_gettimeofday
=yes
4267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4270 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
4271 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
4272 if test $groff_cv_decl_needed_gettimeofday = yes; then
4274 cat >>confdefs.h
<<\_ACEOF
4275 #define NEED_DECLARATION_GETTIMEOFDAY 1
4280 ac_cpp
='$CPP $CPPFLAGS'
4281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4285 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
4286 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
4288 ac_cpp
='$CXXCPP $CPPFLAGS'
4289 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4293 if test "${groff_cv_decl_needed_hypot+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 cat >conftest.
$ac_ext <<_ACEOF
4300 cat confdefs.h
>>conftest.
$ac_ext
4301 cat >>conftest.
$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4306 #ifdef HAVE_STRING_H
4309 #ifdef HAVE_STRINGS_H
4310 #include <strings.h>
4312 #ifdef HAVE_STDLIB_H
4315 #ifdef HAVE_SYS_TIME_H
4316 #include <sys/time.h>
4318 #ifdef HAVE_UNISTD_H
4332 char *p = (char *) hypot;
4341 rm -f conftest.
$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4345 grep -v '^ *+' conftest.er1
>conftest.err
4347 cat conftest.err
>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try
='test -z "$ac_cxx_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try
='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 groff_cv_decl_needed_hypot
=no
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.
$ac_ext >&5
4368 groff_cv_decl_needed_hypot
=yes
4370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4373 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
4374 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
4375 if test $groff_cv_decl_needed_hypot = yes; then
4377 cat >>confdefs.h
<<\_ACEOF
4378 #define NEED_DECLARATION_HYPOT 1
4383 ac_cpp
='$CPP $CPPFLAGS'
4384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4388 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
4389 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
4391 ac_cpp
='$CXXCPP $CPPFLAGS'
4392 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4396 if test "${groff_cv_decl_needed_popen+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 cat >conftest.
$ac_ext <<_ACEOF
4403 cat confdefs.h
>>conftest.
$ac_ext
4404 cat >>conftest.
$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4409 #ifdef HAVE_STRING_H
4412 #ifdef HAVE_STRINGS_H
4413 #include <strings.h>
4415 #ifdef HAVE_STDLIB_H
4418 #ifdef HAVE_SYS_TIME_H
4419 #include <sys/time.h>
4421 #ifdef HAVE_UNISTD_H
4435 char *p = (char *) popen;
4444 rm -f conftest.
$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4448 grep -v '^ *+' conftest.er1
>conftest.err
4450 cat conftest.err
>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try
='test -z "$ac_cxx_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try
='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 groff_cv_decl_needed_popen
=no
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.
$ac_ext >&5
4471 groff_cv_decl_needed_popen
=yes
4473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4476 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
4477 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
4478 if test $groff_cv_decl_needed_popen = yes; then
4480 cat >>confdefs.h
<<\_ACEOF
4481 #define NEED_DECLARATION_POPEN 1
4486 ac_cpp
='$CPP $CPPFLAGS'
4487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4491 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
4492 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
4494 ac_cpp
='$CXXCPP $CPPFLAGS'
4495 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4499 if test "${groff_cv_decl_needed_pclose+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 cat >conftest.
$ac_ext <<_ACEOF
4506 cat confdefs.h
>>conftest.
$ac_ext
4507 cat >>conftest.
$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4512 #ifdef HAVE_STRING_H
4515 #ifdef HAVE_STRINGS_H
4516 #include <strings.h>
4518 #ifdef HAVE_STDLIB_H
4521 #ifdef HAVE_SYS_TIME_H
4522 #include <sys/time.h>
4524 #ifdef HAVE_UNISTD_H
4538 char *p = (char *) pclose;
4547 rm -f conftest.
$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>conftest.er1
4551 grep -v '^ *+' conftest.er1
>conftest.err
4553 cat conftest.err
>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try
='test -z "$ac_cxx_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try
='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 groff_cv_decl_needed_pclose
=no
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.
$ac_ext >&5
4574 groff_cv_decl_needed_pclose
=yes
4576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4579 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
4580 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
4581 if test $groff_cv_decl_needed_pclose = yes; then
4583 cat >>confdefs.h
<<\_ACEOF
4584 #define NEED_DECLARATION_PCLOSE 1
4589 ac_cpp
='$CPP $CPPFLAGS'
4590 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4594 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
4595 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
4597 ac_cpp
='$CXXCPP $CPPFLAGS'
4598 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4602 if test "${groff_cv_decl_needed_putenv+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 cat >conftest.
$ac_ext <<_ACEOF
4609 cat confdefs.h
>>conftest.
$ac_ext
4610 cat >>conftest.
$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4615 #ifdef HAVE_STRING_H
4618 #ifdef HAVE_STRINGS_H
4619 #include <strings.h>
4621 #ifdef HAVE_STDLIB_H
4624 #ifdef HAVE_SYS_TIME_H
4625 #include <sys/time.h>
4627 #ifdef HAVE_UNISTD_H
4641 char *p = (char *) putenv;
4650 rm -f conftest.
$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4654 grep -v '^ *+' conftest.er1
>conftest.err
4656 cat conftest.err
>&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try
='test -z "$ac_cxx_werror_flag"
4660 || test ! -s conftest.err'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; } &&
4666 { ac_try
='test -s conftest.$ac_objext'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 groff_cv_decl_needed_putenv
=no
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4677 groff_cv_decl_needed_putenv
=yes
4679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
4683 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
4684 if test $groff_cv_decl_needed_putenv = yes; then
4686 cat >>confdefs.h
<<\_ACEOF
4687 #define NEED_DECLARATION_PUTENV 1
4692 ac_cpp
='$CPP $CPPFLAGS'
4693 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4697 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
4698 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
4700 ac_cpp
='$CXXCPP $CPPFLAGS'
4701 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4705 if test "${groff_cv_decl_needed_rand+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 cat >conftest.
$ac_ext <<_ACEOF
4712 cat confdefs.h
>>conftest.
$ac_ext
4713 cat >>conftest.
$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4718 #ifdef HAVE_STRING_H
4721 #ifdef HAVE_STRINGS_H
4722 #include <strings.h>
4724 #ifdef HAVE_STDLIB_H
4727 #ifdef HAVE_SYS_TIME_H
4728 #include <sys/time.h>
4730 #ifdef HAVE_UNISTD_H
4744 char *p = (char *) rand;
4753 rm -f conftest.
$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755 (eval $ac_compile) 2>conftest.er1
4757 grep -v '^ *+' conftest.er1
>conftest.err
4759 cat conftest.err
>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try
='test -z "$ac_cxx_werror_flag"
4763 || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try
='test -s conftest.$ac_objext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 groff_cv_decl_needed_rand
=no
4777 echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.
$ac_ext >&5
4780 groff_cv_decl_needed_rand
=yes
4782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
4786 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
4787 if test $groff_cv_decl_needed_rand = yes; then
4789 cat >>confdefs.h
<<\_ACEOF
4790 #define NEED_DECLARATION_RAND 1
4795 ac_cpp
='$CPP $CPPFLAGS'
4796 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4800 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
4801 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
4803 ac_cpp
='$CXXCPP $CPPFLAGS'
4804 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4808 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4821 #ifdef HAVE_STRING_H
4824 #ifdef HAVE_STRINGS_H
4825 #include <strings.h>
4827 #ifdef HAVE_STDLIB_H
4830 #ifdef HAVE_SYS_TIME_H
4831 #include <sys/time.h>
4833 #ifdef HAVE_UNISTD_H
4847 char *p = (char *) snprintf;
4856 rm -f conftest.
$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4860 grep -v '^ *+' conftest.er1
>conftest.err
4862 cat conftest.err
>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try
='test -z "$ac_cxx_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try
='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 groff_cv_decl_needed_snprintf
=no
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.
$ac_ext >&5
4883 groff_cv_decl_needed_snprintf
=yes
4885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4888 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
4889 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
4890 if test $groff_cv_decl_needed_snprintf = yes; then
4892 cat >>confdefs.h
<<\_ACEOF
4893 #define NEED_DECLARATION_SNPRINTF 1
4898 ac_cpp
='$CPP $CPPFLAGS'
4899 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4903 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
4904 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
4906 ac_cpp
='$CXXCPP $CPPFLAGS'
4907 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4911 if test "${groff_cv_decl_needed_srand+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat >conftest.
$ac_ext <<_ACEOF
4918 cat confdefs.h
>>conftest.
$ac_ext
4919 cat >>conftest.
$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4924 #ifdef HAVE_STRING_H
4927 #ifdef HAVE_STRINGS_H
4928 #include <strings.h>
4930 #ifdef HAVE_STDLIB_H
4933 #ifdef HAVE_SYS_TIME_H
4934 #include <sys/time.h>
4936 #ifdef HAVE_UNISTD_H
4950 char *p = (char *) srand;
4959 rm -f conftest.
$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try
='test -z "$ac_cxx_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try
='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 groff_cv_decl_needed_srand
=no
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.
$ac_ext >&5
4986 groff_cv_decl_needed_srand
=yes
4988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4991 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
4992 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
4993 if test $groff_cv_decl_needed_srand = yes; then
4995 cat >>confdefs.h
<<\_ACEOF
4996 #define NEED_DECLARATION_SRAND 1
5001 ac_cpp
='$CPP $CPPFLAGS'
5002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5006 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
5007 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
5009 ac_cpp
='$CXXCPP $CPPFLAGS'
5010 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5014 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 cat >conftest.
$ac_ext <<_ACEOF
5021 cat confdefs.h
>>conftest.
$ac_ext
5022 cat >>conftest.
$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5027 #ifdef HAVE_STRING_H
5030 #ifdef HAVE_STRINGS_H
5031 #include <strings.h>
5033 #ifdef HAVE_STDLIB_H
5036 #ifdef HAVE_SYS_TIME_H
5037 #include <sys/time.h>
5039 #ifdef HAVE_UNISTD_H
5053 char *p = (char *) strcasecmp;
5062 rm -f conftest.
$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5066 grep -v '^ *+' conftest.er1
>conftest.err
5068 cat conftest.err
>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try
='test -z "$ac_cxx_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try
='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 groff_cv_decl_needed_strcasecmp
=no
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5089 groff_cv_decl_needed_strcasecmp
=yes
5091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5094 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
5095 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
5096 if test $groff_cv_decl_needed_strcasecmp = yes; then
5098 cat >>confdefs.h
<<\_ACEOF
5099 #define NEED_DECLARATION_STRCASECMP 1
5104 ac_cpp
='$CPP $CPPFLAGS'
5105 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5109 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
5110 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
5112 ac_cpp
='$CXXCPP $CPPFLAGS'
5113 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5117 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 cat >conftest.
$ac_ext <<_ACEOF
5124 cat confdefs.h
>>conftest.
$ac_ext
5125 cat >>conftest.
$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5130 #ifdef HAVE_STRING_H
5133 #ifdef HAVE_STRINGS_H
5134 #include <strings.h>
5136 #ifdef HAVE_STDLIB_H
5139 #ifdef HAVE_SYS_TIME_H
5140 #include <sys/time.h>
5142 #ifdef HAVE_UNISTD_H
5156 char *p = (char *) strncasecmp;
5165 rm -f conftest.
$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1
>conftest.err
5171 cat conftest.err
>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try
='test -z "$ac_cxx_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try
='test -s conftest.$ac_objext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 groff_cv_decl_needed_strncasecmp
=no
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.
$ac_ext >&5
5192 groff_cv_decl_needed_strncasecmp
=yes
5194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5197 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
5198 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
5199 if test $groff_cv_decl_needed_strncasecmp = yes; then
5201 cat >>confdefs.h
<<\_ACEOF
5202 #define NEED_DECLARATION_STRNCASECMP 1
5207 ac_cpp
='$CPP $CPPFLAGS'
5208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
5213 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
5215 ac_cpp
='$CXXCPP $CPPFLAGS'
5216 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5220 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 cat >conftest.
$ac_ext <<_ACEOF
5227 cat confdefs.h
>>conftest.
$ac_ext
5228 cat >>conftest.
$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5233 #ifdef HAVE_STRING_H
5236 #ifdef HAVE_STRINGS_H
5237 #include <strings.h>
5239 #ifdef HAVE_STDLIB_H
5242 #ifdef HAVE_SYS_TIME_H
5243 #include <sys/time.h>
5245 #ifdef HAVE_UNISTD_H
5259 char *p = (char *) vfprintf;
5268 rm -f conftest.
$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5272 grep -v '^ *+' conftest.er1
>conftest.err
5274 cat conftest.err
>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try
='test -z "$ac_cxx_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try
='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 groff_cv_decl_needed_vfprintf
=no
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.
$ac_ext >&5
5295 groff_cv_decl_needed_vfprintf
=yes
5297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5300 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
5301 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
5302 if test $groff_cv_decl_needed_vfprintf = yes; then
5304 cat >>confdefs.h
<<\_ACEOF
5305 #define NEED_DECLARATION_VFPRINTF 1
5310 ac_cpp
='$CPP $CPPFLAGS'
5311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5315 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
5316 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
5318 ac_cpp
='$CXXCPP $CPPFLAGS'
5319 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5323 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 cat >conftest.
$ac_ext <<_ACEOF
5330 cat confdefs.h
>>conftest.
$ac_ext
5331 cat >>conftest.
$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5336 #ifdef HAVE_STRING_H
5339 #ifdef HAVE_STRINGS_H
5340 #include <strings.h>
5342 #ifdef HAVE_STDLIB_H
5345 #ifdef HAVE_SYS_TIME_H
5346 #include <sys/time.h>
5348 #ifdef HAVE_UNISTD_H
5362 char *p = (char *) vsnprintf;
5371 rm -f conftest.
$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1
>conftest.err
5377 cat conftest.err
>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try
='test -z "$ac_cxx_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try
='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 groff_cv_decl_needed_vsnprintf
=no
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.
$ac_ext >&5
5398 groff_cv_decl_needed_vsnprintf
=yes
5400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5403 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
5404 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
5405 if test $groff_cv_decl_needed_vsnprintf = yes; then
5407 cat >>confdefs.h
<<\_ACEOF
5408 #define NEED_DECLARATION_VSNPRINTF 1
5413 ac_cpp
='$CPP $CPPFLAGS'
5414 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5419 ac_cpp
='$CXXCPP $CPPFLAGS'
5420 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5424 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5425 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5426 cat >conftest.
$ac_ext <<_ACEOF
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5454 rm -f conftest.
$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5458 grep -v '^ *+' conftest.er1
>conftest.err
5460 cat conftest.err
>&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try
='test -z "$ac_cxx_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try
='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 echo "$as_me:$LINENO: result: yes" >&5
5477 echo "${ECHO_T}yes" >&6
5479 cat >>confdefs.h
<<\_ACEOF
5480 #define HAVE_SYS_NERR 1
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.
$ac_ext >&5
5487 echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5492 ac_cpp
='$CPP $CPPFLAGS'
5493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5497 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5498 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5499 cat >conftest.
$ac_ext <<_ACEOF
5503 cat confdefs.h
>>conftest.
$ac_ext
5504 cat >>conftest.
$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5519 k = (int)sys_errlist[0];
5527 rm -f conftest.
$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1
>conftest.err
5533 cat conftest.err
>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try
='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try
='test -s conftest.$ac_objext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550 echo "${ECHO_T}yes" >&6
5552 cat >>confdefs.h
<<\_ACEOF
5553 #define HAVE_SYS_ERRLIST 1
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5565 ac_cpp
='$CXXCPP $CPPFLAGS'
5566 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5570 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
5571 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
5572 cat >conftest.
$ac_ext <<_ACEOF
5576 cat confdefs.h
>>conftest.
$ac_ext
5577 cat >>conftest.
$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5598 rm -f conftest.
$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>conftest.er1
5602 grep -v '^ *+' conftest.er1
>conftest.err
5604 cat conftest.err
>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try
='test -z "$ac_cxx_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try
='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 echo "$as_me:$LINENO: result: yes" >&5
5621 echo "${ECHO_T}yes" >&6
5623 cat >>confdefs.h
<<\_ACEOF
5624 #define HAVE_CC_OSFCN_H 1
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.
$ac_ext >&5
5631 echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5634 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5636 ac_cpp
='$CPP $CPPFLAGS'
5637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5642 ac_cpp
='$CXXCPP $CPPFLAGS'
5643 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5647 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
5648 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
5649 cat >conftest.
$ac_ext <<_ACEOF
5653 cat confdefs.h
>>conftest.
$ac_ext
5654 cat >>conftest.
$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5676 rm -f conftest.
$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1
>conftest.err
5682 cat conftest.err
>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try
='test -z "$ac_cxx_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try
='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6
5701 cat >>confdefs.h
<<\_ACEOF
5702 #define HAVE_CC_LIMITS_H 1
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.
$ac_ext >&5
5709 echo "$as_me:$LINENO: result: no" >&5
5710 echo "${ECHO_T}no" >&6
5712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 ac_cpp
='$CPP $CPPFLAGS'
5715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5720 ac_cpp
='$CXXCPP $CPPFLAGS'
5721 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5725 echo "$as_me:$LINENO: checking C++ <stdint.h>" >&5
5726 echo $ECHO_N "checking C++ <stdint.h>... $ECHO_C" >&6
5727 cat >conftest.
$ac_ext <<_ACEOF
5731 cat confdefs.h
>>conftest.
$ac_ext
5732 cat >>conftest.
$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5753 rm -f conftest.
$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try
='test -z "$ac_cxx_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try
='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 echo "$as_me:$LINENO: result: yes" >&5
5776 echo "${ECHO_T}yes" >&6
5778 cat >>confdefs.h
<<\_ACEOF
5779 #define HAVE_CC_STDINT_H 1
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.
$ac_ext >&5
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5791 ac_cpp
='$CPP $CPPFLAGS'
5792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5797 ac_cpp
='$CXXCPP $CPPFLAGS'
5798 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5802 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5803 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5813 #include <sys/types.h>
5814 #include <inttypes.h>
5822 uintmax_t i = (uintmax_t)-1;
5830 rm -f conftest.
$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>conftest.er1
5834 grep -v '^ *+' conftest.er1
>conftest.err
5836 cat conftest.err
>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try
='test -z "$ac_cxx_werror_flag"
5840 || test ! -s conftest.err'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try
='test -s conftest.$ac_objext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 groff_cv_header_inttypes_h
=yes
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.
$ac_ext >&5
5857 groff_cv_header_inttypes_h
=no
5859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
5861 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
5863 ac_cpp
='$CPP $CPPFLAGS'
5864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5869 # checks for typedefs
5871 ac_cpp
='$CXXCPP $CPPFLAGS'
5872 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5876 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5877 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5878 cat >conftest.
$ac_ext <<_ACEOF
5882 cat confdefs.h
>>conftest.
$ac_ext
5883 cat >>conftest.
$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5887 unsigned long long ull = 1;
5889 unsigned long long ullmax = (unsigned long long)-1;
5897 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5905 rm -f conftest.
$ac_objext conftest
$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5909 grep -v '^ *+' conftest.er1
>conftest.err
5911 cat conftest.err
>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try
='test -z "$ac_cxx_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try
='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 groff_cv_type_unsigned_long_long
=yes
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.
$ac_ext >&5
5932 groff_cv_type_unsigned_long_long
=no
5934 rm -f conftest.err conftest.
$ac_objext \
5935 conftest
$ac_exeext conftest.
$ac_ext
5936 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
5937 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
5939 ac_cpp
='$CPP $CPPFLAGS'
5940 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5945 if test $groff_cv_header_inttypes_h = no
; then
5947 test $groff_cv_type_unsigned_long_long = yes \
5948 && ac_type
='unsigned long long' \
5949 || ac_type
='unsigned long'
5951 cat >>confdefs.h
<<_ACEOF
5952 #define uintmax_t $ac_type
5957 ac_cpp
='$CXXCPP $CPPFLAGS'
5958 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5962 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
5963 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
5964 cat >conftest.
$ac_ext <<_ACEOF
5968 cat confdefs.h
>>conftest.
$ac_ext
5969 cat >>conftest.
$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5982 struct tm *p = localtime(&t);
5990 rm -f conftest.
$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try
='test -z "$ac_cxx_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try
='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6018 echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6
6021 cat >>confdefs.h
<<\_ACEOF
6022 #define LONG_FOR_TIME_T 1
6026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 ac_cpp
='$CPP $CPPFLAGS'
6029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6033 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6035 if test "${ac_cv_type_signal+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 cat >conftest.
$ac_ext <<_ACEOF
6041 cat confdefs.h
>>conftest.
$ac_ext
6042 cat >>conftest.
$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6050 extern "C" void (*signal (int, void (*)(int)))(int);
6052 void (*signal ()) ();
6063 rm -f conftest.
$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6067 grep -v '^ *+' conftest.er1
>conftest.err
6069 cat conftest.err
>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try
='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try
='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_type_signal
=void
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.
$ac_ext >&5
6090 ac_cv_type_signal
=int
6092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6095 echo "${ECHO_T}$ac_cv_type_signal" >&6
6097 cat >>confdefs.h
<<_ACEOF
6098 #define RETSIGTYPE $ac_cv_type_signal
6102 echo "$as_me:$LINENO: checking struct exception" >&5
6103 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
6104 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6129 rm -f conftest.
$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1
>conftest.err
6135 cat conftest.err
>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try
='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try
='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 echo "$as_me:$LINENO: result: yes" >&5
6152 echo "${ECHO_T}yes" >&6
6154 cat >>confdefs.h
<<\_ACEOF
6155 #define HAVE_STRUCT_EXCEPTION 1
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.
$ac_ext >&5
6162 echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6167 # checks for libraries
6168 echo "$as_me:$LINENO: checking for main in -lc" >&5
6169 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
6170 if test "${ac_cv_lib_c_main+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 ac_check_lib_save_LIBS
=$LIBS
6175 cat >conftest.
$ac_ext <<_ACEOF
6178 cat confdefs.h
>>conftest.
$ac_ext
6179 cat >>conftest.
$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6191 rm -f conftest.
$ac_objext conftest
$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1
>conftest.err
6197 cat conftest.err
>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try
='test -z "$ac_c_werror_flag"
6201 || test ! -s conftest.err'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try
='test -s conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_lib_c_main
=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.
$ac_ext >&5
6220 rm -f conftest.err conftest.
$ac_objext \
6221 conftest
$ac_exeext conftest.
$ac_ext
6222 LIBS
=$ac_check_lib_save_LIBS
6224 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
6225 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
6226 if test $ac_cv_lib_c_main = yes; then
6231 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6232 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6233 if test "${ac_cv_lib_m_sin+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_check_lib_save_LIBS
=$LIBS
6238 cat >conftest.
$ac_ext <<_ACEOF
6241 cat confdefs.h
>>conftest.
$ac_ext
6242 cat >>conftest.
$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6245 /* Override any gcc2 internal prototype to avoid an error. */
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6260 rm -f conftest.
$ac_objext conftest
$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>conftest.er1
6264 grep -v '^ *+' conftest.er1
>conftest.err
6266 cat conftest.err
>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try
='test -z "$ac_c_werror_flag"
6270 || test ! -s conftest.err'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try
='test -s conftest$ac_exeext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.
$ac_ext >&5
6289 rm -f conftest.err conftest.
$ac_objext \
6290 conftest
$ac_exeext conftest.
$ac_ext
6291 LIBS
=$ac_check_lib_save_LIBS
6293 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6294 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6295 if test $ac_cv_lib_m_sin = yes; then
6301 # checks for functions
6304 for ac_header
in stdlib.h unistd.h
6306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo "$as_me:$LINENO: checking for $ac_header" >&5
6309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316 # Is the header compilable?
6317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6319 cat >conftest.
$ac_ext <<_ACEOF
6322 cat confdefs.h
>>conftest.
$ac_ext
6323 cat >>conftest.
$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 $ac_includes_default
6326 #include <$ac_header>
6328 rm -f conftest.
$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>conftest.er1
6332 grep -v '^ *+' conftest.er1
>conftest.err
6334 cat conftest.err
>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try
='test -z "$ac_c_werror_flag"
6338 || test ! -s conftest.err'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try
='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_header_compiler
=yes
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.
$ac_ext >&5
6355 ac_header_compiler
=no
6357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6359 echo "${ECHO_T}$ac_header_compiler" >&6
6361 # Is the header present?
6362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <$ac_header>
6372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6375 grep -v '^ *+' conftest.er1
>conftest.err
6377 cat conftest.err
>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } >/dev
/null
; then
6380 if test -s conftest.err
; then
6381 ac_cpp_err
=$ac_c_preproc_warn_flag
6382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6389 if test -z "$ac_cpp_err"; then
6390 ac_header_preproc
=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.
$ac_ext >&5
6395 ac_header_preproc
=no
6397 rm -f conftest.err conftest.
$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399 echo "${ECHO_T}$ac_header_preproc" >&6
6401 # So? What about this header?
6402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6408 ac_header_preproc
=yes
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6425 ## ------------------------------------------ ##
6426 ## Report this to the AC_PACKAGE_NAME lists. ##
6427 ## ------------------------------------------ ##
6430 sed "s/^/$as_me: WARNING: /" >&2
6433 echo "$as_me:$LINENO: checking for $ac_header" >&5
6434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 eval "$as_ac_Header=\$ac_header_preproc"
6440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h
<<_ACEOF
6446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454 for ac_func
in getpagesize
6456 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6457 echo "$as_me:$LINENO: checking for $ac_func" >&5
6458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_var+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.
$ac_ext <<_ACEOF
6465 cat confdefs.h
>>conftest.
$ac_ext
6466 cat >>conftest.
$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6470 #define $ac_func innocuous_$ac_func
6472 /* System header to define __stub macros and hopefully few prototypes,
6473 which can conflict with char $ac_func (); below.
6474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6475 <limits.h> exists even on freestanding compilers. */
6478 # include <limits.h>
6480 # include <assert.h>
6485 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6499 char (*f) () = $ac_func;
6508 return f != $ac_func;
6513 rm -f conftest.
$ac_objext conftest
$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515 (eval $ac_link) 2>conftest.er1
6517 grep -v '^ *+' conftest.er1
>conftest.err
6519 cat conftest.err
>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try
='test -z "$ac_c_werror_flag"
6523 || test ! -s conftest.err'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try
='test -s conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 eval "$as_ac_var=yes"
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.
$ac_ext >&5
6540 eval "$as_ac_var=no"
6542 rm -f conftest.err conftest.
$ac_objext \
6543 conftest
$ac_exeext conftest.
$ac_ext
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6547 if test `eval echo '${'$as_ac_var'}'` = yes; then
6548 cat >>confdefs.h
<<_ACEOF
6549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6555 echo "$as_me:$LINENO: checking for working mmap" >&5
6556 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6557 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 if test "$cross_compiling" = yes; then
6561 ac_cv_func_mmap_fixed_mapped
=no
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6570 /* malloc might have been renamed as rpl_malloc. */
6573 /* Thanks to Mike Haertel and Jim Avera for this test.
6574 Here is a matrix of mmap possibilities:
6575 mmap private not fixed
6576 mmap private fixed at somewhere currently unmapped
6577 mmap private fixed at somewhere already mapped
6578 mmap shared not fixed
6579 mmap shared fixed at somewhere currently unmapped
6580 mmap shared fixed at somewhere already mapped
6581 For private mappings, we should verify that changes cannot be read()
6582 back from the file, nor mmap's back from the file at a different
6583 address. (There have been systems where private was not correctly
6584 implemented like the infamous i386 svr4.0, and systems where the
6585 VM page cache was not coherent with the file system buffer cache
6586 like early versions of FreeBSD and possibly contemporary NetBSD.)
6587 For shared mappings, we should conversely verify that changes get
6588 propagated back to all the places they're supposed to be.
6590 Grep wants private fixed already mapped.
6591 The main things grep needs to know about mmap are:
6592 * does it exist and is it safe to write into the mmap'd area
6593 * how to use it (BSD variants) */
6596 #include <sys/mman.h>
6598 #if !STDC_HEADERS && !HAVE_STDLIB_H
6602 /* This mess was copied from the GNU getpagesize.h. */
6603 #if !HAVE_GETPAGESIZE
6604 /* Assume that all systems that can run configure have sys/param.h. */
6605 # if !HAVE_SYS_PARAM_H
6606 # define HAVE_SYS_PARAM_H 1
6609 # ifdef _SC_PAGESIZE
6610 # define getpagesize() sysconf(_SC_PAGESIZE)
6611 # else /* no _SC_PAGESIZE */
6612 # if HAVE_SYS_PARAM_H
6613 # include <sys/param.h>
6614 # ifdef EXEC_PAGESIZE
6615 # define getpagesize() EXEC_PAGESIZE
6616 # else /* no EXEC_PAGESIZE */
6618 # define getpagesize() NBPG * CLSIZE
6621 # endif /* no CLSIZE */
6622 # else /* no NBPG */
6624 # define getpagesize() NBPC
6625 # else /* no NBPC */
6627 # define getpagesize() PAGESIZE
6628 # endif /* PAGESIZE */
6629 # endif /* no NBPC */
6630 # endif /* no NBPG */
6631 # endif /* no EXEC_PAGESIZE */
6632 # else /* no HAVE_SYS_PARAM_H */
6633 # define getpagesize() 8192 /* punt totally */
6634 # endif /* no HAVE_SYS_PARAM_H */
6635 # endif /* no _SC_PAGESIZE */
6637 #endif /* no HAVE_GETPAGESIZE */
6642 char *data, *data2, *data3;
6646 pagesize = getpagesize ();
6648 /* First, make a file with some known garbage in it. */
6649 data = (char *) malloc (pagesize);
6652 for (i = 0; i < pagesize; ++i)
6653 *(data + i) = rand ();
6655 fd = creat ("conftest.mmap", 0600);
6658 if (write (fd, data, pagesize) != pagesize)
6662 /* Next, try to mmap the file at a fixed address which already has
6663 something else allocated at it. If we can, also make sure that
6664 we see the same garbage. */
6665 fd = open ("conftest.mmap", O_RDWR);
6668 data2 = (char *) malloc (2 * pagesize);
6671 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6672 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6673 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6675 for (i = 0; i < pagesize; ++i)
6676 if (*(data + i) != *(data2 + i))
6679 /* Finally, make sure that changes to the mapped area do not
6680 percolate back to the file as seen by read(). (This is a bug on
6681 some variants of i386 svr4.0.) */
6682 for (i = 0; i < pagesize; ++i)
6683 *(data2 + i) = *(data2 + i) + 1;
6684 data3 = (char *) malloc (pagesize);
6687 if (read (fd, data3, pagesize) != pagesize)
6689 for (i = 0; i < pagesize; ++i)
6690 if (*(data + i) != *(data3 + i))
6696 rm -f conftest
$ac_exeext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_func_mmap_fixed_mapped
=yes
6709 echo "$as_me: program exited with status $ac_status" >&5
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.
$ac_ext >&5
6714 ac_cv_func_mmap_fixed_mapped
=no
6716 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6720 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6721 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6723 cat >>confdefs.h
<<\_ACEOF
6731 LIBS
="$LIBS $LIBC $LIBM"
6740 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
6741 strerror strncasecmp strtol
6743 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744 echo "$as_me:$LINENO: checking for $ac_func" >&5
6745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6746 if eval "test \"\${$as_ac_var+set}\" = set"; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.
$ac_ext <<_ACEOF
6752 cat confdefs.h
>>conftest.
$ac_ext
6753 cat >>conftest.
$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6757 #define $ac_func innocuous_$ac_func
6759 /* System header to define __stub macros and hopefully few prototypes,
6760 which can conflict with char $ac_func (); below.
6761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 <limits.h> exists even on freestanding compilers. */
6765 # include <limits.h>
6767 # include <assert.h>
6772 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6780 /* The GNU C library defines this for functions which it implements
6781 to always fail with ENOSYS. Some functions are actually named
6782 something starting with __ and the normal name is an alias. */
6783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6786 char (*f) () = $ac_func;
6795 return f != $ac_func;
6800 rm -f conftest.
$ac_objext conftest
$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try
='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try
='test -s conftest$ac_exeext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 eval "$as_ac_var=yes"
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.
$ac_ext >&5
6827 eval "$as_ac_var=no"
6829 rm -f conftest.err conftest.
$ac_objext \
6830 conftest
$ac_exeext conftest.
$ac_ext
6832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6834 if test `eval echo '${'$as_ac_var'}'` = yes; then
6835 cat >>confdefs.h
<<_ACEOF
6836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6841 "$ac_func.$ac_objext" | \
6842 *" $ac_func.$ac_objext" | \
6843 "$ac_func.$ac_objext "* | \
6844 *" $ac_func.$ac_objext "* ) ;;
6845 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6852 # vsnprintf is in the same source file as snprintf
6854 for ac_func
in vsnprintf
6856 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6857 echo "$as_me:$LINENO: checking for $ac_func" >&5
6858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6859 if eval "test \"\${$as_ac_var+set}\" = set"; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.
$ac_ext <<_ACEOF
6865 cat confdefs.h
>>conftest.
$ac_ext
6866 cat >>conftest.
$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6870 #define $ac_func innocuous_$ac_func
6872 /* System header to define __stub macros and hopefully few prototypes,
6873 which can conflict with char $ac_func (); below.
6874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875 <limits.h> exists even on freestanding compilers. */
6878 # include <limits.h>
6880 # include <assert.h>
6885 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6899 char (*f) () = $ac_func;
6908 return f != $ac_func;
6913 rm -f conftest.
$ac_objext conftest
$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915 (eval $ac_link) 2>conftest.er1
6917 grep -v '^ *+' conftest.er1
>conftest.err
6919 cat conftest.err
>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try
='test -z "$ac_c_werror_flag"
6923 || test ! -s conftest.err'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; } &&
6929 { ac_try
='test -s conftest$ac_exeext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 eval "$as_ac_var=yes"
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.
$ac_ext >&5
6940 eval "$as_ac_var=no"
6942 rm -f conftest.err conftest.
$ac_objext \
6943 conftest
$ac_exeext conftest.
$ac_ext
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6947 if test `eval echo '${'$as_ac_var'}'` = yes; then
6948 cat >>confdefs.h
<<_ACEOF
6949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6954 "snprintf.$ac_objext" | \
6955 *" snprintf.$ac_objext" | \
6956 "snprintf.$ac_objext "* | \
6957 *" snprintf.$ac_objext "* ) ;;
6958 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
6971 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
6973 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6974 echo "$as_me:$LINENO: checking for $ac_func" >&5
6975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6976 if eval "test \"\${$as_ac_var+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 cat >conftest.
$ac_ext <<_ACEOF
6982 cat confdefs.h
>>conftest.
$ac_ext
6983 cat >>conftest.
$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6987 #define $ac_func innocuous_$ac_func
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func (); below.
6991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6992 <limits.h> exists even on freestanding compilers. */
6995 # include <limits.h>
6997 # include <assert.h>
7002 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7010 /* The GNU C library defines this for functions which it implements
7011 to always fail with ENOSYS. Some functions are actually named
7012 something starting with __ and the normal name is an alias. */
7013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7016 char (*f) () = $ac_func;
7025 return f != $ac_func;
7030 rm -f conftest.
$ac_objext conftest
$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>conftest.er1
7034 grep -v '^ *+' conftest.er1
>conftest.err
7036 cat conftest.err
>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try
='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try
='test -s conftest$ac_exeext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 eval "$as_ac_var=yes"
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.
$ac_ext >&5
7057 eval "$as_ac_var=no"
7059 rm -f conftest.err conftest.
$ac_objext \
7060 conftest
$ac_exeext conftest.
$ac_ext
7062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7064 if test `eval echo '${'$as_ac_var'}'` = yes; then
7065 cat >>confdefs.h
<<_ACEOF
7066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7072 echo "$as_me:$LINENO: checking for mkstemp" >&5
7073 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7075 ac_cpp
='$CXXCPP $CPPFLAGS'
7076 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7081 cat >conftest.
$ac_ext <<_ACEOF
7085 cat confdefs.h
>>conftest.
$ac_ext
7086 cat >>conftest.
$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7108 rm -f conftest.
$ac_objext conftest
$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110 (eval $ac_link) 2>conftest.er1
7112 grep -v '^ *+' conftest.er1
>conftest.err
7114 cat conftest.err
>&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try
='test -z "$ac_cxx_werror_flag"
7118 || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try
='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 echo "$as_me:$LINENO: result: yes" >&5
7131 echo "${ECHO_T}yes" >&6
7133 cat >>confdefs.h
<<\_ACEOF
7134 #define HAVE_MKSTEMP 1
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.
$ac_ext >&5
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7144 "mkstemp.$ac_objext" | \
7145 *" mkstemp.$ac_objext" | \
7146 "mkstemp.$ac_objext "* | \
7147 *" mkstemp.$ac_objext "* ) ;;
7148 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
7152 rm -f conftest.err conftest.
$ac_objext \
7153 conftest
$ac_exeext conftest.
$ac_ext
7155 ac_cpp
='$CPP $CPPFLAGS'
7156 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7160 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7161 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
7162 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 cat >conftest.
$ac_ext <<_ACEOF
7168 cat confdefs.h
>>conftest.
$ac_ext
7169 cat >>conftest.
$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7176 char *p = (char *) sys_siglist;
7183 rm -f conftest.
$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try
='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
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
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_have_decl_sys_siglist
=yes
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.
$ac_ext >&5
7210 ac_cv_have_decl_sys_siglist
=no
7212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7214 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7215 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7216 if test $ac_cv_have_decl_sys_siglist = yes; then
7218 cat >>confdefs.h
<<_ACEOF
7219 #define HAVE_DECL_SYS_SIGLIST 1
7224 cat >>confdefs.h
<<_ACEOF
7225 #define HAVE_DECL_SYS_SIGLIST 0
7233 # checks for compiler characteristics
7235 ac_cpp
='$CXXCPP $CPPFLAGS'
7236 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7240 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
7241 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
7242 cat >conftest.
$ac_ext <<_ACEOF
7246 cat confdefs.h
>>conftest.
$ac_ext
7247 cat >>conftest.
$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7255 char *p = new char[5];
7264 rm -f conftest.
$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7268 grep -v '^ *+' conftest.er1
>conftest.err
7270 cat conftest.err
>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try
='test -z "$ac_cxx_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try
='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 echo "$as_me:$LINENO: result: yes" >&5
7287 echo "${ECHO_T}yes" >&6
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.
$ac_ext >&5
7292 echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7295 cat >>confdefs.h
<<\_ACEOF
7296 #define ARRAY_DELETE_NEEDS_SIZE 1
7300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7302 ac_cpp
='$CPP $CPPFLAGS'
7303 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7308 ac_cpp
='$CXXCPP $CPPFLAGS'
7309 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7313 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
7314 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
7315 cat >conftest.
$ac_ext <<_ACEOF
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7324 #define name2(a, b) a/**/b
7332 int name2(foo, bar);
7340 rm -f conftest.
$ac_objext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>conftest.er1
7344 grep -v '^ *+' conftest.er1
>conftest.err
7346 cat conftest.err
>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try
='test -z "$ac_cxx_werror_flag"
7350 || test ! -s conftest.err'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; } &&
7356 { ac_try
='test -s conftest.$ac_objext'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; }; then
7362 echo "$as_me:$LINENO: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7365 cat >>confdefs.h
<<\_ACEOF
7366 #define TRADITIONAL_CPP 1
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.
$ac_ext >&5
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 ac_cpp
='$CPP $CPPFLAGS'
7379 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7380 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7381 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7384 # checks for operating system services
7385 echo "$as_me:$LINENO: checking w_coredump" >&5
7386 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
7387 if test "$cross_compiling" = yes; then
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7391 cat >conftest.
$ac_ext <<_ACEOF
7395 cat confdefs.h
>>conftest.
$ac_ext
7396 cat >>conftest.
$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7400 #include <sys/types.h>
7401 #include <sys/wait.h>
7415 ((union wait *)&i)->w_coredump = 1;
7426 rm -f conftest
$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 echo "$as_me:$LINENO: result: yes" >&5
7438 echo "${ECHO_T}yes" >&6
7440 cat >>confdefs.h
<<\_ACEOF
7441 #define WCOREFLAG 0200
7445 echo "$as_me: program exited with status $ac_status" >&5
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7450 echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7453 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7456 # other random stuff
7457 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
7458 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
7459 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
7460 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
7461 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
7463 echo "$as_me:$LINENO: checking default paper size" >&5
7464 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
7465 groff_prefix
=$prefix
7466 test "x$prefix" = xNONE
&& groff_prefix
=$ac_default_prefix
7467 if test -z "$PAGE"; then
7469 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
7470 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
7471 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
7472 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
7474 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
7482 if test -n "$descfile"; then
7483 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
7485 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
7491 if test -z "$PAGE"; then
7492 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
7493 /etc/resolv.conf 2>/dev/null`
7494 if test -z "$dom"; then
7495 dom
=`(domainname) 2>/dev/null | tr -d '+'`
7497 ||
test "$dom" = '(none)'; then
7498 dom
=`(hostname) 2>/dev/null | grep '\.'`
7501 # If the top-level domain is two letters and it's not `us' or `ca'
7502 # then they probably use A4 paper.
7504 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
7511 test -n "$PAGE" || PAGE
=letter
7512 if test "x$PAGE" = "xA4"; then
7514 cat >>confdefs.h
<<\_ACEOF
7519 echo "$as_me:$LINENO: result: $PAGE" >&5
7520 echo "${ECHO_T}$PAGE" >&6
7522 echo "$as_me:$LINENO: checking for existing troff installation" >&5
7523 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
7524 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
7525 echo "$as_me:$LINENO: result: yes" >&5
7526 echo "${ECHO_T}yes" >&6
7529 echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7534 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
7535 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
7537 sys_tmac_file_prefix
=
7538 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
7539 for t
in "" tmac.
; do
7542 if test -z "$sys_tmac_prefix" \
7544 && grep '^\.if' $f >/dev
/null
2>&1; then
7545 sys_tmac_prefix
=$d/$t
7546 sys_tmac_file_prefix
=$t
7551 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
7552 echo "${ECHO_T}$sys_tmac_prefix" >&6
7555 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
7556 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
7558 if test "x$sys_tmac_file_prefix" = "xtmac."; then
7559 for f
in $sys_tmac_prefix*; do
7560 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7565 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
7566 || tmac_wrap
="$tmac_wrap $suff" ;;
7569 elif test -n "$sys_tmac_prefix"; then
7570 files
=`echo $sys_tmac_prefix*`
7571 grep "\\.so" $files >conftest.sol
7574 ${sys_tmac_prefix}e
)
7582 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
7583 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
7586 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7591 tmac_wrap
="$tmac_wrap $suff" ;;
7598 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
7599 echo "${ECHO_T}$tmac_wrap" >&6
7601 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
7602 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
7603 cp ${srcdir}/src
/include
/nonposix.h conftest.h
7604 cat >conftest.
$ac_ext <<_ACEOF
7608 cat confdefs.h
>>conftest.
$ac_ext
7609 cat >>conftest.
$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7614 #include "conftest.h"
7622 #if PATH_SEP_CHAR == ';'
7623 make an error "Path separator is ';'"
7632 rm -f conftest.
$ac_objext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7634 (eval $ac_compile) 2>conftest.er1
7636 grep -v '^ *+' conftest.er1
>conftest.err
7638 cat conftest.err
>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try
='test -z "$ac_c_werror_flag"
7642 || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try
='test -s conftest.$ac_objext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 GROFF_PATH_SEPARATOR
=":"
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7659 GROFF_PATH_SEPARATOR
=";"
7661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
7663 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
7666 make_install_html
=install_html
7669 # Extract the first word of "pnmcut", so it can be a program name with args.
7670 set dummy pnmcut
; ac_word
=$2
7671 echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7673 if test "${ac_cv_prog_pnmcut+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 if test -n "$pnmcut"; then
7677 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
7679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir
=.
7684 for ac_exec_ext
in '' $ac_executable_extensions; do
7685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_pnmcut
="found"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
7696 pnmcut
=$ac_cv_prog_pnmcut
7697 if test -n "$pnmcut"; then
7698 echo "$as_me:$LINENO: result: $pnmcut" >&5
7699 echo "${ECHO_T}$pnmcut" >&6
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7705 if test $pnmcut = missing
; then
7706 missing
="$missing pnmcut"
7707 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
7708 set dummy pnmcrop
; ac_word
=$2
7709 echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7711 if test "${ac_cv_prog_pnmcrop+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 if test -n "$pnmcrop"; then
7715 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
7717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir
=.
7722 for ac_exec_ext
in '' $ac_executable_extensions; do
7723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_pnmcrop
="found"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
7734 pnmcrop
=$ac_cv_prog_pnmcrop
7735 if test -n "$pnmcrop"; then
7736 echo "$as_me:$LINENO: result: $pnmcrop" >&5
7737 echo "${ECHO_T}$pnmcrop" >&6
7739 echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7743 if test $pnmcrop = missing
; then
7744 missing
="$missing pnmcrop"
7745 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
7746 set dummy pnmtopng
; ac_word
=$2
7747 echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749 if test "${ac_cv_prog_pnmtopng+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 if test -n "$pnmtopng"; then
7753 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
7755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir
=.
7760 for ac_exec_ext
in '' $ac_executable_extensions; do
7761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_pnmtopng
="found"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
7772 pnmtopng
=$ac_cv_prog_pnmtopng
7773 if test -n "$pnmtopng"; then
7774 echo "$as_me:$LINENO: result: $pnmtopng" >&5
7775 echo "${ECHO_T}$pnmtopng" >&6
7777 echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7781 if test $pnmtopng = missing
; then
7782 missing
="$missing pnmtopng"
7783 fi;# Extract the first word of "psselect", so it can be a program name with args.
7784 set dummy psselect
; ac_word
=$2
7785 echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7787 if test "${ac_cv_prog_psselect+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 if test -n "$psselect"; then
7791 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
7793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir
=.
7798 for ac_exec_ext
in '' $ac_executable_extensions; do
7799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_psselect
="found"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
7810 psselect
=$ac_cv_prog_psselect
7811 if test -n "$psselect"; then
7812 echo "$as_me:$LINENO: result: $psselect" >&5
7813 echo "${ECHO_T}$psselect" >&6
7815 echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6
7819 if test $psselect = missing
; then
7820 missing
="$missing psselect"
7821 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
7822 set dummy pnmtops
; ac_word
=$2
7823 echo "$as_me:$LINENO: checking for $ac_word" >&5
7824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825 if test "${ac_cv_prog_pnmtops+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 if test -n "$pnmtops"; then
7829 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
7831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir
=.
7836 for ac_exec_ext
in '' $ac_executable_extensions; do
7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_pnmtops
="found"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
7848 pnmtops
=$ac_cv_prog_pnmtops
7849 if test -n "$pnmtops"; then
7850 echo "$as_me:$LINENO: result: $pnmtops" >&5
7851 echo "${ECHO_T}$pnmtops" >&6
7853 echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6
7857 if test $pnmtops = missing
; then
7858 missing
="$missing pnmtops"
7859 fi;# Extract the first word of "gs", so it can be a program name with args.
7860 set dummy gs
; ac_word
=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_gs+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 if test -n "$gs"; then
7867 ac_cv_prog_gs
="$gs" # Let the user override the test.
7869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7873 test -z "$as_dir" && as_dir
=.
7874 for ac_exec_ext
in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_gs
="found"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs
="missing"
7887 if test -n "$gs"; then
7888 echo "$as_me:$LINENO: result: $gs" >&5
7889 echo "${ECHO_T}$gs" >&6
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7895 if test $gs = missing
; then
7896 missing
="$missing gs"
7899 if test -n "$missing"; then
7910 progs
="\`$prog1'" ;;
7912 progs
="\`$prog1' and \`$prog2'" ;;
7914 progs
="\`$prog1', \`$prog2', and \`$prog3'" ;;
7916 progs
="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
7918 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
7920 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
7926 { echo "$as_me:$LINENO: WARNING:
7930 can't be found in the path, thus the HTML backend of groff (grohtml)
7931 won't work properly. Consequently, no documentation in HTML format
7932 is built and installed.
7934 echo "$as_me: WARNING:
7938 can't be found in the path, thus the HTML backend of groff (grohtml)
7939 won't work properly. Consequently, no documentation in HTML format
7940 is built and installed.
7946 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
7947 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
7948 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950 echo "${ECHO_T}yes" >&6
7951 pnmtops_nosetpage
="pnmtops -nosetpage"
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955 pnmtops_nosetpage
="pnmtops"
7959 ac_config_files
="$ac_config_files stamp-h"
7961 ac_config_files
="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
7963 ac_config_files
="$ac_config_files test-groff"
7965 cat >confcache
<<\_ACEOF
7966 # This file is a shell script that caches the results of configure
7967 # tests run on this system so they can be shared between configure
7968 # scripts and configure runs, see configure's option --config-cache.
7969 # It is not useful on other systems. If it contains results you don't
7970 # want to keep, you may remove or edit it.
7972 # config.status only pays attention to the cache file if you give it
7973 # the --recheck option to rerun configure.
7975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7981 # The following way of writing the cache mishandles newlines in values,
7982 # but we know of no workaround that is simple, portable, and efficient.
7983 # So, don't put newlines in cache variables' values.
7984 # Ultrix sh set writes to stderr and can't be redirected directly,
7985 # and sets the high bit in the cache file unless we assign to the vars.
7988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7990 # `set' does not quote correctly, so add quotes (double-quote
7991 # substitution turns \\\\ into \\, and sed turns \\ into \).
7994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7997 # `set' quotes correctly as required by POSIX, so do not add quotes.
7999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8008 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8010 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8011 if test -w $cache_file; then
8012 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8013 cat confcache
>$cache_file
8015 echo "not updating unwritable cache $cache_file"
8020 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8021 # Let make expand exec_prefix.
8022 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8026 # trailing colons and then remove the whole line if VPATH becomes empty
8027 # (actually we leave an empty line to preserve line numbers).
8028 if test "x$srcdir" = x.
; then
8029 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8030 s/:*\$(srcdir):*/:/;
8031 s/:*\${srcdir}:*/:/;
8033 s/^\([^=]*=[ ]*\):*/\1/;
8039 DEFS
=-DHAVE_CONFIG_H
8043 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8044 # 1. Remove the extension, and $U if already installed.
8045 ac_i
=`echo "$ac_i" |
8046 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8048 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8049 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8053 LTLIBOBJS
=$ac_ltlibobjs
8057 : ${CONFIG_STATUS=./config.status}
8058 ac_clean_files_save
=$ac_clean_files
8059 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8062 cat >$CONFIG_STATUS <<_ACEOF
8064 # Generated by $as_me.
8065 # Run this file to recreate the current configuration.
8066 # Compiler output produced by configure, useful for debugging
8067 # configure, is in config.log if it exists.
8072 SHELL=\${CONFIG_SHELL-$SHELL}
8075 cat >>$CONFIG_STATUS <<\_ACEOF
8076 ## --------------------- ##
8077 ## M4sh Initialization. ##
8078 ## --------------------- ##
8080 # Be Bourne compatible
8081 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8085 # is contrary to our usage. Disable this feature.
8086 alias -g '${1+"$@"}'='"$@"'
8087 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8090 DUALCASE
=1; export DUALCASE
# for MKS sh
8092 # Support unset when possible.
8093 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8100 # Work around bugs in pre-3.0 UWIN ksh.
8101 $as_unset ENV MAIL MAILPATH
8108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8110 LC_TELEPHONE LC_TIME
8112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8113 eval $as_var=C
; export $as_var
8119 # Required to use basename.
8120 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8126 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8127 as_basename
=basename
8133 # Name of the executable.
8134 as_me
=`$as_basename "$0" ||
8135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8136 X"$0" : 'X\(//\)$' \| \
8137 X"$0" : 'X\(/\)$' \| \
8138 . : '\(.\)' 2>/dev/null ||
8140 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8141 /^X\/\(\/\/\)$/{ s//\1/; q; }
8142 /^X\/\(\/\).*/{ s//\1/; q; }
8146 # PATH needs CR, and LINENO needs CR and PATH.
8147 # Avoid depending upon Character Ranges.
8148 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8149 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8150 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8151 as_cr_digits
='0123456789'
8152 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8154 # The user is always right.
8155 if test "${PATH_SEPARATOR+set}" != set; then
8156 echo "#! /bin/sh" >conf$$.sh
8157 echo "exit 0" >>conf$$.sh
8159 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8170 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8171 test "x$as_lineno_1" != "x$as_lineno_2" &&
8172 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8173 # Find who we are. Look in the path if we contain no path at all
8176 *[\\/]* ) as_myself
=$0 ;;
8177 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir
=.
8182 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8187 # We did not find ourselves, most probably we were run as `sh COMMAND'
8188 # in which case we are not to be found in the path.
8189 if test "x$as_myself" = x
; then
8192 if test ! -f "$as_myself"; then
8193 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8194 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8195 { (exit 1); exit 1; }; }
8197 case $CONFIG_SHELL in
8199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8200 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8203 test -z "$as_dir" && as_dir
=.
8204 for as_base
in sh bash ksh sh5
; do
8207 if ("$as_dir/$as_base" -c '
8210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8211 test "x$as_lineno_1" != "x$as_lineno_2" &&
8212 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8213 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8214 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8215 CONFIG_SHELL
=$as_dir/$as_base
8217 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8226 # uniformly replaced by the line number. The first 'sed' inserts a
8227 # line-number line before each line; the second 'sed' does the real
8228 # work. The second script uses 'N' to pair each line-number line
8229 # with the numbered line, and appends trailing '-' during
8230 # substitution so that $LINENO is not a special case at line end.
8231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8232 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8233 sed '=' <$as_myself |
8238 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8241 s,^['$as_cr_digits']*\n,,
8243 chmod +x
$as_me.lineno ||
8244 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8245 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8246 { (exit 1); exit 1; }; }
8248 # Don't try to exec as it changes $[0], causing all sort of problems
8249 # (the dirname of $[0] is not the place where we might find the
8250 # original and so on. Autoconf is especially sensible to this).
8252 # Exit status is that of the last command.
8257 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8258 *c
*,-n*) ECHO_N
= ECHO_C
='
8260 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8261 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8264 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8270 rm -f conf$$ conf$$.exe conf$$.
file
8272 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8273 # We could just check for DJGPP; but this test a) works b) is more generic
8274 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8275 if test -f conf$$.exe
; then
8276 # Don't use ln at all; we don't have any links
8281 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8286 rm -f conf$$ conf$$.exe conf$$.
file
8288 if mkdir
-p .
2>/dev
/null
; then
8291 test -d .
/-p && rmdir .
/-p
8295 as_executable_p
="test -f"
8297 # Sed expression to map a string onto a valid CPP name.
8298 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8300 # Sed expression to map a string onto a valid variable name.
8301 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8305 # We need space, tab and new line, in precisely that order.
8315 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8316 # report actual input values of CONFIG_FILES etc. instead of their
8317 # values after options handling. Logging --version etc. is OK.
8321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8322 ## Running $as_me. ##
8327 This file was extended by $as_me, which was
8328 generated by GNU Autoconf 2.59. Invocation command line was
8330 CONFIG_FILES = $CONFIG_FILES
8331 CONFIG_HEADERS = $CONFIG_HEADERS
8332 CONFIG_LINKS = $CONFIG_LINKS
8333 CONFIG_COMMANDS = $CONFIG_COMMANDS
8337 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8341 # Files that config.status was made for.
8342 if test -n "$ac_config_files"; then
8343 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8346 if test -n "$ac_config_headers"; then
8347 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8350 if test -n "$ac_config_links"; then
8351 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8354 if test -n "$ac_config_commands"; then
8355 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8358 cat >>$CONFIG_STATUS <<\_ACEOF
8361 \`$as_me' instantiates files from templates according to the
8362 current configuration.
8364 Usage: $0 [OPTIONS] [FILE]...
8366 -h, --help print this help, then exit
8367 -V, --version print version number, then exit
8368 -q, --quiet do not print progress messages
8369 -d, --debug don't remove temporary files
8370 --recheck update $as_me by reconfiguring in the same conditions
8371 --file=FILE[:TEMPLATE]
8372 instantiate the configuration file FILE
8373 --header=FILE[:TEMPLATE]
8374 instantiate the configuration header FILE
8376 Configuration files:
8379 Configuration headers:
8382 Report bugs to <bug-autoconf@gnu.org>."
8385 cat >>$CONFIG_STATUS <<_ACEOF
8388 configured by $0, generated by GNU Autoconf 2.59,
8389 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8391 Copyright (C) 2003 Free Software Foundation, Inc.
8392 This config.status script is free software; the Free Software Foundation
8393 gives unlimited permission to copy, distribute and modify it."
8398 cat >>$CONFIG_STATUS <<\_ACEOF
8399 # If no file are specified by the user, then we need to provide default
8400 # value. By we need to know if files were specified by the user.
8406 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8407 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8415 *) # This is not an option, so the user has probably given explicit
8418 ac_need_defaults
=false
;;
8422 # Handling of the options.
8424 cat >>$CONFIG_STATUS <<\_ACEOF
8425 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8427 --version |
--vers* |
-V )
8428 echo "$ac_cs_version"; exit 0 ;;
8430 # Conflict between --help and --header
8431 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8432 Try \`$0 --help' for more information." >&5
8433 echo "$as_me: error: ambiguous option: $1
8434 Try \`$0 --help' for more information." >&2;}
8435 { (exit 1); exit 1; }; };;
8436 --help |
--hel |
-h )
8437 echo "$ac_cs_usage"; exit 0 ;;
8438 --debug |
--d* |
-d )
8440 --file |
--fil |
--fi |
--f )
8442 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8443 ac_need_defaults
=false
;;
8444 --header |
--heade |
--head |
--hea )
8446 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8447 ac_need_defaults
=false
;;
8448 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8449 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8453 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8454 Try \`$0 --help' for more information." >&5
8455 echo "$as_me: error: unrecognized option: $1
8456 Try \`$0 --help' for more information." >&2;}
8457 { (exit 1); exit 1; }; } ;;
8459 *) ac_config_targets
="$ac_config_targets $1" ;;
8465 ac_configure_extra_args
=
8467 if $ac_cs_silent; then
8469 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8473 cat >>$CONFIG_STATUS <<_ACEOF
8474 if \$ac_cs_recheck; then
8475 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8476 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8485 cat >>$CONFIG_STATUS <<\_ACEOF
8486 for ac_config_target
in $ac_config_targets
8488 case "$ac_config_target" in
8489 # Handling of arguments.
8490 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
8491 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8492 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8493 "src/xditview/Imakefile" ) CONFIG_FILES
="$CONFIG_FILES src/xditview/Imakefile" ;;
8494 "test-groff" ) CONFIG_FILES
="$CONFIG_FILES test-groff" ;;
8495 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
8496 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8497 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8498 { (exit 1); exit 1; }; };;
8502 # If the user did not use the arguments to specify the items to instantiate,
8503 # then the envvar interface is used. Set only those that are not.
8504 # We use the long form for the default assignment because of an extremely
8505 # bizarre bug on SunOS 4.1.3.
8506 if $ac_need_defaults; then
8507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8511 # Have a temporary directory for convenience. Make it in the build tree
8512 # simply because there is no reason to put it here, and in addition,
8513 # creating and moving files from /tmp can sometimes cause problems.
8514 # Create a temporary directory, and hook for its removal unless debugging.
8517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8518 trap '{ (exit 1); exit 1; }' 1 2 13 15
8521 # Create a (secure) tmp directory for tmp files.
8524 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8525 test -n "$tmp" && test -d "$tmp"
8528 tmp
=.
/confstat$$
-$RANDOM
8529 (umask 077 && mkdir
$tmp)
8532 echo "$me: cannot create a temporary directory in ." >&2
8533 { (exit 1); exit 1; }
8538 cat >>$CONFIG_STATUS <<_ACEOF
8541 # CONFIG_FILES section.
8544 # No need to generate the scripts if there are no CONFIG_FILES.
8545 # This happens for instance when ./config.status config.h
8546 if test -n "\$CONFIG_FILES"; then
8547 # Protect against being on the right side of a sed subst in config.status.
8548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8550 s,@SHELL@,$SHELL,;t t
8551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8557 s,@exec_prefix@,$exec_prefix,;t t
8558 s,@prefix@,$prefix,;t t
8559 s,@program_transform_name@,$program_transform_name,;t t
8560 s,@bindir@,$bindir,;t t
8561 s,@sbindir@,$sbindir,;t t
8562 s,@libexecdir@,$libexecdir,;t t
8563 s,@datadir@,$datadir,;t t
8564 s,@sysconfdir@,$sysconfdir,;t t
8565 s,@sharedstatedir@,$sharedstatedir,;t t
8566 s,@localstatedir@,$localstatedir,;t t
8567 s,@libdir@,$libdir,;t t
8568 s,@includedir@,$includedir,;t t
8569 s,@oldincludedir@,$oldincludedir,;t t
8570 s,@infodir@,$infodir,;t t
8571 s,@mandir@,$mandir,;t t
8572 s,@build_alias@,$build_alias,;t t
8573 s,@host_alias@,$host_alias,;t t
8574 s,@target_alias@,$target_alias,;t t
8576 s,@ECHO_C@,$ECHO_C,;t t
8577 s,@ECHO_N@,$ECHO_N,;t t
8578 s,@ECHO_T@,$ECHO_T,;t t
8581 s,@CFLAGS@,$CFLAGS,;t t
8582 s,@LDFLAGS@,$LDFLAGS,;t t
8583 s,@CPPFLAGS@,$CPPFLAGS,;t t
8584 s,@ac_ct_CC@,$ac_ct_CC,;t t
8585 s,@EXEEXT@,$EXEEXT,;t t
8586 s,@OBJEXT@,$OBJEXT,;t t
8588 s,@CXXFLAGS@,$CXXFLAGS,;t t
8589 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8590 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
8591 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
8595 s,@PSPRINT@,$PSPRINT,;t t
8596 s,@DVIPRINT@,$DVIPRINT,;t t
8597 s,@PERLPATH@,$PERLPATH,;t t
8599 s,@RANLIB@,$RANLIB,;t t
8600 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8601 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8602 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8603 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8604 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8606 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
8608 s,@EGREP@,$EGREP,;t t
8611 s,@LIBOBJS@,$LIBOBJS,;t t
8612 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
8615 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
8616 s,@tmac_wrap@,$tmac_wrap,;t t
8617 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
8618 s,@pnmcut@,$pnmcut,;t t
8619 s,@pnmcrop@,$pnmcrop,;t t
8620 s,@pnmtopng@,$pnmtopng,;t t
8621 s,@psselect@,$psselect,;t t
8622 s,@pnmtops@,$pnmtops,;t t
8624 s,@make_html@,$make_html,;t t
8625 s,@make_install_html@,$make_install_html,;t t
8626 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
8627 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8632 cat >>$CONFIG_STATUS <<\_ACEOF
8633 # Split the substitutions into bite-sized pieces for seds with
8634 # small command number limits, like on Digital OSF/1 and HP-UX.
8636 ac_sed_frag
=1 # Number of current file.
8637 ac_beg
=1 # First line for current file.
8638 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8641 while $ac_more_lines; do
8642 if test $ac_beg -gt 1; then
8643 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8645 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8647 if test ! -s $tmp/subs.frag
; then
8650 # The purpose of the label and of the branching condition is to
8651 # speed up the sed processing (if there are no `@' at all, there
8652 # is no need to browse any of the substitutions).
8653 # These are the two extra sed commands mentioned above.
8655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8656 if test -z "$ac_sed_cmds"; then
8657 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8659 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8661 ac_sed_frag
=`expr $ac_sed_frag + 1`
8663 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8666 if test -z "$ac_sed_cmds"; then
8669 fi # test -n "$CONFIG_FILES"
8672 cat >>$CONFIG_STATUS <<\_ACEOF
8673 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8676 - |
*:- |
*:-:* ) # input from stdin
8678 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8679 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8680 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8681 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8682 * ) ac_file_in
=$ac_file.
in ;;
8685 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8686 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8688 X"$ac_file" : 'X\(//\)[^/]' \| \
8689 X"$ac_file" : 'X\(//\)$' \| \
8690 X"$ac_file" : 'X\(/\)' \| \
8691 . : '\(.\)' 2>/dev/null ||
8693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8695 /^X\(\/\/\)$/{ s//\1/; q; }
8696 /^X\(\/\).*/{ s//\1/; q; }
8698 { if $as_mkdir_p; then
8703 while test ! -d "$as_dir"; do
8704 as_dirs
="$as_dir $as_dirs"
8705 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8707 X"$as_dir" : 'X\(//\)[^/]' \| \
8708 X"$as_dir" : 'X\(//\)$' \| \
8709 X"$as_dir" : 'X\(/\)' \| \
8710 . : '\(.\)' 2>/dev/null ||
8712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8714 /^X\(\/\/\)$/{ s//\1/; q; }
8715 /^X\(\/\).*/{ s//\1/; q; }
8718 test ! -n "$as_dirs" || mkdir
$as_dirs
8719 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8720 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8721 { (exit 1); exit 1; }; }; }
8725 if test "$ac_dir" != .
; then
8726 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8727 # A "../" for each directory in $ac_dir_suffix.
8728 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8730 ac_dir_suffix
= ac_top_builddir
=
8734 .
) # No --srcdir option. We are building in place.
8736 if test -z "$ac_top_builddir"; then
8739 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8741 [\\/]* | ?
:[\\/]* ) # Absolute path.
8742 ac_srcdir
=$srcdir$ac_dir_suffix;
8743 ac_top_srcdir
=$srcdir ;;
8745 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8746 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8749 # Do not use `cd foo && pwd` to compute absolute paths, because
8750 # the directories may not exist.
8752 .
) ac_abs_builddir
="$ac_dir";;
8755 .
) ac_abs_builddir
=`pwd`;;
8756 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8757 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8760 case $ac_abs_builddir in
8761 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8763 case ${ac_top_builddir}.
in
8764 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8765 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8766 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8769 case $ac_abs_builddir in
8770 .
) ac_abs_srcdir
=$ac_srcdir;;
8773 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8774 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8775 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8778 case $ac_abs_builddir in
8779 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8781 case $ac_top_srcdir in
8782 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8783 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8784 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8790 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8791 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8794 if test x
"$ac_file" != x-
; then
8795 { echo "$as_me:$LINENO: creating $ac_file" >&5
8796 echo "$as_me: creating $ac_file" >&6;}
8799 # Let's still pretend it is `configure' which instantiates (i.e., don't
8800 # use $as_me), people would be surprised to read:
8801 # /* config.h. Generated by config.status. */
8802 if test x
"$ac_file" = x-
; then
8805 configure_input
="$ac_file. "
8807 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8808 sed 's,.*/,,'` by configure."
8810 # First look for the input files in the build tree, otherwise in the
8812 ac_file_inputs
=`IFS=:
8813 for f in $ac_file_in; do
8815 -) echo $tmp/stdin ;;
8817 # Absolute (can't be DOS-style, as IFS=:)
8818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8819 echo "$as_me: error: cannot find input file: $f" >&2;}
8820 { (exit 1); exit 1; }; }
8823 if test -f "$f"; then
8826 elif test -f "$srcdir/$f"; then
8831 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8832 echo "$as_me: error: cannot find input file: $f" >&2;}
8833 { (exit 1); exit 1; }; }
8836 done` ||
{ (exit 1); exit 1; }
8838 cat >>$CONFIG_STATUS <<_ACEOF
8842 cat >>$CONFIG_STATUS <<\_ACEOF
8844 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8845 s
,@configure_input@
,$configure_input,;t t
8846 s
,@srcdir@
,$ac_srcdir,;t t
8847 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8848 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8849 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8850 s
,@builddir@
,$ac_builddir,;t t
8851 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8852 s
,@top_builddir@
,$ac_top_builddir,;t t
8853 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8854 s
,@INSTALL@
,$ac_INSTALL,;t t
8855 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8857 if test x"$ac_file" != x-; then
8858 mv $tmp/out $ac_file
8864 # Run the commands associated with the file.
8866 stamp-h ) echo timestamp > stamp-h ;;
8867 test-groff ) chmod +x test-groff ;;
8871 cat >>$CONFIG_STATUS <<\_ACEOF
8874 # CONFIG_HEADER section.
8877 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8878 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8880 # ac_d sets the value in "#define NAME VALUE" lines.
8881 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8882 ac_dB
='[ ].*$,\1#\2'
8885 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8886 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8887 ac_uB
='$,\1#\2define\3'
8891 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8894 - |
*:- |
*:-:* ) # input from stdin
8896 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8897 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8898 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8899 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8900 * ) ac_file_in
=$ac_file.
in ;;
8903 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8904 echo "$as_me: creating $ac_file" >&6;}
8906 # First look for the input files in the build tree, otherwise in the
8908 ac_file_inputs
=`IFS=:
8909 for f in $ac_file_in; do
8911 -) echo $tmp/stdin ;;
8913 # Absolute (can't be DOS-style, as IFS=:)
8914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8915 echo "$as_me: error: cannot find input file: $f" >&2;}
8916 { (exit 1); exit 1; }; }
8917 # Do quote $f, to prevent DOS paths from being IFS'd.
8920 if test -f "$f"; then
8923 elif test -f "$srcdir/$f"; then
8928 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8929 echo "$as_me: error: cannot find input file: $f" >&2;}
8930 { (exit 1); exit 1; }; }
8933 done` ||
{ (exit 1); exit 1; }
8934 # Remove the trailing spaces.
8935 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8939 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8940 # `conftest.undefs', that substitutes the proper values into
8941 # config.h.in to produce config.h. The first handles `#define'
8942 # templates, and the second `#undef' templates.
8943 # And first: Protect against being on the right side of a sed subst in
8944 # config.status. Protect against being in an unquoted here document
8946 rm -f conftest.defines conftest.undefs
8947 # Using a here document instead of a string reduces the quoting nightmare.
8948 # Putting comments in sed scripts is not portable.
8950 # `end' is used to avoid that the second main sed command (meant for
8951 # 0-ary CPP macros) applies to n-ary macro definitions.
8952 # See the Autoconf documentation for `clear'.
8953 cat >confdef2sed.
sed <<\_ACEOF
8958 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8960 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8963 # If some macros were called several times there might be several times
8964 # the same #defines, which is useless. Nevertheless, we may not want to
8965 # sort them, since we want the *last* AC-DEFINE to be honored.
8966 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8967 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8968 rm -f confdef2sed.sed
8970 # This sed command replaces #undef with comments. This is necessary, for
8971 # example, in the case of _POSIX_SOURCE, which is predefined and required
8972 # on some systems where configure will not decide to define it.
8973 cat >>conftest.undefs <<\_ACEOF
8974 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8977 # Break up conftest.defines because some shells have a limit on the size
8978 # of here documents, and old seds have small limits too (100 cmds).
8979 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8980 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8981 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8982 echo ' :' >>$CONFIG_STATUS
8984 while grep . conftest.defines >/dev/null
8986 # Write a limited-size here document to $tmp/defines.sed.
8987 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8988 # Speed up: don't consider the non `#define' lines.
8989 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8990 # Work around the forget-to-reset-the-flag bug.
8991 echo 't clr' >>$CONFIG_STATUS
8992 echo ': clr' >>$CONFIG_STATUS
8993 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8995 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8999 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9000 rm -f conftest.defines
9001 mv conftest.
tail conftest.defines
9003 rm -f conftest.defines
9004 echo ' fi # grep' >>$CONFIG_STATUS
9005 echo >>$CONFIG_STATUS
9007 # Break up conftest.undefs because some shells have a limit on the size
9008 # of here documents, and old seds have small limits too (100 cmds).
9009 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9011 while grep . conftest.undefs
>/dev
/null
9013 # Write a limited-size here document to $tmp/undefs.sed.
9014 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9015 # Speed up: don't consider the non
`#undef'
9016 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9017 # Work around the forget-to-reset-the-flag bug.
9018 echo 't clr' >>$CONFIG_STATUS
9019 echo ': clr' >>$CONFIG_STATUS
9020 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9022 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9026 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9027 rm -f conftest.undefs
9028 mv conftest.tail conftest.undefs
9030 rm -f conftest.undefs
9032 cat >>$CONFIG_STATUS <<\_ACEOF
9033 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9034 # use $as_me), people would be surprised to read:
9035 # /* config.h. Generated by config.status. */
9036 if test x
"$ac_file" = x-
; then
9037 echo "/* Generated by configure. */" >$tmp/config.h
9039 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9041 cat $tmp/in >>$tmp/config.h
9043 if test x
"$ac_file" != x-
; then
9044 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9046 echo "$as_me: $ac_file is unchanged" >&6;}
9048 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9050 X"$ac_file" : 'X\(//\)[^/]' \| \
9051 X"$ac_file" : 'X\(//\)$' \| \
9052 X"$ac_file" : 'X\(/\)' \| \
9053 . : '\(.\)' 2>/dev/null ||
9055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9057 /^X\(\/\/\)$/{ s//\1/; q; }
9058 /^X\(\/\).*/{ s//\1/; q; }
9060 { if $as_mkdir_p; then
9065 while test ! -d "$as_dir"; do
9066 as_dirs
="$as_dir $as_dirs"
9067 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9069 X"$as_dir" : 'X\(//\)[^/]' \| \
9070 X"$as_dir" : 'X\(//\)$' \| \
9071 X"$as_dir" : 'X\(/\)' \| \
9072 . : '\(.\)' 2>/dev/null ||
9074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9076 /^X\(\/\/\)$/{ s//\1/; q; }
9077 /^X\(\/\).*/{ s//\1/; q; }
9080 test ! -n "$as_dirs" || mkdir
$as_dirs
9081 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9083 { (exit 1); exit 1; }; }; }
9086 mv $tmp/config.h
$ac_file
9095 cat >>$CONFIG_STATUS <<\_ACEOF
9097 { (exit 0); exit 0; }
9099 chmod +x
$CONFIG_STATUS
9100 ac_clean_files
=$ac_clean_files_save
9103 # configure is writing to config.log, and then calls config.status.
9104 # config.status does its own redirection, appending to config.log.
9105 # Unfortunately, on DOS this fails, as config.log is still kept open
9106 # by configure, so config.status won't be able to write to it; its
9107 # output is simply discarded. So we exec the FD to /dev/null,
9108 # effectively closing config.log, so it can be properly (re)opened and
9109 # appended to by config.status. When coming back to configure, we
9110 # need to make the FD available again.
9111 if test "$no_create" != yes; then
9113 ac_config_status_args
=
9114 test "$silent" = yes &&
9115 ac_config_status_args
="$ac_config_status_args --quiet"
9117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9120 # would make configure fail if this is the last instruction.
9121 $ac_cs_success ||
{ (exit 1); exit 1; }
9125 { echo "$as_me:$LINENO:
9127 Configuration completed.
9129 You can now say \`make' to compile the groff package and \`make install'
9130 to install it afterwards.
9132 If you want to compile xditview, change the directory to \`src/xditview'
9133 and follow the instructions given in the file \`INSTALL'.
9137 Configuration completed.
9139 You can now say \`make' to compile the groff package and \`make install'
9140 to install it afterwards.
9142 If you want to compile xditview, change the directory to \`src/xditview'
9143 and follow the instructions given in the file \`INSTALL'.