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 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
3867 for ac_header
in stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
3868 string.h
strings.h math.h sys
/time.h
3870 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872 echo "$as_me:$LINENO: checking for $ac_header" >&5
3873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880 # Is the header compilable?
3881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3883 cat >conftest.
$ac_ext <<_ACEOF
3886 cat confdefs.h
>>conftest.
$ac_ext
3887 cat >>conftest.
$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 $ac_includes_default
3890 #include <$ac_header>
3892 rm -f conftest.
$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1
>conftest.err
3898 cat conftest.err
>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try
='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try
='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_header_compiler
=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.
$ac_ext >&5
3919 ac_header_compiler
=no
3921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3923 echo "${ECHO_T}$ac_header_compiler" >&6
3925 # Is the header present?
3926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <$ac_header>
3936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3939 grep -v '^ *+' conftest.er1
>conftest.err
3941 cat conftest.err
>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } >/dev
/null
; then
3944 if test -s conftest.err
; then
3945 ac_cpp_err
=$ac_c_preproc_warn_flag
3946 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3953 if test -z "$ac_cpp_err"; then
3954 ac_header_preproc
=yes
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.
$ac_ext >&5
3959 ac_header_preproc
=no
3961 rm -f conftest.err conftest.
$ac_ext
3962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3963 echo "${ECHO_T}$ac_header_preproc" >&6
3965 # So? What about this header?
3966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3972 ac_header_preproc
=yes
3975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3989 ## ------------------------------------------ ##
3990 ## Report this to the AC_PACKAGE_NAME lists. ##
3991 ## ------------------------------------------ ##
3994 sed "s/^/$as_me: WARNING: /" >&2
3997 echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 eval "$as_ac_Header=\$ac_header_preproc"
4004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4009 cat >>confdefs.h
<<_ACEOF
4010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4017 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
4018 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
4019 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
4021 echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6
4024 cat >>confdefs.h
<<\_ACEOF
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4032 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
4033 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
4035 ac_cpp
='$CXXCPP $CPPFLAGS'
4036 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4040 cat >conftest.
$ac_ext <<_ACEOF
4044 cat confdefs.h
>>conftest.
$ac_ext
4045 cat >>conftest.
$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4050 extern "C" { void fileno(int); }
4062 rm -f conftest.
$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4066 grep -v '^ *+' conftest.er1
>conftest.err
4068 cat conftest.err
>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try
='test -z "$ac_cxx_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try
='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6
4087 cat >>confdefs.h
<<\_ACEOF
4088 #define _POSIX_SOURCE 1
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.
$ac_ext >&5
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4100 ac_cpp
='$CPP $CPPFLAGS'
4101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4106 # checks for header stuff
4108 ac_cpp
='$CXXCPP $CPPFLAGS'
4109 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4113 echo "$as_me:$LINENO: checking for return type of srand" >&5
4114 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
4115 cat >conftest.
$ac_ext <<_ACEOF
4119 cat confdefs.h
>>conftest.
$ac_ext
4120 cat >>conftest.
$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4125 extern "C" { void srand(unsigned int); }
4137 rm -f conftest.
$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4141 grep -v '^ *+' conftest.er1
>conftest.err
4143 cat conftest.err
>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try
='test -z "$ac_cxx_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try
='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 echo "$as_me:$LINENO: result: void" >&5
4160 echo "${ECHO_T}void" >&6
4162 cat >>confdefs.h
<<\_ACEOF
4163 #define RET_TYPE_SRAND_IS_VOID 1
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.
$ac_ext >&5
4170 echo "$as_me:$LINENO: result: int" >&5
4171 echo "${ECHO_T}int" >&6
4173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4175 ac_cpp
='$CPP $CPPFLAGS'
4176 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4180 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
4181 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
4183 ac_cpp
='$CXXCPP $CPPFLAGS'
4184 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4188 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 cat >conftest.
$ac_ext <<_ACEOF
4195 cat confdefs.h
>>conftest.
$ac_ext
4196 cat >>conftest.
$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4201 #ifdef HAVE_STRING_H
4204 #ifdef HAVE_STRINGS_H
4205 #include <strings.h>
4207 #ifdef HAVE_STDLIB_H
4210 #ifdef HAVE_SYS_TIME_H
4211 #include <sys/time.h>
4213 #ifdef HAVE_UNISTD_H
4226 #ifndef gettimeofday
4227 char *p = (char *) gettimeofday;
4236 rm -f conftest.
$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4240 grep -v '^ *+' conftest.er1
>conftest.err
4242 cat conftest.err
>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try
='test -z "$ac_cxx_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try
='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 groff_cv_decl_needed_gettimeofday
=no
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.
$ac_ext >&5
4263 groff_cv_decl_needed_gettimeofday
=yes
4265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4268 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
4269 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
4270 if test $groff_cv_decl_needed_gettimeofday = yes; then
4272 cat >>confdefs.h
<<\_ACEOF
4273 #define NEED_DECLARATION_GETTIMEOFDAY 1
4278 ac_cpp
='$CPP $CPPFLAGS'
4279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4283 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
4284 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
4286 ac_cpp
='$CXXCPP $CPPFLAGS'
4287 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4291 if test "${groff_cv_decl_needed_hypot+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.
$ac_ext <<_ACEOF
4298 cat confdefs.h
>>conftest.
$ac_ext
4299 cat >>conftest.
$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4304 #ifdef HAVE_STRING_H
4307 #ifdef HAVE_STRINGS_H
4308 #include <strings.h>
4310 #ifdef HAVE_STDLIB_H
4313 #ifdef HAVE_SYS_TIME_H
4314 #include <sys/time.h>
4316 #ifdef HAVE_UNISTD_H
4330 char *p = (char *) hypot;
4339 rm -f conftest.
$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>conftest.er1
4343 grep -v '^ *+' conftest.er1
>conftest.err
4345 cat conftest.err
>&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try
='test -z "$ac_cxx_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try
='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 groff_cv_decl_needed_hypot
=no
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.
$ac_ext >&5
4366 groff_cv_decl_needed_hypot
=yes
4368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
4372 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
4373 if test $groff_cv_decl_needed_hypot = yes; then
4375 cat >>confdefs.h
<<\_ACEOF
4376 #define NEED_DECLARATION_HYPOT 1
4381 ac_cpp
='$CPP $CPPFLAGS'
4382 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4386 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
4387 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
4389 ac_cpp
='$CXXCPP $CPPFLAGS'
4390 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4394 if test "${groff_cv_decl_needed_popen+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 cat >conftest.
$ac_ext <<_ACEOF
4401 cat confdefs.h
>>conftest.
$ac_ext
4402 cat >>conftest.
$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4407 #ifdef HAVE_STRING_H
4410 #ifdef HAVE_STRINGS_H
4411 #include <strings.h>
4413 #ifdef HAVE_STDLIB_H
4416 #ifdef HAVE_SYS_TIME_H
4417 #include <sys/time.h>
4419 #ifdef HAVE_UNISTD_H
4433 char *p = (char *) popen;
4442 rm -f conftest.
$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1
>conftest.err
4448 cat conftest.err
>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try
='test -z "$ac_cxx_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try
='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 groff_cv_decl_needed_popen
=no
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.
$ac_ext >&5
4469 groff_cv_decl_needed_popen
=yes
4471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4474 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
4475 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
4476 if test $groff_cv_decl_needed_popen = yes; then
4478 cat >>confdefs.h
<<\_ACEOF
4479 #define NEED_DECLARATION_POPEN 1
4484 ac_cpp
='$CPP $CPPFLAGS'
4485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4489 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
4490 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
4492 ac_cpp
='$CXXCPP $CPPFLAGS'
4493 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4497 if test "${groff_cv_decl_needed_pclose+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.
$ac_ext <<_ACEOF
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4510 #ifdef HAVE_STRING_H
4513 #ifdef HAVE_STRINGS_H
4514 #include <strings.h>
4516 #ifdef HAVE_STDLIB_H
4519 #ifdef HAVE_SYS_TIME_H
4520 #include <sys/time.h>
4522 #ifdef HAVE_UNISTD_H
4536 char *p = (char *) pclose;
4545 rm -f conftest.
$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4549 grep -v '^ *+' conftest.er1
>conftest.err
4551 cat conftest.err
>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try
='test -z "$ac_cxx_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try
='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 groff_cv_decl_needed_pclose
=no
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.
$ac_ext >&5
4572 groff_cv_decl_needed_pclose
=yes
4574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4577 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
4578 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
4579 if test $groff_cv_decl_needed_pclose = yes; then
4581 cat >>confdefs.h
<<\_ACEOF
4582 #define NEED_DECLARATION_PCLOSE 1
4587 ac_cpp
='$CPP $CPPFLAGS'
4588 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4592 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
4593 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
4595 ac_cpp
='$CXXCPP $CPPFLAGS'
4596 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4600 if test "${groff_cv_decl_needed_putenv+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.
$ac_ext <<_ACEOF
4607 cat confdefs.h
>>conftest.
$ac_ext
4608 cat >>conftest.
$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4613 #ifdef HAVE_STRING_H
4616 #ifdef HAVE_STRINGS_H
4617 #include <strings.h>
4619 #ifdef HAVE_STDLIB_H
4622 #ifdef HAVE_SYS_TIME_H
4623 #include <sys/time.h>
4625 #ifdef HAVE_UNISTD_H
4639 char *p = (char *) putenv;
4648 rm -f conftest.
$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1
>conftest.err
4654 cat conftest.err
>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try
='test -z "$ac_cxx_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try
='test -s conftest.$ac_objext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 groff_cv_decl_needed_putenv
=no
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.
$ac_ext >&5
4675 groff_cv_decl_needed_putenv
=yes
4677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
4681 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
4682 if test $groff_cv_decl_needed_putenv = yes; then
4684 cat >>confdefs.h
<<\_ACEOF
4685 #define NEED_DECLARATION_PUTENV 1
4690 ac_cpp
='$CPP $CPPFLAGS'
4691 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4695 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
4696 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
4698 ac_cpp
='$CXXCPP $CPPFLAGS'
4699 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4703 if test "${groff_cv_decl_needed_rand+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 cat >conftest.
$ac_ext <<_ACEOF
4710 cat confdefs.h
>>conftest.
$ac_ext
4711 cat >>conftest.
$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4716 #ifdef HAVE_STRING_H
4719 #ifdef HAVE_STRINGS_H
4720 #include <strings.h>
4722 #ifdef HAVE_STDLIB_H
4725 #ifdef HAVE_SYS_TIME_H
4726 #include <sys/time.h>
4728 #ifdef HAVE_UNISTD_H
4742 char *p = (char *) rand;
4751 rm -f conftest.
$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4755 grep -v '^ *+' conftest.er1
>conftest.err
4757 cat conftest.err
>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try
='test -z "$ac_cxx_werror_flag"
4761 || test ! -s conftest.err'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; } &&
4767 { ac_try
='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 groff_cv_decl_needed_rand
=no
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.
$ac_ext >&5
4778 groff_cv_decl_needed_rand
=yes
4780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4783 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
4784 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
4785 if test $groff_cv_decl_needed_rand = yes; then
4787 cat >>confdefs.h
<<\_ACEOF
4788 #define NEED_DECLARATION_RAND 1
4793 ac_cpp
='$CPP $CPPFLAGS'
4794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4798 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
4799 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
4801 ac_cpp
='$CXXCPP $CPPFLAGS'
4802 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4806 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.
$ac_ext <<_ACEOF
4813 cat confdefs.h
>>conftest.
$ac_ext
4814 cat >>conftest.
$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4819 #ifdef HAVE_STRING_H
4822 #ifdef HAVE_STRINGS_H
4823 #include <strings.h>
4825 #ifdef HAVE_STDLIB_H
4828 #ifdef HAVE_SYS_TIME_H
4829 #include <sys/time.h>
4831 #ifdef HAVE_UNISTD_H
4845 char *p = (char *) snprintf;
4854 rm -f conftest.
$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1
>conftest.err
4860 cat conftest.err
>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try
='test -z "$ac_cxx_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try
='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 groff_cv_decl_needed_snprintf
=no
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.
$ac_ext >&5
4881 groff_cv_decl_needed_snprintf
=yes
4883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
4887 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
4888 if test $groff_cv_decl_needed_snprintf = yes; then
4890 cat >>confdefs.h
<<\_ACEOF
4891 #define NEED_DECLARATION_SNPRINTF 1
4896 ac_cpp
='$CPP $CPPFLAGS'
4897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4901 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
4902 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
4904 ac_cpp
='$CXXCPP $CPPFLAGS'
4905 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4909 if test "${groff_cv_decl_needed_srand+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.
$ac_ext <<_ACEOF
4916 cat confdefs.h
>>conftest.
$ac_ext
4917 cat >>conftest.
$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4922 #ifdef HAVE_STRING_H
4925 #ifdef HAVE_STRINGS_H
4926 #include <strings.h>
4928 #ifdef HAVE_STDLIB_H
4931 #ifdef HAVE_SYS_TIME_H
4932 #include <sys/time.h>
4934 #ifdef HAVE_UNISTD_H
4948 char *p = (char *) srand;
4957 rm -f conftest.
$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4961 grep -v '^ *+' conftest.er1
>conftest.err
4963 cat conftest.err
>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try
='test -z "$ac_cxx_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try
='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 groff_cv_decl_needed_srand
=no
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.
$ac_ext >&5
4984 groff_cv_decl_needed_srand
=yes
4986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
4990 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
4991 if test $groff_cv_decl_needed_srand = yes; then
4993 cat >>confdefs.h
<<\_ACEOF
4994 #define NEED_DECLARATION_SRAND 1
4999 ac_cpp
='$CPP $CPPFLAGS'
5000 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5004 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
5005 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
5007 ac_cpp
='$CXXCPP $CPPFLAGS'
5008 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5012 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 cat >conftest.
$ac_ext <<_ACEOF
5019 cat confdefs.h
>>conftest.
$ac_ext
5020 cat >>conftest.
$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5025 #ifdef HAVE_STRING_H
5028 #ifdef HAVE_STRINGS_H
5029 #include <strings.h>
5031 #ifdef HAVE_STDLIB_H
5034 #ifdef HAVE_SYS_TIME_H
5035 #include <sys/time.h>
5037 #ifdef HAVE_UNISTD_H
5051 char *p = (char *) strcasecmp;
5060 rm -f conftest.
$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>conftest.er1
5064 grep -v '^ *+' conftest.er1
>conftest.err
5066 cat conftest.err
>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try
='test -z "$ac_cxx_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try
='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 groff_cv_decl_needed_strcasecmp
=no
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.
$ac_ext >&5
5087 groff_cv_decl_needed_strcasecmp
=yes
5089 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5092 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
5093 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
5094 if test $groff_cv_decl_needed_strcasecmp = yes; then
5096 cat >>confdefs.h
<<\_ACEOF
5097 #define NEED_DECLARATION_STRCASECMP 1
5102 ac_cpp
='$CPP $CPPFLAGS'
5103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5107 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
5108 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
5110 ac_cpp
='$CXXCPP $CPPFLAGS'
5111 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5115 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 cat >conftest.
$ac_ext <<_ACEOF
5122 cat confdefs.h
>>conftest.
$ac_ext
5123 cat >>conftest.
$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5128 #ifdef HAVE_STRING_H
5131 #ifdef HAVE_STRINGS_H
5132 #include <strings.h>
5134 #ifdef HAVE_STDLIB_H
5137 #ifdef HAVE_SYS_TIME_H
5138 #include <sys/time.h>
5140 #ifdef HAVE_UNISTD_H
5154 char *p = (char *) strncasecmp;
5163 rm -f conftest.
$ac_objext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>conftest.er1
5167 grep -v '^ *+' conftest.er1
>conftest.err
5169 cat conftest.err
>&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try
='test -z "$ac_cxx_werror_flag"
5173 || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try
='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 groff_cv_decl_needed_strncasecmp
=no
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.
$ac_ext >&5
5190 groff_cv_decl_needed_strncasecmp
=yes
5192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5195 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
5196 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
5197 if test $groff_cv_decl_needed_strncasecmp = yes; then
5199 cat >>confdefs.h
<<\_ACEOF
5200 #define NEED_DECLARATION_STRNCASECMP 1
5205 ac_cpp
='$CPP $CPPFLAGS'
5206 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5210 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
5211 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
5213 ac_cpp
='$CXXCPP $CPPFLAGS'
5214 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5218 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 cat >conftest.
$ac_ext <<_ACEOF
5225 cat confdefs.h
>>conftest.
$ac_ext
5226 cat >>conftest.
$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5231 #ifdef HAVE_STRING_H
5234 #ifdef HAVE_STRINGS_H
5235 #include <strings.h>
5237 #ifdef HAVE_STDLIB_H
5240 #ifdef HAVE_SYS_TIME_H
5241 #include <sys/time.h>
5243 #ifdef HAVE_UNISTD_H
5257 char *p = (char *) vfprintf;
5266 rm -f conftest.
$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1
>conftest.err
5272 cat conftest.err
>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try
='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try
='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 groff_cv_decl_needed_vfprintf
=no
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.
$ac_ext >&5
5293 groff_cv_decl_needed_vfprintf
=yes
5295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
5299 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
5300 if test $groff_cv_decl_needed_vfprintf = yes; then
5302 cat >>confdefs.h
<<\_ACEOF
5303 #define NEED_DECLARATION_VFPRINTF 1
5308 ac_cpp
='$CPP $CPPFLAGS'
5309 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5313 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
5314 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
5316 ac_cpp
='$CXXCPP $CPPFLAGS'
5317 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5321 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 cat >conftest.
$ac_ext <<_ACEOF
5328 cat confdefs.h
>>conftest.
$ac_ext
5329 cat >>conftest.
$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5334 #ifdef HAVE_STRING_H
5337 #ifdef HAVE_STRINGS_H
5338 #include <strings.h>
5340 #ifdef HAVE_STDLIB_H
5343 #ifdef HAVE_SYS_TIME_H
5344 #include <sys/time.h>
5346 #ifdef HAVE_UNISTD_H
5360 char *p = (char *) vsnprintf;
5369 rm -f conftest.
$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5373 grep -v '^ *+' conftest.er1
>conftest.err
5375 cat conftest.err
>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try
='test -z "$ac_cxx_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try
='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 groff_cv_decl_needed_vsnprintf
=no
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 groff_cv_decl_needed_vsnprintf
=yes
5398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
5402 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
5403 if test $groff_cv_decl_needed_vsnprintf = yes; then
5405 cat >>confdefs.h
<<\_ACEOF
5406 #define NEED_DECLARATION_VSNPRINTF 1
5411 ac_cpp
='$CPP $CPPFLAGS'
5412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5417 ac_cpp
='$CXXCPP $CPPFLAGS'
5418 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5422 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5423 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5424 cat >conftest.
$ac_ext <<_ACEOF
5428 cat confdefs.h
>>conftest.
$ac_ext
5429 cat >>conftest.
$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5452 rm -f conftest.
$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try
='test -z "$ac_cxx_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try
='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 echo "$as_me:$LINENO: result: yes" >&5
5475 echo "${ECHO_T}yes" >&6
5477 cat >>confdefs.h
<<\_ACEOF
5478 #define HAVE_SYS_NERR 1
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.
$ac_ext >&5
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5490 ac_cpp
='$CPP $CPPFLAGS'
5491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5495 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5496 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5497 cat >conftest.
$ac_ext <<_ACEOF
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5517 k = (int)sys_errlist[0];
5525 rm -f conftest.
$ac_objext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>conftest.er1
5529 grep -v '^ *+' conftest.er1
>conftest.err
5531 cat conftest.err
>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try
='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try
='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 echo "$as_me:$LINENO: result: yes" >&5
5548 echo "${ECHO_T}yes" >&6
5550 cat >>confdefs.h
<<\_ACEOF
5551 #define HAVE_SYS_ERRLIST 1
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.
$ac_ext >&5
5558 echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5563 ac_cpp
='$CXXCPP $CPPFLAGS'
5564 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5568 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
5569 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
5570 cat >conftest.
$ac_ext <<_ACEOF
5574 cat confdefs.h
>>conftest.
$ac_ext
5575 cat >>conftest.
$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5596 rm -f conftest.
$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>conftest.er1
5600 grep -v '^ *+' conftest.er1
>conftest.err
5602 cat conftest.err
>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try
='test -z "$ac_cxx_werror_flag"
5606 || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try
='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 echo "$as_me:$LINENO: result: yes" >&5
5619 echo "${ECHO_T}yes" >&6
5621 cat >>confdefs.h
<<\_ACEOF
5622 #define HAVE_CC_OSFCN_H 1
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5634 ac_cpp
='$CPP $CPPFLAGS'
5635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5640 ac_cpp
='$CXXCPP $CPPFLAGS'
5641 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5645 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
5646 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
5647 cat >conftest.
$ac_ext <<_ACEOF
5651 cat confdefs.h
>>conftest.
$ac_ext
5652 cat >>conftest.
$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5674 rm -f conftest.
$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>conftest.er1
5678 grep -v '^ *+' conftest.er1
>conftest.err
5680 cat conftest.err
>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try
='test -z "$ac_cxx_werror_flag"
5684 || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try
='test -s conftest.$ac_objext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 echo "$as_me:$LINENO: result: yes" >&5
5697 echo "${ECHO_T}yes" >&6
5699 cat >>confdefs.h
<<\_ACEOF
5700 #define HAVE_CC_LIMITS_H 1
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.
$ac_ext >&5
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 ac_cpp
='$CPP $CPPFLAGS'
5713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5718 ac_cpp
='$CXXCPP $CPPFLAGS'
5719 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5723 echo "$as_me:$LINENO: checking C++ <stdint.h>" >&5
5724 echo $ECHO_N "checking C++ <stdint.h>... $ECHO_C" >&6
5725 cat >conftest.
$ac_ext <<_ACEOF
5729 cat confdefs.h
>>conftest.
$ac_ext
5730 cat >>conftest.
$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5751 rm -f conftest.
$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try
='test -z "$ac_cxx_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try
='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6
5776 cat >>confdefs.h
<<\_ACEOF
5777 #define HAVE_CC_STDINT_H 1
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 ac_cpp
='$CPP $CPPFLAGS'
5790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5795 ac_cpp
='$CXXCPP $CPPFLAGS'
5796 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5800 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5801 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5802 cat >conftest.
$ac_ext <<_ACEOF
5806 cat confdefs.h
>>conftest.
$ac_ext
5807 cat >>conftest.
$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 #include <inttypes.h>
5820 uintmax_t i = (uintmax_t)-1;
5828 rm -f conftest.
$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>conftest.er1
5832 grep -v '^ *+' conftest.er1
>conftest.err
5834 cat conftest.err
>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try
='test -z "$ac_cxx_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try
='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 groff_cv_header_inttypes_h
=yes
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.
$ac_ext >&5
5855 groff_cv_header_inttypes_h
=no
5857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5858 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
5859 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
5861 ac_cpp
='$CPP $CPPFLAGS'
5862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5867 # checks for typedefs
5869 ac_cpp
='$CXXCPP $CPPFLAGS'
5870 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5874 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5875 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5876 cat >conftest.
$ac_ext <<_ACEOF
5880 cat confdefs.h
>>conftest.
$ac_ext
5881 cat >>conftest.
$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5885 unsigned long long ull = 1;
5887 unsigned long long ullmax = (unsigned long long)-1;
5895 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5903 rm -f conftest.
$ac_objext conftest
$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1
>conftest.err
5909 cat conftest.err
>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try
='test -z "$ac_cxx_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try
='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 groff_cv_type_unsigned_long_long
=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.
$ac_ext >&5
5930 groff_cv_type_unsigned_long_long
=no
5932 rm -f conftest.err conftest.
$ac_objext \
5933 conftest
$ac_exeext conftest.
$ac_ext
5934 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
5935 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
5937 ac_cpp
='$CPP $CPPFLAGS'
5938 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5943 if test $groff_cv_header_inttypes_h = no
; then
5945 test $groff_cv_type_unsigned_long_long = yes \
5946 && ac_type
='unsigned long long' \
5947 || ac_type
='unsigned long'
5949 cat >>confdefs.h
<<_ACEOF
5950 #define uintmax_t $ac_type
5955 ac_cpp
='$CXXCPP $CPPFLAGS'
5956 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5960 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
5961 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
5962 cat >conftest.
$ac_ext <<_ACEOF
5966 cat confdefs.h
>>conftest.
$ac_ext
5967 cat >>conftest.
$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5980 struct tm *p = localtime(&t);
5988 rm -f conftest.
$ac_objext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 (eval $ac_compile) 2>conftest.er1
5992 grep -v '^ *+' conftest.er1
>conftest.err
5994 cat conftest.err
>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try
='test -z "$ac_cxx_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try
='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 echo "$as_me:$LINENO: result: yes" >&5
6011 echo "${ECHO_T}yes" >&6
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.
$ac_ext >&5
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6019 cat >>confdefs.h
<<\_ACEOF
6020 #define LONG_FOR_TIME_T 1
6024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6026 ac_cpp
='$CPP $CPPFLAGS'
6027 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6031 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6032 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6033 if test "${ac_cv_type_signal+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 cat >conftest.
$ac_ext <<_ACEOF
6039 cat confdefs.h
>>conftest.
$ac_ext
6040 cat >>conftest.
$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <sys/types.h>
6048 extern "C" void (*signal (int, void (*)(int)))(int);
6050 void (*signal ()) ();
6061 rm -f conftest.
$ac_objext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>conftest.er1
6065 grep -v '^ *+' conftest.er1
>conftest.err
6067 cat conftest.err
>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try
='test -z "$ac_c_werror_flag"
6071 || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try
='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 ac_cv_type_signal
=void
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.
$ac_ext >&5
6088 ac_cv_type_signal
=int
6090 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6092 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6093 echo "${ECHO_T}$ac_cv_type_signal" >&6
6095 cat >>confdefs.h
<<_ACEOF
6096 #define RETSIGTYPE $ac_cv_type_signal
6100 echo "$as_me:$LINENO: checking struct exception" >&5
6101 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
6102 cat >conftest.
$ac_ext <<_ACEOF
6106 cat confdefs.h
>>conftest.
$ac_ext
6107 cat >>conftest.
$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6127 rm -f conftest.
$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6131 grep -v '^ *+' conftest.er1
>conftest.err
6133 cat conftest.err
>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try
='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try
='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6
6152 cat >>confdefs.h
<<\_ACEOF
6153 #define HAVE_STRUCT_EXCEPTION 1
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.
$ac_ext >&5
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6165 # checks for libraries
6166 echo "$as_me:$LINENO: checking for main in -lc" >&5
6167 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
6168 if test "${ac_cv_lib_c_main+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 ac_check_lib_save_LIBS
=$LIBS
6173 cat >conftest.
$ac_ext <<_ACEOF
6176 cat confdefs.h
>>conftest.
$ac_ext
6177 cat >>conftest.
$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6189 rm -f conftest.
$ac_objext conftest
$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1
>conftest.err
6195 cat conftest.err
>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try
='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try
='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_lib_c_main
=yes
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.
$ac_ext >&5
6218 rm -f conftest.err conftest.
$ac_objext \
6219 conftest
$ac_exeext conftest.
$ac_ext
6220 LIBS
=$ac_check_lib_save_LIBS
6222 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
6223 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
6224 if test $ac_cv_lib_c_main = yes; then
6229 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6230 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6231 if test "${ac_cv_lib_m_sin+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_check_lib_save_LIBS
=$LIBS
6236 cat >conftest.
$ac_ext <<_ACEOF
6239 cat confdefs.h
>>conftest.
$ac_ext
6240 cat >>conftest.
$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6243 /* Override any gcc2 internal prototype to avoid an error. */
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6258 rm -f conftest.
$ac_objext conftest
$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260 (eval $ac_link) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1
>conftest.err
6264 cat conftest.err
>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try
='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try
='test -s conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.
$ac_ext >&5
6287 rm -f conftest.err conftest.
$ac_objext \
6288 conftest
$ac_exeext conftest.
$ac_ext
6289 LIBS
=$ac_check_lib_save_LIBS
6291 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6292 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6293 if test $ac_cv_lib_m_sin = yes; then
6299 # checks for functions
6302 for ac_header
in stdlib.h unistd.h
6304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo "$as_me:$LINENO: checking for $ac_header" >&5
6307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 # Is the header compilable?
6315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6317 cat >conftest.
$ac_ext <<_ACEOF
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6324 #include <$ac_header>
6326 rm -f conftest.
$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328 (eval $ac_compile) 2>conftest.er1
6330 grep -v '^ *+' conftest.er1
>conftest.err
6332 cat conftest.err
>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try
='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try
='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_header_compiler
=yes
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.
$ac_ext >&5
6353 ac_header_compiler
=no
6355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357 echo "${ECHO_T}$ac_header_compiler" >&6
6359 # Is the header present?
6360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6362 cat >conftest.
$ac_ext <<_ACEOF
6365 cat confdefs.h
>>conftest.
$ac_ext
6366 cat >>conftest.
$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <$ac_header>
6370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6371 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1
>conftest.err
6375 cat conftest.err
>&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } >/dev
/null
; then
6378 if test -s conftest.err
; then
6379 ac_cpp_err
=$ac_c_preproc_warn_flag
6380 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6387 if test -z "$ac_cpp_err"; then
6388 ac_header_preproc
=yes
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.
$ac_ext >&5
6393 ac_header_preproc
=no
6395 rm -f conftest.err conftest.
$ac_ext
6396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6397 echo "${ECHO_T}$ac_header_preproc" >&6
6399 # So? What about this header?
6400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6406 ac_header_preproc
=yes
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6423 ## ------------------------------------------ ##
6424 ## Report this to the AC_PACKAGE_NAME lists. ##
6425 ## ------------------------------------------ ##
6428 sed "s/^/$as_me: WARNING: /" >&2
6431 echo "$as_me:$LINENO: checking for $ac_header" >&5
6432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 eval "$as_ac_Header=\$ac_header_preproc"
6438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h
<<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 for ac_func
in getpagesize
6454 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6457 if eval "test \"\${$as_ac_var+set}\" = set"; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468 #define $ac_func innocuous_$ac_func
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6476 # include <limits.h>
6478 # include <assert.h>
6483 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6491 /* The GNU C library defines this for functions which it implements
6492 to always fail with ENOSYS. Some functions are actually named
6493 something starting with __ and the normal name is an alias. */
6494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6497 char (*f) () = $ac_func;
6506 return f != $ac_func;
6511 rm -f conftest.
$ac_objext conftest
$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1
>conftest.err
6517 cat conftest.err
>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try
='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try
='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 eval "$as_ac_var=yes"
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6538 eval "$as_ac_var=no"
6540 rm -f conftest.err conftest.
$ac_objext \
6541 conftest
$ac_exeext conftest.
$ac_ext
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6545 if test `eval echo '${'$as_ac_var'}'` = yes; then
6546 cat >>confdefs.h
<<_ACEOF
6547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6553 echo "$as_me:$LINENO: checking for working mmap" >&5
6554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 if test "$cross_compiling" = yes; then
6559 ac_cv_func_mmap_fixed_mapped
=no
6561 cat >conftest.
$ac_ext <<_ACEOF
6564 cat confdefs.h
>>conftest.
$ac_ext
6565 cat >>conftest.
$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 /* malloc might have been renamed as rpl_malloc. */
6571 /* Thanks to Mike Haertel and Jim Avera for this test.
6572 Here is a matrix of mmap possibilities:
6573 mmap private not fixed
6574 mmap private fixed at somewhere currently unmapped
6575 mmap private fixed at somewhere already mapped
6576 mmap shared not fixed
6577 mmap shared fixed at somewhere currently unmapped
6578 mmap shared fixed at somewhere already mapped
6579 For private mappings, we should verify that changes cannot be read()
6580 back from the file, nor mmap's back from the file at a different
6581 address. (There have been systems where private was not correctly
6582 implemented like the infamous i386 svr4.0, and systems where the
6583 VM page cache was not coherent with the file system buffer cache
6584 like early versions of FreeBSD and possibly contemporary NetBSD.)
6585 For shared mappings, we should conversely verify that changes get
6586 propagated back to all the places they're supposed to be.
6588 Grep wants private fixed already mapped.
6589 The main things grep needs to know about mmap are:
6590 * does it exist and is it safe to write into the mmap'd area
6591 * how to use it (BSD variants) */
6594 #include <sys/mman.h>
6596 #if !STDC_HEADERS && !HAVE_STDLIB_H
6600 /* This mess was copied from the GNU getpagesize.h. */
6601 #if !HAVE_GETPAGESIZE
6602 /* Assume that all systems that can run configure have sys/param.h. */
6603 # if !HAVE_SYS_PARAM_H
6604 # define HAVE_SYS_PARAM_H 1
6607 # ifdef _SC_PAGESIZE
6608 # define getpagesize() sysconf(_SC_PAGESIZE)
6609 # else /* no _SC_PAGESIZE */
6610 # if HAVE_SYS_PARAM_H
6611 # include <sys/param.h>
6612 # ifdef EXEC_PAGESIZE
6613 # define getpagesize() EXEC_PAGESIZE
6614 # else /* no EXEC_PAGESIZE */
6616 # define getpagesize() NBPG * CLSIZE
6619 # endif /* no CLSIZE */
6620 # else /* no NBPG */
6622 # define getpagesize() NBPC
6623 # else /* no NBPC */
6625 # define getpagesize() PAGESIZE
6626 # endif /* PAGESIZE */
6627 # endif /* no NBPC */
6628 # endif /* no NBPG */
6629 # endif /* no EXEC_PAGESIZE */
6630 # else /* no HAVE_SYS_PARAM_H */
6631 # define getpagesize() 8192 /* punt totally */
6632 # endif /* no HAVE_SYS_PARAM_H */
6633 # endif /* no _SC_PAGESIZE */
6635 #endif /* no HAVE_GETPAGESIZE */
6640 char *data, *data2, *data3;
6644 pagesize = getpagesize ();
6646 /* First, make a file with some known garbage in it. */
6647 data = (char *) malloc (pagesize);
6650 for (i = 0; i < pagesize; ++i)
6651 *(data + i) = rand ();
6653 fd = creat ("conftest.mmap", 0600);
6656 if (write (fd, data, pagesize) != pagesize)
6660 /* Next, try to mmap the file at a fixed address which already has
6661 something else allocated at it. If we can, also make sure that
6662 we see the same garbage. */
6663 fd = open ("conftest.mmap", O_RDWR);
6666 data2 = (char *) malloc (2 * pagesize);
6669 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6670 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6671 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6673 for (i = 0; i < pagesize; ++i)
6674 if (*(data + i) != *(data2 + i))
6677 /* Finally, make sure that changes to the mapped area do not
6678 percolate back to the file as seen by read(). (This is a bug on
6679 some variants of i386 svr4.0.) */
6680 for (i = 0; i < pagesize; ++i)
6681 *(data2 + i) = *(data2 + i) + 1;
6682 data3 = (char *) malloc (pagesize);
6685 if (read (fd, data3, pagesize) != pagesize)
6687 for (i = 0; i < pagesize; ++i)
6688 if (*(data + i) != *(data3 + i))
6694 rm -f conftest
$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_func_mmap_fixed_mapped
=yes
6707 echo "$as_me: program exited with status $ac_status" >&5
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6712 ac_cv_func_mmap_fixed_mapped
=no
6714 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6717 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6718 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6719 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6721 cat >>confdefs.h
<<\_ACEOF
6729 LIBS
="$LIBS $LIBC $LIBM"
6738 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
6739 strerror strncasecmp strtol
6741 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6742 echo "$as_me:$LINENO: checking for $ac_func" >&5
6743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6744 if eval "test \"\${$as_ac_var+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat >conftest.
$ac_ext <<_ACEOF
6750 cat confdefs.h
>>conftest.
$ac_ext
6751 cat >>conftest.
$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6755 #define $ac_func innocuous_$ac_func
6757 /* System header to define __stub macros and hopefully few prototypes,
6758 which can conflict with char $ac_func (); below.
6759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6760 <limits.h> exists even on freestanding compilers. */
6763 # include <limits.h>
6765 # include <assert.h>
6770 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6784 char (*f) () = $ac_func;
6793 return f != $ac_func;
6798 rm -f conftest.
$ac_objext conftest
$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>conftest.er1
6802 grep -v '^ *+' conftest.er1
>conftest.err
6804 cat conftest.err
>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try
='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try
='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 eval "$as_ac_var=yes"
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.
$ac_ext >&5
6825 eval "$as_ac_var=no"
6827 rm -f conftest.err conftest.
$ac_objext \
6828 conftest
$ac_exeext conftest.
$ac_ext
6830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6832 if test `eval echo '${'$as_ac_var'}'` = yes; then
6833 cat >>confdefs.h
<<_ACEOF
6834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6839 "$ac_func.$ac_objext" | \
6840 *" $ac_func.$ac_objext" | \
6841 "$ac_func.$ac_objext "* | \
6842 *" $ac_func.$ac_objext "* ) ;;
6843 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6850 # vsnprintf is in the same source file as snprintf
6852 for ac_func
in vsnprintf
6854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6855 echo "$as_me:$LINENO: checking for $ac_func" >&5
6856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6857 if eval "test \"\${$as_ac_var+set}\" = set"; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 cat >conftest.
$ac_ext <<_ACEOF
6863 cat confdefs.h
>>conftest.
$ac_ext
6864 cat >>conftest.
$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6868 #define $ac_func innocuous_$ac_func
6870 /* System header to define __stub macros and hopefully few prototypes,
6871 which can conflict with char $ac_func (); below.
6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 <limits.h> exists even on freestanding compilers. */
6876 # include <limits.h>
6878 # include <assert.h>
6883 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6897 char (*f) () = $ac_func;
6906 return f != $ac_func;
6911 rm -f conftest.
$ac_objext conftest
$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1
>conftest.err
6917 cat conftest.err
>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try
='test -s conftest$ac_exeext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 eval "$as_ac_var=yes"
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6938 eval "$as_ac_var=no"
6940 rm -f conftest.err conftest.
$ac_objext \
6941 conftest
$ac_exeext conftest.
$ac_ext
6943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6945 if test `eval echo '${'$as_ac_var'}'` = yes; then
6946 cat >>confdefs.h
<<_ACEOF
6947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6952 "snprintf.$ac_objext" | \
6953 *" snprintf.$ac_objext" | \
6954 "snprintf.$ac_objext "* | \
6955 *" snprintf.$ac_objext "* ) ;;
6956 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
6969 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
6971 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6972 echo "$as_me:$LINENO: checking for $ac_func" >&5
6973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6974 if eval "test \"\${$as_ac_var+set}\" = set"; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 cat >conftest.
$ac_ext <<_ACEOF
6980 cat confdefs.h
>>conftest.
$ac_ext
6981 cat >>conftest.
$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6985 #define $ac_func innocuous_$ac_func
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char $ac_func (); below.
6989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6990 <limits.h> exists even on freestanding compilers. */
6993 # include <limits.h>
6995 # include <assert.h>
7000 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7008 /* The GNU C library defines this for functions which it implements
7009 to always fail with ENOSYS. Some functions are actually named
7010 something starting with __ and the normal name is an alias. */
7011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7014 char (*f) () = $ac_func;
7023 return f != $ac_func;
7028 rm -f conftest.
$ac_objext conftest
$ac_exeext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030 (eval $ac_link) 2>conftest.er1
7032 grep -v '^ *+' conftest.er1
>conftest.err
7034 cat conftest.err
>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try
='test -z "$ac_c_werror_flag"
7038 || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try
='test -s conftest$ac_exeext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 eval "$as_ac_var=yes"
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.
$ac_ext >&5
7055 eval "$as_ac_var=no"
7057 rm -f conftest.err conftest.
$ac_objext \
7058 conftest
$ac_exeext conftest.
$ac_ext
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7062 if test `eval echo '${'$as_ac_var'}'` = yes; then
7063 cat >>confdefs.h
<<_ACEOF
7064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7070 echo "$as_me:$LINENO: checking for mkstemp" >&5
7071 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7073 ac_cpp
='$CXXCPP $CPPFLAGS'
7074 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7079 cat >conftest.
$ac_ext <<_ACEOF
7083 cat confdefs.h
>>conftest.
$ac_ext
7084 cat >>conftest.
$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7106 rm -f conftest.
$ac_objext conftest
$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1
>conftest.err
7112 cat conftest.err
>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try
='test -z "$ac_cxx_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try
='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 echo "$as_me:$LINENO: result: yes" >&5
7129 echo "${ECHO_T}yes" >&6
7131 cat >>confdefs.h
<<\_ACEOF
7132 #define HAVE_MKSTEMP 1
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.
$ac_ext >&5
7139 echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6
7142 "mkstemp.$ac_objext" | \
7143 *" mkstemp.$ac_objext" | \
7144 "mkstemp.$ac_objext "* | \
7145 *" mkstemp.$ac_objext "* ) ;;
7146 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
7150 rm -f conftest.err conftest.
$ac_objext \
7151 conftest
$ac_exeext conftest.
$ac_ext
7153 ac_cpp
='$CPP $CPPFLAGS'
7154 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7158 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7159 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
7160 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 cat >conftest.
$ac_ext <<_ACEOF
7166 cat confdefs.h
>>conftest.
$ac_ext
7167 cat >>conftest.
$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7174 char *p = (char *) sys_siglist;
7181 rm -f conftest.
$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7185 grep -v '^ *+' conftest.er1
>conftest.err
7187 cat conftest.err
>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try
='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try
='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_have_decl_sys_siglist
=yes
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.
$ac_ext >&5
7208 ac_cv_have_decl_sys_siglist
=no
7210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7213 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7214 if test $ac_cv_have_decl_sys_siglist = yes; then
7216 cat >>confdefs.h
<<_ACEOF
7217 #define HAVE_DECL_SYS_SIGLIST 1
7222 cat >>confdefs.h
<<_ACEOF
7223 #define HAVE_DECL_SYS_SIGLIST 0
7231 # checks for compiler characteristics
7233 ac_cpp
='$CXXCPP $CPPFLAGS'
7234 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7238 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
7239 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
7240 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7253 char *p = new char[5];
7262 rm -f conftest.
$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7266 grep -v '^ *+' conftest.er1
>conftest.err
7268 cat conftest.err
>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try
='test -z "$ac_cxx_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try
='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 echo "$as_me:$LINENO: result: yes" >&5
7285 echo "${ECHO_T}yes" >&6
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.
$ac_ext >&5
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7293 cat >>confdefs.h
<<\_ACEOF
7294 #define ARRAY_DELETE_NEEDS_SIZE 1
7298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 ac_cpp
='$CPP $CPPFLAGS'
7301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7306 ac_cpp
='$CXXCPP $CPPFLAGS'
7307 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7311 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
7312 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
7313 cat >conftest.
$ac_ext <<_ACEOF
7317 cat confdefs.h
>>conftest.
$ac_ext
7318 cat >>conftest.
$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7322 #define name2(a, b) a/**/b
7330 int name2(foo, bar);
7338 rm -f conftest.
$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7342 grep -v '^ *+' conftest.er1
>conftest.err
7344 cat conftest.err
>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try
='test -z "$ac_cxx_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try
='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 echo "$as_me:$LINENO: result: yes" >&5
7361 echo "${ECHO_T}yes" >&6
7363 cat >>confdefs.h
<<\_ACEOF
7364 #define TRADITIONAL_CPP 1
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7376 ac_cpp
='$CPP $CPPFLAGS'
7377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7382 # checks for operating system services
7383 echo "$as_me:$LINENO: checking w_coredump" >&5
7384 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
7385 if test "$cross_compiling" = yes; then
7386 echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6
7389 cat >conftest.
$ac_ext <<_ACEOF
7393 cat confdefs.h
>>conftest.
$ac_ext
7394 cat >>conftest.
$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7398 #include <sys/types.h>
7399 #include <sys/wait.h>
7413 ((union wait *)&i)->w_coredump = 1;
7424 rm -f conftest
$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 echo "$as_me:$LINENO: result: yes" >&5
7436 echo "${ECHO_T}yes" >&6
7438 cat >>confdefs.h
<<\_ACEOF
7439 #define WCOREFLAG 0200
7443 echo "$as_me: program exited with status $ac_status" >&5
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.
$ac_ext >&5
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7451 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7454 # other random stuff
7455 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
7456 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
7457 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=7
7458 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
7459 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
7461 echo "$as_me:$LINENO: checking default paper size" >&5
7462 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
7463 groff_prefix
=$prefix
7464 test "x$prefix" = xNONE
&& groff_prefix
=$ac_default_prefix
7465 if test -z "$PAGE"; then
7467 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
7468 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
7469 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
7470 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
7472 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
7480 if test -n "$descfile"; then
7481 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
7483 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
7489 if test -z "$PAGE"; then
7490 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
7491 /etc/resolv.conf 2>/dev/null`
7492 if test -z "$dom"; then
7493 dom
=`(domainname) 2>/dev/null | tr -d '+'`
7495 ||
test "$dom" = '(none)'; then
7496 dom
=`(hostname) 2>/dev/null | grep '\.'`
7499 # If the top-level domain is two letters and it's not `us' or `ca'
7500 # then they probably use A4 paper.
7502 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
7509 test -n "$PAGE" || PAGE
=letter
7510 if test "x$PAGE" = "xA4"; then
7512 cat >>confdefs.h
<<\_ACEOF
7517 echo "$as_me:$LINENO: result: $PAGE" >&5
7518 echo "${ECHO_T}$PAGE" >&6
7520 echo "$as_me:$LINENO: checking for existing troff installation" >&5
7521 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
7522 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7532 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
7533 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
7535 sys_tmac_file_prefix
=
7536 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
7537 for t
in "" tmac.
; do
7540 if test -z "$sys_tmac_prefix" \
7542 && grep '^\.if' $f >/dev
/null
2>&1; then
7543 sys_tmac_prefix
=$d/$t
7544 sys_tmac_file_prefix
=$t
7549 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
7550 echo "${ECHO_T}$sys_tmac_prefix" >&6
7553 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
7554 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
7556 if test "x$sys_tmac_file_prefix" = "xtmac."; then
7557 for f
in $sys_tmac_prefix*; do
7558 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7563 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
7564 || tmac_wrap
="$tmac_wrap $suff" ;;
7567 elif test -n "$sys_tmac_prefix"; then
7568 files
=`echo $sys_tmac_prefix*`
7569 grep "\\.so" $files >conftest.sol
7572 ${sys_tmac_prefix}e
)
7580 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
7581 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
7584 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7589 tmac_wrap
="$tmac_wrap $suff" ;;
7596 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
7597 echo "${ECHO_T}$tmac_wrap" >&6
7600 make_install_html
=install_html
7603 # Extract the first word of "pnmcut", so it can be a program name with args.
7604 set dummy pnmcut
; ac_word
=$2
7605 echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607 if test "${ac_cv_prog_pnmcut+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 if test -n "$pnmcut"; then
7611 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
7613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir
=.
7618 for ac_exec_ext
in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_pnmcut
="found"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
7630 pnmcut
=$ac_cv_prog_pnmcut
7631 if test -n "$pnmcut"; then
7632 echo "$as_me:$LINENO: result: $pnmcut" >&5
7633 echo "${ECHO_T}$pnmcut" >&6
7635 echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6
7639 if test $pnmcut = missing
; then
7640 missing
="$missing pnmcut"
7641 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
7642 set dummy pnmcrop
; ac_word
=$2
7643 echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645 if test "${ac_cv_prog_pnmcrop+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 if test -n "$pnmcrop"; then
7649 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
7651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir
=.
7656 for ac_exec_ext
in '' $ac_executable_extensions; do
7657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_pnmcrop
="found"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
7668 pnmcrop
=$ac_cv_prog_pnmcrop
7669 if test -n "$pnmcrop"; then
7670 echo "$as_me:$LINENO: result: $pnmcrop" >&5
7671 echo "${ECHO_T}$pnmcrop" >&6
7673 echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6
7677 if test $pnmcrop = missing
; then
7678 missing
="$missing pnmcrop"
7679 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
7680 set dummy pnmtopng
; ac_word
=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_pnmtopng+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 if test -n "$pnmtopng"; then
7687 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
7689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir
=.
7694 for ac_exec_ext
in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_pnmtopng
="found"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
7706 pnmtopng
=$ac_cv_prog_pnmtopng
7707 if test -n "$pnmtopng"; then
7708 echo "$as_me:$LINENO: result: $pnmtopng" >&5
7709 echo "${ECHO_T}$pnmtopng" >&6
7711 echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6
7715 if test $pnmtopng = missing
; then
7716 missing
="$missing pnmtopng"
7717 fi;# Extract the first word of "psselect", so it can be a program name with args.
7718 set dummy psselect
; ac_word
=$2
7719 echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721 if test "${ac_cv_prog_psselect+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 if test -n "$psselect"; then
7725 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
7727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir
=.
7732 for ac_exec_ext
in '' $ac_executable_extensions; do
7733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_psselect
="found"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
7744 psselect
=$ac_cv_prog_psselect
7745 if test -n "$psselect"; then
7746 echo "$as_me:$LINENO: result: $psselect" >&5
7747 echo "${ECHO_T}$psselect" >&6
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7753 if test $psselect = missing
; then
7754 missing
="$missing psselect"
7755 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
7756 set dummy pnmtops
; ac_word
=$2
7757 echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7759 if test "${ac_cv_prog_pnmtops+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 if test -n "$pnmtops"; then
7763 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
7765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir
=.
7770 for ac_exec_ext
in '' $ac_executable_extensions; do
7771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_pnmtops
="found"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
7782 pnmtops
=$ac_cv_prog_pnmtops
7783 if test -n "$pnmtops"; then
7784 echo "$as_me:$LINENO: result: $pnmtops" >&5
7785 echo "${ECHO_T}$pnmtops" >&6
7787 echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6
7791 if test $pnmtops = missing
; then
7792 missing
="$missing pnmtops"
7793 fi;# Extract the first word of "gs", so it can be a program name with args.
7794 set dummy gs
; ac_word
=$2
7795 echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797 if test "${ac_cv_prog_gs+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 if test -n "$gs"; then
7801 ac_cv_prog_gs
="$gs" # Let the user override the test.
7803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir
=.
7808 for ac_exec_ext
in '' $ac_executable_extensions; do
7809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_gs
="found"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs
="missing"
7821 if test -n "$gs"; then
7822 echo "$as_me:$LINENO: result: $gs" >&5
7823 echo "${ECHO_T}$gs" >&6
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7829 if test $gs = missing
; then
7830 missing
="$missing gs"
7833 if test -n "$missing"; then
7844 progs
="\`$prog1'" ;;
7846 progs
="\`$prog1' and \`$prog2'" ;;
7848 progs
="\`$prog1', \`$prog2', and \`$prog3'" ;;
7850 progs
="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
7852 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
7854 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
7860 { echo "$as_me:$LINENO: WARNING:
7864 can't be found in the path, thus the HTML backend of groff (grohtml)
7865 won't work properly. Consequently, no documentation in HTML format
7866 is built and installed.
7868 echo "$as_me: WARNING:
7872 can't be found in the path, thus the HTML backend of groff (grohtml)
7873 won't work properly. Consequently, no documentation in HTML format
7874 is built and installed.
7880 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
7881 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
7882 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884 echo "${ECHO_T}yes" >&6
7885 pnmtops_nosetpage
="pnmtops -nosetpage"
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 pnmtops_nosetpage
="pnmtops"
7893 ac_config_files
="$ac_config_files stamp-h"
7895 ac_config_files
="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
7897 cat >confcache
<<\_ACEOF
7898 # This file is a shell script that caches the results of configure
7899 # tests run on this system so they can be shared between configure
7900 # scripts and configure runs, see configure's option --config-cache.
7901 # It is not useful on other systems. If it contains results you don't
7902 # want to keep, you may remove or edit it.
7904 # config.status only pays attention to the cache file if you give it
7905 # the --recheck option to rerun configure.
7907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7913 # The following way of writing the cache mishandles newlines in values,
7914 # but we know of no workaround that is simple, portable, and efficient.
7915 # So, don't put newlines in cache variables' values.
7916 # Ultrix sh set writes to stderr and can't be redirected directly,
7917 # and sets the high bit in the cache file unless we assign to the vars.
7920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7922 # `set' does not quote correctly, so add quotes (double-quote
7923 # substitution turns \\\\ into \\, and sed turns \\ into \).
7926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7929 # `set' quotes correctly as required by POSIX, so do not add quotes.
7931 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7940 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7942 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7943 if test -w $cache_file; then
7944 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7945 cat confcache
>$cache_file
7947 echo "not updating unwritable cache $cache_file"
7952 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7953 # Let make expand exec_prefix.
7954 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7956 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7957 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7958 # trailing colons and then remove the whole line if VPATH becomes empty
7959 # (actually we leave an empty line to preserve line numbers).
7960 if test "x$srcdir" = x.
; then
7961 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7962 s/:*\$(srcdir):*/:/;
7963 s/:*\${srcdir}:*/:/;
7965 s/^\([^=]*=[ ]*\):*/\1/;
7971 DEFS
=-DHAVE_CONFIG_H
7975 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7976 # 1. Remove the extension, and $U if already installed.
7977 ac_i
=`echo "$ac_i" |
7978 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7980 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7981 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7985 LTLIBOBJS
=$ac_ltlibobjs
7989 : ${CONFIG_STATUS=./config.status}
7990 ac_clean_files_save
=$ac_clean_files
7991 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7992 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7993 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7994 cat >$CONFIG_STATUS <<_ACEOF
7996 # Generated by $as_me.
7997 # Run this file to recreate the current configuration.
7998 # Compiler output produced by configure, useful for debugging
7999 # configure, is in config.log if it exists.
8004 SHELL=\${CONFIG_SHELL-$SHELL}
8007 cat >>$CONFIG_STATUS <<\_ACEOF
8008 ## --------------------- ##
8009 ## M4sh Initialization. ##
8010 ## --------------------- ##
8012 # Be Bourne compatible
8013 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8017 # is contrary to our usage. Disable this feature.
8018 alias -g '${1+"$@"}'='"$@"'
8019 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8022 DUALCASE
=1; export DUALCASE
# for MKS sh
8024 # Support unset when possible.
8025 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8032 # Work around bugs in pre-3.0 UWIN ksh.
8033 $as_unset ENV MAIL MAILPATH
8040 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8041 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8042 LC_TELEPHONE LC_TIME
8044 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8045 eval $as_var=C
; export $as_var
8051 # Required to use basename.
8052 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8058 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8059 as_basename
=basename
8065 # Name of the executable.
8066 as_me
=`$as_basename "$0" ||
8067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8068 X"$0" : 'X\(//\)$' \| \
8069 X"$0" : 'X\(/\)$' \| \
8070 . : '\(.\)' 2>/dev/null ||
8072 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8073 /^X\/\(\/\/\)$/{ s//\1/; q; }
8074 /^X\/\(\/\).*/{ s//\1/; q; }
8078 # PATH needs CR, and LINENO needs CR and PATH.
8079 # Avoid depending upon Character Ranges.
8080 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8081 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8082 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8083 as_cr_digits
='0123456789'
8084 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8086 # The user is always right.
8087 if test "${PATH_SEPARATOR+set}" != set; then
8088 echo "#! /bin/sh" >conf$$.sh
8089 echo "exit 0" >>conf$$.sh
8091 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8103 test "x$as_lineno_1" != "x$as_lineno_2" &&
8104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8105 # Find who we are. Look in the path if we contain no path at all
8108 *[\\/]* ) as_myself
=$0 ;;
8109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir
=.
8114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8119 # We did not find ourselves, most probably we were run as `sh COMMAND'
8120 # in which case we are not to be found in the path.
8121 if test "x$as_myself" = x
; then
8124 if test ! -f "$as_myself"; then
8125 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8126 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8127 { (exit 1); exit 1; }; }
8129 case $CONFIG_SHELL in
8131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8132 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8135 test -z "$as_dir" && as_dir
=.
8136 for as_base
in sh bash ksh sh5
; do
8139 if ("$as_dir/$as_base" -c '
8142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8143 test "x$as_lineno_1" != "x$as_lineno_2" &&
8144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8145 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8146 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8147 CONFIG_SHELL
=$as_dir/$as_base
8149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8158 # uniformly replaced by the line number. The first 'sed' inserts a
8159 # line-number line before each line; the second 'sed' does the real
8160 # work. The second script uses 'N' to pair each line-number line
8161 # with the numbered line, and appends trailing '-' during
8162 # substitution so that $LINENO is not a special case at line end.
8163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8165 sed '=' <$as_myself |
8170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8173 s,^['$as_cr_digits']*\n,,
8175 chmod +x
$as_me.lineno ||
8176 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8177 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8178 { (exit 1); exit 1; }; }
8180 # Don't try to exec as it changes $[0], causing all sort of problems
8181 # (the dirname of $[0] is not the place where we might find the
8182 # original and so on. Autoconf is especially sensible to this).
8184 # Exit status is that of the last command.
8189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8190 *c
*,-n*) ECHO_N
= ECHO_C
='
8192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8202 rm -f conf$$ conf$$.exe conf$$.
file
8204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8205 # We could just check for DJGPP; but this test a) works b) is more generic
8206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8207 if test -f conf$$.exe
; then
8208 # Don't use ln at all; we don't have any links
8213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8218 rm -f conf$$ conf$$.exe conf$$.
file
8220 if mkdir
-p .
2>/dev
/null
; then
8223 test -d .
/-p && rmdir .
/-p
8227 as_executable_p
="test -f"
8229 # Sed expression to map a string onto a valid CPP name.
8230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8232 # Sed expression to map a string onto a valid variable name.
8233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8237 # We need space, tab and new line, in precisely that order.
8247 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8248 # report actual input values of CONFIG_FILES etc. instead of their
8249 # values after options handling. Logging --version etc. is OK.
8253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8254 ## Running $as_me. ##
8259 This file was extended by $as_me, which was
8260 generated by GNU Autoconf 2.59. Invocation command line was
8262 CONFIG_FILES = $CONFIG_FILES
8263 CONFIG_HEADERS = $CONFIG_HEADERS
8264 CONFIG_LINKS = $CONFIG_LINKS
8265 CONFIG_COMMANDS = $CONFIG_COMMANDS
8269 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8273 # Files that config.status was made for.
8274 if test -n "$ac_config_files"; then
8275 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8278 if test -n "$ac_config_headers"; then
8279 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8282 if test -n "$ac_config_links"; then
8283 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8286 if test -n "$ac_config_commands"; then
8287 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8290 cat >>$CONFIG_STATUS <<\_ACEOF
8293 \`$as_me' instantiates files from templates according to the
8294 current configuration.
8296 Usage: $0 [OPTIONS] [FILE]...
8298 -h, --help print this help, then exit
8299 -V, --version print version number, then exit
8300 -q, --quiet do not print progress messages
8301 -d, --debug don't remove temporary files
8302 --recheck update $as_me by reconfiguring in the same conditions
8303 --file=FILE[:TEMPLATE]
8304 instantiate the configuration file FILE
8305 --header=FILE[:TEMPLATE]
8306 instantiate the configuration header FILE
8308 Configuration files:
8311 Configuration headers:
8314 Report bugs to <bug-autoconf@gnu.org>."
8317 cat >>$CONFIG_STATUS <<_ACEOF
8320 configured by $0, generated by GNU Autoconf 2.59,
8321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8323 Copyright (C) 2003 Free Software Foundation, Inc.
8324 This config.status script is free software; the Free Software Foundation
8325 gives unlimited permission to copy, distribute and modify it."
8330 cat >>$CONFIG_STATUS <<\_ACEOF
8331 # If no file are specified by the user, then we need to provide default
8332 # value. By we need to know if files were specified by the user.
8338 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8339 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8347 *) # This is not an option, so the user has probably given explicit
8350 ac_need_defaults
=false
;;
8354 # Handling of the options.
8356 cat >>$CONFIG_STATUS <<\_ACEOF
8357 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8359 --version |
--vers* |
-V )
8360 echo "$ac_cs_version"; exit 0 ;;
8362 # Conflict between --help and --header
8363 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8364 Try \`$0 --help' for more information." >&5
8365 echo "$as_me: error: ambiguous option: $1
8366 Try \`$0 --help' for more information." >&2;}
8367 { (exit 1); exit 1; }; };;
8368 --help |
--hel |
-h )
8369 echo "$ac_cs_usage"; exit 0 ;;
8370 --debug |
--d* |
-d )
8372 --file |
--fil |
--fi |
--f )
8374 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8375 ac_need_defaults
=false
;;
8376 --header |
--heade |
--head |
--hea )
8378 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8379 ac_need_defaults
=false
;;
8380 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8381 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8385 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8386 Try \`$0 --help' for more information." >&5
8387 echo "$as_me: error: unrecognized option: $1
8388 Try \`$0 --help' for more information." >&2;}
8389 { (exit 1); exit 1; }; } ;;
8391 *) ac_config_targets
="$ac_config_targets $1" ;;
8397 ac_configure_extra_args
=
8399 if $ac_cs_silent; then
8401 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8405 cat >>$CONFIG_STATUS <<_ACEOF
8406 if \$ac_cs_recheck; then
8407 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8408 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8417 cat >>$CONFIG_STATUS <<\_ACEOF
8418 for ac_config_target
in $ac_config_targets
8420 case "$ac_config_target" in
8421 # Handling of arguments.
8422 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
8423 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8424 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8425 "src/xditview/Imakefile" ) CONFIG_FILES
="$CONFIG_FILES src/xditview/Imakefile" ;;
8426 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
8427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8428 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8429 { (exit 1); exit 1; }; };;
8433 # If the user did not use the arguments to specify the items to instantiate,
8434 # then the envvar interface is used. Set only those that are not.
8435 # We use the long form for the default assignment because of an extremely
8436 # bizarre bug on SunOS 4.1.3.
8437 if $ac_need_defaults; then
8438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8442 # Have a temporary directory for convenience. Make it in the build tree
8443 # simply because there is no reason to put it here, and in addition,
8444 # creating and moving files from /tmp can sometimes cause problems.
8445 # Create a temporary directory, and hook for its removal unless debugging.
8448 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8449 trap '{ (exit 1); exit 1; }' 1 2 13 15
8452 # Create a (secure) tmp directory for tmp files.
8455 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8456 test -n "$tmp" && test -d "$tmp"
8459 tmp
=.
/confstat$$
-$RANDOM
8460 (umask 077 && mkdir
$tmp)
8463 echo "$me: cannot create a temporary directory in ." >&2
8464 { (exit 1); exit 1; }
8469 cat >>$CONFIG_STATUS <<_ACEOF
8472 # CONFIG_FILES section.
8475 # No need to generate the scripts if there are no CONFIG_FILES.
8476 # This happens for instance when ./config.status config.h
8477 if test -n "\$CONFIG_FILES"; then
8478 # Protect against being on the right side of a sed subst in config.status.
8479 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8480 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8481 s,@SHELL@,$SHELL,;t t
8482 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8483 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8484 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8485 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8486 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8487 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8488 s,@exec_prefix@,$exec_prefix,;t t
8489 s,@prefix@,$prefix,;t t
8490 s,@program_transform_name@,$program_transform_name,;t t
8491 s,@bindir@,$bindir,;t t
8492 s,@sbindir@,$sbindir,;t t
8493 s,@libexecdir@,$libexecdir,;t t
8494 s,@datadir@,$datadir,;t t
8495 s,@sysconfdir@,$sysconfdir,;t t
8496 s,@sharedstatedir@,$sharedstatedir,;t t
8497 s,@localstatedir@,$localstatedir,;t t
8498 s,@libdir@,$libdir,;t t
8499 s,@includedir@,$includedir,;t t
8500 s,@oldincludedir@,$oldincludedir,;t t
8501 s,@infodir@,$infodir,;t t
8502 s,@mandir@,$mandir,;t t
8503 s,@build_alias@,$build_alias,;t t
8504 s,@host_alias@,$host_alias,;t t
8505 s,@target_alias@,$target_alias,;t t
8507 s,@ECHO_C@,$ECHO_C,;t t
8508 s,@ECHO_N@,$ECHO_N,;t t
8509 s,@ECHO_T@,$ECHO_T,;t t
8512 s,@CFLAGS@,$CFLAGS,;t t
8513 s,@LDFLAGS@,$LDFLAGS,;t t
8514 s,@CPPFLAGS@,$CPPFLAGS,;t t
8515 s,@ac_ct_CC@,$ac_ct_CC,;t t
8516 s,@EXEEXT@,$EXEEXT,;t t
8517 s,@OBJEXT@,$OBJEXT,;t t
8519 s,@CXXFLAGS@,$CXXFLAGS,;t t
8520 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8521 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
8522 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
8526 s,@PSPRINT@,$PSPRINT,;t t
8527 s,@DVIPRINT@,$DVIPRINT,;t t
8528 s,@PERLPATH@,$PERLPATH,;t t
8530 s,@RANLIB@,$RANLIB,;t t
8531 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8532 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8533 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8534 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8535 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8537 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
8539 s,@EGREP@,$EGREP,;t t
8542 s,@LIBOBJS@,$LIBOBJS,;t t
8543 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
8546 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
8547 s,@tmac_wrap@,$tmac_wrap,;t t
8548 s,@pnmcut@,$pnmcut,;t t
8549 s,@pnmcrop@,$pnmcrop,;t t
8550 s,@pnmtopng@,$pnmtopng,;t t
8551 s,@psselect@,$psselect,;t t
8552 s,@pnmtops@,$pnmtops,;t t
8554 s,@make_html@,$make_html,;t t
8555 s,@make_install_html@,$make_install_html,;t t
8556 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
8557 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8562 cat >>$CONFIG_STATUS <<\_ACEOF
8563 # Split the substitutions into bite-sized pieces for seds with
8564 # small command number limits, like on Digital OSF/1 and HP-UX.
8566 ac_sed_frag
=1 # Number of current file.
8567 ac_beg
=1 # First line for current file.
8568 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8571 while $ac_more_lines; do
8572 if test $ac_beg -gt 1; then
8573 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8575 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8577 if test ! -s $tmp/subs.frag
; then
8580 # The purpose of the label and of the branching condition is to
8581 # speed up the sed processing (if there are no `@' at all, there
8582 # is no need to browse any of the substitutions).
8583 # These are the two extra sed commands mentioned above.
8585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8586 if test -z "$ac_sed_cmds"; then
8587 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8589 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8591 ac_sed_frag
=`expr $ac_sed_frag + 1`
8593 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8596 if test -z "$ac_sed_cmds"; then
8599 fi # test -n "$CONFIG_FILES"
8602 cat >>$CONFIG_STATUS <<\_ACEOF
8603 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8606 - |
*:- |
*:-:* ) # input from stdin
8608 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8609 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8610 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8611 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8612 * ) ac_file_in
=$ac_file.
in ;;
8615 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8616 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8618 X"$ac_file" : 'X\(//\)[^/]' \| \
8619 X"$ac_file" : 'X\(//\)$' \| \
8620 X"$ac_file" : 'X\(/\)' \| \
8621 . : '\(.\)' 2>/dev/null ||
8623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8625 /^X\(\/\/\)$/{ s//\1/; q; }
8626 /^X\(\/\).*/{ s//\1/; q; }
8628 { if $as_mkdir_p; then
8633 while test ! -d "$as_dir"; do
8634 as_dirs
="$as_dir $as_dirs"
8635 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8637 X"$as_dir" : 'X\(//\)[^/]' \| \
8638 X"$as_dir" : 'X\(//\)$' \| \
8639 X"$as_dir" : 'X\(/\)' \| \
8640 . : '\(.\)' 2>/dev/null ||
8642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8644 /^X\(\/\/\)$/{ s//\1/; q; }
8645 /^X\(\/\).*/{ s//\1/; q; }
8648 test ! -n "$as_dirs" || mkdir
$as_dirs
8649 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8651 { (exit 1); exit 1; }; }; }
8655 if test "$ac_dir" != .
; then
8656 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8657 # A "../" for each directory in $ac_dir_suffix.
8658 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8660 ac_dir_suffix
= ac_top_builddir
=
8664 .
) # No --srcdir option. We are building in place.
8666 if test -z "$ac_top_builddir"; then
8669 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8671 [\\/]* | ?
:[\\/]* ) # Absolute path.
8672 ac_srcdir
=$srcdir$ac_dir_suffix;
8673 ac_top_srcdir
=$srcdir ;;
8675 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8676 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8679 # Do not use `cd foo && pwd` to compute absolute paths, because
8680 # the directories may not exist.
8682 .
) ac_abs_builddir
="$ac_dir";;
8685 .
) ac_abs_builddir
=`pwd`;;
8686 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8687 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8690 case $ac_abs_builddir in
8691 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8693 case ${ac_top_builddir}.
in
8694 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8695 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8696 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8699 case $ac_abs_builddir in
8700 .
) ac_abs_srcdir
=$ac_srcdir;;
8703 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8704 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8705 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8708 case $ac_abs_builddir in
8709 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8711 case $ac_top_srcdir in
8712 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8713 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8714 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8720 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8721 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8724 if test x
"$ac_file" != x-
; then
8725 { echo "$as_me:$LINENO: creating $ac_file" >&5
8726 echo "$as_me: creating $ac_file" >&6;}
8729 # Let's still pretend it is `configure' which instantiates (i.e., don't
8730 # use $as_me), people would be surprised to read:
8731 # /* config.h. Generated by config.status. */
8732 if test x
"$ac_file" = x-
; then
8735 configure_input
="$ac_file. "
8737 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8738 sed 's,.*/,,'` by configure."
8740 # First look for the input files in the build tree, otherwise in the
8742 ac_file_inputs
=`IFS=:
8743 for f in $ac_file_in; do
8745 -) echo $tmp/stdin ;;
8747 # Absolute (can't be DOS-style, as IFS=:)
8748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8749 echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8753 if test -f "$f"; then
8756 elif test -f "$srcdir/$f"; then
8761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8762 echo "$as_me: error: cannot find input file: $f" >&2;}
8763 { (exit 1); exit 1; }; }
8766 done` ||
{ (exit 1); exit 1; }
8768 cat >>$CONFIG_STATUS <<_ACEOF
8772 cat >>$CONFIG_STATUS <<\_ACEOF
8774 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8775 s
,@configure_input@
,$configure_input,;t t
8776 s
,@srcdir@
,$ac_srcdir,;t t
8777 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8778 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8779 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8780 s
,@builddir@
,$ac_builddir,;t t
8781 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8782 s
,@top_builddir@
,$ac_top_builddir,;t t
8783 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8784 s
,@INSTALL@
,$ac_INSTALL,;t t
8785 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8787 if test x"$ac_file" != x-; then
8788 mv $tmp/out $ac_file
8794 # Run the commands associated with the file.
8796 stamp-h ) echo timestamp > stamp-h ;;
8800 cat >>$CONFIG_STATUS <<\_ACEOF
8803 # CONFIG_HEADER section.
8806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8809 # ac_d sets the value in "#define NAME VALUE" lines.
8810 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8811 ac_dB
='[ ].*$,\1#\2'
8814 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8815 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8816 ac_uB
='$,\1#\2define\3'
8820 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8823 - |
*:- |
*:-:* ) # input from stdin
8825 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8826 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8827 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8828 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8829 * ) ac_file_in
=$ac_file.
in ;;
8832 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8833 echo "$as_me: creating $ac_file" >&6;}
8835 # First look for the input files in the build tree, otherwise in the
8837 ac_file_inputs
=`IFS=:
8838 for f in $ac_file_in; do
8840 -) echo $tmp/stdin ;;
8842 # Absolute (can't be DOS-style, as IFS=:)
8843 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8844 echo "$as_me: error: cannot find input file: $f" >&2;}
8845 { (exit 1); exit 1; }; }
8846 # Do quote $f, to prevent DOS paths from being IFS'd.
8849 if test -f "$f"; then
8852 elif test -f "$srcdir/$f"; then
8857 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8858 echo "$as_me: error: cannot find input file: $f" >&2;}
8859 { (exit 1); exit 1; }; }
8862 done` ||
{ (exit 1); exit 1; }
8863 # Remove the trailing spaces.
8864 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8868 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8869 # `conftest.undefs', that substitutes the proper values into
8870 # config.h.in to produce config.h. The first handles `#define'
8871 # templates, and the second `#undef' templates.
8872 # And first: Protect against being on the right side of a sed subst in
8873 # config.status. Protect against being in an unquoted here document
8875 rm -f conftest.defines conftest.undefs
8876 # Using a here document instead of a string reduces the quoting nightmare.
8877 # Putting comments in sed scripts is not portable.
8879 # `end' is used to avoid that the second main sed command (meant for
8880 # 0-ary CPP macros) applies to n-ary macro definitions.
8881 # See the Autoconf documentation for `clear'.
8882 cat >confdef2sed.
sed <<\_ACEOF
8887 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8889 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8892 # If some macros were called several times there might be several times
8893 # the same #defines, which is useless. Nevertheless, we may not want to
8894 # sort them, since we want the *last* AC-DEFINE to be honored.
8895 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8896 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8897 rm -f confdef2sed.sed
8899 # This sed command replaces #undef with comments. This is necessary, for
8900 # example, in the case of _POSIX_SOURCE, which is predefined and required
8901 # on some systems where configure will not decide to define it.
8902 cat >>conftest.undefs <<\_ACEOF
8903 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8906 # Break up conftest.defines because some shells have a limit on the size
8907 # of here documents, and old seds have small limits too (100 cmds).
8908 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8909 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8910 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8911 echo ' :' >>$CONFIG_STATUS
8913 while grep . conftest.defines >/dev/null
8915 # Write a limited-size here document to $tmp/defines.sed.
8916 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8917 # Speed up: don't consider the non `#define' lines.
8918 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8919 # Work around the forget-to-reset-the-flag bug.
8920 echo 't clr' >>$CONFIG_STATUS
8921 echo ': clr' >>$CONFIG_STATUS
8922 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8924 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8928 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8929 rm -f conftest.defines
8930 mv conftest.
tail conftest.defines
8932 rm -f conftest.defines
8933 echo ' fi # grep' >>$CONFIG_STATUS
8934 echo >>$CONFIG_STATUS
8936 # Break up conftest.undefs because some shells have a limit on the size
8937 # of here documents, and old seds have small limits too (100 cmds).
8938 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8940 while grep . conftest.undefs
>/dev
/null
8942 # Write a limited-size here document to $tmp/undefs.sed.
8943 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8944 # Speed up: don't consider the non
`#undef'
8945 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8946 # Work around the forget-to-reset-the-flag bug.
8947 echo 't clr' >>$CONFIG_STATUS
8948 echo ': clr' >>$CONFIG_STATUS
8949 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8951 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8955 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8956 rm -f conftest.undefs
8957 mv conftest.tail conftest.undefs
8959 rm -f conftest.undefs
8961 cat >>$CONFIG_STATUS <<\_ACEOF
8962 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8963 # use $as_me), people would be surprised to read:
8964 # /* config.h. Generated by config.status. */
8965 if test x
"$ac_file" = x-
; then
8966 echo "/* Generated by configure. */" >$tmp/config.h
8968 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8970 cat $tmp/in >>$tmp/config.h
8972 if test x
"$ac_file" != x-
; then
8973 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8974 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8975 echo "$as_me: $ac_file is unchanged" >&6;}
8977 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8979 X"$ac_file" : 'X\(//\)[^/]' \| \
8980 X"$ac_file" : 'X\(//\)$' \| \
8981 X"$ac_file" : 'X\(/\)' \| \
8982 . : '\(.\)' 2>/dev/null ||
8984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8986 /^X\(\/\/\)$/{ s//\1/; q; }
8987 /^X\(\/\).*/{ s//\1/; q; }
8989 { if $as_mkdir_p; then
8994 while test ! -d "$as_dir"; do
8995 as_dirs
="$as_dir $as_dirs"
8996 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8998 X"$as_dir" : 'X\(//\)[^/]' \| \
8999 X"$as_dir" : 'X\(//\)$' \| \
9000 X"$as_dir" : 'X\(/\)' \| \
9001 . : '\(.\)' 2>/dev/null ||
9003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9005 /^X\(\/\/\)$/{ s//\1/; q; }
9006 /^X\(\/\).*/{ s//\1/; q; }
9009 test ! -n "$as_dirs" || mkdir
$as_dirs
9010 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9012 { (exit 1); exit 1; }; }; }
9015 mv $tmp/config.h
$ac_file
9024 cat >>$CONFIG_STATUS <<\_ACEOF
9026 { (exit 0); exit 0; }
9028 chmod +x
$CONFIG_STATUS
9029 ac_clean_files
=$ac_clean_files_save
9032 # configure is writing to config.log, and then calls config.status.
9033 # config.status does its own redirection, appending to config.log.
9034 # Unfortunately, on DOS this fails, as config.log is still kept open
9035 # by configure, so config.status won't be able to write to it; its
9036 # output is simply discarded. So we exec the FD to /dev/null,
9037 # effectively closing config.log, so it can be properly (re)opened and
9038 # appended to by config.status. When coming back to configure, we
9039 # need to make the FD available again.
9040 if test "$no_create" != yes; then
9042 ac_config_status_args
=
9043 test "$silent" = yes &&
9044 ac_config_status_args
="$ac_config_status_args --quiet"
9046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9049 # would make configure fail if this is the last instruction.
9050 $ac_cs_success ||
{ (exit 1); exit 1; }
9054 { echo "$as_me:$LINENO:
9056 Configuration completed.
9058 You can now say \`make' to compile the groff package and \`make install'
9059 to install it afterwards.
9061 If you want to compile xditview, change the directory to \`src/xditview'
9062 and follow the instructions given in the file \`INSTALL'.
9066 Configuration completed.
9068 You can now say \`make' to compile the groff package and \`make install'
9069 to install it afterwards.
9071 If you want to compile xditview, change the directory to \`src/xditview'
9072 and follow the instructions given in the file \`INSTALL'.