* README, doc/webpage.ms: Updated.
[s-roff.git] / configure
blobf465d3899ff1c137c14601fb6134a51dd1cdbc4e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59a.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
6 # 2003, 2004 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
23 DUALCASE=1; export DUALCASE # for MKS sh
26 # PATH needs CR
27 # Avoid depending upon Character Ranges.
28 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31 as_cr_digits='0123456789'
32 as_cr_alnum=$as_cr_Letters$as_cr_digits
34 # The user is always right.
35 if test "${PATH_SEPARATOR+set}" != set; then
36 echo "#! /bin/sh" >conf$$.sh
37 echo "exit 0" >>conf$$.sh
38 chmod +x conf$$.sh
39 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40 PATH_SEPARATOR=';'
41 else
42 PATH_SEPARATOR=:
44 rm -f conf$$.sh
47 # Support unset when possible.
48 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49 as_unset=unset
50 else
51 as_unset=false
55 # Find who we are. Look in the path if we contain no path at all
56 # relative or not.
57 case $0 in
58 *[\\/]* ) as_myself=$0 ;;
59 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60 for as_dir in $PATH
62 IFS=$as_save_IFS
63 test -z "$as_dir" && as_dir=.
64 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
65 done
68 esac
69 # We did not find ourselves, most probably we were run as `sh COMMAND'
70 # in which case we are not to be found in the path.
71 if test "x$as_myself" = x; then
72 as_myself=$0
74 if test ! -f "$as_myself"; then
75 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
76 { (exit 1); exit 1; }; }
79 # Work around bugs in pre-3.0 UWIN ksh.
80 $as_unset ENV MAIL MAILPATH
81 PS1='$ '
82 PS2='> '
83 PS4='+ '
85 # NLS nuisances.
86 for as_var in \
87 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
88 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
89 LC_TELEPHONE LC_TIME
91 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
92 eval $as_var=C; export $as_var
93 else
94 $as_unset $as_var
96 done
98 # Required to use basename.
99 if expr a : '\(a\)' >/dev/null 2>&1; then
100 as_expr=expr
101 else
102 as_expr=false
105 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
106 as_basename=basename
107 else
108 as_basename=false
112 # Name of the executable.
113 as_me=`$as_basename "$0" ||
114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
115 X"$0" : 'X\(//\)$' \| \
116 X"$0" : 'X\(/\)$' \| \
117 . : '\(.\)' 2>/dev/null ||
118 echo X/"$0" |
119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
120 /^X\/\(\/\/\)$/{ s//\1/; q; }
121 /^X\/\(\/\).*/{ s//\1/; q; }
122 s/.*/./; q'`
126 if test "x$CONFIG_SHELL" = x; then
127 if (eval ":") 2>/dev/null; then
128 as_have_required=yes
129 else
130 as_have_required=no
133 if test $as_have_required = yes && (eval ":
134 (func_return () {
135 (exit \$1)
137 func_success () {
138 func_return 0
140 func_failure () {
141 func_return 1
143 func_ret_success () {
144 return 0
146 func_ret_failure () {
147 return 1
150 exitcode=0
151 if func_success; then
153 else
154 exitcode=1
155 echo func_failure succeeded.
158 if func_failure; then
159 exitcode=1
160 echo func_success failed.
163 if func_ret_success; then
165 else
166 exitcode=1
167 echo func_ret_success failed.
170 if func_ret_failure; then
171 exitcode=1
172 echo func_ret_failure succeeded.
175 test \$exitcode = 0) || { (exit 1); exit 1; }
178 as_lineno_1=\$LINENO
179 as_lineno_2=\$LINENO
180 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
181 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
182 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
183 ") 2> /dev/null; then
185 else
186 as_candidate_shells="$SHELL"
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 case $as_dir in
194 for as_base in sh bash ksh sh5; do
195 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
196 done
197 esac
198 done
201 for as_shell in $as_candidate_shells; do
202 if { $as_shell 2> /dev/null <<\_ASEOF
203 # Be Bourne compatible
204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
205 emulate sh
206 NULLCMD=:
207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
208 # is contrary to our usage. Disable this feature.
209 alias -g '${1+"$@"}'='"$@"'
210 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
211 set -o posix
213 DUALCASE=1; export DUALCASE # for MKS sh
216 _ASEOF
217 }; then
218 CONFIG_SHELL=$as_shell
219 as_have_required=yes
220 if { $as_shell 2> /dev/null <<\_ASEOF
221 # Be Bourne compatible
222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
223 emulate sh
224 NULLCMD=:
225 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
226 # is contrary to our usage. Disable this feature.
227 alias -g '${1+"$@"}'='"$@"'
228 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
229 set -o posix
231 DUALCASE=1; export DUALCASE # for MKS sh
234 (func_return () {
235 (exit $1)
237 func_success () {
238 func_return 0
240 func_failure () {
241 func_return 1
243 func_ret_success () {
244 return 0
246 func_ret_failure () {
247 return 1
250 exitcode=0
251 if func_success; then
253 else
254 exitcode=1
255 echo func_failure succeeded.
258 if func_failure; then
259 exitcode=1
260 echo func_success failed.
263 if func_ret_success; then
265 else
266 exitcode=1
267 echo func_ret_success failed.
270 if func_ret_failure; then
271 exitcode=1
272 echo func_ret_failure succeeded.
275 test $exitcode = 0) || { (exit 1); exit 1; }
278 as_lineno_1=$LINENO
279 as_lineno_2=$LINENO
280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
281 test "x$as_lineno_1" != "x$as_lineno_2" &&
282 test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; }
284 _ASEOF
285 }; then
286 break
291 done
293 if test "x$CONFIG_SHELL" != x; then
294 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
295 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
296 export CONFIG_SHELL
297 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
301 if test $as_have_required = no; then
302 echo This script requires a shell more modern than all the
303 echo shells that I found on your system. Please install a
304 echo modern shell, or manually run the script under such a
305 echo shell if you do have one.
306 { (exit 1); exit 1; }
316 (eval "func_return () {
317 (exit \$1)
319 func_success () {
320 func_return 0
322 func_failure () {
323 func_return 1
325 func_ret_success () {
326 return 0
328 func_ret_failure () {
329 return 1
332 exitcode=0
333 if func_success; then
335 else
336 exitcode=1
337 echo func_failure succeeded.
340 if func_failure; then
341 exitcode=1
342 echo func_success failed.
345 if func_ret_success; then
347 else
348 exitcode=1
349 echo func_ret_success failed.
352 if func_ret_failure; then
353 exitcode=1
354 echo func_ret_failure succeeded.
357 test \$exitcode = 0") || {
358 echo No shell found that supports shell functions.
359 echo Please tell autoconf@gnu.org about your system,
360 echo including any error possibly output before this
361 echo message
366 as_lineno_1=$LINENO
367 as_lineno_2=$LINENO
368 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
369 test "x$as_lineno_1" != "x$as_lineno_2" &&
370 test "x$as_lineno_3" = "x$as_lineno_2" || {
372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
373 # uniformly replaced by the line number. The first 'sed' inserts a
374 # line-number line after each line using $LINENO; the second 'sed'
375 # does the real work. The second script uses 'N' to pair each
376 # line-number line with the line containing $LINENO, and appends
377 # trailing '-' during substitution so that $LINENO is not a special
378 # case at line end.
379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
380 # scripts with optimization help from Paolo Bonzini. Blame Lee
381 # E. McMahon (1931-1989) for sed's syntax. :-)
382 sed -n '
384 /[$]LINENO/=
385 ' <$as_myself |
386 sed '
387 s,[$]LINENO.*,&-,
388 t lineno
390 : lineno
392 : loop
393 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
394 t loop
395 s,-\n.*,,
396 ' >$as_me.lineno &&
397 chmod +x $as_me.lineno ||
398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
399 { (exit 1); exit 1; }; }
401 # Don't try to exec as it changes $[0], causing all sort of problems
402 # (the dirname of $[0] is not the place where we might find the
403 # original and so on. Autoconf is especially sensible to this).
404 . ./$as_me.lineno
405 # Exit status is that of the last command.
406 exit
410 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
411 *c*,-n*) ECHO_N= ECHO_C='
412 ' ECHO_T=' ' ;;
413 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
414 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
415 esac
417 if expr a : '\(a\)' >/dev/null 2>&1; then
418 as_expr=expr
419 else
420 as_expr=false
423 rm -f conf$$ conf$$.exe conf$$.file
424 echo >conf$$.file
425 if ln -s conf$$.file conf$$ 2>/dev/null; then
426 # We could just check for DJGPP; but this test a) works b) is more generic
427 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
428 if test -f conf$$.exe; then
429 # Don't use ln at all; we don't have any links
430 as_ln_s='cp -p'
431 else
432 as_ln_s='ln -s'
434 elif ln conf$$.file conf$$ 2>/dev/null; then
435 as_ln_s=ln
436 else
437 as_ln_s='cp -p'
439 rm -f conf$$ conf$$.exe conf$$.file
441 if mkdir -p . 2>/dev/null; then
442 as_mkdir_p=:
443 else
444 test -d ./-p && rmdir ./-p
445 as_mkdir_p=false
448 as_executable_p="test -f"
450 # Sed expression to map a string onto a valid CPP name.
451 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
453 # Sed expression to map a string onto a valid variable name.
454 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
457 # IFS
458 # We need space, tab and new line, in precisely that order.
459 as_nl='
461 IFS=" $as_nl"
463 # CDPATH.
464 $as_unset CDPATH
467 # Name of the host.
468 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
469 # so uname gets run too.
470 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
472 exec 6>&1
475 # Initializations.
477 ac_default_prefix=/usr/local
478 ac_config_libobj_dir=.
479 cross_compiling=no
480 subdirs=
481 MFLAGS=
482 MAKEFLAGS=
483 SHELL=${CONFIG_SHELL-/bin/sh}
485 # Maximum number of lines to put in a shell here document.
486 # This variable seems obsolete. It should probably be removed, and
487 # only ac_max_sed_lines should be used.
488 : ${ac_max_here_lines=38}
490 # Identity of this package.
491 PACKAGE_NAME=
492 PACKAGE_TARNAME=
493 PACKAGE_VERSION=
494 PACKAGE_STRING=
495 PACKAGE_BUGREPORT=
497 ac_unique_file="src/roff/groff/groff.cpp"
498 # Factoring default headers for most tests.
499 ac_includes_default="\
500 #include <stdio.h>
501 #if HAVE_SYS_TYPES_H
502 # include <sys/types.h>
503 #endif
504 #if HAVE_SYS_STAT_H
505 # include <sys/stat.h>
506 #endif
507 #if STDC_HEADERS
508 # include <stdlib.h>
509 # include <stddef.h>
510 #else
511 # if HAVE_STDLIB_H
512 # include <stdlib.h>
513 # endif
514 #endif
515 #if HAVE_STRING_H
516 # if !STDC_HEADERS && HAVE_MEMORY_H
517 # include <memory.h>
518 # endif
519 # include <string.h>
520 #endif
521 #if HAVE_STRINGS_H
522 # include <strings.h>
523 #endif
524 #if HAVE_INTTYPES_H
525 # include <inttypes.h>
526 #endif
527 #if HAVE_STDINT_H
528 # include <stdint.h>
529 #endif
530 #if HAVE_UNISTD_H
531 # include <unistd.h>
532 #endif"
534 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR pnmcut pnmcrop pnmtopng psselect pnmtops gs make_html make_install_html pnmtops_nosetpage GHOSTSCRIPT ac_pt_GHOSTSCRIPT LTLIBOBJS'
535 ac_subst_files=''
537 # Initialize some variables set by options.
538 ac_init_help=
539 ac_init_version=false
540 # The variables have the same names as the options, with
541 # dashes changed to underlines.
542 cache_file=/dev/null
543 exec_prefix=NONE
544 no_create=
545 no_recursion=
546 prefix=NONE
547 program_prefix=NONE
548 program_suffix=NONE
549 program_transform_name=s,x,x,
550 silent=
551 site=
552 srcdir=
553 verbose=
554 x_includes=NONE
555 x_libraries=NONE
557 # Installation directory options.
558 # These are left unexpanded so users can "make install exec_prefix=/foo"
559 # and all the variables that are supposed to be based on exec_prefix
560 # by default will actually change.
561 # Use braces instead of parens because sh, perl, etc. also accept them.
562 bindir='${exec_prefix}/bin'
563 sbindir='${exec_prefix}/sbin'
564 libexecdir='${exec_prefix}/libexec'
565 datadir='${prefix}/share'
566 sysconfdir='${prefix}/etc'
567 sharedstatedir='${prefix}/com'
568 localstatedir='${prefix}/var'
569 libdir='${exec_prefix}/lib'
570 includedir='${prefix}/include'
571 oldincludedir='/usr/include'
572 infodir='${prefix}/info'
573 mandir='${prefix}/man'
575 ac_prev=
576 for ac_option
578 # If the previous option needs an argument, assign it.
579 if test -n "$ac_prev"; then
580 eval "$ac_prev=\$ac_option"
581 ac_prev=
582 continue
585 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
587 # Accept the important Cygnus configure options, so we can diagnose typos.
589 case $ac_option in
591 -bindir | --bindir | --bindi | --bind | --bin | --bi)
592 ac_prev=bindir ;;
593 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
594 bindir=$ac_optarg ;;
596 -build | --build | --buil | --bui | --bu)
597 ac_prev=build_alias ;;
598 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
599 build_alias=$ac_optarg ;;
601 -cache-file | --cache-file | --cache-fil | --cache-fi \
602 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
603 ac_prev=cache_file ;;
604 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
605 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
606 cache_file=$ac_optarg ;;
608 --config-cache | -C)
609 cache_file=config.cache ;;
611 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
612 ac_prev=datadir ;;
613 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
614 | --da=*)
615 datadir=$ac_optarg ;;
617 -disable-* | --disable-*)
618 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
622 { (exit 1); exit 1; }; }
623 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
624 eval "enable_$ac_feature=no" ;;
626 -enable-* | --enable-*)
627 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
628 # Reject names that are not valid shell variable names.
629 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
630 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
631 { (exit 1); exit 1; }; }
632 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
633 case $ac_option in
634 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
635 *) ac_optarg=yes ;;
636 esac
637 eval "enable_$ac_feature='$ac_optarg'" ;;
639 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
640 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
641 | --exec | --exe | --ex)
642 ac_prev=exec_prefix ;;
643 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
644 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
645 | --exec=* | --exe=* | --ex=*)
646 exec_prefix=$ac_optarg ;;
648 -gas | --gas | --ga | --g)
649 # Obsolete; use --with-gas.
650 with_gas=yes ;;
652 -help | --help | --hel | --he | -h)
653 ac_init_help=long ;;
654 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
655 ac_init_help=recursive ;;
656 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
657 ac_init_help=short ;;
659 -host | --host | --hos | --ho)
660 ac_prev=host_alias ;;
661 -host=* | --host=* | --hos=* | --ho=*)
662 host_alias=$ac_optarg ;;
664 -includedir | --includedir | --includedi | --included | --include \
665 | --includ | --inclu | --incl | --inc)
666 ac_prev=includedir ;;
667 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
668 | --includ=* | --inclu=* | --incl=* | --inc=*)
669 includedir=$ac_optarg ;;
671 -infodir | --infodir | --infodi | --infod | --info | --inf)
672 ac_prev=infodir ;;
673 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
674 infodir=$ac_optarg ;;
676 -libdir | --libdir | --libdi | --libd)
677 ac_prev=libdir ;;
678 -libdir=* | --libdir=* | --libdi=* | --libd=*)
679 libdir=$ac_optarg ;;
681 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
682 | --libexe | --libex | --libe)
683 ac_prev=libexecdir ;;
684 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
685 | --libexe=* | --libex=* | --libe=*)
686 libexecdir=$ac_optarg ;;
688 -localstatedir | --localstatedir | --localstatedi | --localstated \
689 | --localstate | --localstat | --localsta | --localst \
690 | --locals | --local | --loca | --loc | --lo)
691 ac_prev=localstatedir ;;
692 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
693 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
694 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
695 localstatedir=$ac_optarg ;;
697 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
698 ac_prev=mandir ;;
699 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
700 mandir=$ac_optarg ;;
702 -nfp | --nfp | --nf)
703 # Obsolete; use --without-fp.
704 with_fp=no ;;
706 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
707 | --no-cr | --no-c | -n)
708 no_create=yes ;;
710 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
711 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
712 no_recursion=yes ;;
714 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
715 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
716 | --oldin | --oldi | --old | --ol | --o)
717 ac_prev=oldincludedir ;;
718 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
719 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
720 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
721 oldincludedir=$ac_optarg ;;
723 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
724 ac_prev=prefix ;;
725 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
726 prefix=$ac_optarg ;;
728 -program-prefix | --program-prefix | --program-prefi | --program-pref \
729 | --program-pre | --program-pr | --program-p)
730 ac_prev=program_prefix ;;
731 -program-prefix=* | --program-prefix=* | --program-prefi=* \
732 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
733 program_prefix=$ac_optarg ;;
735 -program-suffix | --program-suffix | --program-suffi | --program-suff \
736 | --program-suf | --program-su | --program-s)
737 ac_prev=program_suffix ;;
738 -program-suffix=* | --program-suffix=* | --program-suffi=* \
739 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
740 program_suffix=$ac_optarg ;;
742 -program-transform-name | --program-transform-name \
743 | --program-transform-nam | --program-transform-na \
744 | --program-transform-n | --program-transform- \
745 | --program-transform | --program-transfor \
746 | --program-transfo | --program-transf \
747 | --program-trans | --program-tran \
748 | --progr-tra | --program-tr | --program-t)
749 ac_prev=program_transform_name ;;
750 -program-transform-name=* | --program-transform-name=* \
751 | --program-transform-nam=* | --program-transform-na=* \
752 | --program-transform-n=* | --program-transform-=* \
753 | --program-transform=* | --program-transfor=* \
754 | --program-transfo=* | --program-transf=* \
755 | --program-trans=* | --program-tran=* \
756 | --progr-tra=* | --program-tr=* | --program-t=*)
757 program_transform_name=$ac_optarg ;;
759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
760 | -silent | --silent | --silen | --sile | --sil)
761 silent=yes ;;
763 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
764 ac_prev=sbindir ;;
765 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
766 | --sbi=* | --sb=*)
767 sbindir=$ac_optarg ;;
769 -sharedstatedir | --sharedstatedir | --sharedstatedi \
770 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
771 | --sharedst | --shareds | --shared | --share | --shar \
772 | --sha | --sh)
773 ac_prev=sharedstatedir ;;
774 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
775 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
776 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
777 | --sha=* | --sh=*)
778 sharedstatedir=$ac_optarg ;;
780 -site | --site | --sit)
781 ac_prev=site ;;
782 -site=* | --site=* | --sit=*)
783 site=$ac_optarg ;;
785 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
786 ac_prev=srcdir ;;
787 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
788 srcdir=$ac_optarg ;;
790 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
791 | --syscon | --sysco | --sysc | --sys | --sy)
792 ac_prev=sysconfdir ;;
793 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
794 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
795 sysconfdir=$ac_optarg ;;
797 -target | --target | --targe | --targ | --tar | --ta | --t)
798 ac_prev=target_alias ;;
799 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
800 target_alias=$ac_optarg ;;
802 -v | -verbose | --verbose | --verbos | --verbo | --verb)
803 verbose=yes ;;
805 -version | --version | --versio | --versi | --vers | -V)
806 ac_init_version=: ;;
808 -with-* | --with-*)
809 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
812 { echo "$as_me: error: invalid package name: $ac_package" >&2
813 { (exit 1); exit 1; }; }
814 ac_package=`echo $ac_package| sed 's/-/_/g'`
815 case $ac_option in
816 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
817 *) ac_optarg=yes ;;
818 esac
819 eval "with_$ac_package='$ac_optarg'" ;;
821 -without-* | --without-*)
822 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
825 { echo "$as_me: error: invalid package name: $ac_package" >&2
826 { (exit 1); exit 1; }; }
827 ac_package=`echo $ac_package | sed 's/-/_/g'`
828 eval "with_$ac_package=no" ;;
830 --x)
831 # Obsolete; use --with-x.
832 with_x=yes ;;
834 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
835 | --x-incl | --x-inc | --x-in | --x-i)
836 ac_prev=x_includes ;;
837 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
838 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
839 x_includes=$ac_optarg ;;
841 -x-libraries | --x-libraries | --x-librarie | --x-librari \
842 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
843 ac_prev=x_libraries ;;
844 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
845 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
846 x_libraries=$ac_optarg ;;
848 -*) { echo "$as_me: error: unrecognized option: $ac_option
849 Try \`$0 --help' for more information." >&2
850 { (exit 1); exit 1; }; }
853 *=*)
854 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
857 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
858 { (exit 1); exit 1; }; }
859 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
860 eval "$ac_envvar='$ac_optarg'"
861 export $ac_envvar ;;
864 # FIXME: should be removed in autoconf 3.0.
865 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
866 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
868 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
871 esac
872 done
874 if test -n "$ac_prev"; then
875 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
876 { echo "$as_me: error: missing argument to $ac_option" >&2
877 { (exit 1); exit 1; }; }
880 # Be sure to have absolute paths.
881 for ac_var in exec_prefix prefix
883 eval ac_val=$`echo $ac_var`
884 case $ac_val in
885 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
886 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
887 { (exit 1); exit 1; }; };;
888 esac
889 done
891 # Be sure to have absolute paths.
892 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
893 localstatedir libdir includedir oldincludedir infodir mandir
895 eval ac_val=$`echo $ac_var`
896 case $ac_val in
897 [\\/$]* | ?:[\\/]* ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
900 esac
901 done
903 # There might be people who depend on the old broken behavior: `$host'
904 # used to hold the argument of --host etc.
905 # FIXME: To remove some day.
906 build=$build_alias
907 host=$host_alias
908 target=$target_alias
910 # FIXME: To remove some day.
911 if test "x$host_alias" != x; then
912 if test "x$build_alias" = x; then
913 cross_compiling=maybe
914 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
915 If a cross compiler is detected then cross compile mode will be used." >&2
916 elif test "x$build_alias" != "x$host_alias"; then
917 cross_compiling=yes
921 ac_tool_prefix=
922 test -n "$host_alias" && ac_tool_prefix=$host_alias-
924 test "$silent" = yes && exec 6>/dev/null
927 # Find the source files, if location was not specified.
928 if test -z "$srcdir"; then
929 ac_srcdir_defaulted=yes
930 # Try the directory containing this script, then its parent.
931 ac_confdir=`(dirname "$0") 2>/dev/null ||
932 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
933 X"$0" : 'X\(//\)[^/]' \| \
934 X"$0" : 'X\(//\)$' \| \
935 X"$0" : 'X\(/\)' \| \
936 . : '\(.\)' 2>/dev/null ||
937 echo X"$0" |
938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
940 /^X\(\/\/\)$/{ s//\1/; q; }
941 /^X\(\/\).*/{ s//\1/; q; }
942 s/.*/./; q'`
943 srcdir=$ac_confdir
944 if test ! -r $srcdir/$ac_unique_file; then
945 srcdir=..
947 else
948 ac_srcdir_defaulted=no
950 if test ! -r $srcdir/$ac_unique_file; then
951 if test "$ac_srcdir_defaulted" = yes; then
952 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
953 { (exit 1); exit 1; }; }
954 else
955 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
956 { (exit 1); exit 1; }; }
959 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
960 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
961 { (exit 1); exit 1; }; }
962 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
963 ac_env_build_alias_set=${build_alias+set}
964 ac_env_build_alias_value=$build_alias
965 ac_cv_env_build_alias_set=${build_alias+set}
966 ac_cv_env_build_alias_value=$build_alias
967 ac_env_host_alias_set=${host_alias+set}
968 ac_env_host_alias_value=$host_alias
969 ac_cv_env_host_alias_set=${host_alias+set}
970 ac_cv_env_host_alias_value=$host_alias
971 ac_env_target_alias_set=${target_alias+set}
972 ac_env_target_alias_value=$target_alias
973 ac_cv_env_target_alias_set=${target_alias+set}
974 ac_cv_env_target_alias_value=$target_alias
975 ac_env_CC_set=${CC+set}
976 ac_env_CC_value=$CC
977 ac_cv_env_CC_set=${CC+set}
978 ac_cv_env_CC_value=$CC
979 ac_env_CFLAGS_set=${CFLAGS+set}
980 ac_env_CFLAGS_value=$CFLAGS
981 ac_cv_env_CFLAGS_set=${CFLAGS+set}
982 ac_cv_env_CFLAGS_value=$CFLAGS
983 ac_env_LDFLAGS_set=${LDFLAGS+set}
984 ac_env_LDFLAGS_value=$LDFLAGS
985 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
986 ac_cv_env_LDFLAGS_value=$LDFLAGS
987 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
988 ac_env_CPPFLAGS_value=$CPPFLAGS
989 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
990 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
991 ac_env_CXX_set=${CXX+set}
992 ac_env_CXX_value=$CXX
993 ac_cv_env_CXX_set=${CXX+set}
994 ac_cv_env_CXX_value=$CXX
995 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
996 ac_env_CXXFLAGS_value=$CXXFLAGS
997 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
998 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
999 ac_env_CPP_set=${CPP+set}
1000 ac_env_CPP_value=$CPP
1001 ac_cv_env_CPP_set=${CPP+set}
1002 ac_cv_env_CPP_value=$CPP
1005 # Report the --help message.
1007 if test "$ac_init_help" = "long"; then
1008 # Omit some internal or obsolete options to make the list less imposing.
1009 # This message is too long to be a string in the A/UX 3.1 sh.
1010 cat <<_ACEOF
1011 \`configure' configures this package to adapt to many kinds of systems.
1013 Usage: $0 [OPTION]... [VAR=VALUE]...
1015 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1016 VAR=VALUE. See below for descriptions of some of the useful variables.
1018 Defaults for the options are specified in brackets.
1020 Configuration:
1021 -h, --help display this help and exit
1022 --help=short display options specific to this package
1023 --help=recursive display the short help of all the included packages
1024 -V, --version display version information and exit
1025 -q, --quiet, --silent do not print \`checking...' messages
1026 --cache-file=FILE cache test results in FILE [disabled]
1027 -C, --config-cache alias for \`--cache-file=config.cache'
1028 -n, --no-create do not create output files
1029 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1031 _ACEOF
1033 cat <<_ACEOF
1034 Installation directories:
1035 --prefix=PREFIX install architecture-independent files in PREFIX
1036 [$ac_default_prefix]
1037 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1038 [PREFIX]
1040 By default, \`make install' will install all the files in
1041 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1042 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1043 for instance \`--prefix=\$HOME'.
1045 For better control, use the options below.
1047 Fine tuning of the installation directories:
1048 --bindir=DIR user executables [EPREFIX/bin]
1049 --sbindir=DIR system admin executables [EPREFIX/sbin]
1050 --libexecdir=DIR program executables [EPREFIX/libexec]
1051 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1052 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1053 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1054 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1055 --libdir=DIR object code libraries [EPREFIX/lib]
1056 --includedir=DIR C header files [PREFIX/include]
1057 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1058 --infodir=DIR info documentation [PREFIX/info]
1059 --mandir=DIR man documentation [PREFIX/man]
1060 _ACEOF
1062 cat <<\_ACEOF
1064 X features:
1065 --x-includes=DIR X include files are in DIR
1066 --x-libraries=DIR X library files are in DIR
1067 _ACEOF
1070 if test -n "$ac_init_help"; then
1072 cat <<\_ACEOF
1074 Optional Packages:
1075 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1076 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1077 --with-x use the X Window System
1078 --with-appresdir=DIR X11 application resource files
1080 Some influential environment variables:
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CXX C++ compiler command
1088 CXXFLAGS C++ compiler flags
1089 CPP C preprocessor
1091 Use these variables to override the choices made by `configure' or to help
1092 it to find libraries and programs with nonstandard names/locations.
1094 _ACEOF
1097 if test "$ac_init_help" = "recursive"; then
1098 # If there are subdirs, report their specific --help.
1099 ac_popdir=`pwd`
1100 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1101 test -d $ac_dir || continue
1102 ac_builddir=.
1104 if test "$ac_dir" != .; then
1105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1106 # A "../" for each directory in $ac_dir_suffix.
1107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1108 else
1109 ac_dir_suffix= ac_top_builddir=
1112 case $srcdir in
1113 .) # No --srcdir option. We are building in place.
1114 ac_srcdir=.
1115 if test -z "$ac_top_builddir"; then
1116 ac_top_srcdir=.
1117 else
1118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1119 fi ;;
1120 [\\/]* | ?:[\\/]* ) # Absolute path.
1121 ac_srcdir=$srcdir$ac_dir_suffix;
1122 ac_top_srcdir=$srcdir ;;
1123 *) # Relative path.
1124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1126 esac
1128 # Do not use `cd foo && pwd` to compute absolute paths, because
1129 # the directories may not exist.
1130 case `pwd` in
1131 .) ac_abs_builddir="$ac_dir";;
1133 case "$ac_dir" in
1134 .) ac_abs_builddir=`pwd`;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1137 esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 case ${ac_top_builddir}. in
1143 .) ac_abs_top_builddir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1146 esac;;
1147 esac
1148 case $ac_abs_builddir in
1149 .) ac_abs_srcdir=$ac_srcdir;;
1151 case $ac_srcdir in
1152 .) ac_abs_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1155 esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 case $ac_top_srcdir in
1161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1164 esac;;
1165 esac
1167 cd $ac_dir
1168 # Check for guested configure; otherwise get Cygnus style configure.
1169 if test -f $ac_srcdir/configure.gnu; then
1170 echo
1171 $SHELL $ac_srcdir/configure.gnu --help=recursive
1172 elif test -f $ac_srcdir/configure; then
1173 echo
1174 $SHELL $ac_srcdir/configure --help=recursive
1175 elif test -f $ac_srcdir/configure.ac ||
1176 test -f $ac_srcdir/configure.in; then
1177 echo
1178 $ac_configure --help
1179 else
1180 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1182 cd $ac_popdir
1183 done
1186 test -n "$ac_init_help" && exit 0
1187 if $ac_init_version; then
1188 cat <<\_ACEOF
1190 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1191 2003, 2004 Free Software Foundation, Inc.
1192 This configure script is free software; the Free Software Foundation
1193 gives unlimited permission to copy, distribute and modify it.
1194 _ACEOF
1195 exit 0
1197 exec 5>config.log
1198 cat >&5 <<_ACEOF
1199 This file contains any messages produced by compilers while
1200 running configure, to aid debugging if configure makes a mistake.
1202 It was created by $as_me, which was
1203 generated by GNU Autoconf 2.59a. Invocation command line was
1205 $ $0 $@
1207 _ACEOF
1209 cat <<_ASUNAME
1210 ## --------- ##
1211 ## Platform. ##
1212 ## --------- ##
1214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1231 _ASUNAME
1233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1234 for as_dir in $PATH
1236 IFS=$as_save_IFS
1237 test -z "$as_dir" && as_dir=.
1238 echo "PATH: $as_dir"
1239 done
1241 } >&5
1243 cat >&5 <<_ACEOF
1246 ## ----------- ##
1247 ## Core tests. ##
1248 ## ----------- ##
1250 _ACEOF
1253 # Keep a trace of the command line.
1254 # Strip out --no-create and --no-recursion so they do not pile up.
1255 # Strip out --silent because we don't want to record it for future runs.
1256 # Also quote any args containing shell meta-characters.
1257 # Make two passes to allow for proper duplicate-argument suppression.
1258 ac_configure_args=
1259 ac_configure_args0=
1260 ac_configure_args1=
1261 ac_sep=
1262 ac_must_keep_next=false
1263 for ac_pass in 1 2
1265 for ac_arg
1267 case $ac_arg in
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 continue ;;
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 esac
1275 case $ac_pass in
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279 if test $ac_must_keep_next = true; then
1280 ac_must_keep_next=false # Got value, back to normal.
1281 else
1282 case $ac_arg in
1283 *=* | --config-cache | -C | -disable-* | --disable-* \
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286 | -with-* | --with-* | -without-* | --without-* | --x)
1287 case "$ac_configure_args0 " in
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289 esac
1291 -* ) ac_must_keep_next=true ;;
1292 esac
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295 # Get rid of the leading space.
1296 ac_sep=" "
1298 esac
1299 done
1300 done
1301 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304 # When interrupted or exit'd, cleanup temporary files, and complete
1305 # config.log. We remove comments because anyway the quotes in there
1306 # would cause problems or look ugly.
1307 # WARNING: Be sure not to use single quotes in there, as some shells,
1308 # such as our DU 5.0 friend, will then `close' the trap.
1309 trap 'exit_status=$?
1310 # Save into config.log some information that might help in debugging.
1312 echo
1314 cat <<\_ASBOX
1315 ## ---------------- ##
1316 ## Cache variables. ##
1317 ## ---------------- ##
1318 _ASBOX
1319 echo
1320 # The following way of writing the cache mishandles newlines in values,
1322 (set) 2>&1 |
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324 *ac_space=\ *)
1325 sed -n \
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1330 sed -n \
1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 esac;
1335 echo
1337 cat <<\_ASBOX
1338 ## ----------------- ##
1339 ## Output variables. ##
1340 ## ----------------- ##
1341 _ASBOX
1342 echo
1343 for ac_var in $ac_subst_vars
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1350 if test -n "$ac_subst_files"; then
1351 cat <<\_ASBOX
1352 ## ------------- ##
1353 ## Output files. ##
1354 ## ------------- ##
1355 _ASBOX
1356 echo
1357 for ac_var in $ac_subst_files
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1361 done | sort
1362 echo
1365 if test -s confdefs.h; then
1366 cat <<\_ASBOX
1367 ## ----------- ##
1368 ## confdefs.h. ##
1369 ## ----------- ##
1370 _ASBOX
1371 echo
1372 sed "/^$/d" confdefs.h | sort
1373 echo
1375 test "$ac_signal" != 0 &&
1376 echo "$as_me: caught signal $ac_signal"
1377 echo "$as_me: exit $exit_status"
1378 } >&5
1379 rm -f core *.core &&
1380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1381 exit $exit_status
1383 for ac_signal in 1 2 13 15; do
1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385 done
1386 ac_signal=0
1388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1389 rm -f -r conftest* confdefs.h
1390 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1392 ac_space=' '
1393 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1395 # Predefined preprocessor variables.
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_NAME "$PACKAGE_NAME"
1399 _ACEOF
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1404 _ACEOF
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1409 _ACEOF
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_STRING "$PACKAGE_STRING"
1414 _ACEOF
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1419 _ACEOF
1422 # Let the site file select an alternate cache file if it wants to.
1423 # Prefer explicitly selected file to automatically selected ones.
1424 if test -z "$CONFIG_SITE"; then
1425 if test "x$prefix" != xNONE; then
1426 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1427 else
1428 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1431 for ac_site_file in $CONFIG_SITE; do
1432 if test -r "$ac_site_file"; then
1433 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1434 echo "$as_me: loading site script $ac_site_file" >&6;}
1435 sed 's/^/| /' "$ac_site_file" >&5
1436 . "$ac_site_file"
1438 done
1440 if test -r "$cache_file"; then
1441 # Some versions of bash will fail to source /dev/null (special
1442 # files actually), so we avoid doing that.
1443 if test -f "$cache_file"; then
1444 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1445 echo "$as_me: loading cache $cache_file" >&6;}
1446 case $cache_file in
1447 [\\/]* | ?:[\\/]* ) . $cache_file;;
1448 *) . ./$cache_file;;
1449 esac
1451 else
1452 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1453 echo "$as_me: creating cache $cache_file" >&6;}
1454 >$cache_file
1457 # Check that the precious variables saved in the cache have kept the same
1458 # value.
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1467 set,)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,set)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,);;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1485 fi;;
1486 esac
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1489 case $ac_new_val in
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1493 esac
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497 esac
1499 done
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1508 ac_ext=c
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1537 # checks for programs
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1565 done
1566 done
1570 CC=$ac_cv_prog_CC
1571 if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1580 if test -z "$ac_cv_prog_CC"; then
1581 ac_ct_CC=$CC
1582 # Extract the first word of "gcc", so it can be a program name with args.
1583 set dummy gcc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="gcc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
1603 done
1604 done
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 if test "x$ac_ct_CC" = x; then
1618 CC=""
1619 else
1620 if test "$build" != "$host"; then
1621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1622 whose name does not start with the host triplet. If you think this
1623 configuration is useful to you, please write to autoconf@gnu.org." >&5
1624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1625 whose name does not start with the host triplet. If you think this
1626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1628 CC=$ac_ct_CC
1630 else
1631 CC="$ac_cv_prog_CC"
1634 if test -z "$CC"; then
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1657 done
1658 done
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1673 ac_ct_CC=$CC
1674 # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="cc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 break 2
1695 done
1696 done
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1709 if test "x$ac_ct_CC" = x; then
1710 CC=""
1711 else
1712 if test "$build" != "$host"; then
1713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1714 whose name does not start with the host triplet. If you think this
1715 configuration is useful to you, please write to autoconf@gnu.org." >&5
1716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1717 whose name does not start with the host triplet. If you think this
1718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1720 CC=$ac_ct_CC
1722 else
1723 CC="$ac_cv_prog_CC"
1727 if test -z "$CC"; then
1728 # Extract the first word of "cc", so it can be a program name with args.
1729 set dummy cc; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735 if test -n "$CC"; then
1736 ac_cv_prog_CC="$CC" # Let the user override the test.
1737 else
1738 ac_prog_rejected=no
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1747 ac_prog_rejected=yes
1748 continue
1750 ac_cv_prog_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1757 if test $ac_prog_rejected = yes; then
1758 # We found a bogon in the path, so make sure we never use it.
1759 set dummy $ac_cv_prog_CC
1760 shift
1761 if test $# != 0; then
1762 # We chose a different compiler from the bogus one.
1763 # However, it has the same basename, so the bogon will be chosen
1764 # first if we set CC to just the basename; use the full file name.
1765 shift
1766 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1771 CC=$ac_cv_prog_CC
1772 if test -n "$CC"; then
1773 echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1775 else
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1781 if test -z "$CC"; then
1782 if test -n "$ac_tool_prefix"; then
1783 for ac_prog in cl
1785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804 break 2
1806 done
1807 done
1811 CC=$ac_cv_prog_CC
1812 if test -n "$CC"; then
1813 echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 test -n "$CC" && break
1821 done
1823 if test -z "$CC"; then
1824 ac_ct_CC=$CC
1825 for ac_prog in cl
1827 # Extract the first word of "$ac_prog", so it can be a program name with args.
1828 set dummy $ac_prog; ac_word=$2
1829 echo "$as_me:$LINENO: checking for $ac_word" >&5
1830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836 else
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_ac_ct_CC="$ac_prog"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1848 done
1849 done
1853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854 if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856 echo "${ECHO_T}$ac_ct_CC" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1862 test -n "$ac_ct_CC" && break
1863 done
1865 if test "x$ac_ct_CC" = x; then
1866 CC=""
1867 else
1868 if test "$build" != "$host"; then
1869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1870 whose name does not start with the host triplet. If you think this
1871 configuration is useful to you, please write to autoconf@gnu.org." >&5
1872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1873 whose name does not start with the host triplet. If you think this
1874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876 CC=$ac_ct_CC
1883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1884 See \`config.log' for more details." >&5
1885 echo "$as_me: error: no acceptable C compiler found in \$PATH
1886 See \`config.log' for more details." >&2;}
1887 { (exit 1); exit 1; }; }
1889 # Provide some information about the compiler.
1890 echo "$as_me:$LINENO:" \
1891 "checking for C compiler version" >&5
1892 ac_compiler=`set X $ac_compile; echo $2`
1893 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1894 (eval $ac_compiler --version </dev/null >&5) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }
1898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1899 (eval $ac_compiler -v </dev/null >&5) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }
1903 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1904 (eval $ac_compiler -V </dev/null >&5) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }
1909 cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h. */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1917 main ()
1921 return 0;
1923 _ACEOF
1924 ac_clean_files_save=$ac_clean_files
1925 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1926 # Try to create an executable without -o first, disregard a.out.
1927 # It will help us diagnose broken compilers, and finding out an intuition
1928 # of exeext.
1929 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1930 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1931 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1932 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1933 (eval $ac_link_default) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 # Find the output, starting from the most likely. This scheme is
1938 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1939 # resort.
1941 # Be careful to initialize this variable, since it used to be cached.
1942 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1943 ac_cv_exeext=
1944 # b.out is created by i960 compilers.
1945 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1947 test -f "$ac_file" || continue
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1951 conftest.$ac_ext )
1952 # This is the source file.
1954 [ab].out )
1955 # We found the default executable, but exeext='' is most
1956 # certainly right.
1957 break;;
1958 *.* )
1959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1960 # FIXME: I believe we export ac_cv_exeext for Libtool,
1961 # but it would be cool to find out if it's true. Does anybody
1962 # maintain Libtool? --akim.
1963 export ac_cv_exeext
1964 break;;
1966 break;;
1967 esac
1968 done
1969 else
1970 echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1973 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: C compiler cannot create executables
1976 See \`config.log' for more details." >&2;}
1977 { (exit 77); exit 77; }; }
1980 ac_exeext=$ac_cv_exeext
1981 echo "$as_me:$LINENO: result: $ac_file" >&5
1982 echo "${ECHO_T}$ac_file" >&6
1984 # Check the compiler produces executables we can run. If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1987 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1989 # If not cross compiling, check that we can run a simple program.
1990 if test "$cross_compiling" != yes; then
1991 if { ac_try='./$ac_file'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993 (eval $ac_try) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1997 cross_compiling=no
1998 else
1999 if test "$cross_compiling" = maybe; then
2000 cross_compiling=yes
2001 else
2002 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2003 If you meant to cross compile, use \`--host'.
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: cannot run C compiled programs.
2006 If you meant to cross compile, use \`--host'.
2007 See \`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2012 echo "$as_me:$LINENO: result: yes" >&5
2013 echo "${ECHO_T}yes" >&6
2015 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2016 ac_clean_files=$ac_clean_files_save
2017 # Check the compiler produces executables we can run. If not, either
2018 # the compiler is broken, or we cross compile.
2019 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2020 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2021 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2022 echo "${ECHO_T}$cross_compiling" >&6
2024 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2025 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2027 (eval $ac_link) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2032 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2033 # work properly (i.e., refer to `conftest.exe'), while it won't with
2034 # `rm'.
2035 for ac_file in conftest.exe conftest conftest.*; do
2036 test -f "$ac_file" || continue
2037 case $ac_file in
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040 export ac_cv_exeext
2041 break;;
2042 * ) break;;
2043 esac
2044 done
2045 else
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest$ac_cv_exeext
2054 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2055 echo "${ECHO_T}$ac_cv_exeext" >&6
2057 rm -f conftest.$ac_ext
2058 EXEEXT=$ac_cv_exeext
2059 ac_exeext=$EXEEXT
2060 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2061 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2062 if test "${ac_cv_objext+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 cat >conftest.$ac_ext <<_ACEOF
2066 /* confdefs.h. */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2073 main ()
2077 return 0;
2079 _ACEOF
2080 rm -f conftest.o conftest.obj
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2086 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2087 case $ac_file in
2088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2090 break;;
2091 esac
2092 done
2093 else
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2100 See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
2104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2106 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2107 echo "${ECHO_T}$ac_cv_objext" >&6
2108 OBJEXT=$ac_cv_objext
2109 ac_objext=$OBJEXT
2110 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2111 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2112 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 cat >conftest.$ac_ext <<_ACEOF
2116 /* confdefs.h. */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2123 main ()
2125 #ifndef __GNUC__
2126 choke me
2127 #endif
2130 return 0;
2132 _ACEOF
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2136 ac_status=$?
2137 grep -v '^ *+' conftest.er1 >conftest.err
2138 rm -f conftest.er1
2139 cat conftest.err >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_compiler_gnu=yes
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 ac_compiler_gnu=no
2162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2166 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2167 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2168 GCC=`test $ac_compiler_gnu = yes && echo yes`
2169 ac_test_CFLAGS=${CFLAGS+set}
2170 ac_save_CFLAGS=$CFLAGS
2171 CFLAGS="-g"
2172 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2173 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2174 if test "${ac_cv_prog_cc_g+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 cat >conftest.$ac_ext <<_ACEOF
2178 /* confdefs.h. */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2185 main ()
2189 return 0;
2191 _ACEOF
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2195 ac_status=$?
2196 grep -v '^ *+' conftest.er1 >conftest.err
2197 rm -f conftest.er1
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -z "$ac_c_werror_flag"
2202 || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 ac_cv_prog_cc_g=yes
2215 else
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2219 ac_cv_prog_cc_g=no
2221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2225 if test "$ac_test_CFLAGS" = set; then
2226 CFLAGS=$ac_save_CFLAGS
2227 elif test $ac_cv_prog_cc_g = yes; then
2228 if test "$GCC" = yes; then
2229 CFLAGS="-g -O2"
2230 else
2231 CFLAGS="-g"
2233 else
2234 if test "$GCC" = yes; then
2235 CFLAGS="-O2"
2236 else
2237 CFLAGS=
2240 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2241 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2242 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 ac_cv_prog_cc_stdc=no
2246 ac_save_CC=$CC
2247 cat >conftest.$ac_ext <<_ACEOF
2248 /* confdefs.h. */
2249 _ACEOF
2250 cat confdefs.h >>conftest.$ac_ext
2251 cat >>conftest.$ac_ext <<_ACEOF
2252 /* end confdefs.h. */
2253 #include <stdarg.h>
2254 #include <stdio.h>
2255 #include <sys/types.h>
2256 #include <sys/stat.h>
2257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2258 struct buf { int x; };
2259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2260 static char *e (p, i)
2261 char **p;
2262 int i;
2264 return p[i];
2266 static char *f (char * (*g) (char **, int), char **p, ...)
2268 char *s;
2269 va_list v;
2270 va_start (v,p);
2271 s = g (p, va_arg (v,int));
2272 va_end (v);
2273 return s;
2276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2277 function prototypes and stuff, but not '\xHH' hex character constants.
2278 These don't provoke an error unfortunately, instead are silently treated
2279 as 'x'. The following induces an error, until -std is added to get
2280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2281 array size at least. It's necessary to write '\x00'==0 to get something
2282 that's true only with -std. */
2283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2285 int test (int i, double x);
2286 struct s1 {int (*f) (int a);};
2287 struct s2 {int (*f) (double a);};
2288 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2289 int argc;
2290 char **argv;
2292 main ()
2294 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2296 return 0;
2298 _ACEOF
2299 # Don't try gcc -ansi; that turns off useful extensions and
2300 # breaks some systems' header files.
2301 # AIX -qlanglvl=ansi
2302 # Ultrix, OSF/1, Tru64 -std
2303 # HP-UX 10.20 and later -Ae
2304 # HP-UX older versions -Aa -D_HPUX_SOURCE
2305 # SVR4 -Xc -D__EXTENSIONS__
2306 for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2308 CC="$ac_save_CC $ac_arg"
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 ac_cv_prog_cc_stdc=$ac_arg
2332 break
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2338 rm -f conftest.err conftest.$ac_objext
2339 done
2340 rm -f conftest.$ac_ext conftest.$ac_objext
2341 CC=$ac_save_CC
2345 case "x$ac_cv_prog_cc_stdc" in
2346 x|xno)
2347 echo "$as_me:$LINENO: result: none needed" >&5
2348 echo "${ECHO_T}none needed" >&6 ;;
2350 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2351 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2352 CC="$CC $ac_cv_prog_cc_stdc" ;;
2353 esac
2355 # Some people use a C++ compiler to compile C. Since we use `exit',
2356 # in C++ we need to declare it. In case someone uses the same compiler
2357 # for both compiling C and C++ we need to have the C++ compiler decide
2358 # the declaration of exit, since it's the most demanding environment.
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #ifndef __cplusplus
2361 choke me
2362 #endif
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 for ac_declaration in \
2387 '' \
2388 'extern "C" void std::exit (int) throw (); using std::exit;' \
2389 'extern "C" void std::exit (int); using std::exit;' \
2390 'extern "C" void exit (int) throw ();' \
2391 'extern "C" void exit (int);' \
2392 'void exit (int);'
2394 cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h. */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h. */
2400 $ac_declaration
2401 #include <stdlib.h>
2403 main ()
2405 exit (42);
2407 return 0;
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>conftest.er1
2413 ac_status=$?
2414 grep -v '^ *+' conftest.er1 >conftest.err
2415 rm -f conftest.er1
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag"
2420 || test ! -s conftest.err'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; } &&
2426 { ac_try='test -s conftest.$ac_objext'
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2433 else
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2437 continue
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 cat >conftest.$ac_ext <<_ACEOF
2441 /* confdefs.h. */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2446 $ac_declaration
2448 main ()
2450 exit (42);
2452 return 0;
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 break
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 done
2485 rm -f conftest*
2486 if test -n "$ac_declaration"; then
2487 echo '#ifdef __cplusplus' >>confdefs.h
2488 echo $ac_declaration >>confdefs.h
2489 echo '#endif' >>confdefs.h
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 ac_ext=cc
2505 ac_cpp='$CXXCPP $CPPFLAGS'
2506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2509 if test -n "$ac_tool_prefix"; then
2510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_CXX+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 if test -n "$CXX"; then
2520 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2533 done
2534 done
2538 CXX=$ac_cv_prog_CXX
2539 if test -n "$CXX"; then
2540 echo "$as_me:$LINENO: result: $CXX" >&5
2541 echo "${ECHO_T}$CXX" >&6
2542 else
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$CXX" && break
2548 done
2550 if test -z "$CXX"; then
2551 ac_ct_CXX=$CXX
2552 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561 if test -n "$ac_ct_CXX"; then
2562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_ac_ct_CXX="$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2575 done
2576 done
2580 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2581 if test -n "$ac_ct_CXX"; then
2582 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2583 echo "${ECHO_T}$ac_ct_CXX" >&6
2584 else
2585 echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2589 test -n "$ac_ct_CXX" && break
2590 done
2592 if test "x$ac_ct_CXX" = x; then
2593 CXX="g++"
2594 else
2595 if test "$build" != "$host"; then
2596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet. If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&5
2599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2600 whose name does not start with the host triplet. If you think this
2601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2603 CXX=$ac_ct_CXX
2608 # Provide some information about the compiler.
2609 echo "$as_me:$LINENO:" \
2610 "checking for C++ compiler version" >&5
2611 ac_compiler=`set X $ac_compile; echo $2`
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2613 (eval $ac_compiler --version </dev/null >&5) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2618 (eval $ac_compiler -v </dev/null >&5) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2623 (eval $ac_compiler -V </dev/null >&5) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2628 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2629 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2630 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h. */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 main ()
2643 #ifndef __GNUC__
2644 choke me
2645 #endif
2648 return 0;
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_cxx_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_compiler_gnu=yes
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 ac_compiler_gnu=no
2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2684 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2686 GXX=`test $ac_compiler_gnu = yes && echo yes`
2687 ac_test_CXXFLAGS=${CXXFLAGS+set}
2688 ac_save_CXXFLAGS=$CXXFLAGS
2689 CXXFLAGS="-g"
2690 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2691 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2692 if test "${ac_cv_prog_cxx_g+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2703 main ()
2707 return 0;
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_cxx_werror_flag"
2720 || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cxx_g=yes
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2737 ac_cv_prog_cxx_g=no
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2743 if test "$ac_test_CXXFLAGS" = set; then
2744 CXXFLAGS=$ac_save_CXXFLAGS
2745 elif test $ac_cv_prog_cxx_g = yes; then
2746 if test "$GXX" = yes; then
2747 CXXFLAGS="-g -O2"
2748 else
2749 CXXFLAGS="-g"
2751 else
2752 if test "$GXX" = yes; then
2753 CXXFLAGS="-O2"
2754 else
2755 CXXFLAGS=
2758 for ac_declaration in \
2759 '' \
2760 'extern "C" void std::exit (int) throw (); using std::exit;' \
2761 'extern "C" void std::exit (int); using std::exit;' \
2762 'extern "C" void exit (int) throw ();' \
2763 'extern "C" void exit (int);' \
2764 'void exit (int);'
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2772 $ac_declaration
2773 #include <stdlib.h>
2775 main ()
2777 exit (42);
2779 return 0;
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_cxx_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2805 else
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2809 continue
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 $ac_declaration
2820 main ()
2822 exit (42);
2824 return 0;
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_cxx_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 break
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 done
2857 rm -f conftest*
2858 if test -n "$ac_declaration"; then
2859 echo '#ifdef __cplusplus' >>confdefs.h
2860 echo $ac_declaration >>confdefs.h
2861 echo '#endif' >>confdefs.h
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 ac_ext=cc
2873 ac_cpp='$CXXCPP $CPPFLAGS'
2874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2878 if test "$cross_compiling" = no; then
2879 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
2880 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
2882 if test "$cross_compiling" = yes; then
2884 else
2885 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2894 int main() {
2895 return 0;
2900 _ACEOF
2901 rm -f conftest$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903 (eval $ac_link) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913 echo "${ECHO_T}yes" >&6
2914 else
2915 echo "$as_me: program exited with status $ac_status" >&5
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 ( exit $ac_status )
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2923 echo "$as_me: error: a working C++ compiler is required" >&2;}
2924 { (exit 1); exit 1; }; }
2926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2929 if test "$cross_compiling" = no; then
2930 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
2931 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2933 if test "$cross_compiling" = yes; then
2935 else
2936 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2945 extern "C" {
2946 void _exit(int);
2949 int i;
2950 struct A {
2951 char dummy;
2952 A() { i = 1; }
2953 ~A() { if (i == 1) _exit(0); }
2956 A a;
2958 int main()
2960 return 1;
2965 _ACEOF
2966 rm -f conftest$ac_exeext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 echo "$as_me:$LINENO: result: yes" >&5
2978 echo "${ECHO_T}yes" >&6
2979 else
2980 echo "$as_me: program exited with status $ac_status" >&5
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 ( exit $ac_status )
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2987 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2988 echo "$as_me: error: a working C++ compiler is required" >&2;}
2989 { (exit 1); exit 1; }; }
2991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2994 echo "$as_me:$LINENO: checking that header files support C++" >&5
2995 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2996 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3005 #include <stdio.h>
3009 main ()
3013 fopen(0, 0);
3017 return 0;
3020 _ACEOF
3021 rm -f conftest.$ac_objext conftest$ac_exeext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3023 (eval $ac_link) 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_cxx_werror_flag"
3031 || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest$ac_exeext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 echo "$as_me:$LINENO: result: no" >&5
3050 echo "${ECHO_T}no" >&6
3051 { { echo "$as_me:$LINENO: error: header files do not support C++
3052 (if you are using a version of gcc/g++ earlier than 2.5,
3053 you should install libg++)" >&5
3054 echo "$as_me: error: header files do not support C++
3055 (if you are using a version of gcc/g++ earlier than 2.5,
3056 you should install libg++)" >&2;}
3057 { (exit 1); exit 1; }; }
3059 rm -f conftest.err conftest.$ac_objext \
3060 conftest$ac_exeext conftest.$ac_ext
3061 ac_ext=c
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3069 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3070 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 /* Treat any failure as ASCII for compatibility with existing art.
3080 Use compile-time rather than run-time tests for cross-compiler
3081 tolerance. */
3082 #if '0' != 240
3083 make an error "Character set is not EBCDIC"
3084 #endif
3088 main ()
3092 return 0;
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -z "$ac_c_werror_flag"
3106 || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 groff_cv_ebcdic="yes"
3119 TTYDEVDIRS="font/devcp1047"
3120 echo "$as_me:$LINENO: result: yes" >&5
3121 echo "${ECHO_T}yes" >&6
3123 cat >>confdefs.h <<\_ACEOF
3124 #define IS_EBCDIC_HOST 1
3125 _ACEOF
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 groff_cv_ebcdic="no"
3132 TTYDEVDIRS="font/devascii font/devlatin1"
3133 OTHERDEVDIRS="font/devlj4 font/devlbp"
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3140 if test "$groff_cv_ebcdic" = "yes"; then
3141 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3142 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3143 case `uname` in
3144 OS/390)
3145 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3146 echo "$as_me:$LINENO: result: yes" >&5
3147 echo "${ECHO_T}yes" >&6 ;;
3149 echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6 ;;
3151 esac
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3159 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3160 # On Suns, sometimes $CPP names a directory.
3161 if test -n "$CPP" && test -d "$CPP"; then
3162 CPP=
3164 if test -z "$CPP"; then
3165 if test "${ac_cv_prog_CPP+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 # Double quotes because CPP needs to be expanded
3169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3171 ac_preproc_ok=false
3172 for ac_c_preproc_warn_flag in '' yes
3174 # Use a header file that comes with gcc, so configuring glibc
3175 # with a fresh cross-compiler works.
3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177 # <limits.h> exists even on freestanding compilers.
3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3179 # not just through cpp. "Syntax error" is here to catch this case.
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #ifdef __STDC__
3187 # include <limits.h>
3188 #else
3189 # include <assert.h>
3190 #endif
3191 Syntax error
3192 _ACEOF
3193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 else
3205 ac_cpp_err=
3207 else
3208 ac_cpp_err=yes
3210 if test -z "$ac_cpp_err"; then
3212 else
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 # Broken: fails on valid input.
3217 continue
3219 rm -f conftest.err conftest.$ac_ext
3221 # OK, works on sane cases. Now check whether non-existent headers
3222 # can be detected and how.
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <ac_nonexistent.h>
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242 else
3243 ac_cpp_err=
3245 else
3246 ac_cpp_err=yes
3248 if test -z "$ac_cpp_err"; then
3249 # Broken: success on invalid input.
3250 continue
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Passes both tests.
3256 ac_preproc_ok=:
3257 break
3259 rm -f conftest.err conftest.$ac_ext
3261 done
3262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263 rm -f conftest.err conftest.$ac_ext
3264 if $ac_preproc_ok; then
3265 break
3268 done
3269 ac_cv_prog_CPP=$CPP
3272 CPP=$ac_cv_prog_CPP
3273 else
3274 ac_cv_prog_CPP=$CPP
3276 echo "$as_me:$LINENO: result: $CPP" >&5
3277 echo "${ECHO_T}$CPP" >&6
3278 ac_preproc_ok=false
3279 for ac_c_preproc_warn_flag in '' yes
3281 # Use a header file that comes with gcc, so configuring glibc
3282 # with a fresh cross-compiler works.
3283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3284 # <limits.h> exists even on freestanding compilers.
3285 # On the NeXT, cc -E runs the code through the compiler's parser,
3286 # not just through cpp. "Syntax error" is here to catch this case.
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #ifdef __STDC__
3294 # include <limits.h>
3295 #else
3296 # include <assert.h>
3297 #endif
3298 Syntax error
3299 _ACEOF
3300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null; then
3308 if test -s conftest.err; then
3309 ac_cpp_err=$ac_c_preproc_warn_flag
3310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311 else
3312 ac_cpp_err=
3314 else
3315 ac_cpp_err=yes
3317 if test -z "$ac_cpp_err"; then
3319 else
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Broken: fails on valid input.
3324 continue
3326 rm -f conftest.err conftest.$ac_ext
3328 # OK, works on sane cases. Now check whether non-existent headers
3329 # can be detected and how.
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 #include <ac_nonexistent.h>
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349 else
3350 ac_cpp_err=
3352 else
3353 ac_cpp_err=yes
3355 if test -z "$ac_cpp_err"; then
3356 # Broken: success on invalid input.
3357 continue
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 # Passes both tests.
3363 ac_preproc_ok=:
3364 break
3366 rm -f conftest.err conftest.$ac_ext
3368 done
3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3370 rm -f conftest.err conftest.$ac_ext
3371 if $ac_preproc_ok; then
3373 else
3374 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3377 See \`config.log' for more details." >&2;}
3378 { (exit 1); exit 1; }; }
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 echo "$as_me:$LINENO: checking for X" >&5
3389 echo $ECHO_N "checking for X... $ECHO_C" >&6
3392 # Check whether --with-x or --without-x was given.
3393 if test "${with_x+set}" = set; then
3394 withval="$with_x"
3397 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3398 if test "x$with_x" = xno; then
3399 # The user explicitly disabled X.
3400 have_x=disabled
3401 else
3402 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3403 # Both variables are already set.
3404 have_x=yes
3405 else
3406 if test "${ac_cv_have_x+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 # One or both of the vars are not set, and there is no cached value.
3410 ac_x_includes=no ac_x_libraries=no
3411 rm -f -r conftest.dir
3412 if mkdir conftest.dir; then
3413 cd conftest.dir
3414 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3415 cat >Imakefile <<'_ACEOF'
3416 acfindx:
3417 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3418 _ACEOF
3419 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3421 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3422 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3423 for ac_extension in a so sl; do
3424 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3425 test -f $ac_im_libdir/libX11.$ac_extension; then
3426 ac_im_usrlibdir=$ac_im_libdir; break
3428 done
3429 # Screen out bogus values from the imake configuration. They are
3430 # bogus both because they are the default anyway, and because
3431 # using them would break gcc on systems where it needs fixed includes.
3432 case $ac_im_incroot in
3433 /usr/include) ;;
3434 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3435 esac
3436 case $ac_im_usrlibdir in
3437 /usr/lib | /lib) ;;
3438 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3439 esac
3441 cd ..
3442 rm -f -r conftest.dir
3445 # Standard set of common directories for X headers.
3446 # Check X11 before X11Rn because it is often a symlink to the current release.
3447 ac_x_header_dirs='
3448 /usr/X11/include
3449 /usr/X11R6/include
3450 /usr/X11R5/include
3451 /usr/X11R4/include
3453 /usr/include/X11
3454 /usr/include/X11R6
3455 /usr/include/X11R5
3456 /usr/include/X11R4
3458 /usr/local/X11/include
3459 /usr/local/X11R6/include
3460 /usr/local/X11R5/include
3461 /usr/local/X11R4/include
3463 /usr/local/include/X11
3464 /usr/local/include/X11R6
3465 /usr/local/include/X11R5
3466 /usr/local/include/X11R4
3468 /usr/X386/include
3469 /usr/x386/include
3470 /usr/XFree86/include/X11
3472 /usr/include
3473 /usr/local/include
3474 /usr/unsupported/include
3475 /usr/athena/include
3476 /usr/local/x11r5/include
3477 /usr/lpp/Xamples/include
3479 /usr/openwin/include
3480 /usr/openwin/share/include'
3482 if test "$ac_x_includes" = no; then
3483 # Guess where to find include files, by looking for Intrinsic.h.
3484 # First, try using that file with no special directory specified.
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #include <X11/Intrinsic.h>
3492 _ACEOF
3493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 else
3505 ac_cpp_err=
3507 else
3508 ac_cpp_err=yes
3510 if test -z "$ac_cpp_err"; then
3511 # We can compile using X headers with no special include directory.
3512 ac_x_includes=
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 for ac_dir in $ac_x_header_dirs; do
3518 if test -r "$ac_dir/X11/Intrinsic.h"; then
3519 ac_x_includes=$ac_dir
3520 break
3522 done
3524 rm -f conftest.err conftest.$ac_ext
3525 fi # $ac_x_includes = no
3527 if test "$ac_x_libraries" = no; then
3528 # Check for the libraries.
3529 # See if we find them without any special options.
3530 # Don't add to $LIBS permanently.
3531 ac_save_LIBS=$LIBS
3532 LIBS="-lXt $LIBS"
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <X11/Intrinsic.h>
3541 main ()
3543 XtMalloc (0)
3545 return 0;
3547 _ACEOF
3548 rm -f conftest.$ac_objext conftest$ac_exeext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550 (eval $ac_link) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try='test -z "$ac_c_werror_flag"
3558 || test ! -s conftest.err'
3559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 (eval $ac_try) 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; } &&
3564 { ac_try='test -s conftest$ac_exeext'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3570 LIBS=$ac_save_LIBS
3571 # We can link X programs with no special library path.
3572 ac_x_libraries=
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 LIBS=$ac_save_LIBS
3578 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3580 # Don't even attempt the hair of trying to link an X program!
3581 for ac_extension in a so sl; do
3582 if test -r $ac_dir/libXt.$ac_extension; then
3583 ac_x_libraries=$ac_dir
3584 break 2
3586 done
3587 done
3589 rm -f conftest.err conftest.$ac_objext \
3590 conftest$ac_exeext conftest.$ac_ext
3591 fi # $ac_x_libraries = no
3593 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3594 # Didn't find X anywhere. Cache the known absence of X.
3595 ac_cv_have_x="have_x=no"
3596 else
3597 # Record where we found X for the cache.
3598 ac_cv_have_x="have_x=yes \
3599 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3604 eval "$ac_cv_have_x"
3605 fi # $with_x != no
3607 if test "$have_x" != yes; then
3608 echo "$as_me:$LINENO: result: $have_x" >&5
3609 echo "${ECHO_T}$have_x" >&6
3610 no_x=yes
3611 else
3612 # If each of the values was on the command line, it overrides each guess.
3613 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3614 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3615 # Update the cache value to reflect the command line values.
3616 ac_cv_have_x="have_x=yes \
3617 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3618 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3619 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3622 if test "$no_x" = yes; then
3623 # Not all programs may use this symbol, but it does not hurt to define it.
3625 cat >>confdefs.h <<\_ACEOF
3626 #define X_DISPLAY_MISSING 1
3627 _ACEOF
3629 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3630 else
3631 if test -n "$x_includes"; then
3632 X_CFLAGS="$X_CFLAGS -I$x_includes"
3635 # It would also be nice to do this for all -L options, not just this one.
3636 if test -n "$x_libraries"; then
3637 X_LIBS="$X_LIBS -L$x_libraries"
3638 # For Solaris; some versions of Sun CC require a space after -R and
3639 # others require no space. Words are not sufficient . . . .
3640 case `(uname -sr) 2>/dev/null` in
3641 "SunOS 5"*)
3642 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3643 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3644 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest$ac_exeext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_R_nospace=yes
3683 else
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_R_nospace=no
3689 rm -f conftest.err conftest.$ac_objext \
3690 conftest$ac_exeext conftest.$ac_ext
3691 if test $ac_R_nospace = yes; then
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 X_LIBS="$X_LIBS -R$x_libraries"
3695 else
3696 LIBS="$ac_xsave_LIBS -R $x_libraries"
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3705 main ()
3709 return 0;
3711 _ACEOF
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714 (eval $ac_link) 2>conftest.er1
3715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } &&
3721 { ac_try='test -z "$ac_c_werror_flag"
3722 || test ! -s conftest.err'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; } &&
3728 { ac_try='test -s conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 ac_R_space=yes
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_R_space=no
3741 rm -f conftest.err conftest.$ac_objext \
3742 conftest$ac_exeext conftest.$ac_ext
3743 if test $ac_R_space = yes; then
3744 echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746 X_LIBS="$X_LIBS -R $x_libraries"
3747 else
3748 echo "$as_me:$LINENO: result: neither works" >&5
3749 echo "${ECHO_T}neither works" >&6
3752 LIBS=$ac_xsave_LIBS
3753 esac
3756 # Check for system-dependent libraries X programs must link with.
3757 # Do this before checking for the system-independent R6 libraries
3758 # (-lICE), since we may need -lsocket or whatever for X linking.
3760 if test "$ISC" = yes; then
3761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3762 else
3763 # Martyn Johnson says this is needed for Ultrix, if the X
3764 # libraries were built with DECnet support. And Karl Berry says
3765 # the Alpha needs dnet_stub (dnet does not exist).
3766 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3767 cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h. */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 #ifdef __cplusplus
3776 extern "C"
3777 #endif
3778 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3780 char XOpenDisplay ();
3782 main ()
3784 XOpenDisplay ();
3786 return 0;
3788 _ACEOF
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791 (eval $ac_link) 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3817 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3818 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 ac_check_lib_save_LIBS=$LIBS
3822 LIBS="-ldnet $LIBS"
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char dnet_ntoa ();
3838 main ()
3840 dnet_ntoa ();
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_lib_dnet_dnet_ntoa=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_lib_dnet_dnet_ntoa=no
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876 LIBS=$ac_check_lib_save_LIBS
3878 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3879 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3880 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3881 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3884 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3885 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3886 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3887 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 ac_check_lib_save_LIBS=$LIBS
3891 LIBS="-ldnet_stub $LIBS"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3899 /* Override any gcc2 internal prototype to avoid an error. */
3900 #ifdef __cplusplus
3901 extern "C"
3902 #endif
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905 char dnet_ntoa ();
3907 main ()
3909 dnet_ntoa ();
3911 return 0;
3913 _ACEOF
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -z "$ac_c_werror_flag"
3924 || test ! -s conftest.err'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; } &&
3930 { ac_try='test -s conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 ac_cv_lib_dnet_stub_dnet_ntoa=no
3943 rm -f conftest.err conftest.$ac_objext \
3944 conftest$ac_exeext conftest.$ac_ext
3945 LIBS=$ac_check_lib_save_LIBS
3947 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3948 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3949 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3950 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3955 rm -f conftest.err conftest.$ac_objext \
3956 conftest$ac_exeext conftest.$ac_ext
3957 LIBS="$ac_xsave_LIBS"
3959 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3960 # to get the SysV transport functions.
3961 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3962 # needs -lnsl.
3963 # The nsl library prevents programs from opening the X display
3964 # on Irix 5.2, according to T.E. Dickey.
3965 # The functions gethostbyname, getservbyname, and inet_addr are
3966 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3967 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3968 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3969 if test "${ac_cv_func_gethostbyname+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3980 #define gethostbyname innocuous_gethostbyname
3982 /* System header to define __stub macros and hopefully few prototypes,
3983 which can conflict with char gethostbyname (); below.
3984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985 <limits.h> exists even on freestanding compilers. */
3987 #ifdef __STDC__
3988 # include <limits.h>
3989 #else
3990 # include <assert.h>
3991 #endif
3993 #undef gethostbyname
3995 /* Override any gcc2 internal prototype to avoid an error. */
3996 #ifdef __cplusplus
3997 extern "C"
3999 #endif
4000 /* We use char because int might match the return type of a gcc2
4001 builtin and then its argument prototype would still apply. */
4002 char gethostbyname ();
4003 /* The GNU C library defines this for functions which it implements
4004 to always fail with ENOSYS. Some functions are actually named
4005 something starting with __ and the normal name is an alias. */
4006 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4007 choke me
4008 #else
4009 char (*f) () = gethostbyname;
4010 #endif
4011 #ifdef __cplusplus
4013 #endif
4016 main ()
4018 return f != gethostbyname;
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.$ac_objext conftest$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_c_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest$ac_exeext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_func_gethostbyname=yes
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cv_func_gethostbyname=no
4052 rm -f conftest.err conftest.$ac_objext \
4053 conftest$ac_exeext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4056 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4058 if test $ac_cv_func_gethostbyname = no; then
4059 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4060 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4061 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 ac_check_lib_save_LIBS=$LIBS
4065 LIBS="-lnsl $LIBS"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 #ifdef __cplusplus
4075 extern "C"
4076 #endif
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4079 char gethostbyname ();
4081 main ()
4083 gethostbyname ();
4085 return 0;
4087 _ACEOF
4088 rm -f conftest.$ac_objext conftest$ac_exeext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4090 (eval $ac_link) 2>conftest.er1
4091 ac_status=$?
4092 grep -v '^ *+' conftest.er1 >conftest.err
4093 rm -f conftest.er1
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -z "$ac_c_werror_flag"
4098 || test ! -s conftest.err'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; } &&
4104 { ac_try='test -s conftest$ac_exeext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_cv_lib_nsl_gethostbyname=yes
4111 else
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 ac_cv_lib_nsl_gethostbyname=no
4117 rm -f conftest.err conftest.$ac_objext \
4118 conftest$ac_exeext conftest.$ac_ext
4119 LIBS=$ac_check_lib_save_LIBS
4121 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4122 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4123 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4124 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4127 if test $ac_cv_lib_nsl_gethostbyname = no; then
4128 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4129 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4130 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 ac_check_lib_save_LIBS=$LIBS
4134 LIBS="-lbsd $LIBS"
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 #ifdef __cplusplus
4144 extern "C"
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char gethostbyname ();
4150 main ()
4152 gethostbyname ();
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_lib_bsd_gethostbyname=yes
4180 else
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_lib_bsd_gethostbyname=no
4186 rm -f conftest.err conftest.$ac_objext \
4187 conftest$ac_exeext conftest.$ac_ext
4188 LIBS=$ac_check_lib_save_LIBS
4190 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4191 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4192 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4193 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4199 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4200 # socket/setsockopt and other routines are undefined under SCO ODT
4201 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4202 # on later versions), says Simon Leinen: it contains gethostby*
4203 # variants that don't use the name server (or something). -lsocket
4204 # must be given before -lnsl if both are needed. We assume that
4205 # if connect needs -lnsl, so does gethostbyname.
4206 echo "$as_me:$LINENO: checking for connect" >&5
4207 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4208 if test "${ac_cv_func_connect+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4219 #define connect innocuous_connect
4221 /* System header to define __stub macros and hopefully few prototypes,
4222 which can conflict with char connect (); below.
4223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224 <limits.h> exists even on freestanding compilers. */
4226 #ifdef __STDC__
4227 # include <limits.h>
4228 #else
4229 # include <assert.h>
4230 #endif
4232 #undef connect
4234 /* Override any gcc2 internal prototype to avoid an error. */
4235 #ifdef __cplusplus
4236 extern "C"
4238 #endif
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4241 char connect ();
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_connect) || defined (__stub___connect)
4246 choke me
4247 #else
4248 char (*f) () = connect;
4249 #endif
4250 #ifdef __cplusplus
4252 #endif
4255 main ()
4257 return f != connect;
4259 return 0;
4261 _ACEOF
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_func_connect=yes
4285 else
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_cv_func_connect=no
4291 rm -f conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext conftest.$ac_ext
4294 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4295 echo "${ECHO_T}$ac_cv_func_connect" >&6
4297 if test $ac_cv_func_connect = no; then
4298 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4299 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4300 if test "${ac_cv_lib_socket_connect+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 ac_check_lib_save_LIBS=$LIBS
4304 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 #ifdef __cplusplus
4314 extern "C"
4315 #endif
4316 /* We use char because int might match the return type of a gcc2
4317 builtin and then its argument prototype would still apply. */
4318 char connect ();
4320 main ()
4322 connect ();
4324 return 0;
4326 _ACEOF
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest$ac_exeext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_lib_socket_connect=yes
4350 else
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 ac_cv_lib_socket_connect=no
4356 rm -f conftest.err conftest.$ac_objext \
4357 conftest$ac_exeext conftest.$ac_ext
4358 LIBS=$ac_check_lib_save_LIBS
4360 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4361 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4362 if test $ac_cv_lib_socket_connect = yes; then
4363 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4368 # Guillermo Gomez says -lposix is necessary on A/UX.
4369 echo "$as_me:$LINENO: checking for remove" >&5
4370 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4371 if test "${ac_cv_func_remove+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4382 #define remove innocuous_remove
4384 /* System header to define __stub macros and hopefully few prototypes,
4385 which can conflict with char remove (); below.
4386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 <limits.h> exists even on freestanding compilers. */
4389 #ifdef __STDC__
4390 # include <limits.h>
4391 #else
4392 # include <assert.h>
4393 #endif
4395 #undef remove
4397 /* Override any gcc2 internal prototype to avoid an error. */
4398 #ifdef __cplusplus
4399 extern "C"
4401 #endif
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char remove ();
4405 /* The GNU C library defines this for functions which it implements
4406 to always fail with ENOSYS. Some functions are actually named
4407 something starting with __ and the normal name is an alias. */
4408 #if defined (__stub_remove) || defined (__stub___remove)
4409 choke me
4410 #else
4411 char (*f) () = remove;
4412 #endif
4413 #ifdef __cplusplus
4415 #endif
4418 main ()
4420 return f != remove;
4422 return 0;
4424 _ACEOF
4425 rm -f conftest.$ac_objext conftest$ac_exeext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4427 (eval $ac_link) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_func_remove=yes
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 ac_cv_func_remove=no
4454 rm -f conftest.err conftest.$ac_objext \
4455 conftest$ac_exeext conftest.$ac_ext
4457 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4458 echo "${ECHO_T}$ac_cv_func_remove" >&6
4460 if test $ac_cv_func_remove = no; then
4461 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4462 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4463 if test "${ac_cv_lib_posix_remove+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 ac_check_lib_save_LIBS=$LIBS
4467 LIBS="-lposix $LIBS"
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 #ifdef __cplusplus
4477 extern "C"
4478 #endif
4479 /* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
4481 char remove ();
4483 main ()
4485 remove ();
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag"
4500 || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502 (eval $ac_try) 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_lib_posix_remove=yes
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_cv_lib_posix_remove=no
4519 rm -f conftest.err conftest.$ac_objext \
4520 conftest$ac_exeext conftest.$ac_ext
4521 LIBS=$ac_check_lib_save_LIBS
4523 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4524 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4525 if test $ac_cv_lib_posix_remove = yes; then
4526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4531 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4532 echo "$as_me:$LINENO: checking for shmat" >&5
4533 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4534 if test "${ac_cv_func_shmat+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h. */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4545 #define shmat innocuous_shmat
4547 /* System header to define __stub macros and hopefully few prototypes,
4548 which can conflict with char shmat (); below.
4549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550 <limits.h> exists even on freestanding compilers. */
4552 #ifdef __STDC__
4553 # include <limits.h>
4554 #else
4555 # include <assert.h>
4556 #endif
4558 #undef shmat
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 #ifdef __cplusplus
4562 extern "C"
4564 #endif
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4567 char shmat ();
4568 /* The GNU C library defines this for functions which it implements
4569 to always fail with ENOSYS. Some functions are actually named
4570 something starting with __ and the normal name is an alias. */
4571 #if defined (__stub_shmat) || defined (__stub___shmat)
4572 choke me
4573 #else
4574 char (*f) () = shmat;
4575 #endif
4576 #ifdef __cplusplus
4578 #endif
4581 main ()
4583 return f != shmat;
4585 return 0;
4587 _ACEOF
4588 rm -f conftest.$ac_objext conftest$ac_exeext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 (eval $ac_link) 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -z "$ac_c_werror_flag"
4598 || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_func_shmat=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 ac_cv_func_shmat=no
4617 rm -f conftest.err conftest.$ac_objext \
4618 conftest$ac_exeext conftest.$ac_ext
4620 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4621 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4623 if test $ac_cv_func_shmat = no; then
4624 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4625 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4626 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629 ac_check_lib_save_LIBS=$LIBS
4630 LIBS="-lipc $LIBS"
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4638 /* Override any gcc2 internal prototype to avoid an error. */
4639 #ifdef __cplusplus
4640 extern "C"
4641 #endif
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4644 char shmat ();
4646 main ()
4648 shmat ();
4650 return 0;
4652 _ACEOF
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_lib_ipc_shmat=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_lib_ipc_shmat=no
4682 rm -f conftest.err conftest.$ac_objext \
4683 conftest$ac_exeext conftest.$ac_ext
4684 LIBS=$ac_check_lib_save_LIBS
4686 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4687 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4688 if test $ac_cv_lib_ipc_shmat = yes; then
4689 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4695 # Check for libraries that X11R6 Xt/Xaw programs need.
4696 ac_save_LDFLAGS=$LDFLAGS
4697 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4698 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4699 # check for ICE first), but we must link in the order -lSM -lICE or
4700 # we get undefined symbols. So assume we have SM if we have ICE.
4701 # These have to be linked with before -lX11, unlike the other
4702 # libraries we check for below, so use a different variable.
4703 # John Interrante, Karl Berry
4704 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4705 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4706 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 ac_check_lib_save_LIBS=$LIBS
4710 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 #ifdef __cplusplus
4720 extern "C"
4721 #endif
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4724 char IceConnectionNumber ();
4726 main ()
4728 IceConnectionNumber ();
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_lib_ICE_IceConnectionNumber=yes
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 ac_cv_lib_ICE_IceConnectionNumber=no
4762 rm -f conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
4764 LIBS=$ac_check_lib_save_LIBS
4766 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4767 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4768 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4769 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4772 LDFLAGS=$ac_save_LDFLAGS
4777 groff_no_x=$no_x
4778 if test -z "$groff_no_x"; then
4779 OLDCFLAGS=$CFLAGS
4780 OLDLDFLAGS=$LDFLAGS
4781 OLDLIBS=$LIBS
4782 CFLAGS="$CFLAGS $X_CFLAGS"
4783 LDFLAGS="$LDFLAGS $X_LIBS"
4784 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4786 LIBS="$LIBS -lXaw"
4787 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
4788 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
4789 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4798 #include <X11/Intrinsic.h>
4799 #include <X11/Xaw/Simple.h>
4803 main ()
4807 return 0;
4810 _ACEOF
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest$ac_exeext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834 echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841 groff_no_x="yes"
4843 rm -f conftest.err conftest.$ac_objext \
4844 conftest$ac_exeext conftest.$ac_ext
4846 LIBS="$LIBS -lXmu"
4847 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
4848 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4858 #include <X11/Intrinsic.h>
4859 #include <X11/Xmu/Converters.h>
4863 main ()
4867 return 0;
4870 _ACEOF
4871 rm -f conftest.$ac_objext conftest$ac_exeext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4873 (eval $ac_link) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894 echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6
4901 groff_no_x="yes"
4903 rm -f conftest.err conftest.$ac_objext \
4904 conftest$ac_exeext conftest.$ac_ext
4906 CFLAGS=$OLDCFLAGS
4907 LDFLAGS=$OLDLDFLAGS
4908 LIBS=$OLDLIBS
4911 if test "x$groff_no_x" = "xyes"; then
4912 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
4913 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
4914 else
4915 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
4916 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
4917 XLIBDIRS="src/libs/libxutil"
4924 # Check whether --with-appresdir or --without-appresdir was given.
4925 if test "${with_appresdir+set}" = set; then
4926 withval="$with_appresdir"
4929 if test -z "$groff_no_x"; then
4930 # Create an Imakefile, run `xmkmf', then `make'.
4931 rm -f -r conftest.dir
4932 if mkdir conftest.dir; then
4933 cd conftest.dir
4934 # Make sure to not put `make' in the Imakefile rules,
4935 # since we grep it out.
4936 cat >Imakefile <<'EOF'
4938 xlibdirs:
4939 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
4942 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4943 # GNU make sometimes prints "make[1]: Entering...",
4944 # which would confuse us.
4945 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
4947 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
4948 for groff_extension in a so sl; do
4949 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
4950 test -f $groff_x_libdir/libX11.$groff_extension; then
4951 groff_x_usrlibdir=$groff_x_libdir
4952 break
4954 done
4957 cd ..
4958 rm -f -r conftest.dir
4961 # In case the test with `xmkmf' wasn't successful, try a suite of
4962 # standard directories. Check `X11' before `X11Rn' because it is often
4963 # a symlink to the current release.
4964 groff_x_libdirs='
4965 /usr/X11/lib
4966 /usr/X11R6/lib
4967 /usr/X11R5/lib
4968 /usr/X11R4/lib
4970 /usr/lib/X11
4971 /usr/lib/X11R6
4972 /usr/lib/X11R5
4973 /usr/lib/X11R4
4975 /usr/local/X11/lib
4976 /usr/local/X11R6/lib
4977 /usr/local/X11R5/lib
4978 /usr/local/X11R4/lib
4980 /usr/local/lib/X11
4981 /usr/local/lib/X11R6
4982 /usr/local/lib/X11R5
4983 /usr/local/lib/X11R4
4985 /usr/X386/lib
4986 /usr/x386/lib
4987 /usr/XFree86/lib/X11
4989 /usr/lib
4990 /usr/local/lib
4991 /usr/unsupported/lib
4992 /usr/athena/lib
4993 /usr/local/x11r5/lib
4994 /usr/lpp/Xamples/lib
4996 /usr/openwin/lib
4997 /usr/openwin/share/lib'
4999 if test -z "$groff_x_usrlibdir"; then
5000 # We only test whether libX11 exists.
5001 for groff_dir in $groff_x_libdirs; do
5002 for groff_extension in a so sl; do
5003 if test ! -r $groff_dir/libX11.$groff_extension; then
5004 groff_x_usrlibdir=$groff_dir
5005 break 2
5007 done
5008 done
5011 if test "x$with_appresdir" = "x"; then
5012 appresdir=$groff_x_usrlibdir/X11/app-defaults
5013 else
5014 appresdir=$with_appresdir
5018 if test -z "$PSPRINT"; then
5019 for ac_prog in lpr
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_prog_LPR+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 if test -n "$LPR"; then
5029 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_LPR="$ac_prog"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5047 LPR=$ac_cv_prog_LPR
5048 if test -n "$LPR"; then
5049 echo "$as_me:$LINENO: result: $LPR" >&5
5050 echo "${ECHO_T}$LPR" >&6
5051 else
5052 echo "$as_me:$LINENO: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5056 test -n "$LPR" && break
5057 done
5059 for ac_prog in lp
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_prog_LP+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 if test -n "$LP"; then
5069 ac_cv_prog_LP="$LP" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_LP="$ac_prog"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5087 LP=$ac_cv_prog_LP
5088 if test -n "$LP"; then
5089 echo "$as_me:$LINENO: result: $LP" >&5
5090 echo "${ECHO_T}$LP" >&6
5091 else
5092 echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5096 test -n "$LP" && break
5097 done
5099 if test -n "$LPR" && test -n "$LP"; then
5100 # HP-UX provides an lpr command that emulates lpr using lp,
5101 # but it doesn't have lpq; in this case we want to use lp
5102 # rather than lpr.
5103 for ac_prog in lpq
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109 if test "${ac_cv_prog_LPQ+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -n "$LPQ"; then
5113 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_LPQ="$ac_prog"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5131 LPQ=$ac_cv_prog_LPQ
5132 if test -n "$LPQ"; then
5133 echo "$as_me:$LINENO: result: $LPQ" >&5
5134 echo "${ECHO_T}$LPQ" >&6
5135 else
5136 echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5140 test -n "$LPQ" && break
5141 done
5143 test -n "$LPQ" || LPR=
5145 if test -n "$LPR"; then
5146 PSPRINT="$LPR"
5147 elif test -n "$LP"; then
5148 PSPRINT="$LP"
5152 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5153 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5154 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5155 echo "${ECHO_T}$PSPRINT" >&6
5157 # Figure out DVIPRINT from PSPRINT.
5158 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5159 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5160 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5161 if test "x$PSPRINT" = "xlpr"; then
5162 DVIPRINT="lpr -d"
5163 else
5164 DVIPRINT="$PSPRINT"
5168 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5169 echo "${ECHO_T}$DVIPRINT" >&6
5170 # Extract the first word of "perl", so it can be a program name with args.
5171 set dummy perl; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_path_PERLPATH+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 case $PERLPATH in
5178 [\\/]* | ?:[\\/]*)
5179 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5196 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5198 esac
5200 PERLPATH=$ac_cv_path_PERLPATH
5202 if test -n "$PERLPATH"; then
5203 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5204 echo "${ECHO_T}$PERLPATH" >&6
5205 else
5206 echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5210 for ac_prog in byacc 'bison -y'
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216 if test "${ac_cv_prog_YACC+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 if test -n "$YACC"; then
5220 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_YACC="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5238 YACC=$ac_cv_prog_YACC
5239 if test -n "$YACC"; then
5240 echo "$as_me:$LINENO: result: $YACC" >&5
5241 echo "${ECHO_T}$YACC" >&6
5242 else
5243 echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5247 test -n "$YACC" && break
5248 done
5249 test -n "$YACC" || YACC="yacc"
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5254 echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5256 if test "${ac_cv_prog_RANLIB+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 if test -n "$RANLIB"; then
5260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5278 RANLIB=$ac_cv_prog_RANLIB
5279 if test -n "$RANLIB"; then
5280 echo "$as_me:$LINENO: result: $RANLIB" >&5
5281 echo "${ECHO_T}$RANLIB" >&6
5282 else
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5288 if test -z "$ac_cv_prog_RANLIB"; then
5289 ac_ct_RANLIB=$RANLIB
5290 # Extract the first word of "ranlib", so it can be a program name with args.
5291 set dummy ranlib; ac_word=$2
5292 echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 if test -n "$ac_ct_RANLIB"; then
5298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_ac_ct_RANLIB="ranlib"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5311 done
5312 done
5316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5317 if test -n "$ac_ct_RANLIB"; then
5318 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5319 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5320 else
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5325 if test "x$ac_ct_RANLIB" = x; then
5326 RANLIB=":"
5327 else
5328 if test "$build" != "$host"; then
5329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5330 whose name does not start with the host triplet. If you think this
5331 configuration is useful to you, please write to autoconf@gnu.org." >&5
5332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5333 whose name does not start with the host triplet. If you think this
5334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5336 RANLIB=$ac_ct_RANLIB
5338 else
5339 RANLIB="$ac_cv_prog_RANLIB"
5342 ac_aux_dir=
5343 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5344 if test -f $ac_dir/install-sh; then
5345 ac_aux_dir=$ac_dir
5346 ac_install_sh="$ac_aux_dir/install-sh -c"
5347 break
5348 elif test -f $ac_dir/install.sh; then
5349 ac_aux_dir=$ac_dir
5350 ac_install_sh="$ac_aux_dir/install.sh -c"
5351 break
5352 elif test -f $ac_dir/shtool; then
5353 ac_aux_dir=$ac_dir
5354 ac_install_sh="$ac_aux_dir/shtool install -c"
5355 break
5357 done
5358 if test -z "$ac_aux_dir"; then
5359 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5360 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5361 { (exit 1); exit 1; }; }
5363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5365 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5368 ac_dir=`cd $ac_aux_dir; pwd`
5369 ac_install_sh="$ac_dir/install-sh -c"
5370 for ac_prog in install-info
5372 # Extract the first word of "$ac_prog", so it can be a program name with args.
5373 set dummy $ac_prog; ac_word=$2
5374 echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5376 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379 if test -n "$INSTALL_INFO"; then
5380 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_INSTALL_INFO="$ac_prog"
5390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5393 done
5394 done
5398 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5399 if test -n "$INSTALL_INFO"; then
5400 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5401 echo "${ECHO_T}$INSTALL_INFO" >&6
5402 else
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5407 test -n "$INSTALL_INFO" && break
5408 done
5409 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5411 # Find a good install program. We prefer a C program (faster),
5412 # so one script is as good as another. But avoid the broken or
5413 # incompatible versions:
5414 # SysV /etc/install, /usr/sbin/install
5415 # SunOS /usr/etc/install
5416 # IRIX /sbin/install
5417 # AIX /bin/install
5418 # AmigaOS /C/install, which installs bootblocks on floppy discs
5419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5422 # OS/2's system install, which has a completely different semantic
5423 # ./install, which can be erroneously created by make from ./install.sh.
5424 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5426 if test -z "$INSTALL"; then
5427 if test "${ac_cv_path_install+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 # Account for people who put trailing slashes in PATH elements.
5436 case $as_dir/ in
5437 ./ | .// | /cC/* | \
5438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5439 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5440 /usr/ucb/* ) ;;
5442 # OSF1 and SCO ODT 3.0 have their own names for install.
5443 # Don't use installbsd from OSF since it installs stuff as root
5444 # by default.
5445 for ac_prog in ginstall scoinst install; do
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5448 if test $ac_prog = install &&
5449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5450 # AIX install. It has an incompatible calling convention.
5452 elif test $ac_prog = install &&
5453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5454 # program-specific install script used by HP pwplus--don't use.
5456 else
5457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5458 break 3
5461 done
5462 done
5464 esac
5465 done
5469 if test "${ac_cv_path_install+set}" = set; then
5470 INSTALL=$ac_cv_path_install
5471 else
5472 # As a last resort, use the slow shell script. We don't cache a
5473 # path for INSTALL within a source directory, because that will
5474 # break other packages using the cache if that directory is
5475 # removed, or if the path is relative.
5476 INSTALL=$ac_install_sh
5479 echo "$as_me:$LINENO: result: $INSTALL" >&5
5480 echo "${ECHO_T}$INSTALL" >&6
5482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5483 # It thinks the first close brace ends the variable substitution.
5484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5490 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5491 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5492 LN_S=$as_ln_s
5493 if test "$LN_S" = "ln -s"; then
5494 echo "$as_me:$LINENO: result: yes" >&5
5495 echo "${ECHO_T}yes" >&6
5496 else
5497 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5498 echo "${ECHO_T}no, using $LN_S" >&6
5502 # use a dummy substitution if no csh hack is necessary to avoid errors
5503 # with non-GNU sed programs
5504 echo "$as_me:$LINENO: checking for csh hash hack" >&5
5505 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5507 cat <<EOF >conftest.sh
5508 #!/bin/sh
5509 true || exit 0
5510 export PATH || exit 0
5511 exit 1
5514 chmod +x conftest.sh
5515 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6
5518 SH_SCRIPT_SED_CMD='1s/.*/:/'
5519 else
5520 echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6
5522 SH_SCRIPT_SED_CMD='1s/a/a/'
5524 rm -f conftest.sh
5527 # checks for headers
5528 echo "$as_me:$LINENO: checking for grep that handles long lines" >&5
5529 echo $ECHO_N "checking for grep that handles long lines... $ECHO_C" >&6
5530 if test "${oc_cv_path_GREP+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 # Extract the first word of "grep ggrep" to use in msg output
5534 if test -z "$GREP"; then
5535 set dummy grep ggrep; ac_prog_name=$2
5536 if test "${ac_cv_path_GREP+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 # Create a temporary directory, and hook for its removal unless debugging.
5540 $debug ||
5542 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5543 trap '{ (exit 1); exit 1; }' 1 2 13 15
5546 # Create a (secure) tmp directory for tmp files.
5547 : ${TMPDIR=/tmp}
5549 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5550 test -n "$tmp" && test -d "$tmp"
5551 } ||
5553 tmp=$TMPDIR/GREP$$-$RANDOM
5554 (umask 077 && mkdir $tmp)
5555 } ||
5557 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5558 { (exit 1); exit 1; }
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_prog in grep ggrep; do
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5569 test -f "$ac_path_GREP" || continue
5570 if $as_executable_p "$ac_path_GREP"; then
5571 # Check for GNU ac_path_GREP and select it if it is found.
5572 # Check for GNU $ac_path_GREP
5573 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5574 ac_cv_path_GREP="$ac_path_GREP"
5575 break 2
5580 ac_count=0
5581 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5582 while :
5584 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5585 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5586 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5587 echo 'GREP' >> "$tmp/conftest.nl"
5588 "$ac_path_GREP" 'GREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" || break
5589 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5590 ac_count=`expr $ac_count + 1`
5591 if test $ac_count -gt ${ac_max-0}; then
5592 # Best one so far, save it but keep looking for a better one
5593 ac_cv_path_GREP="$ac_path_GREP"
5594 ac_max=$ac_count
5596 # 10*(2^10) chars as input seems more than enough
5597 test $ac_count -gt 10 && break
5598 done
5601 done
5602 done
5603 done
5605 rm -rf "$tmp"
5609 GREP="$ac_cv_path_GREP"
5610 if test -z "$GREP"; then
5611 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5612 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5613 { (exit 1); exit 1; }; }
5620 echo "$as_me:$LINENO: result: $oc_cv_path_GREP" >&5
5621 echo "${ECHO_T}$oc_cv_path_GREP" >&6
5622 GREP="$ac_cv_path_GREP"
5625 echo "$as_me:$LINENO: checking for egrep" >&5
5626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5627 if test "${ac_cv_path_EGREP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
5631 then ac_cv_path_EGREP="$GREP -E"
5632 else
5633 # Extract the first word of "egrep" to use in msg output
5634 if test -z "$EGREP"; then
5635 set dummy egrep; ac_prog_name=$2
5636 if test "${ac_cv_path_EGREP+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 # Create a temporary directory, and hook for its removal unless debugging.
5640 $debug ||
5642 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5643 trap '{ (exit 1); exit 1; }' 1 2 13 15
5646 # Create a (secure) tmp directory for tmp files.
5647 : ${TMPDIR=/tmp}
5649 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5650 test -n "$tmp" && test -d "$tmp"
5651 } ||
5653 tmp=$TMPDIR/EGREP$$-$RANDOM
5654 (umask 077 && mkdir $tmp)
5655 } ||
5657 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5658 { (exit 1); exit 1; }
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_prog in egrep; do
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5669 test -f "$ac_path_EGREP" || continue
5670 if $as_executable_p "$ac_path_EGREP"; then
5671 # Check for GNU ac_path_EGREP and select it if it is found.
5672 # Check for GNU $ac_path_EGREP
5673 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5674 ac_cv_path_EGREP="$ac_path_EGREP"
5675 break 2
5680 ac_count=0
5681 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5682 while :
5684 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5685 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5686 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5687 echo 'EGREP' >> "$tmp/conftest.nl"
5688 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" || break
5689 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5690 ac_count=`expr $ac_count + 1`
5691 if test $ac_count -gt ${ac_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_EGREP="$ac_path_EGREP"
5694 ac_max=$ac_count
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5698 done
5701 done
5702 done
5703 done
5705 rm -rf "$tmp"
5709 EGREP="$ac_cv_path_EGREP"
5710 if test -z "$EGREP"; then
5711 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5712 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5713 { (exit 1); exit 1; }; }
5721 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5722 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5723 EGREP="$ac_cv_path_EGREP"
5726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5728 if test "${ac_cv_header_stdc+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <stdlib.h>
5738 #include <stdarg.h>
5739 #include <string.h>
5740 #include <float.h>
5743 main ()
5747 return 0;
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_c_werror_flag"
5760 || test ! -s conftest.err'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_cv_header_stdc=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cv_header_stdc=no
5779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 if test $ac_cv_header_stdc = yes; then
5782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <string.h>
5791 _ACEOF
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 $EGREP "memchr" >/dev/null 2>&1; then
5795 else
5796 ac_cv_header_stdc=no
5798 rm -f conftest*
5802 if test $ac_cv_header_stdc = yes; then
5803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h. */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <stdlib.h>
5812 _ACEOF
5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5814 $EGREP "free" >/dev/null 2>&1; then
5816 else
5817 ac_cv_header_stdc=no
5819 rm -f conftest*
5823 if test $ac_cv_header_stdc = yes; then
5824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5825 if test "$cross_compiling" = yes; then
5827 else
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #include <ctype.h>
5835 #if ((' ' & 0x0FF) == 0x020)
5836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5838 #else
5839 # define ISLOWER(c) \
5840 (('a' <= (c) && (c) <= 'i') \
5841 || ('j' <= (c) && (c) <= 'r') \
5842 || ('s' <= (c) && (c) <= 'z'))
5843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5844 #endif
5846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848 main ()
5850 int i;
5851 for (i = 0; i < 256; i++)
5852 if (XOR (islower (i), ISLOWER (i))
5853 || toupper (i) != TOUPPER (i))
5854 exit(2);
5855 exit (0);
5857 _ACEOF
5858 rm -f conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5870 else
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ( exit $ac_status )
5876 ac_cv_header_stdc=no
5878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5882 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5883 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5884 if test $ac_cv_header_stdc = yes; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define STDC_HEADERS 1
5888 _ACEOF
5892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5903 inttypes.h stdint.h unistd.h
5905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5919 #include <$ac_header>
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923 (eval $ac_compile) 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_c_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 eval "$as_ac_Header=yes"
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 eval "$as_ac_Header=no"
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5955 cat >>confdefs.h <<_ACEOF
5956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5961 done
5975 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
5976 string.h strings.h math.h sys/time.h direct.h process.h
5978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5987 else
5988 # Is the header compilable?
5989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998 #include <$ac_header>
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_header_compiler=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_header_compiler=no
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6031 echo "${ECHO_T}$ac_header_compiler" >&6
6033 # Is the header present?
6034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <$ac_header>
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6055 else
6056 ac_cpp_err=
6058 else
6059 ac_cpp_err=yes
6061 if test -z "$ac_cpp_err"; then
6062 ac_header_preproc=yes
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_header_preproc=no
6069 rm -f conftest.err conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6
6073 # So? What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6075 yes:no: )
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6080 ac_header_preproc=yes
6082 no:yes:* )
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6096 cat <<\_ASBOX
6097 ## ------------------------------------------ ##
6098 ## Report this to the AC_PACKAGE_NAME lists. ##
6099 ## ------------------------------------------ ##
6100 _ASBOX
6102 sed "s/^/$as_me: WARNING: /" >&2
6104 esac
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 eval "$as_ac_Header=\$ac_header_preproc"
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6123 done
6125 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6126 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6127 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6128 then
6129 echo "$as_me:$LINENO: result: yes" >&5
6130 echo "${ECHO_T}yes" >&6
6132 cat >>confdefs.h <<\_ACEOF
6133 #define _SYSV3 1
6134 _ACEOF
6136 else
6137 echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6140 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6141 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6142 ac_ext=cc
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6148 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6157 #include <stdio.h>
6158 extern "C" { void fileno(int); }
6162 main ()
6166 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_cxx_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 echo "$as_me:$LINENO: result: yes" >&5
6193 echo "${ECHO_T}yes" >&6
6195 cat >>confdefs.h <<\_ACEOF
6196 #define _POSIX_SOURCE 1
6197 _ACEOF
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_ext=c
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214 # checks for header stuff
6215 ac_ext=cc
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221 echo "$as_me:$LINENO: checking for return type of srand" >&5
6222 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6223 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6232 #include <stdlib.h>
6233 extern "C" { void srand(unsigned int); }
6237 main ()
6241 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_cxx_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 echo "$as_me:$LINENO: result: void" >&5
6268 echo "${ECHO_T}void" >&6
6270 cat >>confdefs.h <<\_ACEOF
6271 #define RET_TYPE_SRAND_IS_VOID 1
6272 _ACEOF
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 echo "$as_me:$LINENO: result: int" >&5
6279 echo "${ECHO_T}int" >&6
6281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_ext=c
6283 ac_cpp='$CPP $CPPFLAGS'
6284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6288 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6289 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6290 ac_ext=cc
6291 ac_cpp='$CXXCPP $CPPFLAGS'
6292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6296 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6308 #include <stdio.h>
6309 #ifdef HAVE_STRING_H
6310 #include <string.h>
6311 #endif
6312 #ifdef HAVE_STRINGS_H
6313 #include <strings.h>
6314 #endif
6315 #ifdef HAVE_STDLIB_H
6316 #include <stdlib.h>
6317 #endif
6318 #ifdef HAVE_SYS_TIME_H
6319 #include <sys/time.h>
6320 #endif
6321 #ifdef HAVE_UNISTD_H
6322 #include <unistd.h>
6323 #endif
6324 #ifdef HAVE_MATH_H
6325 #include <math.h>
6326 #endif
6330 main ()
6334 #ifndef gettimeofday
6335 char *p = (char *) gettimeofday;
6336 #endif
6340 return 0;
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_cxx_werror_flag"
6354 || test ! -s conftest.err'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 groff_cv_decl_needed_gettimeofday=no
6367 else
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 groff_cv_decl_needed_gettimeofday=yes
6373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6377 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6378 if test $groff_cv_decl_needed_gettimeofday = yes; then
6380 cat >>confdefs.h <<\_ACEOF
6381 #define NEED_DECLARATION_GETTIMEOFDAY 1
6382 _ACEOF
6385 ac_ext=c
6386 ac_cpp='$CPP $CPPFLAGS'
6387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6392 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6393 ac_ext=cc
6394 ac_cpp='$CXXCPP $CPPFLAGS'
6395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6399 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6411 #include <stdio.h>
6412 #ifdef HAVE_STRING_H
6413 #include <string.h>
6414 #endif
6415 #ifdef HAVE_STRINGS_H
6416 #include <strings.h>
6417 #endif
6418 #ifdef HAVE_STDLIB_H
6419 #include <stdlib.h>
6420 #endif
6421 #ifdef HAVE_SYS_TIME_H
6422 #include <sys/time.h>
6423 #endif
6424 #ifdef HAVE_UNISTD_H
6425 #include <unistd.h>
6426 #endif
6427 #ifdef HAVE_MATH_H
6428 #include <math.h>
6429 #endif
6433 main ()
6437 #ifndef hypot
6438 char *p = (char *) hypot;
6439 #endif
6443 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_cxx_werror_flag"
6457 || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 groff_cv_decl_needed_hypot=no
6470 else
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 groff_cv_decl_needed_hypot=yes
6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6480 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6481 if test $groff_cv_decl_needed_hypot = yes; then
6483 cat >>confdefs.h <<\_ACEOF
6484 #define NEED_DECLARATION_HYPOT 1
6485 _ACEOF
6488 ac_ext=c
6489 ac_cpp='$CPP $CPPFLAGS'
6490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6494 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6495 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6496 ac_ext=cc
6497 ac_cpp='$CXXCPP $CPPFLAGS'
6498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6502 if test "${groff_cv_decl_needed_popen+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6514 #include <stdio.h>
6515 #ifdef HAVE_STRING_H
6516 #include <string.h>
6517 #endif
6518 #ifdef HAVE_STRINGS_H
6519 #include <strings.h>
6520 #endif
6521 #ifdef HAVE_STDLIB_H
6522 #include <stdlib.h>
6523 #endif
6524 #ifdef HAVE_SYS_TIME_H
6525 #include <sys/time.h>
6526 #endif
6527 #ifdef HAVE_UNISTD_H
6528 #include <unistd.h>
6529 #endif
6530 #ifdef HAVE_MATH_H
6531 #include <math.h>
6532 #endif
6536 main ()
6540 #ifndef popen
6541 char *p = (char *) popen;
6542 #endif
6546 return 0;
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552 (eval $ac_compile) 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -z "$ac_cxx_werror_flag"
6560 || test ! -s conftest.err'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 groff_cv_decl_needed_popen=no
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 groff_cv_decl_needed_popen=yes
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6583 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6584 if test $groff_cv_decl_needed_popen = yes; then
6586 cat >>confdefs.h <<\_ACEOF
6587 #define NEED_DECLARATION_POPEN 1
6588 _ACEOF
6591 ac_ext=c
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6598 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6599 ac_ext=cc
6600 ac_cpp='$CXXCPP $CPPFLAGS'
6601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6605 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6617 #include <stdio.h>
6618 #ifdef HAVE_STRING_H
6619 #include <string.h>
6620 #endif
6621 #ifdef HAVE_STRINGS_H
6622 #include <strings.h>
6623 #endif
6624 #ifdef HAVE_STDLIB_H
6625 #include <stdlib.h>
6626 #endif
6627 #ifdef HAVE_SYS_TIME_H
6628 #include <sys/time.h>
6629 #endif
6630 #ifdef HAVE_UNISTD_H
6631 #include <unistd.h>
6632 #endif
6633 #ifdef HAVE_MATH_H
6634 #include <math.h>
6635 #endif
6639 main ()
6643 #ifndef pclose
6644 char *p = (char *) pclose;
6645 #endif
6649 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>conftest.er1
6656 ac_status=$?
6657 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -f conftest.er1
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_cxx_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest.$ac_objext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 groff_cv_decl_needed_pclose=no
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 groff_cv_decl_needed_pclose=yes
6682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6685 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6686 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6687 if test $groff_cv_decl_needed_pclose = yes; then
6689 cat >>confdefs.h <<\_ACEOF
6690 #define NEED_DECLARATION_PCLOSE 1
6691 _ACEOF
6694 ac_ext=c
6695 ac_cpp='$CPP $CPPFLAGS'
6696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6700 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6701 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6702 ac_ext=cc
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6708 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6720 #include <stdio.h>
6721 #ifdef HAVE_STRING_H
6722 #include <string.h>
6723 #endif
6724 #ifdef HAVE_STRINGS_H
6725 #include <strings.h>
6726 #endif
6727 #ifdef HAVE_STDLIB_H
6728 #include <stdlib.h>
6729 #endif
6730 #ifdef HAVE_SYS_TIME_H
6731 #include <sys/time.h>
6732 #endif
6733 #ifdef HAVE_UNISTD_H
6734 #include <unistd.h>
6735 #endif
6736 #ifdef HAVE_MATH_H
6737 #include <math.h>
6738 #endif
6742 main ()
6746 #ifndef putenv
6747 char *p = (char *) putenv;
6748 #endif
6752 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_cxx_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 groff_cv_decl_needed_putenv=no
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 groff_cv_decl_needed_putenv=yes
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
6789 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
6790 if test $groff_cv_decl_needed_putenv = yes; then
6792 cat >>confdefs.h <<\_ACEOF
6793 #define NEED_DECLARATION_PUTENV 1
6794 _ACEOF
6797 ac_ext=c
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
6804 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
6805 ac_ext=cc
6806 ac_cpp='$CXXCPP $CPPFLAGS'
6807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6811 if test "${groff_cv_decl_needed_rand+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6823 #include <stdio.h>
6824 #ifdef HAVE_STRING_H
6825 #include <string.h>
6826 #endif
6827 #ifdef HAVE_STRINGS_H
6828 #include <strings.h>
6829 #endif
6830 #ifdef HAVE_STDLIB_H
6831 #include <stdlib.h>
6832 #endif
6833 #ifdef HAVE_SYS_TIME_H
6834 #include <sys/time.h>
6835 #endif
6836 #ifdef HAVE_UNISTD_H
6837 #include <unistd.h>
6838 #endif
6839 #ifdef HAVE_MATH_H
6840 #include <math.h>
6841 #endif
6845 main ()
6849 #ifndef rand
6850 char *p = (char *) rand;
6851 #endif
6855 return 0;
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -z "$ac_cxx_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 groff_cv_decl_needed_rand=no
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 groff_cv_decl_needed_rand=yes
6888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6891 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
6892 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
6893 if test $groff_cv_decl_needed_rand = yes; then
6895 cat >>confdefs.h <<\_ACEOF
6896 #define NEED_DECLARATION_RAND 1
6897 _ACEOF
6900 ac_ext=c
6901 ac_cpp='$CPP $CPPFLAGS'
6902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
6907 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
6908 ac_ext=cc
6909 ac_cpp='$CXXCPP $CPPFLAGS'
6910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6914 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6926 #include <stdio.h>
6927 #ifdef HAVE_STRING_H
6928 #include <string.h>
6929 #endif
6930 #ifdef HAVE_STRINGS_H
6931 #include <strings.h>
6932 #endif
6933 #ifdef HAVE_STDLIB_H
6934 #include <stdlib.h>
6935 #endif
6936 #ifdef HAVE_SYS_TIME_H
6937 #include <sys/time.h>
6938 #endif
6939 #ifdef HAVE_UNISTD_H
6940 #include <unistd.h>
6941 #endif
6942 #ifdef HAVE_MATH_H
6943 #include <math.h>
6944 #endif
6948 main ()
6952 #ifndef snprintf
6953 char *p = (char *) snprintf;
6954 #endif
6958 return 0;
6961 _ACEOF
6962 rm -f conftest.$ac_objext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964 (eval $ac_compile) 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -z "$ac_cxx_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest.$ac_objext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 groff_cv_decl_needed_snprintf=no
6985 else
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 groff_cv_decl_needed_snprintf=yes
6991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
6995 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
6996 if test $groff_cv_decl_needed_snprintf = yes; then
6998 cat >>confdefs.h <<\_ACEOF
6999 #define NEED_DECLARATION_SNPRINTF 1
7000 _ACEOF
7003 ac_ext=c
7004 ac_cpp='$CPP $CPPFLAGS'
7005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7010 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7011 ac_ext=cc
7012 ac_cpp='$CXXCPP $CPPFLAGS'
7013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7017 if test "${groff_cv_decl_needed_srand+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7029 #include <stdio.h>
7030 #ifdef HAVE_STRING_H
7031 #include <string.h>
7032 #endif
7033 #ifdef HAVE_STRINGS_H
7034 #include <strings.h>
7035 #endif
7036 #ifdef HAVE_STDLIB_H
7037 #include <stdlib.h>
7038 #endif
7039 #ifdef HAVE_SYS_TIME_H
7040 #include <sys/time.h>
7041 #endif
7042 #ifdef HAVE_UNISTD_H
7043 #include <unistd.h>
7044 #endif
7045 #ifdef HAVE_MATH_H
7046 #include <math.h>
7047 #endif
7051 main ()
7055 #ifndef srand
7056 char *p = (char *) srand;
7057 #endif
7061 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_cxx_werror_flag"
7075 || test ! -s conftest.err'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 groff_cv_decl_needed_srand=no
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 groff_cv_decl_needed_srand=yes
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7098 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7099 if test $groff_cv_decl_needed_srand = yes; then
7101 cat >>confdefs.h <<\_ACEOF
7102 #define NEED_DECLARATION_SRAND 1
7103 _ACEOF
7106 ac_ext=c
7107 ac_cpp='$CPP $CPPFLAGS'
7108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7113 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7114 ac_ext=cc
7115 ac_cpp='$CXXCPP $CPPFLAGS'
7116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7120 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7132 #include <stdio.h>
7133 #ifdef HAVE_STRING_H
7134 #include <string.h>
7135 #endif
7136 #ifdef HAVE_STRINGS_H
7137 #include <strings.h>
7138 #endif
7139 #ifdef HAVE_STDLIB_H
7140 #include <stdlib.h>
7141 #endif
7142 #ifdef HAVE_SYS_TIME_H
7143 #include <sys/time.h>
7144 #endif
7145 #ifdef HAVE_UNISTD_H
7146 #include <unistd.h>
7147 #endif
7148 #ifdef HAVE_MATH_H
7149 #include <math.h>
7150 #endif
7154 main ()
7158 #ifndef strcasecmp
7159 char *p = (char *) strcasecmp;
7160 #endif
7164 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7170 (eval $ac_compile) 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_cxx_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest.$ac_objext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 groff_cv_decl_needed_strcasecmp=no
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 groff_cv_decl_needed_strcasecmp=yes
7197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7201 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7202 if test $groff_cv_decl_needed_strcasecmp = yes; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define NEED_DECLARATION_STRCASECMP 1
7206 _ACEOF
7209 ac_ext=c
7210 ac_cpp='$CPP $CPPFLAGS'
7211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7216 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7217 ac_ext=cc
7218 ac_cpp='$CXXCPP $CPPFLAGS'
7219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7223 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7235 #include <stdio.h>
7236 #ifdef HAVE_STRING_H
7237 #include <string.h>
7238 #endif
7239 #ifdef HAVE_STRINGS_H
7240 #include <strings.h>
7241 #endif
7242 #ifdef HAVE_STDLIB_H
7243 #include <stdlib.h>
7244 #endif
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7247 #endif
7248 #ifdef HAVE_UNISTD_H
7249 #include <unistd.h>
7250 #endif
7251 #ifdef HAVE_MATH_H
7252 #include <math.h>
7253 #endif
7257 main ()
7261 #ifndef strncasecmp
7262 char *p = (char *) strncasecmp;
7263 #endif
7267 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_cxx_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest.$ac_objext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 groff_cv_decl_needed_strncasecmp=no
7294 else
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 groff_cv_decl_needed_strncasecmp=yes
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7304 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7305 if test $groff_cv_decl_needed_strncasecmp = yes; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define NEED_DECLARATION_STRNCASECMP 1
7309 _ACEOF
7312 ac_ext=c
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7319 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7320 ac_ext=cc
7321 ac_cpp='$CXXCPP $CPPFLAGS'
7322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7326 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7338 #include <stdio.h>
7339 #ifdef HAVE_STRING_H
7340 #include <string.h>
7341 #endif
7342 #ifdef HAVE_STRINGS_H
7343 #include <strings.h>
7344 #endif
7345 #ifdef HAVE_STDLIB_H
7346 #include <stdlib.h>
7347 #endif
7348 #ifdef HAVE_SYS_TIME_H
7349 #include <sys/time.h>
7350 #endif
7351 #ifdef HAVE_UNISTD_H
7352 #include <unistd.h>
7353 #endif
7354 #ifdef HAVE_MATH_H
7355 #include <math.h>
7356 #endif
7360 main ()
7364 #ifndef vfprintf
7365 char *p = (char *) vfprintf;
7366 #endif
7370 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_cxx_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7396 groff_cv_decl_needed_vfprintf=no
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 groff_cv_decl_needed_vfprintf=yes
7403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7407 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7408 if test $groff_cv_decl_needed_vfprintf = yes; then
7410 cat >>confdefs.h <<\_ACEOF
7411 #define NEED_DECLARATION_VFPRINTF 1
7412 _ACEOF
7415 ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7422 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7423 ac_ext=cc
7424 ac_cpp='$CXXCPP $CPPFLAGS'
7425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7429 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7441 #include <stdio.h>
7442 #ifdef HAVE_STRING_H
7443 #include <string.h>
7444 #endif
7445 #ifdef HAVE_STRINGS_H
7446 #include <strings.h>
7447 #endif
7448 #ifdef HAVE_STDLIB_H
7449 #include <stdlib.h>
7450 #endif
7451 #ifdef HAVE_SYS_TIME_H
7452 #include <sys/time.h>
7453 #endif
7454 #ifdef HAVE_UNISTD_H
7455 #include <unistd.h>
7456 #endif
7457 #ifdef HAVE_MATH_H
7458 #include <math.h>
7459 #endif
7463 main ()
7467 #ifndef vsnprintf
7468 char *p = (char *) vsnprintf;
7469 #endif
7473 return 0;
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7479 (eval $ac_compile) 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -z "$ac_cxx_werror_flag"
7487 || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try='test -s conftest.$ac_objext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 groff_cv_decl_needed_vsnprintf=no
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 groff_cv_decl_needed_vsnprintf=yes
7506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7510 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7511 if test $groff_cv_decl_needed_vsnprintf = yes; then
7513 cat >>confdefs.h <<\_ACEOF
7514 #define NEED_DECLARATION_VSNPRINTF 1
7515 _ACEOF
7518 ac_ext=c
7519 ac_cpp='$CPP $CPPFLAGS'
7520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 ac_ext=cc
7525 ac_cpp='$CXXCPP $CPPFLAGS'
7526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7530 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7531 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7541 #include <errno.h>
7542 #include <stdio.h>
7543 #include <stdlib.h>
7547 main ()
7551 int k;
7552 k = sys_nerr;
7556 return 0;
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7562 (eval $ac_compile) 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -z "$ac_cxx_werror_flag"
7570 || test ! -s conftest.err'
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest.$ac_objext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 echo "$as_me:$LINENO: result: yes" >&5
7583 echo "${ECHO_T}yes" >&6
7585 cat >>confdefs.h <<\_ACEOF
7586 #define HAVE_SYS_NERR 1
7587 _ACEOF
7589 else
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 echo "$as_me:$LINENO: result: no" >&5
7594 echo "${ECHO_T}no" >&6
7596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597 ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7604 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7605 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7614 #include <errno.h>
7615 #include <stdio.h>
7616 #include <stdlib.h>
7620 main ()
7624 int k;
7625 k = (int)sys_errlist[0];
7629 return 0;
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7658 cat >>confdefs.h <<\_ACEOF
7659 #define HAVE_SYS_ERRLIST 1
7660 _ACEOF
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.$ac_ext >&5
7666 echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6
7669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7670 ac_ext=cc
7671 ac_cpp='$CXXCPP $CPPFLAGS'
7672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7676 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7677 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7678 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7687 #include <osfcn.h>
7691 main ()
7695 read(0, 0, 0);
7696 open(0, 0);
7700 return 0;
7703 _ACEOF
7704 rm -f conftest.$ac_objext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7706 (eval $ac_compile) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_cxx_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 echo "$as_me:$LINENO: result: yes" >&5
7727 echo "${ECHO_T}yes" >&6
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_CC_OSFCN_H 1
7731 _ACEOF
7733 else
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6
7740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7741 ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747 ac_ext=cc
7748 ac_cpp='$CXXCPP $CPPFLAGS'
7749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7753 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7754 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7764 #include <limits.h>
7768 main ()
7772 int x = INT_MIN;
7773 int y = INT_MAX;
7774 int z = UCHAR_MAX;
7778 return 0;
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>conftest.er1
7785 ac_status=$?
7786 grep -v '^ *+' conftest.er1 >conftest.err
7787 rm -f conftest.er1
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -z "$ac_cxx_werror_flag"
7792 || test ! -s conftest.err'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest.$ac_objext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 (eval $ac_try) 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 echo "$as_me:$LINENO: result: yes" >&5
7805 echo "${ECHO_T}yes" >&6
7807 cat >>confdefs.h <<\_ACEOF
7808 #define HAVE_CC_LIMITS_H 1
7809 _ACEOF
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6
7818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7819 ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825 ac_ext=cc
7826 ac_cpp='$CXXCPP $CPPFLAGS'
7827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7831 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
7832 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7842 #include <sys/types.h>
7843 #include <inttypes.h>
7847 main ()
7851 uintmax_t i = (uintmax_t)-1;
7855 return 0;
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861 (eval $ac_compile) 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_cxx_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest.$ac_objext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 groff_cv_header_inttypes_h=yes
7883 cat >>confdefs.h <<\_ACEOF
7884 #define HAVE_CC_INTTYPES_H 1
7885 _ACEOF
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 groff_cv_header_inttypes_h=no
7893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
7895 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
7896 ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903 # checks for typedefs
7904 ac_ext=cc
7905 ac_cpp='$CXXCPP $CPPFLAGS'
7906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7910 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7911 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7912 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7921 unsigned long long ull = 1;
7922 int i = 63;
7923 unsigned long long ullmax = (unsigned long long)-1;
7927 main ()
7931 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7935 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_cxx_werror_flag"
7949 || test ! -s conftest.err'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; } &&
7955 { ac_try='test -s conftest$ac_exeext'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 groff_cv_type_unsigned_long_long=yes
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7966 groff_cv_type_unsigned_long_long=no
7968 rm -f conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
7971 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
7972 ac_ext=c
7973 ac_cpp='$CPP $CPPFLAGS'
7974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979 if test $groff_cv_header_inttypes_h = no; then
7981 test $groff_cv_type_unsigned_long_long = yes \
7982 && ac_type='unsigned long long' \
7983 || ac_type='unsigned long'
7985 cat >>confdefs.h <<_ACEOF
7986 #define uintmax_t $ac_type
7987 _ACEOF
7990 ac_ext=cc
7991 ac_cpp='$CXXCPP $CPPFLAGS'
7992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7996 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
7997 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h. */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8007 #include <time.h>
8011 main ()
8015 time_t t = time(0);
8016 struct tm *p = localtime(&t);
8020 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026 (eval $ac_compile) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_cxx_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest.$ac_objext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6
8055 cat >>confdefs.h <<\_ACEOF
8056 #define LONG_FOR_TIME_T 1
8057 _ACEOF
8060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061 ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8067 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8068 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8069 if test "${ac_cv_type_signal+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 #include <sys/types.h>
8079 #include <signal.h>
8080 #ifdef signal
8081 # undef signal
8082 #endif
8083 #ifdef __cplusplus
8084 extern "C" void (*signal (int, void (*)(int)))(int);
8085 #else
8086 void (*signal ()) ();
8087 #endif
8090 main ()
8092 int i;
8094 return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_type_signal=void
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_cv_type_signal=int
8126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8129 echo "${ECHO_T}$ac_cv_type_signal" >&6
8131 cat >>confdefs.h <<_ACEOF
8132 #define RETSIGTYPE $ac_cv_type_signal
8133 _ACEOF
8136 echo "$as_me:$LINENO: checking struct exception" >&5
8137 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8147 #include <math.h>
8151 main ()
8155 struct exception e;
8159 return 0;
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -z "$ac_c_werror_flag"
8173 || test ! -s conftest.err'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 echo "$as_me:$LINENO: result: yes" >&5
8186 echo "${ECHO_T}yes" >&6
8188 cat >>confdefs.h <<\_ACEOF
8189 #define HAVE_STRUCT_EXCEPTION 1
8190 _ACEOF
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8201 # checks for libraries
8202 echo "$as_me:$LINENO: checking for main in -lc" >&5
8203 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8204 if test "${ac_cv_lib_c_main+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207 ac_check_lib_save_LIBS=$LIBS
8208 LIBS="-lc $LIBS"
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8218 main ()
8220 main ();
8222 return 0;
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -z "$ac_c_werror_flag"
8235 || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_lib_c_main=yes
8248 else
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 ac_cv_lib_c_main=no
8254 rm -f conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LIBS=$ac_check_lib_save_LIBS
8258 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8259 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8260 if test $ac_cv_lib_c_main = yes; then
8261 LIBC=-lc
8265 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8266 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8267 if test "${ac_cv_lib_m_sin+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270 ac_check_lib_save_LIBS=$LIBS
8271 LIBS="-lm $LIBS"
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8279 /* Override any gcc2 internal prototype to avoid an error. */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8285 char sin ();
8287 main ()
8289 sin ();
8291 return 0;
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 (eval $ac_try) 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest$ac_exeext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312 (eval $ac_try) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_lib_m_sin=yes
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ac_cv_lib_m_sin=no
8323 rm -f conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 LIBS=$ac_check_lib_save_LIBS
8327 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8328 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8329 if test $ac_cv_lib_m_sin = yes; then
8330 LIBM=-lm
8335 # checks for functions
8338 for ac_header in stdlib.h unistd.h
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8349 else
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #include <$ac_header>
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_header_compiler=yes
8385 else
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 ac_header_compiler=no
8391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393 echo "${ECHO_T}$ac_header_compiler" >&6
8395 # Is the header present?
8396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 #include <$ac_header>
8405 _ACEOF
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8417 else
8418 ac_cpp_err=
8420 else
8421 ac_cpp_err=yes
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_preproc=no
8431 rm -f conftest.err conftest.$ac_ext
8432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6
8435 # So? What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8437 yes:no: )
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc=yes
8444 no:yes:* )
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8458 cat <<\_ASBOX
8459 ## ------------------------------------------ ##
8460 ## Report this to the AC_PACKAGE_NAME lists. ##
8461 ## ------------------------------------------ ##
8462 _ASBOX
8464 sed "s/^/$as_me: WARNING: /" >&2
8466 esac
8467 echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 eval "$as_ac_Header=\$ac_header_preproc"
8474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8485 done
8488 for ac_func in getpagesize
8490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8491 echo "$as_me:$LINENO: checking for $ac_func" >&5
8492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8493 if eval "test \"\${$as_ac_var+set}\" = set"; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8504 #define $ac_func innocuous_$ac_func
8506 /* System header to define __stub macros and hopefully few prototypes,
8507 which can conflict with char $ac_func (); below.
8508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8509 <limits.h> exists even on freestanding compilers. */
8511 #ifdef __STDC__
8512 # include <limits.h>
8513 #else
8514 # include <assert.h>
8515 #endif
8517 #undef $ac_func
8519 /* Override any gcc2 internal prototype to avoid an error. */
8520 #ifdef __cplusplus
8521 extern "C"
8523 #endif
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8526 char $ac_func ();
8527 /* The GNU C library defines this for functions which it implements
8528 to always fail with ENOSYS. Some functions are actually named
8529 something starting with __ and the normal name is an alias. */
8530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8531 choke me
8532 #else
8533 char (*f) () = $ac_func;
8534 #endif
8535 #ifdef __cplusplus
8537 #endif
8540 main ()
8542 return f != $ac_func;
8544 return 0;
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8550 ac_status=$?
8551 grep -v '^ *+' conftest.er1 >conftest.err
8552 rm -f conftest.er1
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 eval "$as_ac_var=yes"
8570 else
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 eval "$as_ac_var=no"
8576 rm -f conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8581 if test `eval echo '${'$as_ac_var'}'` = yes; then
8582 cat >>confdefs.h <<_ACEOF
8583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8584 _ACEOF
8587 done
8589 echo "$as_me:$LINENO: checking for working mmap" >&5
8590 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8591 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594 if test "$cross_compiling" = yes; then
8595 ac_cv_func_mmap_fixed_mapped=no
8596 else
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 $ac_includes_default
8604 /* malloc might have been renamed as rpl_malloc. */
8605 #undef malloc
8607 /* Thanks to Mike Haertel and Jim Avera for this test.
8608 Here is a matrix of mmap possibilities:
8609 mmap private not fixed
8610 mmap private fixed at somewhere currently unmapped
8611 mmap private fixed at somewhere already mapped
8612 mmap shared not fixed
8613 mmap shared fixed at somewhere currently unmapped
8614 mmap shared fixed at somewhere already mapped
8615 For private mappings, we should verify that changes cannot be read()
8616 back from the file, nor mmap's back from the file at a different
8617 address. (There have been systems where private was not correctly
8618 implemented like the infamous i386 svr4.0, and systems where the
8619 VM page cache was not coherent with the file system buffer cache
8620 like early versions of FreeBSD and possibly contemporary NetBSD.)
8621 For shared mappings, we should conversely verify that changes get
8622 propagated back to all the places they're supposed to be.
8624 Grep wants private fixed already mapped.
8625 The main things grep needs to know about mmap are:
8626 * does it exist and is it safe to write into the mmap'd area
8627 * how to use it (BSD variants) */
8629 #include <fcntl.h>
8630 #include <sys/mman.h>
8632 #if !STDC_HEADERS && !HAVE_STDLIB_H
8633 char *malloc ();
8634 #endif
8636 /* This mess was copied from the GNU getpagesize.h. */
8637 #if !HAVE_GETPAGESIZE
8638 /* Assume that all systems that can run configure have sys/param.h. */
8639 # if !HAVE_SYS_PARAM_H
8640 # define HAVE_SYS_PARAM_H 1
8641 # endif
8643 # ifdef _SC_PAGESIZE
8644 # define getpagesize() sysconf(_SC_PAGESIZE)
8645 # else /* no _SC_PAGESIZE */
8646 # if HAVE_SYS_PARAM_H
8647 # include <sys/param.h>
8648 # ifdef EXEC_PAGESIZE
8649 # define getpagesize() EXEC_PAGESIZE
8650 # else /* no EXEC_PAGESIZE */
8651 # ifdef NBPG
8652 # define getpagesize() NBPG * CLSIZE
8653 # ifndef CLSIZE
8654 # define CLSIZE 1
8655 # endif /* no CLSIZE */
8656 # else /* no NBPG */
8657 # ifdef NBPC
8658 # define getpagesize() NBPC
8659 # else /* no NBPC */
8660 # ifdef PAGESIZE
8661 # define getpagesize() PAGESIZE
8662 # endif /* PAGESIZE */
8663 # endif /* no NBPC */
8664 # endif /* no NBPG */
8665 # endif /* no EXEC_PAGESIZE */
8666 # else /* no HAVE_SYS_PARAM_H */
8667 # define getpagesize() 8192 /* punt totally */
8668 # endif /* no HAVE_SYS_PARAM_H */
8669 # endif /* no _SC_PAGESIZE */
8671 #endif /* no HAVE_GETPAGESIZE */
8674 main ()
8676 char *data, *data2, *data3;
8677 int i, pagesize;
8678 int fd;
8680 pagesize = getpagesize ();
8682 /* First, make a file with some known garbage in it. */
8683 data = (char *) malloc (pagesize);
8684 if (!data)
8685 exit (1);
8686 for (i = 0; i < pagesize; ++i)
8687 *(data + i) = rand ();
8688 umask (0);
8689 fd = creat ("conftest.mmap", 0600);
8690 if (fd < 0)
8691 exit (1);
8692 if (write (fd, data, pagesize) != pagesize)
8693 exit (1);
8694 close (fd);
8696 /* Next, try to mmap the file at a fixed address which already has
8697 something else allocated at it. If we can, also make sure that
8698 we see the same garbage. */
8699 fd = open ("conftest.mmap", O_RDWR);
8700 if (fd < 0)
8701 exit (1);
8702 data2 = (char *) malloc (2 * pagesize);
8703 if (!data2)
8704 exit (1);
8705 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8708 exit (1);
8709 for (i = 0; i < pagesize; ++i)
8710 if (*(data + i) != *(data2 + i))
8711 exit (1);
8713 /* Finally, make sure that changes to the mapped area do not
8714 percolate back to the file as seen by read(). (This is a bug on
8715 some variants of i386 svr4.0.) */
8716 for (i = 0; i < pagesize; ++i)
8717 *(data2 + i) = *(data2 + i) + 1;
8718 data3 = (char *) malloc (pagesize);
8719 if (!data3)
8720 exit (1);
8721 if (read (fd, data3, pagesize) != pagesize)
8722 exit (1);
8723 for (i = 0; i < pagesize; ++i)
8724 if (*(data + i) != *(data3 + i))
8725 exit (1);
8726 close (fd);
8727 exit (0);
8729 _ACEOF
8730 rm -f conftest$ac_exeext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8732 (eval $ac_link) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_cv_func_mmap_fixed_mapped=yes
8742 else
8743 echo "$as_me: program exited with status $ac_status" >&5
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ( exit $ac_status )
8748 ac_cv_func_mmap_fixed_mapped=no
8750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8754 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8757 cat >>confdefs.h <<\_ACEOF
8758 #define HAVE_MMAP 1
8759 _ACEOF
8762 rm -f conftest.mmap
8764 saved_libs="$LIBS"
8765 LIBS="$LIBS $LIBC $LIBM"
8774 for ac_func in fmod getcwd putenv snprintf strcasecmp \
8775 strerror strncasecmp strtol
8777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8778 echo "$as_me:$LINENO: checking for $ac_func" >&5
8779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8780 if eval "test \"\${$as_ac_var+set}\" = set"; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8791 #define $ac_func innocuous_$ac_func
8793 /* System header to define __stub macros and hopefully few prototypes,
8794 which can conflict with char $ac_func (); below.
8795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8796 <limits.h> exists even on freestanding compilers. */
8798 #ifdef __STDC__
8799 # include <limits.h>
8800 #else
8801 # include <assert.h>
8802 #endif
8804 #undef $ac_func
8806 /* Override any gcc2 internal prototype to avoid an error. */
8807 #ifdef __cplusplus
8808 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812 builtin and then its argument prototype would still apply. */
8813 char $ac_func ();
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8818 choke me
8819 #else
8820 char (*f) () = $ac_func;
8821 #endif
8822 #ifdef __cplusplus
8824 #endif
8827 main ()
8829 return f != $ac_func;
8831 return 0;
8833 _ACEOF
8834 rm -f conftest.$ac_objext conftest$ac_exeext
8835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try='test -z "$ac_c_werror_flag"
8844 || test ! -s conftest.err'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 eval "$as_ac_var=yes"
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 eval "$as_ac_var=no"
8863 rm -f conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8868 if test `eval echo '${'$as_ac_var'}'` = yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8871 _ACEOF
8873 else
8874 case $LIBOBJS in
8875 "$ac_func.$ac_objext" | \
8876 *" $ac_func.$ac_objext" | \
8877 "$ac_func.$ac_objext "* | \
8878 *" $ac_func.$ac_objext "* ) ;;
8879 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
8880 esac
8883 done
8886 # vsnprintf is in the same source file as snprintf
8888 for ac_func in vsnprintf
8890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8891 echo "$as_me:$LINENO: checking for $ac_func" >&5
8892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_var+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8904 #define $ac_func innocuous_$ac_func
8906 /* System header to define __stub macros and hopefully few prototypes,
8907 which can conflict with char $ac_func (); below.
8908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8909 <limits.h> exists even on freestanding compilers. */
8911 #ifdef __STDC__
8912 # include <limits.h>
8913 #else
8914 # include <assert.h>
8915 #endif
8917 #undef $ac_func
8919 /* Override any gcc2 internal prototype to avoid an error. */
8920 #ifdef __cplusplus
8921 extern "C"
8923 #endif
8924 /* We use char because int might match the return type of a gcc2
8925 builtin and then its argument prototype would still apply. */
8926 char $ac_func ();
8927 /* The GNU C library defines this for functions which it implements
8928 to always fail with ENOSYS. Some functions are actually named
8929 something starting with __ and the normal name is an alias. */
8930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8931 choke me
8932 #else
8933 char (*f) () = $ac_func;
8934 #endif
8935 #ifdef __cplusplus
8937 #endif
8940 main ()
8942 return f != $ac_func;
8944 return 0;
8946 _ACEOF
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 eval "$as_ac_var=yes"
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 eval "$as_ac_var=no"
8976 rm -f conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8981 if test `eval echo '${'$as_ac_var'}'` = yes; then
8982 cat >>confdefs.h <<_ACEOF
8983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8984 _ACEOF
8986 else
8987 case $LIBOBJS in
8988 "snprintf.$ac_objext" | \
8989 *" snprintf.$ac_objext" | \
8990 "snprintf.$ac_objext "* | \
8991 *" snprintf.$ac_objext "* ) ;;
8992 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
8993 esac
8996 done
8998 LIBS="$saved_libs"
9005 for ac_func in gettimeofday isatty kill rename setlocale strsep
9007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9008 echo "$as_me:$LINENO: checking for $ac_func" >&5
9009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9010 if eval "test \"\${$as_ac_var+set}\" = set"; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9021 #define $ac_func innocuous_$ac_func
9023 /* System header to define __stub macros and hopefully few prototypes,
9024 which can conflict with char $ac_func (); below.
9025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9026 <limits.h> exists even on freestanding compilers. */
9028 #ifdef __STDC__
9029 # include <limits.h>
9030 #else
9031 # include <assert.h>
9032 #endif
9034 #undef $ac_func
9036 /* Override any gcc2 internal prototype to avoid an error. */
9037 #ifdef __cplusplus
9038 extern "C"
9040 #endif
9041 /* We use char because int might match the return type of a gcc2
9042 builtin and then its argument prototype would still apply. */
9043 char $ac_func ();
9044 /* The GNU C library defines this for functions which it implements
9045 to always fail with ENOSYS. Some functions are actually named
9046 something starting with __ and the normal name is an alias. */
9047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9048 choke me
9049 #else
9050 char (*f) () = $ac_func;
9051 #endif
9052 #ifdef __cplusplus
9054 #endif
9057 main ()
9059 return f != $ac_func;
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 eval "$as_ac_var=yes"
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 eval "$as_ac_var=no"
9093 rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9098 if test `eval echo '${'$as_ac_var'}'` = yes; then
9099 cat >>confdefs.h <<_ACEOF
9100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9101 _ACEOF
9104 done
9106 echo "$as_me:$LINENO: checking for mkstemp" >&5
9107 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9108 ac_ext=cc
9109 ac_cpp='$CXXCPP $CPPFLAGS'
9110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9115 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9124 #include <stdlib.h>
9125 #include <unistd.h>
9126 int (*f) (char *);
9130 main ()
9134 f = mkstemp;
9138 return 0;
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>conftest.er1
9145 ac_status=$?
9146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_cxx_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6
9167 cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_MKSTEMP 1
9169 _ACEOF
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177 case $LIBOBJS in
9178 "mkstemp.$ac_objext" | \
9179 *" mkstemp.$ac_objext" | \
9180 "mkstemp.$ac_objext "* | \
9181 *" mkstemp.$ac_objext "* ) ;;
9182 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
9183 esac
9186 rm -f conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9188 ac_ext=c
9189 ac_cpp='$CPP $CPPFLAGS'
9190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9194 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9195 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9196 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9207 main ()
9209 #ifndef sys_siglist
9210 char *p = (char *) sys_siglist;
9211 #endif
9214 return 0;
9216 _ACEOF
9217 rm -f conftest.$ac_objext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9219 (eval $ac_compile) 2>conftest.er1
9220 ac_status=$?
9221 grep -v '^ *+' conftest.er1 >conftest.err
9222 rm -f conftest.er1
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -z "$ac_c_werror_flag"
9227 || test ! -s conftest.err'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; } &&
9233 { ac_try='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_have_decl_sys_siglist=yes
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_have_decl_sys_siglist=no
9246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9249 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9250 if test $ac_cv_have_decl_sys_siglist = yes; then
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_DECL_SYS_SIGLIST 1
9254 _ACEOF
9257 else
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DECL_SYS_SIGLIST 0
9260 _ACEOF
9267 # checks for compiler characteristics
9268 ac_ext=cc
9269 ac_cpp='$CXXCPP $CPPFLAGS'
9270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9274 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9275 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9276 cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h. */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h. */
9285 main ()
9289 char *p = new char[5];
9290 delete [] p;
9294 return 0;
9297 _ACEOF
9298 rm -f conftest.$ac_objext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_cxx_werror_flag"
9308 || test ! -s conftest.err'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try='test -s conftest.$ac_objext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 echo "$as_me:$LINENO: result: yes" >&5
9321 echo "${ECHO_T}yes" >&6
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 echo "$as_me:$LINENO: result: no" >&5
9327 echo "${ECHO_T}no" >&6
9329 cat >>confdefs.h <<\_ACEOF
9330 #define ARRAY_DELETE_NEEDS_SIZE 1
9331 _ACEOF
9334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9335 ac_ext=c
9336 ac_cpp='$CPP $CPPFLAGS'
9337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9341 ac_ext=cc
9342 ac_cpp='$CXXCPP $CPPFLAGS'
9343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9347 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9348 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9349 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9358 #define name2(a, b) a/**/b
9362 main ()
9366 int name2(foo, bar);
9370 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_cxx_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 echo "$as_me:$LINENO: result: yes" >&5
9397 echo "${ECHO_T}yes" >&6
9399 cat >>confdefs.h <<\_ACEOF
9400 #define TRADITIONAL_CPP 1
9401 _ACEOF
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 echo "$as_me:$LINENO: result: no" >&5
9408 echo "${ECHO_T}no" >&6
9410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9411 ac_ext=c
9412 ac_cpp='$CPP $CPPFLAGS'
9413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9418 # checks for operating system services
9419 echo "$as_me:$LINENO: checking w_coredump" >&5
9420 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9421 if test "$cross_compiling" = yes; then
9422 echo "$as_me:$LINENO: result: no" >&5
9423 echo "${ECHO_T}no" >&6
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <sys/wait.h>
9439 main ()
9443 main()
9445 #ifdef WCOREFLAG
9446 exit(1);
9447 #else
9448 int i = 0;
9449 ((union wait *)&i)->w_coredump = 1;
9450 exit(i != 0200);
9451 #endif
9456 return 0;
9459 _ACEOF
9460 rm -f conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 echo "$as_me:$LINENO: result: yes" >&5
9472 echo "${ECHO_T}yes" >&6
9474 cat >>confdefs.h <<\_ACEOF
9475 #define WCOREFLAG 0200
9476 _ACEOF
9478 else
9479 echo "$as_me: program exited with status $ac_status" >&5
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 ( exit $ac_status )
9484 echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9490 # other random stuff
9491 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9492 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9493 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
9494 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9495 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9497 echo "$as_me:$LINENO: checking default paper size" >&5
9498 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9499 groff_prefix=$prefix
9500 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
9501 if test -z "$PAGE"; then
9502 descfile=
9503 if test -r $groff_prefix/share/groff/font/devps/DESC; then
9504 descfile=$groff_prefix/share/groff/font/devps/DESC
9505 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
9506 descfile=$groff_prefix/lib/groff/font/devps/DESC
9507 else
9508 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
9509 if test -r $f; then
9510 descfile=$f
9511 break
9513 done
9516 if test -n "$descfile"; then
9517 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
9518 PAGE=A4
9519 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
9520 PAGE=A4
9525 if test -z "$PAGE"; then
9526 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9527 /etc/resolv.conf 2>/dev/null`
9528 if test -z "$dom"; then
9529 dom=`(domainname) 2>/dev/null | tr -d '+'`
9530 if test -z "$dom" \
9531 || test "$dom" = '(none)'; then
9532 dom=`(hostname) 2>/dev/null | grep '\.'`
9535 # If the top-level domain is two letters and it's not `us' or `ca'
9536 # then they probably use A4 paper.
9537 case "$dom" in
9538 *.[Uu][Ss]|*.[Cc][Aa])
9540 *.[A-Za-z][A-Za-z])
9541 PAGE=A4 ;;
9542 esac
9545 test -n "$PAGE" || PAGE=letter
9546 if test "x$PAGE" = "xA4"; then
9548 cat >>confdefs.h <<\_ACEOF
9549 #define PAGEA4 1
9550 _ACEOF
9553 echo "$as_me:$LINENO: result: $PAGE" >&5
9554 echo "${ECHO_T}$PAGE" >&6
9556 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9557 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9558 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
9559 echo "$as_me:$LINENO: result: yes" >&5
9560 echo "${ECHO_T}yes" >&6
9562 else
9563 echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6
9568 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9569 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9570 sys_tmac_prefix=
9571 sys_tmac_file_prefix=
9572 for d in /usr/share/lib/tmac /usr/lib/tmac; do
9573 for t in "" tmac.; do
9574 for m in an s m; do
9575 f=$d/$t$m
9576 if test -z "$sys_tmac_prefix" \
9577 && test -f $f \
9578 && grep '^\.if' $f >/dev/null 2>&1; then
9579 sys_tmac_prefix=$d/$t
9580 sys_tmac_file_prefix=$t
9582 done
9583 done
9584 done
9585 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9586 echo "${ECHO_T}$sys_tmac_prefix" >&6
9589 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9590 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9591 tmac_wrap=
9592 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9593 for f in $sys_tmac_prefix*; do
9594 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9595 case "$suff" in
9599 grep "Copyright.*Free Software Foundation" $f >/dev/null \
9600 || tmac_wrap="$tmac_wrap $suff" ;;
9601 esac
9602 done
9603 elif test -n "$sys_tmac_prefix"; then
9604 files=`echo $sys_tmac_prefix*`
9605 grep "\\.so" $files >conftest.sol
9606 for f in $files; do
9607 case "$f" in
9608 ${sys_tmac_prefix}e)
9610 *.me)
9612 */ms.*)
9615 b=`basename $f`
9616 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
9617 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
9619 else
9620 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9621 case "$suff" in
9622 tmac.*)
9625 tmac_wrap="$tmac_wrap $suff" ;;
9626 esac
9628 esac
9629 done
9630 rm -f conftest.sol
9632 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9633 echo "${ECHO_T}$tmac_wrap" >&6
9635 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9636 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9637 cp ${srcdir}/src/include/nonposix.h conftest.h
9638 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9647 #include <ctype.h>
9648 #include "conftest.h"
9652 main ()
9656 #if PATH_SEP_CHAR == ';'
9657 make an error "Path separator is ';'"
9658 #endif
9662 return 0;
9665 _ACEOF
9666 rm -f conftest.$ac_objext
9667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9668 (eval $ac_compile) 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } &&
9675 { ac_try='test -z "$ac_c_werror_flag"
9676 || test ! -s conftest.err'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest.$ac_objext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 GROFF_PATH_SEPARATOR=":"
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 GROFF_PATH_SEPARATOR=";"
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9696 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9697 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9699 make_html=html
9700 make_install_html=install_html
9702 missing=
9703 # Extract the first word of "pnmcut", so it can be a program name with args.
9704 set dummy pnmcut; ac_word=$2
9705 echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9707 if test "${ac_cv_prog_pnmcut+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 if test -n "$pnmcut"; then
9711 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9720 ac_cv_prog_pnmcut="found"
9721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9724 done
9725 done
9727 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
9730 pnmcut=$ac_cv_prog_pnmcut
9731 if test -n "$pnmcut"; then
9732 echo "$as_me:$LINENO: result: $pnmcut" >&5
9733 echo "${ECHO_T}$pnmcut" >&6
9734 else
9735 echo "$as_me:$LINENO: result: no" >&5
9736 echo "${ECHO_T}no" >&6
9739 if test $pnmcut = missing; then
9740 missing="$missing pnmcut"
9741 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
9742 set dummy pnmcrop; ac_word=$2
9743 echo "$as_me:$LINENO: checking for $ac_word" >&5
9744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9745 if test "${ac_cv_prog_pnmcrop+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 if test -n "$pnmcrop"; then
9749 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_pnmcrop="found"
9759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9765 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
9768 pnmcrop=$ac_cv_prog_pnmcrop
9769 if test -n "$pnmcrop"; then
9770 echo "$as_me:$LINENO: result: $pnmcrop" >&5
9771 echo "${ECHO_T}$pnmcrop" >&6
9772 else
9773 echo "$as_me:$LINENO: result: no" >&5
9774 echo "${ECHO_T}no" >&6
9777 if test $pnmcrop = missing; then
9778 missing="$missing pnmcrop"
9779 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
9780 set dummy pnmtopng; ac_word=$2
9781 echo "$as_me:$LINENO: checking for $ac_word" >&5
9782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9783 if test "${ac_cv_prog_pnmtopng+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 if test -n "$pnmtopng"; then
9787 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9796 ac_cv_prog_pnmtopng="found"
9797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9800 done
9801 done
9803 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
9806 pnmtopng=$ac_cv_prog_pnmtopng
9807 if test -n "$pnmtopng"; then
9808 echo "$as_me:$LINENO: result: $pnmtopng" >&5
9809 echo "${ECHO_T}$pnmtopng" >&6
9810 else
9811 echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6
9815 if test $pnmtopng = missing; then
9816 missing="$missing pnmtopng"
9817 fi;# Extract the first word of "psselect", so it can be a program name with args.
9818 set dummy psselect; ac_word=$2
9819 echo "$as_me:$LINENO: checking for $ac_word" >&5
9820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9821 if test "${ac_cv_prog_psselect+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824 if test -n "$psselect"; then
9825 ac_cv_prog_psselect="$psselect" # Let the user override the test.
9826 else
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834 ac_cv_prog_psselect="found"
9835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9841 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
9844 psselect=$ac_cv_prog_psselect
9845 if test -n "$psselect"; then
9846 echo "$as_me:$LINENO: result: $psselect" >&5
9847 echo "${ECHO_T}$psselect" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850 echo "${ECHO_T}no" >&6
9853 if test $psselect = missing; then
9854 missing="$missing psselect"
9855 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
9856 set dummy pnmtops; ac_word=$2
9857 echo "$as_me:$LINENO: checking for $ac_word" >&5
9858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9859 if test "${ac_cv_prog_pnmtops+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862 if test -n "$pnmtops"; then
9863 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872 ac_cv_prog_pnmtops="found"
9873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9876 done
9877 done
9879 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
9882 pnmtops=$ac_cv_prog_pnmtops
9883 if test -n "$pnmtops"; then
9884 echo "$as_me:$LINENO: result: $pnmtops" >&5
9885 echo "${ECHO_T}$pnmtops" >&6
9886 else
9887 echo "$as_me:$LINENO: result: no" >&5
9888 echo "${ECHO_T}no" >&6
9891 if test $pnmtops = missing; then
9892 missing="$missing pnmtops"
9893 fi;# Extract the first word of "gs", so it can be a program name with args.
9894 set dummy gs; ac_word=$2
9895 echo "$as_me:$LINENO: checking for $ac_word" >&5
9896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9897 if test "${ac_cv_prog_gs+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 if test -n "$gs"; then
9901 ac_cv_prog_gs="$gs" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9910 ac_cv_prog_gs="found"
9911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9914 done
9915 done
9917 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs="missing"
9920 gs=$ac_cv_prog_gs
9921 if test -n "$gs"; then
9922 echo "$as_me:$LINENO: result: $gs" >&5
9923 echo "${ECHO_T}$gs" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6
9929 if test $gs = missing; then
9930 missing="$missing gs"
9933 if test -n "$missing"; then
9934 cnt=0
9935 for i in $missing
9937 cnt=`expr $cnt + 1`
9938 eval "prog$cnt=$i"
9939 done
9940 plural="s"
9941 case $cnt in
9943 plural=""
9944 progs="\`$prog1'" ;;
9946 progs="\`$prog1' and \`$prog2'" ;;
9948 progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
9950 progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
9952 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
9954 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
9955 esac
9957 make_html=
9958 make_install_html=
9960 { echo "$as_me:$LINENO: WARNING:
9962 The program$plural
9963 $progs
9964 can't be found in the path, thus the HTML backend of groff (grohtml)
9965 won't work properly. Consequently, no documentation in HTML format
9966 is built and installed.
9967 " >&5
9968 echo "$as_me: WARNING:
9970 The program$plural
9971 $progs
9972 can't be found in the path, thus the HTML backend of groff (grohtml)
9973 won't work properly. Consequently, no documentation in HTML format
9974 is built and installed.
9975 " >&2;}
9980 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
9981 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
9982 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
9983 echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6
9985 pnmtops_nosetpage="pnmtops -nosetpage"
9986 else
9987 echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9989 pnmtops_nosetpage="pnmtops"
9992 if test -n "$ac_tool_prefix"; then
9993 # Extract the first word of "${ac_tool_prefix}gs gsos2", so it can be a program name with args.
9994 set dummy ${ac_tool_prefix}gs gsos2; ac_word=$2
9995 echo "$as_me:$LINENO: checking for $ac_word" >&5
9996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9997 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 case $GHOSTSCRIPT in
10001 [\\/]* | ?:[\\/]*)
10002 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10020 esac
10022 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
10024 if test -n "$GHOSTSCRIPT"; then
10025 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
10026 echo "${ECHO_T}$GHOSTSCRIPT" >&6
10027 else
10028 echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6
10033 if test -z "$ac_cv_path_GHOSTSCRIPT"; then
10034 ac_pt_GHOSTSCRIPT=$GHOSTSCRIPT
10035 # Extract the first word of "gs gsos2", so it can be a program name with args.
10036 set dummy gs gsos2; ac_word=$2
10037 echo "$as_me:$LINENO: checking for $ac_word" >&5
10038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10039 if test "${ac_cv_path_ac_pt_GHOSTSCRIPT+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 case $ac_pt_GHOSTSCRIPT in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_ac_pt_GHOSTSCRIPT="$ac_pt_GHOSTSCRIPT" # Let the user override the test with a path.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054 ac_cv_path_ac_pt_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10058 done
10059 done
10062 esac
10064 ac_pt_GHOSTSCRIPT=$ac_cv_path_ac_pt_GHOSTSCRIPT
10066 if test -n "$ac_pt_GHOSTSCRIPT"; then
10067 echo "$as_me:$LINENO: result: $ac_pt_GHOSTSCRIPT" >&5
10068 echo "${ECHO_T}$ac_pt_GHOSTSCRIPT" >&6
10069 else
10070 echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6
10074 if test "x$ac_pt_GHOSTSCRIPT" = x; then
10075 GHOSTSCRIPT="missing"
10076 else
10077 if test "$build" != "$host"; then
10078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10079 whose name does not start with the host triplet. If you think this
10080 configuration is useful to you, please write to autoconf@gnu.org." >&5
10081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10082 whose name does not start with the host triplet. If you think this
10083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10085 GHOSTSCRIPT=$ac_pt_GHOSTSCRIPT
10087 else
10088 GHOSTSCRIPT="$ac_cv_path_GHOSTSCRIPT"
10093 ac_config_files="$ac_config_files stamp-h"
10095 ac_config_files="$ac_config_files Makefile doc/Makefile"
10097 ac_config_files="$ac_config_files test-groff"
10099 cat >confcache <<\_ACEOF
10100 # This file is a shell script that caches the results of configure
10101 # tests run on this system so they can be shared between configure
10102 # scripts and configure runs, see configure's option --config-cache.
10103 # It is not useful on other systems. If it contains results you don't
10104 # want to keep, you may remove or edit it.
10106 # config.status only pays attention to the cache file if you give it
10107 # the --recheck option to rerun configure.
10109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10111 # following values.
10113 _ACEOF
10115 # The following way of writing the cache mishandles newlines in values,
10116 # but we know of no workaround that is simple, portable, and efficient.
10117 # So, don't put newlines in cache variables' values.
10118 # Ultrix sh set writes to stderr and can't be redirected directly,
10119 # and sets the high bit in the cache file unless we assign to the vars.
10121 (set) 2>&1 |
10122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10123 *ac_space=\ *)
10124 # `set' does not quote correctly, so add quotes (double-quote
10125 # substitution turns \\\\ into \\, and sed turns \\ into \).
10126 sed -n \
10127 "s/'/'\\\\''/g;
10128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10131 # `set' quotes correctly as required by POSIX, so do not add quotes.
10132 sed -n \
10133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10135 esac;
10137 sed '
10138 t clear
10139 : clear
10140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10141 t end
10142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10143 : end' >>confcache
10144 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10145 if test -w $cache_file; then
10146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10147 cat confcache >$cache_file
10148 else
10149 echo "not updating unwritable cache $cache_file"
10152 rm -f confcache
10154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10155 # Let make expand exec_prefix.
10156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10160 # trailing colons and then remove the whole line if VPATH becomes empty
10161 # (actually we leave an empty line to preserve line numbers).
10162 if test "x$srcdir" = x.; then
10163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10164 s/:*\$(srcdir):*/:/;
10165 s/:*\${srcdir}:*/:/;
10166 s/:*@srcdir@:*/:/;
10167 s/^\([^=]*=[ ]*\):*/\1/;
10168 s/:*$//;
10169 s/^[^=]*=[ ]*$//;
10173 DEFS=-DHAVE_CONFIG_H
10175 ac_libobjs=
10176 ac_ltlibobjs=
10177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10178 # 1. Remove the extension, and $U if already installed.
10179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10180 ac_i=`echo "$ac_i" | sed "$ac_script"`
10181 # 2. Add them.
10182 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10183 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10184 done
10185 LIBOBJS=$ac_libobjs
10187 LTLIBOBJS=$ac_ltlibobjs
10191 : ${CONFIG_STATUS=./config.status}
10192 ac_clean_files_save=$ac_clean_files
10193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10196 cat >$CONFIG_STATUS <<_ACEOF
10197 #! $SHELL
10198 # Generated by $as_me.
10199 # Run this file to recreate the current configuration.
10200 # Compiler output produced by configure, useful for debugging
10201 # configure, is in config.log if it exists.
10203 debug=false
10204 ac_cs_recheck=false
10205 ac_cs_silent=false
10206 SHELL=\${CONFIG_SHELL-$SHELL}
10207 _ACEOF
10209 cat >>$CONFIG_STATUS <<\_ACEOF
10210 ## --------------------- ##
10211 ## M4sh Initialization. ##
10212 ## --------------------- ##
10214 # Be Bourne compatible
10215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10216 emulate sh
10217 NULLCMD=:
10218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10219 # is contrary to our usage. Disable this feature.
10220 alias -g '${1+"$@"}'='"$@"'
10221 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10222 set -o posix
10224 DUALCASE=1; export DUALCASE # for MKS sh
10227 # PATH needs CR
10228 # Avoid depending upon Character Ranges.
10229 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10230 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10231 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10232 as_cr_digits='0123456789'
10233 as_cr_alnum=$as_cr_Letters$as_cr_digits
10235 # The user is always right.
10236 if test "${PATH_SEPARATOR+set}" != set; then
10237 echo "#! /bin/sh" >conf$$.sh
10238 echo "exit 0" >>conf$$.sh
10239 chmod +x conf$$.sh
10240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10241 PATH_SEPARATOR=';'
10242 else
10243 PATH_SEPARATOR=:
10245 rm -f conf$$.sh
10248 # Support unset when possible.
10249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10250 as_unset=unset
10251 else
10252 as_unset=false
10256 # Find who we are. Look in the path if we contain no path at all
10257 # relative or not.
10258 case $0 in
10259 *[\\/]* ) as_myself=$0 ;;
10260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261 for as_dir in $PATH
10263 IFS=$as_save_IFS
10264 test -z "$as_dir" && as_dir=.
10265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10266 done
10269 esac
10270 # We did not find ourselves, most probably we were run as `sh COMMAND'
10271 # in which case we are not to be found in the path.
10272 if test "x$as_myself" = x; then
10273 as_myself=$0
10275 if test ! -f "$as_myself"; then
10276 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10277 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10278 { (exit 1); exit 1; }; }
10281 # Work around bugs in pre-3.0 UWIN ksh.
10282 $as_unset ENV MAIL MAILPATH
10283 PS1='$ '
10284 PS2='> '
10285 PS4='+ '
10287 # NLS nuisances.
10288 for as_var in \
10289 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10290 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10291 LC_TELEPHONE LC_TIME
10293 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10294 eval $as_var=C; export $as_var
10295 else
10296 $as_unset $as_var
10298 done
10300 # Required to use basename.
10301 if expr a : '\(a\)' >/dev/null 2>&1; then
10302 as_expr=expr
10303 else
10304 as_expr=false
10307 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10308 as_basename=basename
10309 else
10310 as_basename=false
10314 # Name of the executable.
10315 as_me=`$as_basename "$0" ||
10316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10317 X"$0" : 'X\(//\)$' \| \
10318 X"$0" : 'X\(/\)$' \| \
10319 . : '\(.\)' 2>/dev/null ||
10320 echo X/"$0" |
10321 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10322 /^X\/\(\/\/\)$/{ s//\1/; q; }
10323 /^X\/\(\/\).*/{ s//\1/; q; }
10324 s/.*/./; q'`
10329 as_lineno_1=$LINENO
10330 as_lineno_2=$LINENO
10331 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10332 test "x$as_lineno_1" != "x$as_lineno_2" &&
10333 test "x$as_lineno_3" = "x$as_lineno_2" || {
10335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10336 # uniformly replaced by the line number. The first 'sed' inserts a
10337 # line-number line after each line using $LINENO; the second 'sed'
10338 # does the real work. The second script uses 'N' to pair each
10339 # line-number line with the line containing $LINENO, and appends
10340 # trailing '-' during substitution so that $LINENO is not a special
10341 # case at line end.
10342 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10343 # scripts with optimization help from Paolo Bonzini. Blame Lee
10344 # E. McMahon (1931-1989) for sed's syntax. :-)
10345 sed -n '
10347 /[$]LINENO/=
10348 ' <$as_myself |
10349 sed '
10350 s,[$]LINENO.*,&-,
10351 t lineno
10353 : lineno
10355 : loop
10356 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10357 t loop
10358 s,-\n.*,,
10359 ' >$as_me.lineno &&
10360 chmod +x $as_me.lineno ||
10361 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10362 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10363 { (exit 1); exit 1; }; }
10365 # Don't try to exec as it changes $[0], causing all sort of problems
10366 # (the dirname of $[0] is not the place where we might find the
10367 # original and so on. Autoconf is especially sensible to this).
10368 . ./$as_me.lineno
10369 # Exit status is that of the last command.
10370 exit
10374 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10375 *c*,-n*) ECHO_N= ECHO_C='
10376 ' ECHO_T=' ' ;;
10377 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10378 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10379 esac
10381 if expr a : '\(a\)' >/dev/null 2>&1; then
10382 as_expr=expr
10383 else
10384 as_expr=false
10387 rm -f conf$$ conf$$.exe conf$$.file
10388 echo >conf$$.file
10389 if ln -s conf$$.file conf$$ 2>/dev/null; then
10390 # We could just check for DJGPP; but this test a) works b) is more generic
10391 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10392 if test -f conf$$.exe; then
10393 # Don't use ln at all; we don't have any links
10394 as_ln_s='cp -p'
10395 else
10396 as_ln_s='ln -s'
10398 elif ln conf$$.file conf$$ 2>/dev/null; then
10399 as_ln_s=ln
10400 else
10401 as_ln_s='cp -p'
10403 rm -f conf$$ conf$$.exe conf$$.file
10405 if mkdir -p . 2>/dev/null; then
10406 as_mkdir_p=:
10407 else
10408 test -d ./-p && rmdir ./-p
10409 as_mkdir_p=false
10412 as_executable_p="test -f"
10414 # Sed expression to map a string onto a valid CPP name.
10415 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10417 # Sed expression to map a string onto a valid variable name.
10418 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10421 # IFS
10422 # We need space, tab and new line, in precisely that order.
10423 as_nl='
10425 IFS=" $as_nl"
10427 # CDPATH.
10428 $as_unset CDPATH
10430 exec 6>&1
10432 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10433 # report actual input values of CONFIG_FILES etc. instead of their
10434 # values after options handling. Logging --version etc. is OK.
10435 exec 5>>config.log
10437 echo
10438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10439 ## Running $as_me. ##
10440 _ASBOX
10441 } >&5
10442 cat >&5 <<_CSEOF
10444 This file was extended by $as_me, which was
10445 generated by GNU Autoconf 2.59a. Invocation command line was
10447 CONFIG_FILES = $CONFIG_FILES
10448 CONFIG_HEADERS = $CONFIG_HEADERS
10449 CONFIG_LINKS = $CONFIG_LINKS
10450 CONFIG_COMMANDS = $CONFIG_COMMANDS
10451 $ $0 $@
10453 _CSEOF
10454 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10455 echo >&5
10456 _ACEOF
10458 # Files that config.status was made for.
10459 if test -n "$ac_config_files"; then
10460 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10463 if test -n "$ac_config_headers"; then
10464 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10467 if test -n "$ac_config_links"; then
10468 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10471 if test -n "$ac_config_commands"; then
10472 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10475 cat >>$CONFIG_STATUS <<\_ACEOF
10477 ac_cs_usage="\
10478 \`$as_me' instantiates files from templates according to the
10479 current configuration.
10481 Usage: $0 [OPTIONS] [FILE]...
10483 -h, --help print this help, then exit
10484 -V, --version print version number, then exit
10485 -q, --quiet do not print progress messages
10486 -d, --debug don't remove temporary files
10487 --recheck update $as_me by reconfiguring in the same conditions
10488 --file=FILE[:TEMPLATE]
10489 instantiate the configuration file FILE
10490 --header=FILE[:TEMPLATE]
10491 instantiate the configuration header FILE
10493 Configuration files:
10494 $config_files
10496 Configuration headers:
10497 $config_headers
10499 Report bugs to <bug-autoconf@gnu.org>."
10500 _ACEOF
10502 cat >>$CONFIG_STATUS <<_ACEOF
10503 ac_cs_version="\\
10504 config.status
10505 configured by $0, generated by GNU Autoconf 2.59a,
10506 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10508 Copyright (C) 2004 Free Software Foundation, Inc.
10509 This config.status script is free software; the Free Software Foundation
10510 gives unlimited permission to copy, distribute and modify it."
10511 srcdir=$srcdir
10512 INSTALL="$INSTALL"
10513 _ACEOF
10515 cat >>$CONFIG_STATUS <<\_ACEOF
10516 # If no file are specified by the user, then we need to provide default
10517 # value. By we need to know if files were specified by the user.
10518 ac_need_defaults=:
10519 while test $# != 0
10521 case $1 in
10522 --*=*)
10523 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10524 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10525 ac_shift=:
10528 ac_option=$1
10529 ac_optarg=$2
10530 ac_shift=shift
10532 *) # This is not an option, so the user has probably given explicit
10533 # arguments.
10534 ac_option=$1
10535 ac_need_defaults=false;;
10536 esac
10538 case $ac_option in
10539 # Handling of the options.
10540 _ACEOF
10541 cat >>$CONFIG_STATUS <<\_ACEOF
10542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10543 ac_cs_recheck=: ;;
10544 --version | --vers* | -V )
10545 echo "$ac_cs_version"; exit 0 ;;
10546 --he | --h)
10547 # Conflict between --help and --header
10548 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10549 Try \`$0 --help' for more information." >&5
10550 echo "$as_me: error: ambiguous option: $1
10551 Try \`$0 --help' for more information." >&2;}
10552 { (exit 1); exit 1; }; };;
10553 --help | --hel | -h )
10554 echo "$ac_cs_usage"; exit 0 ;;
10555 --debug | --d* | -d )
10556 debug=: ;;
10557 --file | --fil | --fi | --f )
10558 $ac_shift
10559 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10560 ac_need_defaults=false;;
10561 --header | --heade | --head | --hea )
10562 $ac_shift
10563 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10564 ac_need_defaults=false;;
10565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10567 ac_cs_silent=: ;;
10569 # This is an error.
10570 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10571 Try \`$0 --help' for more information." >&5
10572 echo "$as_me: error: unrecognized option: $1
10573 Try \`$0 --help' for more information." >&2;}
10574 { (exit 1); exit 1; }; } ;;
10576 *) ac_config_targets="$ac_config_targets $1" ;;
10578 esac
10579 shift
10580 done
10582 ac_configure_extra_args=
10584 if $ac_cs_silent; then
10585 exec 6>/dev/null
10586 ac_configure_extra_args="$ac_configure_extra_args --silent"
10589 _ACEOF
10590 cat >>$CONFIG_STATUS <<_ACEOF
10591 if \$ac_cs_recheck; then
10592 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10593 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10596 _ACEOF
10602 cat >>$CONFIG_STATUS <<\_ACEOF
10603 for ac_config_target in $ac_config_targets
10605 case "$ac_config_target" in
10606 # Handling of arguments.
10607 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
10608 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10609 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10610 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
10611 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10612 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10613 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10614 { (exit 1); exit 1; }; };;
10615 esac
10616 done
10618 # If the user did not use the arguments to specify the items to instantiate,
10619 # then the envvar interface is used. Set only those that are not.
10620 # We use the long form for the default assignment because of an extremely
10621 # bizarre bug on SunOS 4.1.3.
10622 if $ac_need_defaults; then
10623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10627 # Have a temporary directory for convenience. Make it in the build tree
10628 # simply because there is no reason to put it here, and in addition,
10629 # creating and moving files from /tmp can sometimes cause problems.
10630 # Create a temporary directory, and hook for its removal unless debugging.
10631 $debug ||
10633 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
10634 trap '{ (exit 1); exit 1; }' 1 2 13 15
10637 # Create a (secure) tmp directory for tmp files.
10640 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10641 test -n "$tmp" && test -d "$tmp"
10642 } ||
10644 tmp=./confstat$$-$RANDOM
10645 (umask 077 && mkdir $tmp)
10646 } ||
10648 echo "$me: cannot create a temporary directory in ." >&2
10649 { (exit 1); exit 1; }
10652 _ACEOF
10654 cat >>$CONFIG_STATUS <<_ACEOF
10657 # CONFIG_FILES section.
10660 # No need to generate the scripts if there are no CONFIG_FILES.
10661 # This happens for instance when ./config.status config.h
10662 if test -n "\$CONFIG_FILES"; then
10663 # Protect against being on the right side of a sed subst in config.status.
10664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10666 s,@SHELL@,$SHELL,;t t
10667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10673 s,@exec_prefix@,$exec_prefix,;t t
10674 s,@prefix@,$prefix,;t t
10675 s,@program_transform_name@,$program_transform_name,;t t
10676 s,@bindir@,$bindir,;t t
10677 s,@sbindir@,$sbindir,;t t
10678 s,@libexecdir@,$libexecdir,;t t
10679 s,@datadir@,$datadir,;t t
10680 s,@sysconfdir@,$sysconfdir,;t t
10681 s,@sharedstatedir@,$sharedstatedir,;t t
10682 s,@localstatedir@,$localstatedir,;t t
10683 s,@libdir@,$libdir,;t t
10684 s,@includedir@,$includedir,;t t
10685 s,@oldincludedir@,$oldincludedir,;t t
10686 s,@infodir@,$infodir,;t t
10687 s,@mandir@,$mandir,;t t
10688 s,@build_alias@,$build_alias,;t t
10689 s,@host_alias@,$host_alias,;t t
10690 s,@target_alias@,$target_alias,;t t
10691 s,@DEFS@,$DEFS,;t t
10692 s,@ECHO_C@,$ECHO_C,;t t
10693 s,@ECHO_N@,$ECHO_N,;t t
10694 s,@ECHO_T@,$ECHO_T,;t t
10695 s,@LIBS@,$LIBS,;t t
10696 s,@CC@,$CC,;t t
10697 s,@CFLAGS@,$CFLAGS,;t t
10698 s,@LDFLAGS@,$LDFLAGS,;t t
10699 s,@CPPFLAGS@,$CPPFLAGS,;t t
10700 s,@ac_ct_CC@,$ac_ct_CC,;t t
10701 s,@EXEEXT@,$EXEEXT,;t t
10702 s,@OBJEXT@,$OBJEXT,;t t
10703 s,@CXX@,$CXX,;t t
10704 s,@CXXFLAGS@,$CXXFLAGS,;t t
10705 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10706 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
10707 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
10708 s,@CPP@,$CPP,;t t
10709 s,@X_CFLAGS@,$X_CFLAGS,;t t
10710 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10711 s,@X_LIBS@,$X_LIBS,;t t
10712 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10713 s,@XDEVDIRS@,$XDEVDIRS,;t t
10714 s,@XPROGDIRS@,$XPROGDIRS,;t t
10715 s,@XLIBDIRS@,$XLIBDIRS,;t t
10716 s,@appresdir@,$appresdir,;t t
10717 s,@LPR@,$LPR,;t t
10718 s,@LP@,$LP,;t t
10719 s,@LPQ@,$LPQ,;t t
10720 s,@PSPRINT@,$PSPRINT,;t t
10721 s,@DVIPRINT@,$DVIPRINT,;t t
10722 s,@PERLPATH@,$PERLPATH,;t t
10723 s,@YACC@,$YACC,;t t
10724 s,@RANLIB@,$RANLIB,;t t
10725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10726 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
10727 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10728 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10729 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10730 s,@LN_S@,$LN_S,;t t
10731 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
10732 s,@GREP@,$GREP,;t t
10733 s,@EGREP@,$EGREP,;t t
10734 s,@LIBC@,$LIBC,;t t
10735 s,@LIBM@,$LIBM,;t t
10736 s,@LIBOBJS@,$LIBOBJS,;t t
10737 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
10738 s,@PAGE@,$PAGE,;t t
10739 s,@g@,$g,;t t
10740 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
10741 s,@tmac_wrap@,$tmac_wrap,;t t
10742 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
10743 s,@pnmcut@,$pnmcut,;t t
10744 s,@pnmcrop@,$pnmcrop,;t t
10745 s,@pnmtopng@,$pnmtopng,;t t
10746 s,@psselect@,$psselect,;t t
10747 s,@pnmtops@,$pnmtops,;t t
10748 s,@gs@,$gs,;t t
10749 s,@make_html@,$make_html,;t t
10750 s,@make_install_html@,$make_install_html,;t t
10751 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
10752 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
10753 s,@ac_pt_GHOSTSCRIPT@,$ac_pt_GHOSTSCRIPT,;t t
10754 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10755 CEOF
10757 _ACEOF
10759 cat >>$CONFIG_STATUS <<\_ACEOF
10760 # Split the substitutions into bite-sized pieces for seds with
10761 # small command number limits, like on Digital OSF/1 and HP-UX.
10762 ac_max_sed_lines=48
10763 ac_sed_frag=1 # Number of current file.
10764 ac_beg=1 # First line for current file.
10765 ac_end=$ac_max_sed_lines # Line after last line for current file.
10766 ac_more_lines=:
10767 ac_sed_cmds=
10768 while $ac_more_lines; do
10769 if test $ac_beg -gt 1; then
10770 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10771 else
10772 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10774 if test ! -s $tmp/subs.frag; then
10775 ac_more_lines=false
10776 else
10777 # The purpose of the label and of the branching condition is to
10778 # speed up the sed processing (if there are no `@' at all, there
10779 # is no need to browse any of the substitutions).
10780 # These are the two extra sed commands mentioned above.
10781 (echo ':t
10782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10783 if test -z "$ac_sed_cmds"; then
10784 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10785 else
10786 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10788 ac_sed_frag=`expr $ac_sed_frag + 1`
10789 ac_beg=$ac_end
10790 ac_end=`expr $ac_end + $ac_max_sed_lines`
10792 done
10793 if test -z "$ac_sed_cmds"; then
10794 ac_sed_cmds=cat
10796 fi # test -n "$CONFIG_FILES"
10798 _ACEOF
10799 cat >>$CONFIG_STATUS <<\_ACEOF
10800 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10802 case $ac_file in
10803 - | *:- | *:-:* ) # input from stdin
10804 cat >$tmp/stdin
10805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10809 * ) ac_file_in=$ac_file.in ;;
10810 esac
10812 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10813 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10815 X"$ac_file" : 'X\(//\)[^/]' \| \
10816 X"$ac_file" : 'X\(//\)$' \| \
10817 X"$ac_file" : 'X\(/\)' \| \
10818 . : '\(.\)' 2>/dev/null ||
10819 echo X"$ac_file" |
10820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10822 /^X\(\/\/\)$/{ s//\1/; q; }
10823 /^X\(\/\).*/{ s//\1/; q; }
10824 s/.*/./; q'`
10825 { if $as_mkdir_p; then
10826 test -d "$ac_dir" || mkdir -p "$ac_dir"
10827 else
10828 as_dir="$ac_dir"
10829 as_dirs=
10830 while test ! -d "$as_dir"; do
10831 as_dirs="$as_dir $as_dirs"
10832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10834 X"$as_dir" : 'X\(//\)[^/]' \| \
10835 X"$as_dir" : 'X\(//\)$' \| \
10836 X"$as_dir" : 'X\(/\)' \| \
10837 . : '\(.\)' 2>/dev/null ||
10838 echo X"$as_dir" |
10839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10841 /^X\(\/\/\)$/{ s//\1/; q; }
10842 /^X\(\/\).*/{ s//\1/; q; }
10843 s/.*/./; q'`
10844 done
10845 test ! -n "$as_dirs" || mkdir $as_dirs
10846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10848 { (exit 1); exit 1; }; }; }
10850 ac_builddir=.
10852 if test "$ac_dir" != .; then
10853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10854 # A "../" for each directory in $ac_dir_suffix.
10855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10856 else
10857 ac_dir_suffix= ac_top_builddir=
10860 case $srcdir in
10861 .) # No --srcdir option. We are building in place.
10862 ac_srcdir=.
10863 if test -z "$ac_top_builddir"; then
10864 ac_top_srcdir=.
10865 else
10866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10867 fi ;;
10868 [\\/]* | ?:[\\/]* ) # Absolute path.
10869 ac_srcdir=$srcdir$ac_dir_suffix;
10870 ac_top_srcdir=$srcdir ;;
10871 *) # Relative path.
10872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10874 esac
10876 # Do not use `cd foo && pwd` to compute absolute paths, because
10877 # the directories may not exist.
10878 case `pwd` in
10879 .) ac_abs_builddir="$ac_dir";;
10881 case "$ac_dir" in
10882 .) ac_abs_builddir=`pwd`;;
10883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10885 esac;;
10886 esac
10887 case $ac_abs_builddir in
10888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10890 case ${ac_top_builddir}. in
10891 .) ac_abs_top_builddir=$ac_abs_builddir;;
10892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10894 esac;;
10895 esac
10896 case $ac_abs_builddir in
10897 .) ac_abs_srcdir=$ac_srcdir;;
10899 case $ac_srcdir in
10900 .) ac_abs_srcdir=$ac_abs_builddir;;
10901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10903 esac;;
10904 esac
10905 case $ac_abs_builddir in
10906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10908 case $ac_top_srcdir in
10909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10912 esac;;
10913 esac
10916 case $INSTALL in
10917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10918 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10919 esac
10921 if test x"$ac_file" != x-; then
10922 { echo "$as_me:$LINENO: creating $ac_file" >&5
10923 echo "$as_me: creating $ac_file" >&6;}
10924 rm -f "$ac_file"
10926 # Let's still pretend it is `configure' which instantiates (i.e., don't
10927 # use $as_me), people would be surprised to read:
10928 # /* config.h. Generated by config.status. */
10929 if test x"$ac_file" = x-; then
10930 configure_input=
10931 else
10932 configure_input="$ac_file. "
10934 configure_input=$configure_input"Generated from `echo $ac_file_in |
10935 sed 's,.*/,,'` by configure."
10937 # First look for the input files in the build tree, otherwise in the
10938 # src tree.
10939 ac_file_inputs=`IFS=:
10940 for f in $ac_file_in; do
10941 case $f in
10942 -) echo $tmp/stdin ;;
10943 [\\/$]*)
10944 # Absolute (can't be DOS-style, as IFS=:)
10945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10946 echo "$as_me: error: cannot find input file: $f" >&2;}
10947 { (exit 1); exit 1; }; }
10948 echo "$f";;
10949 *) # Relative
10950 if test -f "$f"; then
10951 # Build tree
10952 echo "$f"
10953 elif test -f "$srcdir/$f"; then
10954 # Source tree
10955 echo "$srcdir/$f"
10956 else
10957 # /dev/null tree
10958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10959 echo "$as_me: error: cannot find input file: $f" >&2;}
10960 { (exit 1); exit 1; }; }
10961 fi;;
10962 esac
10963 done` || { (exit 1); exit 1; }
10964 _ACEOF
10965 cat >>$CONFIG_STATUS <<_ACEOF
10966 sed "$ac_vpsub
10967 $extrasub
10968 _ACEOF
10969 cat >>$CONFIG_STATUS <<\_ACEOF
10971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10972 s,@configure_input@,$configure_input,;t t
10973 s,@srcdir@,$ac_srcdir,;t t
10974 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10975 s,@top_srcdir@,$ac_top_srcdir,;t t
10976 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10977 s,@builddir@,$ac_builddir,;t t
10978 s,@abs_builddir@,$ac_abs_builddir,;t t
10979 s,@top_builddir@,$ac_top_builddir,;t t
10980 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10981 s,@INSTALL@,$ac_INSTALL,;t t
10982 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10983 rm -f $tmp/stdin
10984 if test x"$ac_file" != x-; then
10985 mv $tmp/out $ac_file
10986 else
10987 cat $tmp/out
10988 rm -f $tmp/out
10991 # Run the commands associated with the file.
10992 case $ac_file in
10993 stamp-h ) echo timestamp > stamp-h ;;
10994 test-groff ) chmod +x test-groff ;;
10995 esac
10996 done
10997 _ACEOF
10998 cat >>$CONFIG_STATUS <<\_ACEOF
11001 # CONFIG_HEADER section.
11004 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11005 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11007 # ac_d sets the value in "#define NAME VALUE" lines.
11008 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11009 ac_dB='[ ].*$,\1#\2'
11010 ac_dC=' '
11011 ac_dD=',;t'
11012 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11013 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11014 ac_uB='$,\1#\2define\3'
11015 ac_uC=' '
11016 ac_uD=',;t'
11018 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11020 case $ac_file in
11021 - | *:- | *:-:* ) # input from stdin
11022 cat >$tmp/stdin
11023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11027 * ) ac_file_in=$ac_file.in ;;
11028 esac
11030 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11031 echo "$as_me: creating $ac_file" >&6;}
11033 # First look for the input files in the build tree, otherwise in the
11034 # src tree.
11035 ac_file_inputs=`IFS=:
11036 for f in $ac_file_in; do
11037 case $f in
11038 -) echo $tmp/stdin ;;
11039 [\\/$]*)
11040 # Absolute (can't be DOS-style, as IFS=:)
11041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11042 echo "$as_me: error: cannot find input file: $f" >&2;}
11043 { (exit 1); exit 1; }; }
11044 # Do quote $f, to prevent DOS paths from being IFS'd.
11045 echo "$f";;
11046 *) # Relative
11047 if test -f "$f"; then
11048 # Build tree
11049 echo "$f"
11050 elif test -f "$srcdir/$f"; then
11051 # Source tree
11052 echo "$srcdir/$f"
11053 else
11054 # /dev/null tree
11055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11056 echo "$as_me: error: cannot find input file: $f" >&2;}
11057 { (exit 1); exit 1; }; }
11058 fi;;
11059 esac
11060 done` || { (exit 1); exit 1; }
11061 # Remove the trailing spaces.
11062 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11064 _ACEOF
11066 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11067 # `conftest.undefs', that substitutes the proper values into
11068 # config.h.in to produce config.h. The first handles `#define'
11069 # templates, and the second `#undef' templates.
11070 # And first: Protect against being on the right side of a sed subst in
11071 # config.status. Protect against being in an unquoted here document
11072 # in config.status.
11073 rm -f conftest.defines conftest.undefs
11074 # Using a here document instead of a string reduces the quoting nightmare.
11075 # Putting comments in sed scripts is not portable.
11077 # `end' is used to avoid that the second main sed command (meant for
11078 # 0-ary CPP macros) applies to n-ary macro definitions.
11079 # See the Autoconf documentation for `clear'.
11080 cat >confdef2sed.sed <<\_ACEOF
11081 s/[\\&,]/\\&/g
11082 s,[\\$`],\\&,g
11083 t clear
11084 : clear
11085 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11086 t end
11087 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11088 : end
11089 _ACEOF
11090 # If some macros were called several times there might be several times
11091 # the same #defines, which is useless. Nevertheless, we may not want to
11092 # sort them, since we want the *last* AC-DEFINE to be honored.
11093 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11094 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11095 rm -f confdef2sed.sed
11097 # This sed command replaces #undef with comments. This is necessary, for
11098 # example, in the case of _POSIX_SOURCE, which is predefined and required
11099 # on some systems where configure will not decide to define it.
11100 cat >>conftest.undefs <<\_ACEOF
11101 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11102 _ACEOF
11104 # Break up conftest.defines because some shells have a limit on the size
11105 # of here documents, and old seds have small limits too (100 cmds).
11106 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11107 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11108 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11109 echo ' :' >>$CONFIG_STATUS
11110 rm -f conftest.tail
11111 while grep . conftest.defines >/dev/null
11113 # Write a limited-size here document to $tmp/defines.sed.
11114 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11115 # Speed up: don't consider the non `#define' lines.
11116 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11117 # Work around the forget-to-reset-the-flag bug.
11118 echo 't clr' >>$CONFIG_STATUS
11119 echo ': clr' >>$CONFIG_STATUS
11120 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11121 echo 'CEOF
11122 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11123 rm -f $tmp/in
11124 mv $tmp/out $tmp/in
11125 ' >>$CONFIG_STATUS
11126 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11127 rm -f conftest.defines
11128 mv conftest.tail conftest.defines
11129 done
11130 rm -f conftest.defines
11131 echo ' fi # grep' >>$CONFIG_STATUS
11132 echo >>$CONFIG_STATUS
11134 # Break up conftest.undefs because some shells have a limit on the size
11135 # of here documents, and old seds have small limits too (100 cmds).
11136 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11137 rm -f conftest.tail
11138 while grep . conftest.undefs >/dev/null
11140 # Write a limited-size here document to $tmp/undefs.sed.
11141 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11142 # Speed up: don't consider the non `#undef'
11143 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11144 # Work around the forget-to-reset-the-flag bug.
11145 echo 't clr' >>$CONFIG_STATUS
11146 echo ': clr' >>$CONFIG_STATUS
11147 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11148 echo 'CEOF
11149 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11150 rm -f $tmp/in
11151 mv $tmp/out $tmp/in
11152 ' >>$CONFIG_STATUS
11153 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11154 rm -f conftest.undefs
11155 mv conftest.tail conftest.undefs
11156 done
11157 rm -f conftest.undefs
11159 cat >>$CONFIG_STATUS <<\_ACEOF
11160 # Let's still pretend it is `configure' which instantiates (i.e., don't
11161 # use $as_me), people would be surprised to read:
11162 # /* config.h. Generated by config.status. */
11163 if test x"$ac_file" = x-; then
11164 echo "/* Generated by configure. */" >$tmp/config.h
11165 else
11166 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11168 cat $tmp/in >>$tmp/config.h
11169 rm -f $tmp/in
11170 if test x"$ac_file" != x-; then
11171 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11172 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11173 echo "$as_me: $ac_file is unchanged" >&6;}
11174 else
11175 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11177 X"$ac_file" : 'X\(//\)[^/]' \| \
11178 X"$ac_file" : 'X\(//\)$' \| \
11179 X"$ac_file" : 'X\(/\)' \| \
11180 . : '\(.\)' 2>/dev/null ||
11181 echo X"$ac_file" |
11182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11184 /^X\(\/\/\)$/{ s//\1/; q; }
11185 /^X\(\/\).*/{ s//\1/; q; }
11186 s/.*/./; q'`
11187 { if $as_mkdir_p; then
11188 test -d "$ac_dir" || mkdir -p "$ac_dir"
11189 else
11190 as_dir="$ac_dir"
11191 as_dirs=
11192 while test ! -d "$as_dir"; do
11193 as_dirs="$as_dir $as_dirs"
11194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11196 X"$as_dir" : 'X\(//\)[^/]' \| \
11197 X"$as_dir" : 'X\(//\)$' \| \
11198 X"$as_dir" : 'X\(/\)' \| \
11199 . : '\(.\)' 2>/dev/null ||
11200 echo X"$as_dir" |
11201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11203 /^X\(\/\/\)$/{ s//\1/; q; }
11204 /^X\(\/\).*/{ s//\1/; q; }
11205 s/.*/./; q'`
11206 done
11207 test ! -n "$as_dirs" || mkdir $as_dirs
11208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11209 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11210 { (exit 1); exit 1; }; }; }
11212 rm -f $ac_file
11213 mv $tmp/config.h $ac_file
11215 else
11216 cat $tmp/config.h
11217 rm -f $tmp/config.h
11219 done
11220 _ACEOF
11222 cat >>$CONFIG_STATUS <<\_ACEOF
11224 { (exit 0); exit 0; }
11225 _ACEOF
11226 chmod +x $CONFIG_STATUS
11227 ac_clean_files=$ac_clean_files_save
11230 # configure is writing to config.log, and then calls config.status.
11231 # config.status does its own redirection, appending to config.log.
11232 # Unfortunately, on DOS this fails, as config.log is still kept open
11233 # by configure, so config.status won't be able to write to it; its
11234 # output is simply discarded. So we exec the FD to /dev/null,
11235 # effectively closing config.log, so it can be properly (re)opened and
11236 # appended to by config.status. When coming back to configure, we
11237 # need to make the FD available again.
11238 if test "$no_create" != yes; then
11239 ac_cs_success=:
11240 ac_config_status_args=
11241 test "$silent" = yes &&
11242 ac_config_status_args="$ac_config_status_args --quiet"
11243 exec 5>/dev/null
11244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11245 exec 5>>config.log
11246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11247 # would make configure fail if this is the last instruction.
11248 $ac_cs_success || { (exit 1); exit 1; }
11252 if test -z "$groff_no_x"; then
11253 if test "x$with_appresdir" = "x"; then
11254 { echo "$as_me:$LINENO:
11256 The application resource file for gxditview will be installed as
11258 $appresdir/GXditview
11260 (an existing file will be saved as \`GXditview.old').
11261 To install it into a different directory, say, \`/etc/gxditview',
11262 add \`--with-appresdir=/etc/gxditview' to the configure script
11263 and rerun it. The environment variable \`APPLRESDIR' must then
11264 be set to \`/etc/' (note the trailing slash), omitting the
11265 \`gxditview' part which is automatically appended by the X11
11266 searching routines for resource files. More details can be
11267 found in the X(7) manual page.
11268 " >&5
11269 echo "$as_me:
11271 The application resource file for gxditview will be installed as
11273 $appresdir/GXditview
11275 (an existing file will be saved as \`GXditview.old').
11276 To install it into a different directory, say, \`/etc/gxditview',
11277 add \`--with-appresdir=/etc/gxditview' to the configure script
11278 and rerun it. The environment variable \`APPLRESDIR' must then
11279 be set to \`/etc/' (note the trailing slash), omitting the
11280 \`gxditview' part which is automatically appended by the X11
11281 searching routines for resource files. More details can be
11282 found in the X(7) manual page.
11283 " >&6;}