Provide `pdfroff' shell script, and manpage to document it;
[s-roff.git] / configure
blobe0dfdb5b0a7afc4cb99d1a30682a79b214cfd54e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59b.
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 setopt NO_GLOB_SUBST
21 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
46 rm -f conf$$.sh
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
57 # Find who we are. Look in the path if we contain no path at all
58 # relative or not.
59 case $0 in
60 *[\\/]* ) as_myself=$0 ;;
61 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62 for as_dir in $PATH
64 IFS=$as_save_IFS
65 test -z "$as_dir" && as_dir=.
66 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
67 done
70 esac
71 # We did not find ourselves, most probably we were run as `sh COMMAND'
72 # in which case we are not to be found in the path.
73 if test "x$as_myself" = x; then
74 as_myself=$0
76 if test ! -f "$as_myself"; then
77 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
78 { (exit 1); exit 1; }; }
81 # Work around bugs in pre-3.0 UWIN ksh.
82 for as_var in ENV MAIL MAILPATH
83 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
84 done
85 PS1='$ '
86 PS2='> '
87 PS4='+ '
89 # NLS nuisances.
90 for as_var in \
91 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
92 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
93 LC_TELEPHONE LC_TIME
95 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
96 eval $as_var=C; export $as_var
97 else
98 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
102 # Required to use basename.
103 if expr a : '\(a\)' >/dev/null 2>&1; then
104 as_expr=expr
105 else
106 as_expr=false
109 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
110 as_basename=basename
111 else
112 as_basename=false
116 # Name of the executable.
117 as_me=`$as_basename "$0" ||
118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
119 X"$0" : 'X\(//\)$' \| \
120 X"$0" : 'X\(/\)$' \| \
121 . : '\(.\)' 2>/dev/null ||
122 echo X/"$0" |
123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
124 /^X\/\(\/\/\)$/{ s//\1/; q; }
125 /^X\/\(\/\).*/{ s//\1/; q; }
126 s/.*/./; q'`
130 if test "x$CONFIG_SHELL" = x; then
131 if (eval ":") 2>/dev/null; then
132 as_have_required=yes
133 else
134 as_have_required=no
137 if test $as_have_required = yes && (eval ":
138 (func_return () {
139 (exit \$1)
141 func_success () {
142 func_return 0
144 func_failure () {
145 func_return 1
147 func_ret_success () {
148 return 0
150 func_ret_failure () {
151 return 1
154 exitcode=0
155 if func_success; then
157 else
158 exitcode=1
159 echo func_failure succeeded.
162 if func_failure; then
163 exitcode=1
164 echo func_success failed.
167 if func_ret_success; then
169 else
170 exitcode=1
171 echo func_ret_success failed.
174 if func_ret_failure; then
175 exitcode=1
176 echo func_ret_failure succeeded.
179 test \$exitcode = 0) || { (exit 1); exit 1; }
182 as_lineno_1=\$LINENO
183 as_lineno_2=\$LINENO
184 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
185 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
186 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
187 ") 2> /dev/null; then
189 else
190 as_candidate_shells=
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 IFS=$as_save_IFS
195 test -z "$as_dir" && as_dir=.
196 case $as_dir in
198 for as_base in sh bash ksh sh5; do
199 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
200 done
201 esac
202 done
205 for as_shell in $as_candidate_shells $SHELL; do
206 if { $as_shell 2> /dev/null <<\_ASEOF
207 # Be Bourne compatible
208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
209 emulate sh
210 NULLCMD=:
211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 # is contrary to our usage. Disable this feature.
213 alias -g '${1+"$@"}'='"$@"'
214 setopt NO_GLOB_SUBST
215 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
216 set -o posix
218 BIN_SH=xpg4; export BIN_SH # for Tru64
219 DUALCASE=1; export DUALCASE # for MKS sh
222 _ASEOF
223 }; then
224 CONFIG_SHELL=$as_shell
225 as_have_required=yes
226 if { $as_shell 2> /dev/null <<\_ASEOF
227 # Be Bourne compatible
228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
229 emulate sh
230 NULLCMD=:
231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
232 # is contrary to our usage. Disable this feature.
233 alias -g '${1+"$@"}'='"$@"'
234 setopt NO_GLOB_SUBST
235 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
236 set -o posix
238 BIN_SH=xpg4; export BIN_SH # for Tru64
239 DUALCASE=1; export DUALCASE # for MKS sh
242 (func_return () {
243 (exit $1)
245 func_success () {
246 func_return 0
248 func_failure () {
249 func_return 1
251 func_ret_success () {
252 return 0
254 func_ret_failure () {
255 return 1
258 exitcode=0
259 if func_success; then
261 else
262 exitcode=1
263 echo func_failure succeeded.
266 if func_failure; then
267 exitcode=1
268 echo func_success failed.
271 if func_ret_success; then
273 else
274 exitcode=1
275 echo func_ret_success failed.
278 if func_ret_failure; then
279 exitcode=1
280 echo func_ret_failure succeeded.
283 test $exitcode = 0) || { (exit 1); exit 1; }
286 as_lineno_1=$LINENO
287 as_lineno_2=$LINENO
288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2") || { (exit 1); exit 1; }
292 _ASEOF
293 }; then
294 break
299 done
301 if test "x$CONFIG_SHELL" != x; then
302 for as_var in BASH_ENV ENV
303 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
304 done
305 export CONFIG_SHELL
306 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
310 if test $as_have_required = no; then
311 echo This script requires a shell more modern than all the
312 echo shells that I found on your system. Please install a
313 echo modern shell, or manually run the script under such a
314 echo shell if you do have one.
315 { (exit 1); exit 1; }
325 (eval "func_return () {
326 (exit \$1)
328 func_success () {
329 func_return 0
331 func_failure () {
332 func_return 1
334 func_ret_success () {
335 return 0
337 func_ret_failure () {
338 return 1
341 exitcode=0
342 if func_success; then
344 else
345 exitcode=1
346 echo func_failure succeeded.
349 if func_failure; then
350 exitcode=1
351 echo func_success failed.
354 if func_ret_success; then
356 else
357 exitcode=1
358 echo func_ret_success failed.
361 if func_ret_failure; then
362 exitcode=1
363 echo func_ret_failure succeeded.
366 test \$exitcode = 0") || {
367 echo No shell found that supports shell functions.
368 echo Please tell autoconf@gnu.org about your system,
369 echo including any error possibly output before this
370 echo message
375 as_lineno_1=$LINENO
376 as_lineno_2=$LINENO
377 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
378 test "x$as_lineno_1" != "x$as_lineno_2" &&
379 test "x$as_lineno_3" = "x$as_lineno_2" || {
381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
382 # uniformly replaced by the line number. The first 'sed' inserts a
383 # line-number line after each line using $LINENO; the second 'sed'
384 # does the real work. The second script uses 'N' to pair each
385 # line-number line with the line containing $LINENO, and appends
386 # trailing '-' during substitution so that $LINENO is not a special
387 # case at line end.
388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
389 # scripts with optimization help from Paolo Bonzini. Blame Lee
390 # E. McMahon (1931-1989) for sed's syntax. :-)
391 sed -n '
393 /[$]LINENO/=
394 ' <$as_myself |
395 sed '
396 s,[$]LINENO.*,&-,
397 t lineno
399 : lineno
401 : loop
402 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
403 t loop
404 s,-\n.*,,
405 ' >$as_me.lineno &&
406 chmod +x $as_me.lineno ||
407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
408 { (exit 1); exit 1; }; }
410 # Don't try to exec as it changes $[0], causing all sort of problems
411 # (the dirname of $[0] is not the place where we might find the
412 # original and so on. Autoconf is especially sensible to this).
413 . ./$as_me.lineno
414 # Exit status is that of the last command.
415 exit
419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
420 *c*,-n*) ECHO_N= ECHO_C='
421 ' ECHO_T=' ' ;;
422 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
423 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
424 esac
426 if expr a : '\(a\)' >/dev/null 2>&1; then
427 as_expr=expr
428 else
429 as_expr=false
432 rm -f conf$$ conf$$.exe conf$$.file
433 echo >conf$$.file
434 if ln -s conf$$.file conf$$ 2>/dev/null; then
435 # We could just check for DJGPP; but this test a) works b) is more generic
436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
437 if test -f conf$$.exe; then
438 # Don't use ln at all; we don't have any links
439 as_ln_s='cp -p'
440 else
441 as_ln_s='ln -s'
443 elif ln conf$$.file conf$$ 2>/dev/null; then
444 as_ln_s=ln
445 else
446 as_ln_s='cp -p'
448 rm -f conf$$ conf$$.exe conf$$.file
450 if mkdir -p . 2>/dev/null; then
451 as_mkdir_p=:
452 else
453 test -d ./-p && rmdir ./-p
454 as_mkdir_p=false
457 as_executable_p="test -f"
459 # Sed expression to map a string onto a valid CPP name.
460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
462 # Sed expression to map a string onto a valid variable name.
463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
466 # IFS
467 # We need space, tab and new line, in precisely that order.
468 as_nl='
470 IFS=" $as_nl"
472 # CDPATH.
473 $as_unset CDPATH
476 # Name of the host.
477 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
478 # so uname gets run too.
479 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
481 exec 6>&1
484 # Initializations.
486 ac_default_prefix=/usr/local
487 ac_config_libobj_dir=.
488 cross_compiling=no
489 subdirs=
490 MFLAGS=
491 MAKEFLAGS=
492 SHELL=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 # This variable seems obsolete. It should probably be removed, and
496 # only ac_max_sed_lines should be used.
497 : ${ac_max_here_lines=38}
499 # Identity of this package.
500 PACKAGE_NAME=
501 PACKAGE_TARNAME=
502 PACKAGE_VERSION=
503 PACKAGE_STRING=
504 PACKAGE_BUGREPORT=
506 ac_unique_file="src/roff/groff/groff.cpp"
507 # Factoring default headers for most tests.
508 ac_includes_default="\
509 #include <stdio.h>
510 #if HAVE_SYS_TYPES_H
511 # include <sys/types.h>
512 #endif
513 #if HAVE_SYS_STAT_H
514 # include <sys/stat.h>
515 #endif
516 #if STDC_HEADERS
517 # include <stdlib.h>
518 # include <stddef.h>
519 #else
520 # if HAVE_STDLIB_H
521 # include <stdlib.h>
522 # endif
523 #endif
524 #if HAVE_STRING_H
525 # if !STDC_HEADERS && HAVE_MEMORY_H
526 # include <memory.h>
527 # endif
528 # include <string.h>
529 #endif
530 #if HAVE_STRINGS_H
531 # include <strings.h>
532 #endif
533 #if HAVE_INTTYPES_H
534 # include <inttypes.h>
535 #endif
536 #if HAVE_STDINT_H
537 # include <stdint.h>
538 #endif
539 #if HAVE_UNISTD_H
540 # include <unistd.h>
541 #endif"
543 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR pnmcut pnmcrop pnmtopng psselect pnmtops gs make_html make_install_html pnmtops_nosetpage GHOSTSCRIPT ac_pt_GHOSTSCRIPT LTLIBOBJS'
544 ac_subst_files=''
546 # Initialize some variables set by options.
547 ac_init_help=
548 ac_init_version=false
549 # The variables have the same names as the options, with
550 # dashes changed to underlines.
551 cache_file=/dev/null
552 exec_prefix=NONE
553 no_create=
554 no_recursion=
555 prefix=NONE
556 program_prefix=NONE
557 program_suffix=NONE
558 program_transform_name=s,x,x,
559 silent=
560 site=
561 srcdir=
562 verbose=
563 x_includes=NONE
564 x_libraries=NONE
566 # Installation directory options.
567 # These are left unexpanded so users can "make install exec_prefix=/foo"
568 # and all the variables that are supposed to be based on exec_prefix
569 # by default will actually change.
570 # Use braces instead of parens because sh, perl, etc. also accept them.
571 bindir='${exec_prefix}/bin'
572 sbindir='${exec_prefix}/sbin'
573 libexecdir='${exec_prefix}/libexec'
574 datadir='${prefix}/share'
575 sysconfdir='${prefix}/etc'
576 sharedstatedir='${prefix}/com'
577 localstatedir='${prefix}/var'
578 libdir='${exec_prefix}/lib'
579 includedir='${prefix}/include'
580 oldincludedir='/usr/include'
581 infodir='${prefix}/info'
582 mandir='${prefix}/man'
584 ac_prev=
585 ac_dashdash=
586 for ac_option
588 # If the previous option needs an argument, assign it.
589 if test -n "$ac_prev"; then
590 eval "$ac_prev=\$ac_option"
591 ac_prev=
592 continue
595 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
597 # Accept the important Cygnus configure options, so we can diagnose typos.
599 case $ac_dashdash$ac_option in
601 ac_dashdash=yes ;;
603 -bindir | --bindir | --bindi | --bind | --bin | --bi)
604 ac_prev=bindir ;;
605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
606 bindir=$ac_optarg ;;
608 -build | --build | --buil | --bui | --bu)
609 ac_prev=build_alias ;;
610 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
611 build_alias=$ac_optarg ;;
613 -cache-file | --cache-file | --cache-fil | --cache-fi \
614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
615 ac_prev=cache_file ;;
616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
618 cache_file=$ac_optarg ;;
620 --config-cache | -C)
621 cache_file=config.cache ;;
623 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
624 ac_prev=datadir ;;
625 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
626 | --da=*)
627 datadir=$ac_optarg ;;
629 -disable-* | --disable-*)
630 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
634 { (exit 1); exit 1; }; }
635 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
636 eval "enable_$ac_feature=no" ;;
638 -enable-* | --enable-*)
639 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
640 # Reject names that are not valid shell variable names.
641 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
642 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
643 { (exit 1); exit 1; }; }
644 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
645 case $ac_option in
646 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
647 *) ac_optarg=yes ;;
648 esac
649 eval "enable_$ac_feature='$ac_optarg'" ;;
651 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
652 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
653 | --exec | --exe | --ex)
654 ac_prev=exec_prefix ;;
655 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
656 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
657 | --exec=* | --exe=* | --ex=*)
658 exec_prefix=$ac_optarg ;;
660 -gas | --gas | --ga | --g)
661 # Obsolete; use --with-gas.
662 with_gas=yes ;;
664 -help | --help | --hel | --he | -h)
665 ac_init_help=long ;;
666 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
667 ac_init_help=recursive ;;
668 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
669 ac_init_help=short ;;
671 -host | --host | --hos | --ho)
672 ac_prev=host_alias ;;
673 -host=* | --host=* | --hos=* | --ho=*)
674 host_alias=$ac_optarg ;;
676 -includedir | --includedir | --includedi | --included | --include \
677 | --includ | --inclu | --incl | --inc)
678 ac_prev=includedir ;;
679 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
680 | --includ=* | --inclu=* | --incl=* | --inc=*)
681 includedir=$ac_optarg ;;
683 -infodir | --infodir | --infodi | --infod | --info | --inf)
684 ac_prev=infodir ;;
685 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
686 infodir=$ac_optarg ;;
688 -libdir | --libdir | --libdi | --libd)
689 ac_prev=libdir ;;
690 -libdir=* | --libdir=* | --libdi=* | --libd=*)
691 libdir=$ac_optarg ;;
693 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
694 | --libexe | --libex | --libe)
695 ac_prev=libexecdir ;;
696 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
697 | --libexe=* | --libex=* | --libe=*)
698 libexecdir=$ac_optarg ;;
700 -localstatedir | --localstatedir | --localstatedi | --localstated \
701 | --localstate | --localstat | --localsta | --localst \
702 | --locals | --local | --loca | --loc | --lo)
703 ac_prev=localstatedir ;;
704 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
705 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
706 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
707 localstatedir=$ac_optarg ;;
709 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
710 ac_prev=mandir ;;
711 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
712 mandir=$ac_optarg ;;
714 -nfp | --nfp | --nf)
715 # Obsolete; use --without-fp.
716 with_fp=no ;;
718 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
719 | --no-cr | --no-c | -n)
720 no_create=yes ;;
722 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
723 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
724 no_recursion=yes ;;
726 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
727 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
728 | --oldin | --oldi | --old | --ol | --o)
729 ac_prev=oldincludedir ;;
730 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
731 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
732 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
733 oldincludedir=$ac_optarg ;;
735 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
736 ac_prev=prefix ;;
737 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
738 prefix=$ac_optarg ;;
740 -program-prefix | --program-prefix | --program-prefi | --program-pref \
741 | --program-pre | --program-pr | --program-p)
742 ac_prev=program_prefix ;;
743 -program-prefix=* | --program-prefix=* | --program-prefi=* \
744 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
745 program_prefix=$ac_optarg ;;
747 -program-suffix | --program-suffix | --program-suffi | --program-suff \
748 | --program-suf | --program-su | --program-s)
749 ac_prev=program_suffix ;;
750 -program-suffix=* | --program-suffix=* | --program-suffi=* \
751 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
752 program_suffix=$ac_optarg ;;
754 -program-transform-name | --program-transform-name \
755 | --program-transform-nam | --program-transform-na \
756 | --program-transform-n | --program-transform- \
757 | --program-transform | --program-transfor \
758 | --program-transfo | --program-transf \
759 | --program-trans | --program-tran \
760 | --progr-tra | --program-tr | --program-t)
761 ac_prev=program_transform_name ;;
762 -program-transform-name=* | --program-transform-name=* \
763 | --program-transform-nam=* | --program-transform-na=* \
764 | --program-transform-n=* | --program-transform-=* \
765 | --program-transform=* | --program-transfor=* \
766 | --program-transfo=* | --program-transf=* \
767 | --program-trans=* | --program-tran=* \
768 | --progr-tra=* | --program-tr=* | --program-t=*)
769 program_transform_name=$ac_optarg ;;
771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
772 | -silent | --silent | --silen | --sile | --sil)
773 silent=yes ;;
775 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
776 ac_prev=sbindir ;;
777 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
778 | --sbi=* | --sb=*)
779 sbindir=$ac_optarg ;;
781 -sharedstatedir | --sharedstatedir | --sharedstatedi \
782 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
783 | --sharedst | --shareds | --shared | --share | --shar \
784 | --sha | --sh)
785 ac_prev=sharedstatedir ;;
786 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
787 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
788 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
789 | --sha=* | --sh=*)
790 sharedstatedir=$ac_optarg ;;
792 -site | --site | --sit)
793 ac_prev=site ;;
794 -site=* | --site=* | --sit=*)
795 site=$ac_optarg ;;
797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
798 ac_prev=srcdir ;;
799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
800 srcdir=$ac_optarg ;;
802 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
803 | --syscon | --sysco | --sysc | --sys | --sy)
804 ac_prev=sysconfdir ;;
805 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
806 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
807 sysconfdir=$ac_optarg ;;
809 -target | --target | --targe | --targ | --tar | --ta | --t)
810 ac_prev=target_alias ;;
811 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
812 target_alias=$ac_optarg ;;
814 -v | -verbose | --verbose | --verbos | --verbo | --verb)
815 verbose=yes ;;
817 -version | --version | --versio | --versi | --vers | -V)
818 ac_init_version=: ;;
820 -with-* | --with-*)
821 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid package name: $ac_package" >&2
825 { (exit 1); exit 1; }; }
826 ac_package=`echo $ac_package| sed 's/-/_/g'`
827 case $ac_option in
828 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
829 *) ac_optarg=yes ;;
830 esac
831 eval "with_$ac_package='$ac_optarg'" ;;
833 -without-* | --without-*)
834 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
837 { echo "$as_me: error: invalid package name: $ac_package" >&2
838 { (exit 1); exit 1; }; }
839 ac_package=`echo $ac_package | sed 's/-/_/g'`
840 eval "with_$ac_package=no" ;;
842 --x)
843 # Obsolete; use --with-x.
844 with_x=yes ;;
846 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
847 | --x-incl | --x-inc | --x-in | --x-i)
848 ac_prev=x_includes ;;
849 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
850 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
851 x_includes=$ac_optarg ;;
853 -x-libraries | --x-libraries | --x-librarie | --x-librari \
854 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
855 ac_prev=x_libraries ;;
856 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
857 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
858 x_libraries=$ac_optarg ;;
860 -*) { echo "$as_me: error: unrecognized option: $ac_option
861 Try \`$0 --help' for more information." >&2
862 { (exit 1); exit 1; }; }
865 *=*)
866 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
869 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
870 { (exit 1); exit 1; }; }
871 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
872 eval "$ac_envvar='$ac_optarg'"
873 export $ac_envvar ;;
876 # FIXME: should be removed in autoconf 3.0.
877 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
878 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
879 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
880 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
883 esac
884 done
886 if test -n "$ac_prev"; then
887 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
888 { echo "$as_me: error: missing argument to $ac_option" >&2
889 { (exit 1); exit 1; }; }
892 # Be sure to have absolute directory names.
893 for ac_var in exec_prefix prefix
895 eval ac_val=$`echo $ac_var`
896 case $ac_val in
897 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
900 esac
901 done
903 # Be sure to have absolute directory names.
904 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
905 localstatedir libdir includedir oldincludedir infodir mandir
907 eval ac_val=$`echo $ac_var`
908 case $ac_val in
909 [\\/$]* | ?:[\\/]* ) ;;
910 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
911 { (exit 1); exit 1; }; };;
912 esac
913 done
915 # There might be people who depend on the old broken behavior: `$host'
916 # used to hold the argument of --host etc.
917 # FIXME: To remove some day.
918 build=$build_alias
919 host=$host_alias
920 target=$target_alias
922 # FIXME: To remove some day.
923 if test "x$host_alias" != x; then
924 if test "x$build_alias" = x; then
925 cross_compiling=maybe
926 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
927 If a cross compiler is detected then cross compile mode will be used." >&2
928 elif test "x$build_alias" != "x$host_alias"; then
929 cross_compiling=yes
933 ac_tool_prefix=
934 test -n "$host_alias" && ac_tool_prefix=$host_alias-
936 test "$silent" = yes && exec 6>/dev/null
939 # Find the source files, if location was not specified.
940 if test -z "$srcdir"; then
941 ac_srcdir_defaulted=yes
942 # Try the directory containing this script, then its parent.
943 ac_confdir=`(dirname "$0") 2>/dev/null ||
944 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
945 X"$0" : 'X\(//\)[^/]' \| \
946 X"$0" : 'X\(//\)$' \| \
947 X"$0" : 'X\(/\)' \| \
948 . : '\(.\)' 2>/dev/null ||
949 echo X"$0" |
950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
952 /^X\(\/\/\)$/{ s//\1/; q; }
953 /^X\(\/\).*/{ s//\1/; q; }
954 s/.*/./; q'`
955 srcdir=$ac_confdir
956 if test ! -r $srcdir/$ac_unique_file; then
957 srcdir=..
959 else
960 ac_srcdir_defaulted=no
962 if test ! -r $srcdir/$ac_unique_file; then
963 if test "$ac_srcdir_defaulted" = yes; then
964 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
965 { (exit 1); exit 1; }; }
966 else
967 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
968 { (exit 1); exit 1; }; }
971 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
972 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
973 { (exit 1); exit 1; }; }
974 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
975 ac_env_build_alias_set=${build_alias+set}
976 ac_env_build_alias_value=$build_alias
977 ac_cv_env_build_alias_set=${build_alias+set}
978 ac_cv_env_build_alias_value=$build_alias
979 ac_env_host_alias_set=${host_alias+set}
980 ac_env_host_alias_value=$host_alias
981 ac_cv_env_host_alias_set=${host_alias+set}
982 ac_cv_env_host_alias_value=$host_alias
983 ac_env_target_alias_set=${target_alias+set}
984 ac_env_target_alias_value=$target_alias
985 ac_cv_env_target_alias_set=${target_alias+set}
986 ac_cv_env_target_alias_value=$target_alias
987 ac_env_CC_set=${CC+set}
988 ac_env_CC_value=$CC
989 ac_cv_env_CC_set=${CC+set}
990 ac_cv_env_CC_value=$CC
991 ac_env_CFLAGS_set=${CFLAGS+set}
992 ac_env_CFLAGS_value=$CFLAGS
993 ac_cv_env_CFLAGS_set=${CFLAGS+set}
994 ac_cv_env_CFLAGS_value=$CFLAGS
995 ac_env_LDFLAGS_set=${LDFLAGS+set}
996 ac_env_LDFLAGS_value=$LDFLAGS
997 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
998 ac_cv_env_LDFLAGS_value=$LDFLAGS
999 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1000 ac_env_CPPFLAGS_value=$CPPFLAGS
1001 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1002 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1003 ac_env_CXX_set=${CXX+set}
1004 ac_env_CXX_value=$CXX
1005 ac_cv_env_CXX_set=${CXX+set}
1006 ac_cv_env_CXX_value=$CXX
1007 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1008 ac_env_CXXFLAGS_value=$CXXFLAGS
1009 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1010 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1011 ac_env_CPP_set=${CPP+set}
1012 ac_env_CPP_value=$CPP
1013 ac_cv_env_CPP_set=${CPP+set}
1014 ac_cv_env_CPP_value=$CPP
1017 # Report the --help message.
1019 if test "$ac_init_help" = "long"; then
1020 # Omit some internal or obsolete options to make the list less imposing.
1021 # This message is too long to be a string in the A/UX 3.1 sh.
1022 cat <<_ACEOF
1023 \`configure' configures this package to adapt to many kinds of systems.
1025 Usage: $0 [OPTION]... [VAR=VALUE]...
1027 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1028 VAR=VALUE. See below for descriptions of some of the useful variables.
1030 Defaults for the options are specified in brackets.
1032 Configuration:
1033 -h, --help display this help and exit
1034 --help=short display options specific to this package
1035 --help=recursive display the short help of all the included packages
1036 -V, --version display version information and exit
1037 -q, --quiet, --silent do not print \`checking...' messages
1038 --cache-file=FILE cache test results in FILE [disabled]
1039 -C, --config-cache alias for \`--cache-file=config.cache'
1040 -n, --no-create do not create output files
1041 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1043 _ACEOF
1045 cat <<_ACEOF
1046 Installation directories:
1047 --prefix=PREFIX install architecture-independent files in PREFIX
1048 [$ac_default_prefix]
1049 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1050 [PREFIX]
1052 By default, \`make install' will install all the files in
1053 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1054 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1055 for instance \`--prefix=\$HOME'.
1057 For better control, use the options below.
1059 Fine tuning of the installation directories:
1060 --bindir=DIR user executables [EPREFIX/bin]
1061 --sbindir=DIR system admin executables [EPREFIX/sbin]
1062 --libexecdir=DIR program executables [EPREFIX/libexec]
1063 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1064 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1065 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1066 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1067 --libdir=DIR object code libraries [EPREFIX/lib]
1068 --includedir=DIR C header files [PREFIX/include]
1069 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1070 --infodir=DIR info documentation [PREFIX/info]
1071 --mandir=DIR man documentation [PREFIX/man]
1072 _ACEOF
1074 cat <<\_ACEOF
1076 X features:
1077 --x-includes=DIR X include files are in DIR
1078 --x-libraries=DIR X library files are in DIR
1079 _ACEOF
1082 if test -n "$ac_init_help"; then
1084 cat <<\_ACEOF
1086 Optional Packages:
1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 --with-x use the X Window System
1090 --with-appresdir=DIR X11 application resource files
1092 Some influential environment variables:
1093 CC C compiler command
1094 CFLAGS C compiler flags
1095 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1096 nonstandard directory <lib dir>
1097 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1098 headers in a nonstandard directory <include dir>
1099 CXX C++ compiler command
1100 CXXFLAGS C++ compiler flags
1101 CPP C preprocessor
1103 Use these variables to override the choices made by `configure' or to help
1104 it to find libraries and programs with nonstandard names/locations.
1106 _ACEOF
1109 if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1116 if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120 else
1121 ac_dir_suffix= ac_top_builddir=
1124 case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute name.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative name.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138 esac
1140 # Do not use `cd foo && pwd` to compute absolute names, because
1141 # the directories may not exist.
1142 case `pwd` in
1143 .) ac_abs_builddir="$ac_dir";;
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177 esac
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
1188 test -f $ac_srcdir/configure.in; then
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194 cd "$ac_popdir"
1195 done
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1200 cat <<\_ACEOF
1202 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1203 2003, 2004 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206 _ACEOF
1207 exit 0
1209 exec 5>config.log
1210 cat >&5 <<_ACEOF
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1214 It was created by $as_me, which was
1215 generated by GNU Autoconf 2.59b. Invocation command line was
1217 $ $0 $@
1219 _ACEOF
1221 cat <<_ASUNAME
1222 ## --------- ##
1223 ## Platform. ##
1224 ## --------- ##
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243 _ASUNAME
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246 for as_dir in $PATH
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251 done
1253 } >&5
1255 cat >&5 <<_ACEOF
1258 ## ----------- ##
1259 ## Core tests. ##
1260 ## ----------- ##
1262 _ACEOF
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1270 ac_configure_args=
1271 ac_configure_args0=
1272 ac_configure_args1=
1273 ac_sep=
1274 ac_must_keep_next=false
1275 for ac_pass in 1 2
1277 for ac_arg
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
1292 ac_must_keep_next=false # Got value, back to normal.
1293 else
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1303 -* ) ac_must_keep_next=true ;;
1304 esac
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1310 esac
1311 done
1312 done
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log. We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1324 echo
1326 cat <<\_ASBOX
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1330 _ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1342 sed -n \
1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1345 esac;
1347 echo
1349 cat <<\_ASBOX
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1353 _ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364 ## ------------- ##
1365 ## Output files. ##
1366 ## ------------- ##
1367 _ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1371 eval ac_val=$`echo $ac_var`
1372 echo "$ac_var='"'"'$ac_val'"'"'"
1373 done | sort
1374 echo
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379 ## ----------- ##
1380 ## confdefs.h. ##
1381 ## ----------- ##
1382 _ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
1391 rm -f core *.core &&
1392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1395 for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397 done
1398 ac_signal=0
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -f -r conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1404 ac_space=' '
1405 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
1407 # Predefined preprocessor variables.
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_NAME "$PACKAGE_NAME"
1411 _ACEOF
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416 _ACEOF
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1421 _ACEOF
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_STRING "$PACKAGE_STRING"
1426 _ACEOF
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431 _ACEOF
1434 # Let the site file select an alternate cache file if it wants to.
1435 # Prefer explicitly selected file to automatically selected ones.
1436 if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439 else
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446 echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's/^/| /' "$ac_site_file" >&5
1448 . "$ac_site_file"
1450 done
1452 if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457 echo "$as_me: loading cache $cache_file" >&6;}
1458 case $cache_file in
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1461 esac
1463 else
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465 echo "$as_me: creating cache $cache_file" >&6;}
1466 >$cache_file
1469 # Check that the precious variables saved in the cache have kept the same
1470 # value.
1471 ac_cache_corrupted=false
1472 for ac_var in `(set) 2>&1 |
1473 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1479 set,)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,set)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,);;
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1491 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1493 echo "$as_me: former value: $ac_old_val" >&2;}
1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1495 echo "$as_me: current value: $ac_new_val" >&2;}
1496 ac_cache_corrupted=:
1497 fi;;
1498 esac
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1501 case $ac_new_val in
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1505 esac
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 esac
1511 done
1512 if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1549 # checks for programs
1550 ac_ext=c
1551 ac_cpp='$CPP $CPPFLAGS'
1552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 if test -n "$ac_tool_prefix"; then
1556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1577 done
1578 done
1582 CC=$ac_cv_prog_CC
1583 if test -n "$CC"; then
1584 echo "$as_me:$LINENO: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1592 if test -z "$ac_cv_prog_CC"; then
1593 ac_ct_CC=$CC
1594 # Extract the first word of "gcc", so it can be a program name with args.
1595 set dummy gcc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601 if test -n "$ac_ct_CC"; then
1602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1603 else
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 ac_cv_prog_ac_ct_CC="gcc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 break 2
1615 done
1616 done
1620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1621 if test -n "$ac_ct_CC"; then
1622 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1623 echo "${ECHO_T}$ac_ct_CC" >&6
1624 else
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1629 if test "x$ac_ct_CC" = x; then
1630 CC=""
1631 else
1632 if test "$build" != "$host"; then
1633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1634 whose name does not start with the host triplet. If you think this
1635 configuration is useful to you, please write to autoconf@gnu.org." >&5
1636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1637 whose name does not start with the host triplet. If you think this
1638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1640 CC=$ac_ct_CC
1642 else
1643 CC="$ac_cv_prog_CC"
1646 if test -z "$CC"; then
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="${ac_tool_prefix}cc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1669 done
1670 done
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$ac_cv_prog_CC"; then
1685 ac_ct_CC=$CC
1686 # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$ac_ct_CC"; then
1694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_CC="cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1713 if test -n "$ac_ct_CC"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1715 echo "${ECHO_T}$ac_ct_CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1721 if test "x$ac_ct_CC" = x; then
1722 CC=""
1723 else
1724 if test "$build" != "$host"; then
1725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1726 whose name does not start with the host triplet. If you think this
1727 configuration is useful to you, please write to autoconf@gnu.org." >&5
1728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1729 whose name does not start with the host triplet. If you think this
1730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1732 CC=$ac_ct_CC
1734 else
1735 CC="$ac_cv_prog_CC"
1739 if test -z "$CC"; then
1740 # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1749 else
1750 ac_prog_rejected=no
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1759 ac_prog_rejected=yes
1760 continue
1762 ac_cv_prog_CC="cc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 break 2
1766 done
1767 done
1769 if test $ac_prog_rejected = yes; then
1770 # We found a bogon in the path, so make sure we never use it.
1771 set dummy $ac_cv_prog_CC
1772 shift
1773 if test $# != 0; then
1774 # We chose a different compiler from the bogus one.
1775 # However, it has the same basename, so the bogon will be chosen
1776 # first if we set CC to just the basename; use the full file name.
1777 shift
1778 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1793 if test -z "$CC"; then
1794 if test -n "$ac_tool_prefix"; then
1795 for ac_prog in cl
1797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 if test -n "$CC"; then
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1810 IFS=$as_save_IFS
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816 break 2
1818 done
1819 done
1823 CC=$ac_cv_prog_CC
1824 if test -n "$CC"; then
1825 echo "$as_me:$LINENO: result: $CC" >&5
1826 echo "${ECHO_T}$CC" >&6
1827 else
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$CC" && break
1833 done
1835 if test -z "$CC"; then
1836 ac_ct_CC=$CC
1837 for ac_prog in cl
1839 # Extract the first word of "$ac_prog", so it can be a program name with args.
1840 set dummy $ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$ac_ct_CC"; then
1847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1852 IFS=$as_save_IFS
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_ac_ct_CC="$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 break 2
1860 done
1861 done
1865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 test -n "$ac_ct_CC" && break
1875 done
1877 if test "x$ac_ct_CC" = x; then
1878 CC=""
1879 else
1880 if test "$build" != "$host"; then
1881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1882 whose name does not start with the host triplet. If you think this
1883 configuration is useful to you, please write to autoconf@gnu.org." >&5
1884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1885 whose name does not start with the host triplet. If you think this
1886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1888 CC=$ac_ct_CC
1895 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: no acceptable C compiler found in \$PATH
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1901 # Provide some information about the compiler.
1902 echo "$as_me:$LINENO:" \
1903 "checking for C compiler version" >&5
1904 ac_compiler=`set X $ac_compile; echo $2`
1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1906 (eval $ac_compiler --version </dev/null >&5) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1911 (eval $ac_compiler -v </dev/null >&5) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1916 (eval $ac_compiler -V </dev/null >&5) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1921 cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h. */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1929 main ()
1933 return 0;
1935 _ACEOF
1936 ac_clean_files_save=$ac_clean_files
1937 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1938 # Try to create an executable without -o first, disregard a.out.
1939 # It will help us diagnose broken compilers, and finding out an intuition
1940 # of exeext.
1941 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1942 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1943 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1945 # List of possible output files, starting from the most likely.
1946 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1947 # only as a last resort. b.out is created by i960 compilers.
1948 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1950 # The IRIX 6 linker writes into existing files which may not be
1951 # executable, retaining their permissions. Remove them first so a
1952 # subsequent execution test works.
1953 ac_rmfiles=
1954 for ac_file in $ac_files
1956 case $ac_file in
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1959 esac
1960 done
1961 rm -f $ac_rmfiles
1963 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1964 (eval $ac_link_default) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; then
1968 # Be careful to initialize this variable, since it used to be cached.
1969 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970 ac_cv_exeext=
1971 for ac_file in $ac_files
1973 test -f "$ac_file" || continue
1974 case $ac_file in
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 [ab].out )
1978 # We found the default executable, but exeext='' is most
1979 # certainly right.
1980 break;;
1981 *.* )
1982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1983 # FIXME: I believe we export ac_cv_exeext for Libtool,
1984 # but it would be cool to find out if it's true. Does anybody
1985 # maintain Libtool? --akim.
1986 export ac_cv_exeext
1987 break;;
1989 break;;
1990 esac
1991 done
1992 else
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: C compiler cannot create executables
1999 See \`config.log' for more details." >&2;}
2000 { (exit 77); exit 77; }; }
2003 ac_exeext=$ac_cv_exeext
2004 echo "$as_me:$LINENO: result: $ac_file" >&5
2005 echo "${ECHO_T}$ac_file" >&6
2007 # Check the compiler produces executables we can run. If not, either
2008 # the compiler is broken, or we cross compile.
2009 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2010 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2011 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2012 # If not cross compiling, check that we can run a simple program.
2013 if test "$cross_compiling" != yes; then
2014 if { ac_try='./$ac_file'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016 (eval $ac_try) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }; }; then
2020 cross_compiling=no
2021 else
2022 if test "$cross_compiling" = maybe; then
2023 cross_compiling=yes
2024 else
2025 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2026 If you meant to cross compile, use \`--host'.
2027 See \`config.log' for more details." >&5
2028 echo "$as_me: error: cannot run C compiled programs.
2029 If you meant to cross compile, use \`--host'.
2030 See \`config.log' for more details." >&2;}
2031 { (exit 1); exit 1; }; }
2035 echo "$as_me:$LINENO: result: yes" >&5
2036 echo "${ECHO_T}yes" >&6
2038 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2039 ac_clean_files=$ac_clean_files_save
2040 # Check the compiler produces executables we can run. If not, either
2041 # the compiler is broken, or we cross compile.
2042 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2043 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2044 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2045 echo "${ECHO_T}$cross_compiling" >&6
2047 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2048 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2050 (eval $ac_link) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; then
2054 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2056 # work properly (i.e., refer to `conftest.exe'), while it won't with
2057 # `rm'.
2058 for ac_file in conftest.exe conftest conftest.*; do
2059 test -f "$ac_file" || continue
2060 case $ac_file in
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2063 export ac_cv_exeext
2064 break;;
2065 * ) break;;
2066 esac
2067 done
2068 else
2069 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2076 rm -f conftest$ac_cv_exeext
2077 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2078 echo "${ECHO_T}$ac_cv_exeext" >&6
2080 rm -f conftest.$ac_ext
2081 EXEEXT=$ac_cv_exeext
2082 ac_exeext=$EXEEXT
2083 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2084 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2085 if test "${ac_cv_objext+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 cat >conftest.$ac_ext <<_ACEOF
2089 /* confdefs.h. */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2096 main ()
2100 return 0;
2102 _ACEOF
2103 rm -f conftest.o conftest.obj
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2110 case $ac_file in
2111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2113 break;;
2114 esac
2115 done
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2120 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2129 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2130 echo "${ECHO_T}$ac_cv_objext" >&6
2131 OBJEXT=$ac_cv_objext
2132 ac_objext=$OBJEXT
2133 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2134 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 cat >conftest.$ac_ext <<_ACEOF
2139 /* confdefs.h. */
2140 _ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2146 main ()
2148 #ifndef __GNUC__
2149 choke me
2150 #endif
2153 return 0;
2155 _ACEOF
2156 rm -f conftest.$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2159 ac_status=$?
2160 grep -v '^ *+' conftest.er1 >conftest.err
2161 rm -f conftest.er1
2162 cat conftest.err >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 (eval $ac_try) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 ac_compiler_gnu=yes
2179 else
2180 echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2183 ac_compiler_gnu=no
2185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2186 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2189 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2190 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2191 GCC=`test $ac_compiler_gnu = yes && echo yes`
2192 ac_test_CFLAGS=${CFLAGS+set}
2193 ac_save_CFLAGS=$CFLAGS
2194 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2195 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2196 if test "${ac_cv_prog_cc_g+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 ac_save_c_werror_flag=$ac_c_werror_flag
2200 ac_c_werror_flag=yes
2201 ac_cv_prog_cc_g=no
2202 CFLAGS="-g"
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h. */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2211 main ()
2215 return 0;
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 ac_cv_prog_cc_g=yes
2241 else
2242 echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2245 CFLAGS=""
2246 cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h. */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2254 main ()
2258 return 0;
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2264 ac_status=$?
2265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2284 else
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 ac_c_werror_flag=$ac_save_c_werror_flag
2289 CFLAGS="-g"
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2298 main ()
2302 return 0;
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 ac_cv_prog_cc_g=yes
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 ac_c_werror_flag=$ac_save_c_werror_flag
2340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2341 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2342 if test "$ac_test_CFLAGS" = set; then
2343 CFLAGS=$ac_save_CFLAGS
2344 elif test $ac_cv_prog_cc_g = yes; then
2345 if test "$GCC" = yes; then
2346 CFLAGS="-g -O2"
2347 else
2348 CFLAGS="-g"
2350 else
2351 if test "$GCC" = yes; then
2352 CFLAGS="-O2"
2353 else
2354 CFLAGS=
2357 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2358 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2359 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 ac_cv_prog_cc_stdc=no
2363 ac_save_CC=$CC
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2370 #include <stdarg.h>
2371 #include <stdio.h>
2372 #include <sys/types.h>
2373 #include <sys/stat.h>
2374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2375 struct buf { int x; };
2376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2377 static char *e (p, i)
2378 char **p;
2379 int i;
2381 return p[i];
2383 static char *f (char * (*g) (char **, int), char **p, ...)
2385 char *s;
2386 va_list v;
2387 va_start (v,p);
2388 s = g (p, va_arg (v,int));
2389 va_end (v);
2390 return s;
2393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2394 function prototypes and stuff, but not '\xHH' hex character constants.
2395 These don't provoke an error unfortunately, instead are silently treated
2396 as 'x'. The following induces an error, until -std is added to get
2397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2398 array size at least. It's necessary to write '\x00'==0 to get something
2399 that's true only with -std. */
2400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2406 int argc;
2407 char **argv;
2409 main ()
2411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2413 return 0;
2415 _ACEOF
2416 # Don't try gcc -ansi; that turns off useful extensions and
2417 # breaks some systems' header files.
2418 # AIX -qlanglvl=ansi
2419 # Ultrix, OSF/1, Tru64 -std
2420 # HP-UX 10.20 and later -Ae
2421 # HP-UX older versions -Aa -D_HPUX_SOURCE
2422 # SVR4 -Xc -D__EXTENSIONS__
2423 for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2425 CC="$ac_save_CC $ac_arg"
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_cv_prog_cc_stdc=$ac_arg
2449 break
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext
2456 done
2457 rm -f conftest.$ac_ext conftest.$ac_objext
2458 CC=$ac_save_CC
2462 case "x$ac_cv_prog_cc_stdc" in
2463 x|xno)
2464 echo "$as_me:$LINENO: result: none needed" >&5
2465 echo "${ECHO_T}none needed" >&6 ;;
2467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2468 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2469 CC="$CC $ac_cv_prog_cc_stdc" ;;
2470 esac
2472 # Some people use a C++ compiler to compile C. Since we use `exit',
2473 # in C++ we need to declare it. In case someone uses the same compiler
2474 # for both compiling C and C++ we need to have the C++ compiler decide
2475 # the declaration of exit, since it's the most demanding environment.
2476 cat >conftest.$ac_ext <<_ACEOF
2477 #ifndef __cplusplus
2478 choke me
2479 #endif
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_c_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 for ac_declaration in \
2504 '' \
2505 'extern "C" void std::exit (int) throw (); using std::exit;' \
2506 'extern "C" void std::exit (int); using std::exit;' \
2507 'extern "C" void exit (int) throw ();' \
2508 'extern "C" void exit (int);' \
2509 'void exit (int);'
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 $ac_declaration
2518 #include <stdlib.h>
2520 main ()
2522 exit (42);
2524 return 0;
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_c_werror_flag"
2537 || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2550 else
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2554 continue
2556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2563 $ac_declaration
2565 main ()
2567 exit (42);
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 break
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601 done
2602 rm -f conftest*
2603 if test -n "$ac_declaration"; then
2604 echo '#ifdef __cplusplus' >>confdefs.h
2605 echo $ac_declaration >>confdefs.h
2606 echo '#endif' >>confdefs.h
2609 else
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 ac_ext=cc
2622 ac_cpp='$CXXCPP $CPPFLAGS'
2623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_CXX+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636 if test -n "$CXX"; then
2637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2650 done
2651 done
2655 CXX=$ac_cv_prog_CXX
2656 if test -n "$CXX"; then
2657 echo "$as_me:$LINENO: result: $CXX" >&5
2658 echo "${ECHO_T}$CXX" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2664 test -n "$CXX" && break
2665 done
2667 if test -z "$CXX"; then
2668 ac_ct_CXX=$CXX
2669 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 if test -n "$ac_ct_CXX"; then
2679 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_CXX="$ac_prog"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2698 if test -n "$ac_ct_CXX"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2700 echo "${ECHO_T}$ac_ct_CXX" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2706 test -n "$ac_ct_CXX" && break
2707 done
2709 if test "x$ac_ct_CXX" = x; then
2710 CXX="g++"
2711 else
2712 if test "$build" != "$host"; then
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet. If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720 CXX=$ac_ct_CXX
2725 # Provide some information about the compiler.
2726 echo "$as_me:$LINENO:" \
2727 "checking for C++ compiler version" >&5
2728 ac_compiler=`set X $ac_compile; echo $2`
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2730 (eval $ac_compiler --version </dev/null >&5) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2735 (eval $ac_compiler -v </dev/null >&5) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2740 (eval $ac_compiler -V </dev/null >&5) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2745 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2746 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2747 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2758 main ()
2760 #ifndef __GNUC__
2761 choke me
2762 #endif
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_cxx_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 ac_compiler_gnu=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2795 ac_compiler_gnu=no
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2801 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2803 GXX=`test $ac_compiler_gnu = yes && echo yes`
2804 ac_test_CXXFLAGS=${CXXFLAGS+set}
2805 ac_save_CXXFLAGS=$CXXFLAGS
2806 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2807 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2808 if test "${ac_cv_prog_cxx_g+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2812 ac_cxx_werror_flag=yes
2813 ac_cv_prog_cxx_g=no
2814 CXXFLAGS="-g"
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h. */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2823 main ()
2827 return 0;
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try='test -z "$ac_cxx_werror_flag"
2840 || test ! -s conftest.err'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 ac_cv_prog_cxx_g=yes
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 CXXFLAGS=""
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2866 main ()
2870 return 0;
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_cxx_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2901 CXXFLAGS="-g"
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 main ()
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2920 ac_status=$?
2921 grep -v '^ *+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_cxx_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_prog_cxx_g=yes
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2952 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2954 if test "$ac_test_CXXFLAGS" = set; then
2955 CXXFLAGS=$ac_save_CXXFLAGS
2956 elif test $ac_cv_prog_cxx_g = yes; then
2957 if test "$GXX" = yes; then
2958 CXXFLAGS="-g -O2"
2959 else
2960 CXXFLAGS="-g"
2962 else
2963 if test "$GXX" = yes; then
2964 CXXFLAGS="-O2"
2965 else
2966 CXXFLAGS=
2969 for ac_declaration in \
2970 '' \
2971 'extern "C" void std::exit (int) throw (); using std::exit;' \
2972 'extern "C" void std::exit (int); using std::exit;' \
2973 'extern "C" void exit (int) throw ();' \
2974 'extern "C" void exit (int);' \
2975 'void exit (int);'
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 $ac_declaration
2984 #include <stdlib.h>
2986 main ()
2988 exit (42);
2990 return 0;
2992 _ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_cxx_werror_flag"
3003 || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 (eval $ac_try) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 continue
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 $ac_declaration
3031 main ()
3033 exit (42);
3035 return 0;
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_cxx_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 break
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 done
3068 rm -f conftest*
3069 if test -n "$ac_declaration"; then
3070 echo '#ifdef __cplusplus' >>confdefs.h
3071 echo $ac_declaration >>confdefs.h
3072 echo '#endif' >>confdefs.h
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 ac_ext=cc
3084 ac_cpp='$CXXCPP $CPPFLAGS'
3085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3089 if test "$cross_compiling" = no; then
3090 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3091 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3093 if test "$cross_compiling" = yes; then
3095 else
3096 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3105 int main() {
3106 return 0;
3111 _ACEOF
3112 rm -f conftest$ac_exeext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114 (eval $ac_link) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3125 else
3126 echo "$as_me: program exited with status $ac_status" >&5
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 ( exit $ac_status )
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3134 echo "$as_me: error: a working C++ compiler is required" >&2;}
3135 { (exit 1); exit 1; }; }
3137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3140 if test "$cross_compiling" = no; then
3141 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3142 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3144 if test "$cross_compiling" = yes; then
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3156 extern "C" {
3157 void _exit(int);
3160 int i;
3161 struct A {
3162 char dummy;
3163 A() { i = 1; }
3164 ~A() { if (i == 1) _exit(0); }
3167 A a;
3169 int main()
3171 return 1;
3176 _ACEOF
3177 rm -f conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6
3190 else
3191 echo "$as_me: program exited with status $ac_status" >&5
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 ( exit $ac_status )
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3199 echo "$as_me: error: a working C++ compiler is required" >&2;}
3200 { (exit 1); exit 1; }; }
3202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3205 echo "$as_me:$LINENO: checking that header files support C++" >&5
3206 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3207 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3216 #include <stdio.h>
3220 main ()
3224 fopen(0, 0);
3228 return 0;
3231 _ACEOF
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234 (eval $ac_link) 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_cxx_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest$ac_exeext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 { { echo "$as_me:$LINENO: error: header files do not support C++
3263 (if you are using a version of gcc/g++ earlier than 2.5,
3264 you should install libg++)" >&5
3265 echo "$as_me: error: header files do not support C++
3266 (if you are using a version of gcc/g++ earlier than 2.5,
3267 you should install libg++)" >&2;}
3268 { (exit 1); exit 1; }; }
3270 rm -f conftest.err conftest.$ac_objext \
3271 conftest$ac_exeext conftest.$ac_ext
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3280 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3281 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 /* Treat any failure as ASCII for compatibility with existing art.
3291 Use compile-time rather than run-time tests for cross-compiler
3292 tolerance. */
3293 #if '0' != 240
3294 make an error "Character set is not EBCDIC"
3295 #endif
3299 main ()
3303 return 0;
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 groff_cv_ebcdic="yes"
3330 TTYDEVDIRS="font/devcp1047"
3331 echo "$as_me:$LINENO: result: yes" >&5
3332 echo "${ECHO_T}yes" >&6
3334 cat >>confdefs.h <<\_ACEOF
3335 #define IS_EBCDIC_HOST 1
3336 _ACEOF
3338 else
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 groff_cv_ebcdic="no"
3343 TTYDEVDIRS="font/devascii font/devlatin1"
3344 OTHERDEVDIRS="font/devlj4 font/devlbp"
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351 if test "$groff_cv_ebcdic" = "yes"; then
3352 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3353 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3354 case `uname` in
3355 OS/390)
3356 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3357 echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6 ;;
3360 echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6 ;;
3362 esac
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3371 # On Suns, sometimes $CPP names a directory.
3372 if test -n "$CPP" && test -d "$CPP"; then
3373 CPP=
3375 if test -z "$CPP"; then
3376 if test "${ac_cv_prog_CPP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 # Double quotes because CPP needs to be expanded
3380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3382 ac_preproc_ok=false
3383 for ac_c_preproc_warn_flag in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #ifdef __STDC__
3398 # include <limits.h>
3399 #else
3400 # include <assert.h>
3401 #endif
3402 Syntax error
3403 _ACEOF
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null; then
3412 if test -s conftest.err; then
3413 ac_cpp_err=$ac_c_preproc_warn_flag
3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 else
3416 ac_cpp_err=
3418 else
3419 ac_cpp_err=yes
3421 if test -z "$ac_cpp_err"; then
3423 else
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Broken: fails on valid input.
3428 continue
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether non-existent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 else
3454 ac_cpp_err=
3456 else
3457 ac_cpp_err=yes
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3461 continue
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3467 ac_preproc_ok=:
3468 break
3470 rm -f conftest.err conftest.$ac_ext
3472 done
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3476 break
3479 done
3480 ac_cv_prog_CPP=$CPP
3483 CPP=$ac_cv_prog_CPP
3484 else
3485 ac_cv_prog_CPP=$CPP
3487 echo "$as_me:$LINENO: result: $CPP" >&5
3488 echo "${ECHO_T}$CPP" >&6
3489 ac_preproc_ok=false
3490 for ac_c_preproc_warn_flag in '' yes
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #ifdef __STDC__
3505 # include <limits.h>
3506 #else
3507 # include <assert.h>
3508 #endif
3509 Syntax error
3510 _ACEOF
3511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev/null; then
3519 if test -s conftest.err; then
3520 ac_cpp_err=$ac_c_preproc_warn_flag
3521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3522 else
3523 ac_cpp_err=
3525 else
3526 ac_cpp_err=yes
3528 if test -z "$ac_cpp_err"; then
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 # Broken: fails on valid input.
3535 continue
3537 rm -f conftest.err conftest.$ac_ext
3539 # OK, works on sane cases. Now check whether non-existent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3548 _ACEOF
3549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3563 else
3564 ac_cpp_err=yes
3566 if test -z "$ac_cpp_err"; then
3567 # Broken: success on invalid input.
3568 continue
3569 else
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Passes both tests.
3574 ac_preproc_ok=:
3575 break
3577 rm -f conftest.err conftest.$ac_ext
3579 done
3580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3581 rm -f conftest.err conftest.$ac_ext
3582 if $ac_preproc_ok; then
3584 else
3585 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3586 See \`config.log' for more details." >&5
3587 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3588 See \`config.log' for more details." >&2;}
3589 { (exit 1); exit 1; }; }
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 echo "$as_me:$LINENO: checking for X" >&5
3600 echo $ECHO_N "checking for X... $ECHO_C" >&6
3603 # Check whether --with-x or --without-x was given.
3604 if test "${with_x+set}" = set; then
3605 withval="$with_x"
3608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3609 if test "x$with_x" = xno; then
3610 # The user explicitly disabled X.
3611 have_x=disabled
3612 else
3613 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3614 # Both variables are already set.
3615 have_x=yes
3616 else
3617 if test "${ac_cv_have_x+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 # One or both of the vars are not set, and there is no cached value.
3621 ac_x_includes=no ac_x_libraries=no
3622 rm -f -r conftest.dir
3623 if mkdir conftest.dir; then
3624 cd conftest.dir
3625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3626 cat >Imakefile <<'_ACEOF'
3627 acfindx:
3628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3629 _ACEOF
3630 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3634 for ac_extension in a so sl; do
3635 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3636 test -f $ac_im_libdir/libX11.$ac_extension; then
3637 ac_im_usrlibdir=$ac_im_libdir; break
3639 done
3640 # Screen out bogus values from the imake configuration. They are
3641 # bogus both because they are the default anyway, and because
3642 # using them would break gcc on systems where it needs fixed includes.
3643 case $ac_im_incroot in
3644 /usr/include) ;;
3645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3646 esac
3647 case $ac_im_usrlibdir in
3648 /usr/lib | /lib) ;;
3649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3650 esac
3652 cd ..
3653 rm -f -r conftest.dir
3656 # Standard set of common directories for X headers.
3657 # Check X11 before X11Rn because it is often a symlink to the current release.
3658 ac_x_header_dirs='
3659 /usr/X11/include
3660 /usr/X11R6/include
3661 /usr/X11R5/include
3662 /usr/X11R4/include
3664 /usr/include/X11
3665 /usr/include/X11R6
3666 /usr/include/X11R5
3667 /usr/include/X11R4
3669 /usr/local/X11/include
3670 /usr/local/X11R6/include
3671 /usr/local/X11R5/include
3672 /usr/local/X11R4/include
3674 /usr/local/include/X11
3675 /usr/local/include/X11R6
3676 /usr/local/include/X11R5
3677 /usr/local/include/X11R4
3679 /usr/X386/include
3680 /usr/x386/include
3681 /usr/XFree86/include/X11
3683 /usr/include
3684 /usr/local/include
3685 /usr/unsupported/include
3686 /usr/athena/include
3687 /usr/local/x11r5/include
3688 /usr/lpp/Xamples/include
3690 /usr/openwin/include
3691 /usr/openwin/share/include'
3693 if test "$ac_x_includes" = no; then
3694 # Guess where to find include files, by looking for Intrinsic.h.
3695 # First, try using that file with no special directory specified.
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <X11/Intrinsic.h>
3703 _ACEOF
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3715 else
3716 ac_cpp_err=
3718 else
3719 ac_cpp_err=yes
3721 if test -z "$ac_cpp_err"; then
3722 # We can compile using X headers with no special include directory.
3723 ac_x_includes=
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 for ac_dir in $ac_x_header_dirs; do
3729 if test -r "$ac_dir/X11/Intrinsic.h"; then
3730 ac_x_includes=$ac_dir
3731 break
3733 done
3735 rm -f conftest.err conftest.$ac_ext
3736 fi # $ac_x_includes = no
3738 if test "$ac_x_libraries" = no; then
3739 # Check for the libraries.
3740 # See if we find them without any special options.
3741 # Don't add to $LIBS permanently.
3742 ac_save_LIBS=$LIBS
3743 LIBS="-lXt $LIBS"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <X11/Intrinsic.h>
3752 main ()
3754 XtMalloc (0)
3756 return 0;
3758 _ACEOF
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 LIBS=$ac_save_LIBS
3782 # We can link X programs with no special library path.
3783 ac_x_libraries=
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 LIBS=$ac_save_LIBS
3789 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3791 # Don't even attempt the hair of trying to link an X program!
3792 for ac_extension in a so sl; do
3793 if test -r $ac_dir/libXt.$ac_extension; then
3794 ac_x_libraries=$ac_dir
3795 break 2
3797 done
3798 done
3800 rm -f conftest.err conftest.$ac_objext \
3801 conftest$ac_exeext conftest.$ac_ext
3802 fi # $ac_x_libraries = no
3804 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3805 # Didn't find X anywhere. Cache the known absence of X.
3806 ac_cv_have_x="have_x=no"
3807 else
3808 # Record where we found X for the cache.
3809 ac_cv_have_x="have_x=yes \
3810 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3815 eval "$ac_cv_have_x"
3816 fi # $with_x != no
3818 if test "$have_x" != yes; then
3819 echo "$as_me:$LINENO: result: $have_x" >&5
3820 echo "${ECHO_T}$have_x" >&6
3821 no_x=yes
3822 else
3823 # If each of the values was on the command line, it overrides each guess.
3824 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3825 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3826 # Update the cache value to reflect the command line values.
3827 ac_cv_have_x="have_x=yes \
3828 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3829 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3830 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3833 if test "$no_x" = yes; then
3834 # Not all programs may use this symbol, but it does not hurt to define it.
3836 cat >>confdefs.h <<\_ACEOF
3837 #define X_DISPLAY_MISSING 1
3838 _ACEOF
3840 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3841 else
3842 if test -n "$x_includes"; then
3843 X_CFLAGS="$X_CFLAGS -I$x_includes"
3846 # It would also be nice to do this for all -L options, not just this one.
3847 if test -n "$x_libraries"; then
3848 X_LIBS="$X_LIBS -L$x_libraries"
3849 # For Solaris; some versions of Sun CC require a space after -R and
3850 # others require no space. Words are not sufficient . . . .
3851 case `(uname -sr) 2>/dev/null` in
3852 "SunOS 5"*)
3853 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3854 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3855 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 rm -f conftest.$ac_objext conftest$ac_exeext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag"
3881 || test ! -s conftest.err'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 (eval $ac_try) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; } &&
3887 { ac_try='test -s conftest$ac_exeext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 ac_R_nospace=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 ac_R_nospace=no
3900 rm -f conftest.err conftest.$ac_objext \
3901 conftest$ac_exeext conftest.$ac_ext
3902 if test $ac_R_nospace = yes; then
3903 echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3905 X_LIBS="$X_LIBS -R$x_libraries"
3906 else
3907 LIBS="$ac_xsave_LIBS -R $x_libraries"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h. */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3916 main ()
3920 return 0;
3922 _ACEOF
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 (eval $ac_try) 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try='test -s conftest$ac_exeext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941 (eval $ac_try) 2>&5
3942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 ac_R_space=yes
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 ac_R_space=no
3952 rm -f conftest.err conftest.$ac_objext \
3953 conftest$ac_exeext conftest.$ac_ext
3954 if test $ac_R_space = yes; then
3955 echo "$as_me:$LINENO: result: yes" >&5
3956 echo "${ECHO_T}yes" >&6
3957 X_LIBS="$X_LIBS -R $x_libraries"
3958 else
3959 echo "$as_me:$LINENO: result: neither works" >&5
3960 echo "${ECHO_T}neither works" >&6
3963 LIBS=$ac_xsave_LIBS
3964 esac
3967 # Check for system-dependent libraries X programs must link with.
3968 # Do this before checking for the system-independent R6 libraries
3969 # (-lICE), since we may need -lsocket or whatever for X linking.
3971 if test "$ISC" = yes; then
3972 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3973 else
3974 # Martyn Johnson says this is needed for Ultrix, if the X
3975 # libraries were built with DECnet support. And Karl Berry says
3976 # the Alpha needs dnet_stub (dnet does not exist).
3977 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 #ifdef __cplusplus
3987 extern "C"
3988 #endif
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3991 char XOpenDisplay ();
3993 main ()
3995 XOpenDisplay ();
3997 return 0;
3999 _ACEOF
4000 rm -f conftest.$ac_objext conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_c_werror_flag"
4010 || test ! -s conftest.err'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 (eval $ac_try) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; } &&
4016 { ac_try='test -s conftest$ac_exeext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4028 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4029 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 ac_check_lib_save_LIBS=$LIBS
4033 LIBS="-ldnet $LIBS"
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4041 /* Override any gcc2 internal prototype to avoid an error. */
4042 #ifdef __cplusplus
4043 extern "C"
4044 #endif
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4047 char dnet_ntoa ();
4049 main ()
4051 dnet_ntoa ();
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_lib_dnet_dnet_ntoa=yes
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_cv_lib_dnet_dnet_ntoa=no
4085 rm -f conftest.err conftest.$ac_objext \
4086 conftest$ac_exeext conftest.$ac_ext
4087 LIBS=$ac_check_lib_save_LIBS
4089 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4090 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4091 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4092 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4095 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4096 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4097 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4098 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 ac_check_lib_save_LIBS=$LIBS
4102 LIBS="-ldnet_stub $LIBS"
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 #ifdef __cplusplus
4112 extern "C"
4113 #endif
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4116 char dnet_ntoa ();
4118 main ()
4120 dnet_ntoa ();
4122 return 0;
4124 _ACEOF
4125 rm -f conftest.$ac_objext conftest$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>conftest.er1
4128 ac_status=$?
4129 grep -v '^ *+' conftest.er1 >conftest.err
4130 rm -f conftest.er1
4131 cat conftest.err >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try='test -z "$ac_c_werror_flag"
4135 || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest$ac_exeext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4148 else
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_cv_lib_dnet_stub_dnet_ntoa=no
4154 rm -f conftest.err conftest.$ac_objext \
4155 conftest$ac_exeext conftest.$ac_ext
4156 LIBS=$ac_check_lib_save_LIBS
4158 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4160 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4161 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4166 rm -f conftest.err conftest.$ac_objext \
4167 conftest$ac_exeext conftest.$ac_ext
4168 LIBS="$ac_xsave_LIBS"
4170 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4171 # to get the SysV transport functions.
4172 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4173 # needs -lnsl.
4174 # The nsl library prevents programs from opening the X display
4175 # on Irix 5.2, according to T.E. Dickey.
4176 # The functions gethostbyname, getservbyname, and inet_addr are
4177 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4178 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4179 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4180 if test "${ac_cv_func_gethostbyname+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4191 #define gethostbyname innocuous_gethostbyname
4193 /* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char gethostbyname (); below.
4195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 <limits.h> exists even on freestanding compilers. */
4198 #ifdef __STDC__
4199 # include <limits.h>
4200 #else
4201 # include <assert.h>
4202 #endif
4204 #undef gethostbyname
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4210 #endif
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char gethostbyname ();
4214 /* The GNU C library defines this for functions which it implements
4215 to always fail with ENOSYS. Some functions are actually named
4216 something starting with __ and the normal name is an alias. */
4217 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4218 choke me
4219 #else
4220 char (*f) () = gethostbyname;
4221 #endif
4222 #ifdef __cplusplus
4224 #endif
4227 main ()
4229 return f != gethostbyname;
4231 return 0;
4233 _ACEOF
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>conftest.er1
4237 ac_status=$?
4238 grep -v '^ *+' conftest.er1 >conftest.err
4239 rm -f conftest.er1
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag"
4244 || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest$ac_exeext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_func_gethostbyname=yes
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 ac_cv_func_gethostbyname=no
4263 rm -f conftest.err conftest.$ac_objext \
4264 conftest$ac_exeext conftest.$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4267 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4269 if test $ac_cv_func_gethostbyname = no; then
4270 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4271 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4272 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 ac_check_lib_save_LIBS=$LIBS
4276 LIBS="-lnsl $LIBS"
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4284 /* Override any gcc2 internal prototype to avoid an error. */
4285 #ifdef __cplusplus
4286 extern "C"
4287 #endif
4288 /* We use char because int might match the return type of a gcc2
4289 builtin and then its argument prototype would still apply. */
4290 char gethostbyname ();
4292 main ()
4294 gethostbyname ();
4296 return 0;
4298 _ACEOF
4299 rm -f conftest.$ac_objext conftest$ac_exeext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4301 (eval $ac_link) 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try='test -z "$ac_c_werror_flag"
4309 || test ! -s conftest.err'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 (eval $ac_try) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest$ac_exeext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_lib_nsl_gethostbyname=yes
4322 else
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 ac_cv_lib_nsl_gethostbyname=no
4328 rm -f conftest.err conftest.$ac_objext \
4329 conftest$ac_exeext conftest.$ac_ext
4330 LIBS=$ac_check_lib_save_LIBS
4332 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4333 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4334 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4338 if test $ac_cv_lib_nsl_gethostbyname = no; then
4339 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4340 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4341 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lbsd $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 #ifdef __cplusplus
4355 extern "C"
4356 #endif
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359 char gethostbyname ();
4361 main ()
4363 gethostbyname ();
4365 return 0;
4367 _ACEOF
4368 rm -f conftest.$ac_objext conftest$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -z "$ac_c_werror_flag"
4378 || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try='test -s conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_lib_bsd_gethostbyname=yes
4391 else
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 ac_cv_lib_bsd_gethostbyname=no
4397 rm -f conftest.err conftest.$ac_objext \
4398 conftest$ac_exeext conftest.$ac_ext
4399 LIBS=$ac_check_lib_save_LIBS
4401 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4402 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4403 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4410 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4411 # socket/setsockopt and other routines are undefined under SCO ODT
4412 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4413 # on later versions), says Simon Leinen: it contains gethostby*
4414 # variants that don't use the name server (or something). -lsocket
4415 # must be given before -lnsl if both are needed. We assume that
4416 # if connect needs -lnsl, so does gethostbyname.
4417 echo "$as_me:$LINENO: checking for connect" >&5
4418 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4419 if test "${ac_cv_func_connect+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4430 #define connect innocuous_connect
4432 /* System header to define __stub macros and hopefully few prototypes,
4433 which can conflict with char connect (); below.
4434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 <limits.h> exists even on freestanding compilers. */
4437 #ifdef __STDC__
4438 # include <limits.h>
4439 #else
4440 # include <assert.h>
4441 #endif
4443 #undef connect
4445 /* Override any gcc2 internal prototype to avoid an error. */
4446 #ifdef __cplusplus
4447 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char connect ();
4453 /* The GNU C library defines this for functions which it implements
4454 to always fail with ENOSYS. Some functions are actually named
4455 something starting with __ and the normal name is an alias. */
4456 #if defined (__stub_connect) || defined (__stub___connect)
4457 choke me
4458 #else
4459 char (*f) () = connect;
4460 #endif
4461 #ifdef __cplusplus
4463 #endif
4466 main ()
4468 return f != connect;
4470 return 0;
4472 _ACEOF
4473 rm -f conftest.$ac_objext conftest$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 ac_cv_func_connect=yes
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 ac_cv_func_connect=no
4502 rm -f conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4506 echo "${ECHO_T}$ac_cv_func_connect" >&6
4508 if test $ac_cv_func_connect = no; then
4509 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4510 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4511 if test "${ac_cv_lib_socket_connect+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 ac_check_lib_save_LIBS=$LIBS
4515 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529 char connect ();
4531 main ()
4533 connect ();
4535 return 0;
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_socket_connect=yes
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 ac_cv_lib_socket_connect=no
4567 rm -f conftest.err conftest.$ac_objext \
4568 conftest$ac_exeext conftest.$ac_ext
4569 LIBS=$ac_check_lib_save_LIBS
4571 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4572 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4573 if test $ac_cv_lib_socket_connect = yes; then
4574 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4579 # Guillermo Gomez says -lposix is necessary on A/UX.
4580 echo "$as_me:$LINENO: checking for remove" >&5
4581 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4582 if test "${ac_cv_func_remove+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585 cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h. */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4593 #define remove innocuous_remove
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char remove (); below.
4597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4598 <limits.h> exists even on freestanding compilers. */
4600 #ifdef __STDC__
4601 # include <limits.h>
4602 #else
4603 # include <assert.h>
4604 #endif
4606 #undef remove
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 #ifdef __cplusplus
4610 extern "C"
4612 #endif
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char remove ();
4616 /* The GNU C library defines this for functions which it implements
4617 to always fail with ENOSYS. Some functions are actually named
4618 something starting with __ and the normal name is an alias. */
4619 #if defined (__stub_remove) || defined (__stub___remove)
4620 choke me
4621 #else
4622 char (*f) () = remove;
4623 #endif
4624 #ifdef __cplusplus
4626 #endif
4629 main ()
4631 return f != remove;
4633 return 0;
4635 _ACEOF
4636 rm -f conftest.$ac_objext conftest$ac_exeext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638 (eval $ac_link) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_cv_func_remove=yes
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 ac_cv_func_remove=no
4665 rm -f conftest.err conftest.$ac_objext \
4666 conftest$ac_exeext conftest.$ac_ext
4668 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4669 echo "${ECHO_T}$ac_cv_func_remove" >&6
4671 if test $ac_cv_func_remove = no; then
4672 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4673 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4674 if test "${ac_cv_lib_posix_remove+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 ac_check_lib_save_LIBS=$LIBS
4678 LIBS="-lposix $LIBS"
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char remove ();
4694 main ()
4696 remove ();
4698 return 0;
4700 _ACEOF
4701 rm -f conftest.$ac_objext conftest$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_posix_remove=yes
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_lib_posix_remove=no
4730 rm -f conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4732 LIBS=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4735 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4736 if test $ac_cv_lib_posix_remove = yes; then
4737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4743 echo "$as_me:$LINENO: checking for shmat" >&5
4744 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4745 if test "${ac_cv_func_shmat+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4756 #define shmat innocuous_shmat
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char shmat (); below.
4760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 <limits.h> exists even on freestanding compilers. */
4763 #ifdef __STDC__
4764 # include <limits.h>
4765 #else
4766 # include <assert.h>
4767 #endif
4769 #undef shmat
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 #ifdef __cplusplus
4773 extern "C"
4775 #endif
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4778 char shmat ();
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_shmat) || defined (__stub___shmat)
4783 choke me
4784 #else
4785 char (*f) () = shmat;
4786 #endif
4787 #ifdef __cplusplus
4789 #endif
4792 main ()
4794 return f != shmat;
4796 return 0;
4798 _ACEOF
4799 rm -f conftest.$ac_objext conftest$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_func_shmat=yes
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_cv_func_shmat=no
4828 rm -f conftest.err conftest.$ac_objext \
4829 conftest$ac_exeext conftest.$ac_ext
4831 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4832 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4834 if test $ac_cv_func_shmat = no; then
4835 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4836 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4837 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 ac_check_lib_save_LIBS=$LIBS
4841 LIBS="-lipc $LIBS"
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 #ifdef __cplusplus
4851 extern "C"
4852 #endif
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4855 char shmat ();
4857 main ()
4859 shmat ();
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_lib_ipc_shmat=yes
4887 else
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cv_lib_ipc_shmat=no
4893 rm -f conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4895 LIBS=$ac_check_lib_save_LIBS
4897 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4898 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4899 if test $ac_cv_lib_ipc_shmat = yes; then
4900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4906 # Check for libraries that X11R6 Xt/Xaw programs need.
4907 ac_save_LDFLAGS=$LDFLAGS
4908 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4909 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4910 # check for ICE first), but we must link in the order -lSM -lICE or
4911 # we get undefined symbols. So assume we have SM if we have ICE.
4912 # These have to be linked with before -lX11, unlike the other
4913 # libraries we check for below, so use a different variable.
4914 # John Interrante, Karl Berry
4915 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4916 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4917 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 ac_check_lib_save_LIBS=$LIBS
4921 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 #ifdef __cplusplus
4931 extern "C"
4932 #endif
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4935 char IceConnectionNumber ();
4937 main ()
4939 IceConnectionNumber ();
4941 return 0;
4943 _ACEOF
4944 rm -f conftest.$ac_objext conftest$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_lib_ICE_IceConnectionNumber=yes
4967 else
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 ac_cv_lib_ICE_IceConnectionNumber=no
4973 rm -f conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975 LIBS=$ac_check_lib_save_LIBS
4977 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4978 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4979 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4980 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4983 LDFLAGS=$ac_save_LDFLAGS
4988 groff_no_x=$no_x
4989 if test -z "$groff_no_x"; then
4990 OLDCFLAGS=$CFLAGS
4991 OLDLDFLAGS=$LDFLAGS
4992 OLDLIBS=$LIBS
4993 CFLAGS="$CFLAGS $X_CFLAGS"
4994 LDFLAGS="$LDFLAGS $X_LIBS"
4995 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4997 LIBS="$LIBS -lXaw"
4998 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
4999 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5000 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5009 #include <X11/Intrinsic.h>
5010 #include <X11/Xaw/Simple.h>
5014 main ()
5018 return 0;
5021 _ACEOF
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5024 (eval $ac_link) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest$ac_exeext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 echo "$as_me:$LINENO: result: yes" >&5
5045 echo "${ECHO_T}yes" >&6
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 groff_no_x="yes"
5054 rm -f conftest.err conftest.$ac_objext \
5055 conftest$ac_exeext conftest.$ac_ext
5057 LIBS="$LIBS -lXmu"
5058 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5059 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5060 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5069 #include <X11/Intrinsic.h>
5070 #include <X11/Xmu/Converters.h>
5074 main ()
5078 return 0;
5081 _ACEOF
5082 rm -f conftest.$ac_objext conftest$ac_exeext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084 (eval $ac_link) 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -z "$ac_c_werror_flag"
5092 || test ! -s conftest.err'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; } &&
5098 { ac_try='test -s conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 echo "$as_me:$LINENO: result: yes" >&5
5105 echo "${ECHO_T}yes" >&6
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5112 groff_no_x="yes"
5114 rm -f conftest.err conftest.$ac_objext \
5115 conftest$ac_exeext conftest.$ac_ext
5117 CFLAGS=$OLDCFLAGS
5118 LDFLAGS=$OLDLDFLAGS
5119 LIBS=$OLDLIBS
5122 if test "x$groff_no_x" = "xyes"; then
5123 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5124 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5125 else
5126 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5127 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5128 XLIBDIRS="src/libs/libxutil"
5135 # Check whether --with-appresdir or --without-appresdir was given.
5136 if test "${with_appresdir+set}" = set; then
5137 withval="$with_appresdir"
5140 if test -z "$groff_no_x"; then
5141 # Create an Imakefile, run `xmkmf', then `make'.
5142 rm -f -r conftest.dir
5143 if mkdir conftest.dir; then
5144 cd conftest.dir
5145 # Make sure to not put `make' in the Imakefile rules,
5146 # since we grep it out.
5147 cat >Imakefile <<'EOF'
5149 xlibdirs:
5150 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5153 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5154 # GNU make sometimes prints "make[1]: Entering...",
5155 # which would confuse us.
5156 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5158 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5159 for groff_extension in a so sl; do
5160 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5161 test -f $groff_x_libdir/libX11.$groff_extension; then
5162 groff_x_usrlibdir=$groff_x_libdir
5163 break
5165 done
5168 cd ..
5169 rm -f -r conftest.dir
5172 # In case the test with `xmkmf' wasn't successful, try a suite of
5173 # standard directories. Check `X11' before `X11Rn' because it is often
5174 # a symlink to the current release.
5175 groff_x_libdirs='
5176 /usr/X11/lib
5177 /usr/X11R6/lib
5178 /usr/X11R5/lib
5179 /usr/X11R4/lib
5181 /usr/lib/X11
5182 /usr/lib/X11R6
5183 /usr/lib/X11R5
5184 /usr/lib/X11R4
5186 /usr/local/X11/lib
5187 /usr/local/X11R6/lib
5188 /usr/local/X11R5/lib
5189 /usr/local/X11R4/lib
5191 /usr/local/lib/X11
5192 /usr/local/lib/X11R6
5193 /usr/local/lib/X11R5
5194 /usr/local/lib/X11R4
5196 /usr/X386/lib
5197 /usr/x386/lib
5198 /usr/XFree86/lib/X11
5200 /usr/lib
5201 /usr/local/lib
5202 /usr/unsupported/lib
5203 /usr/athena/lib
5204 /usr/local/x11r5/lib
5205 /usr/lpp/Xamples/lib
5207 /usr/openwin/lib
5208 /usr/openwin/share/lib'
5210 if test -z "$groff_x_usrlibdir"; then
5211 # We only test whether libX11 exists.
5212 for groff_dir in $groff_x_libdirs; do
5213 for groff_extension in a so sl; do
5214 if test ! -r $groff_dir/libX11.$groff_extension; then
5215 groff_x_usrlibdir=$groff_dir
5216 break 2
5218 done
5219 done
5222 if test "x$with_appresdir" = "x"; then
5223 appresdir=$groff_x_usrlibdir/X11/app-defaults
5224 else
5225 appresdir=$with_appresdir
5229 if test -z "$PSPRINT"; then
5230 for ac_prog in lpr
5232 # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy $ac_prog; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_prog_LPR+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 if test -n "$LPR"; then
5240 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_LPR="$ac_prog"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5253 done
5254 done
5258 LPR=$ac_cv_prog_LPR
5259 if test -n "$LPR"; then
5260 echo "$as_me:$LINENO: result: $LPR" >&5
5261 echo "${ECHO_T}$LPR" >&6
5262 else
5263 echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6
5267 test -n "$LPR" && break
5268 done
5270 for ac_prog in lp
5272 # Extract the first word of "$ac_prog", so it can be a program name with args.
5273 set dummy $ac_prog; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_LP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test -n "$LP"; then
5280 ac_cv_prog_LP="$LP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_LP="$ac_prog"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5298 LP=$ac_cv_prog_LP
5299 if test -n "$LP"; then
5300 echo "$as_me:$LINENO: result: $LP" >&5
5301 echo "${ECHO_T}$LP" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5307 test -n "$LP" && break
5308 done
5310 if test -n "$LPR" && test -n "$LP"; then
5311 # HP-UX provides an lpr command that emulates lpr using lp,
5312 # but it doesn't have lpq; in this case we want to use lp
5313 # rather than lpr.
5314 for ac_prog in lpq
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_LPQ+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323 if test -n "$LPQ"; then
5324 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_LPQ="$ac_prog"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5342 LPQ=$ac_cv_prog_LPQ
5343 if test -n "$LPQ"; then
5344 echo "$as_me:$LINENO: result: $LPQ" >&5
5345 echo "${ECHO_T}$LPQ" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 test -n "$LPQ" && break
5352 done
5354 test -n "$LPQ" || LPR=
5356 if test -n "$LPR"; then
5357 PSPRINT="$LPR"
5358 elif test -n "$LP"; then
5359 PSPRINT="$LP"
5363 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5364 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5365 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5366 echo "${ECHO_T}$PSPRINT" >&6
5368 # Figure out DVIPRINT from PSPRINT.
5369 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5370 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5371 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5372 if test "x$PSPRINT" = "xlpr"; then
5373 DVIPRINT="lpr -d"
5374 else
5375 DVIPRINT="$PSPRINT"
5379 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5380 echo "${ECHO_T}$DVIPRINT" >&6
5381 # Extract the first word of "perl", so it can be a program name with args.
5382 set dummy perl; ac_word=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_path_PERLPATH+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 case $PERLPATH in
5389 [\\/]* | ?:[\\/]*)
5390 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5407 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5409 esac
5411 PERLPATH=$ac_cv_path_PERLPATH
5413 if test -n "$PERLPATH"; then
5414 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5415 echo "${ECHO_T}$PERLPATH" >&6
5416 else
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5421 for ac_prog in byacc 'bison -y'
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_prog_YACC+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 if test -n "$YACC"; then
5431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_YACC="$ac_prog"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5449 YACC=$ac_cv_prog_YACC
5450 if test -n "$YACC"; then
5451 echo "$as_me:$LINENO: result: $YACC" >&5
5452 echo "${ECHO_T}$YACC" >&6
5453 else
5454 echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5458 test -n "$YACC" && break
5459 done
5460 test -n "$YACC" || YACC="yacc"
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_prog_RANLIB+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470 if test -n "$RANLIB"; then
5471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5484 done
5485 done
5489 RANLIB=$ac_cv_prog_RANLIB
5490 if test -n "$RANLIB"; then
5491 echo "$as_me:$LINENO: result: $RANLIB" >&5
5492 echo "${ECHO_T}$RANLIB" >&6
5493 else
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5499 if test -z "$ac_cv_prog_RANLIB"; then
5500 ac_ct_RANLIB=$RANLIB
5501 # Extract the first word of "ranlib", so it can be a program name with args.
5502 set dummy ranlib; ac_word=$2
5503 echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5505 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508 if test -n "$ac_ct_RANLIB"; then
5509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_ac_ct_RANLIB="ranlib"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5528 if test -n "$ac_ct_RANLIB"; then
5529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5531 else
5532 echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6
5536 if test "x$ac_ct_RANLIB" = x; then
5537 RANLIB=":"
5538 else
5539 if test "$build" != "$host"; then
5540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5541 whose name does not start with the host triplet. If you think this
5542 configuration is useful to you, please write to autoconf@gnu.org." >&5
5543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5544 whose name does not start with the host triplet. If you think this
5545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5547 RANLIB=$ac_ct_RANLIB
5549 else
5550 RANLIB="$ac_cv_prog_RANLIB"
5553 ac_aux_dir=
5554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5555 if test -f $ac_dir/install-sh; then
5556 ac_aux_dir=$ac_dir
5557 ac_install_sh="$ac_aux_dir/install-sh -c"
5558 break
5559 elif test -f $ac_dir/install.sh; then
5560 ac_aux_dir=$ac_dir
5561 ac_install_sh="$ac_aux_dir/install.sh -c"
5562 break
5563 elif test -f $ac_dir/shtool; then
5564 ac_aux_dir=$ac_dir
5565 ac_install_sh="$ac_aux_dir/shtool install -c"
5566 break
5568 done
5569 if test -z "$ac_aux_dir"; then
5570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5572 { (exit 1); exit 1; }; }
5574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5579 ac_dir=`cd $ac_aux_dir; pwd`
5580 ac_install_sh="$ac_dir/install-sh -c"
5581 for ac_prog in install-info
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590 if test -n "$INSTALL_INFO"; then
5591 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_INSTALL_INFO="$ac_prog"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5609 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5610 if test -n "$INSTALL_INFO"; then
5611 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5612 echo "${ECHO_T}$INSTALL_INFO" >&6
5613 else
5614 echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5618 test -n "$INSTALL_INFO" && break
5619 done
5620 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5622 # Find a good install program. We prefer a C program (faster),
5623 # so one script is as good as another. But avoid the broken or
5624 # incompatible versions:
5625 # SysV /etc/install, /usr/sbin/install
5626 # SunOS /usr/etc/install
5627 # IRIX /sbin/install
5628 # AIX /bin/install
5629 # AmigaOS /C/install, which installs bootblocks on floppy discs
5630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5633 # OS/2's system install, which has a completely different semantic
5634 # ./install, which can be erroneously created by make from ./install.sh.
5635 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5637 if test -z "$INSTALL"; then
5638 if test "${ac_cv_path_install+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 # Account for people who put trailing slashes in PATH elements.
5647 case $as_dir/ in
5648 ./ | .// | /cC/* | \
5649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5651 /usr/ucb/* ) ;;
5653 # OSF1 and SCO ODT 3.0 have their own names for install.
5654 # Don't use installbsd from OSF since it installs stuff as root
5655 # by default.
5656 for ac_prog in ginstall scoinst install; do
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5659 if test $ac_prog = install &&
5660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5661 # AIX install. It has an incompatible calling convention.
5663 elif test $ac_prog = install &&
5664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5665 # program-specific install script used by HP pwplus--don't use.
5667 else
5668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5669 break 3
5672 done
5673 done
5675 esac
5676 done
5680 if test "${ac_cv_path_install+set}" = set; then
5681 INSTALL=$ac_cv_path_install
5682 else
5683 # As a last resort, use the slow shell script. Don't cache a
5684 # value for INSTALL within a source directory, because that will
5685 # break other packages using the cache if that directory is
5686 # removed, or if the value is a relative name.
5687 INSTALL=$ac_install_sh
5690 echo "$as_me:$LINENO: result: $INSTALL" >&5
5691 echo "${ECHO_T}$INSTALL" >&6
5693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5694 # It thinks the first close brace ends the variable substitution.
5695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5701 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5702 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5703 LN_S=$as_ln_s
5704 if test "$LN_S" = "ln -s"; then
5705 echo "$as_me:$LINENO: result: yes" >&5
5706 echo "${ECHO_T}yes" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5709 echo "${ECHO_T}no, using $LN_S" >&6
5713 # use a dummy substitution if no csh hack is necessary to avoid errors
5714 # with non-GNU sed programs
5715 echo "$as_me:$LINENO: checking for csh hash hack" >&5
5716 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5718 cat <<EOF >conftest.sh
5719 #!/bin/sh
5720 true || exit 0
5721 export PATH || exit 0
5722 exit 1
5725 chmod +x conftest.sh
5726 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
5727 echo "$as_me:$LINENO: result: yes" >&5
5728 echo "${ECHO_T}yes" >&6
5729 SH_SCRIPT_SED_CMD='1s/.*/:/'
5730 else
5731 echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5733 SH_SCRIPT_SED_CMD='1s/a/a/'
5735 rm -f conftest.sh
5738 # checks for headers
5739 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5740 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5741 if test "${ac_cv_path_GREP+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744 # Extract the first word of "grep ggrep" to use in msg output
5745 if test -z "$GREP"; then
5746 set dummy grep ggrep; ac_prog_name=$2
5747 if test "${ac_cv_path_GREP+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750 # Create a temporary directory, and hook for its removal unless debugging.
5751 $debug ||
5753 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5754 trap '{ (exit 1); exit 1; }' 1 2 13 15
5757 # Create a (secure) tmp directory for tmp files.
5758 : ${TMPDIR=/tmp}
5760 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5761 test -n "$tmp" && test -d "$tmp"
5762 } ||
5764 tmp=$TMPDIR/GREP$$-$RANDOM
5765 (umask 077 && mkdir $tmp)
5766 } ||
5768 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5769 { (exit 1); exit 1; }
5771 ac_path_GREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 as_dummy="$PATH:/usr/xpg4/bin"
5775 for as_dir in $as_dummy
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_prog in grep ggrep; do
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5782 test -f "$ac_path_GREP" || continue
5783 $ac_path_GREP_found || if $as_executable_p "$ac_path_GREP"; then
5784 # Check for GNU ac_path_GREP and select it if it is found.
5785 # Check for GNU $ac_path_GREP
5786 if "$ac_path_GREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5787 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:
5788 else
5789 ac_count=0
5790 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5791 while :
5793 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5794 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5795 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5796 echo 'GREP' >> "$tmp/conftest.nl"
5797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5798 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5799 ac_count=`expr $ac_count + 1`
5800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5801 # Best one so far, save it but keep looking for a better one
5802 ac_cv_path_GREP="$ac_path_GREP"
5803 ac_path_GREP_max=$ac_count
5805 # 10*(2^10) chars as input seems more than enough
5806 test $ac_count -gt 10 && break
5807 done
5812 $ac_path_GREP_found && break 3
5813 done
5814 done
5816 done
5818 rm -rf "$tmp"
5822 GREP="$ac_cv_path_GREP"
5823 if test -z "$GREP"; then
5824 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5825 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5826 { (exit 1); exit 1; }; }
5833 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5834 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5835 GREP="$ac_cv_path_GREP"
5838 echo "$as_me:$LINENO: checking for egrep" >&5
5839 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5840 if test "${ac_cv_path_EGREP+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1
5844 then ac_cv_path_EGREP="$GREP -E"
5845 else
5846 # Extract the first word of "egrep" to use in msg output
5847 if test -z "$EGREP"; then
5848 set dummy egrep; ac_prog_name=$2
5849 if test "${ac_cv_path_EGREP+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 # Create a temporary directory, and hook for its removal unless debugging.
5853 $debug ||
5855 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5856 trap '{ (exit 1); exit 1; }' 1 2 13 15
5859 # Create a (secure) tmp directory for tmp files.
5860 : ${TMPDIR=/tmp}
5862 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5863 test -n "$tmp" && test -d "$tmp"
5864 } ||
5866 tmp=$TMPDIR/EGREP$$-$RANDOM
5867 (umask 077 && mkdir $tmp)
5868 } ||
5870 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5871 { (exit 1); exit 1; }
5873 ac_path_EGREP_found=false
5874 # Loop through the user's path and test for each of PROGNAME-LIST
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 as_dummy="$PATH:/usr/xpg4/bin"
5877 for as_dir in $as_dummy
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_prog in egrep; do
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5884 test -f "$ac_path_EGREP" || continue
5885 $ac_path_EGREP_found || if $as_executable_p "$ac_path_EGREP"; then
5886 # Check for GNU ac_path_EGREP and select it if it is found.
5887 # Check for GNU $ac_path_EGREP
5888 if "$ac_path_EGREP" --version 2>&1 < /dev/null | grep 'GNU' >/dev/null; then
5889 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:
5890 else
5891 ac_count=0
5892 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5893 while :
5895 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5896 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5897 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5898 echo 'EGREP' >> "$tmp/conftest.nl"
5899 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev/null || break
5900 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
5901 ac_count=`expr $ac_count + 1`
5902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_EGREP="$ac_path_EGREP"
5905 ac_path_EGREP_max=$ac_count
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5909 done
5914 $ac_path_EGREP_found && break 3
5915 done
5916 done
5918 done
5920 rm -rf "$tmp"
5924 EGREP="$ac_cv_path_EGREP"
5925 if test -z "$EGREP"; then
5926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5928 { (exit 1); exit 1; }; }
5936 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5937 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5938 EGREP="$ac_cv_path_EGREP"
5941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5943 if test "${ac_cv_header_stdc+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <stdlib.h>
5953 #include <stdarg.h>
5954 #include <string.h>
5955 #include <float.h>
5958 main ()
5962 return 0;
5964 _ACEOF
5965 rm -f conftest.$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try='test -z "$ac_c_werror_flag"
5975 || test ! -s conftest.err'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 (eval $ac_try) 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; } &&
5981 { ac_try='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_header_stdc=yes
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_header_stdc=no
5994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5996 if test $ac_cv_header_stdc = yes; then
5997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <string.h>
6006 _ACEOF
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "memchr" >/dev/null 2>&1; then
6010 else
6011 ac_cv_header_stdc=no
6013 rm -f conftest*
6017 if test $ac_cv_header_stdc = yes; then
6018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #include <stdlib.h>
6027 _ACEOF
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 $EGREP "free" >/dev/null 2>&1; then
6031 else
6032 ac_cv_header_stdc=no
6034 rm -f conftest*
6038 if test $ac_cv_header_stdc = yes; then
6039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6040 if test "$cross_compiling" = yes; then
6042 else
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <ctype.h>
6050 #include <stdlib.h>
6051 #if ((' ' & 0x0FF) == 0x020)
6052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6054 #else
6055 # define ISLOWER(c) \
6056 (('a' <= (c) && (c) <= 'i') \
6057 || ('j' <= (c) && (c) <= 'r') \
6058 || ('s' <= (c) && (c) <= 'z'))
6059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6060 #endif
6062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6064 main ()
6066 int i;
6067 for (i = 0; i < 256; i++)
6068 if (XOR (islower (i), ISLOWER (i))
6069 || toupper (i) != TOUPPER (i))
6070 exit (2);
6071 exit (0);
6073 _ACEOF
6074 rm -f conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6086 else
6087 echo "$as_me: program exited with status $ac_status" >&5
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ( exit $ac_status )
6092 ac_cv_header_stdc=no
6094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6099 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6100 if test $ac_cv_header_stdc = yes; then
6102 cat >>confdefs.h <<\_ACEOF
6103 #define STDC_HEADERS 1
6104 _ACEOF
6108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6119 inttypes.h stdint.h unistd.h
6121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 echo "$as_me:$LINENO: checking for $ac_header" >&5
6123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 $ac_includes_default
6135 #include <$ac_header>
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 eval "$as_ac_Header=yes"
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 eval "$as_ac_Header=no"
6166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6171 cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 _ACEOF
6177 done
6191 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6192 string.h strings.h math.h sys/time.h direct.h process.h
6194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6203 else
6204 # Is the header compilable?
6205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 #include <$ac_header>
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_header_compiler=yes
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_header_compiler=no
6245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6247 echo "${ECHO_T}$ac_header_compiler" >&6
6249 # Is the header present?
6250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include <$ac_header>
6259 _ACEOF
6260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } >/dev/null; then
6268 if test -s conftest.err; then
6269 ac_cpp_err=$ac_c_preproc_warn_flag
6270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6271 else
6272 ac_cpp_err=
6274 else
6275 ac_cpp_err=yes
6277 if test -z "$ac_cpp_err"; then
6278 ac_header_preproc=yes
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 ac_header_preproc=no
6285 rm -f conftest.err conftest.$ac_ext
6286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6287 echo "${ECHO_T}$ac_header_preproc" >&6
6289 # So? What about this header?
6290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6291 yes:no: )
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6296 ac_header_preproc=yes
6298 no:yes:* )
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6312 cat <<\_ASBOX
6313 ## ------------------------------------------ ##
6314 ## Report this to the AC_PACKAGE_NAME lists. ##
6315 ## ------------------------------------------ ##
6316 _ASBOX
6318 sed "s/^/$as_me: WARNING: /" >&2
6320 esac
6321 echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 eval "$as_ac_Header=\$ac_header_preproc"
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6333 cat >>confdefs.h <<_ACEOF
6334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6335 _ACEOF
6339 done
6341 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6342 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6343 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6344 then
6345 echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6
6348 cat >>confdefs.h <<\_ACEOF
6349 #define _SYSV3 1
6350 _ACEOF
6352 else
6353 echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6
6356 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6357 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6358 ac_ext=cc
6359 ac_cpp='$CXXCPP $CPPFLAGS'
6360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6364 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6373 #include <stdio.h>
6374 extern "C" { void fileno(int); }
6378 main ()
6382 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_cxx_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 echo "$as_me:$LINENO: result: yes" >&5
6409 echo "${ECHO_T}yes" >&6
6411 cat >>confdefs.h <<\_ACEOF
6412 #define _POSIX_SOURCE 1
6413 _ACEOF
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_ext=c
6424 ac_cpp='$CPP $CPPFLAGS'
6425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430 # checks for header stuff
6431 ac_ext=cc
6432 ac_cpp='$CXXCPP $CPPFLAGS'
6433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6437 echo "$as_me:$LINENO: checking for return type of srand" >&5
6438 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6439 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6448 #include <stdlib.h>
6449 extern "C" { void srand(unsigned int); }
6453 main ()
6457 return 0;
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_cxx_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 echo "$as_me:$LINENO: result: void" >&5
6484 echo "${ECHO_T}void" >&6
6486 cat >>confdefs.h <<\_ACEOF
6487 #define RET_TYPE_SRAND_IS_VOID 1
6488 _ACEOF
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 echo "$as_me:$LINENO: result: int" >&5
6495 echo "${ECHO_T}int" >&6
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_ext=c
6499 ac_cpp='$CPP $CPPFLAGS'
6500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6505 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6506 ac_ext=cc
6507 ac_cpp='$CXXCPP $CPPFLAGS'
6508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6512 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6524 #include <stdio.h>
6525 #ifdef HAVE_STRING_H
6526 #include <string.h>
6527 #endif
6528 #ifdef HAVE_STRINGS_H
6529 #include <strings.h>
6530 #endif
6531 #ifdef HAVE_STDLIB_H
6532 #include <stdlib.h>
6533 #endif
6534 #ifdef HAVE_SYS_TIME_H
6535 #include <sys/time.h>
6536 #endif
6537 #ifdef HAVE_UNISTD_H
6538 #include <unistd.h>
6539 #endif
6540 #ifdef HAVE_MATH_H
6541 #include <math.h>
6542 #endif
6546 main ()
6550 #ifndef gettimeofday
6551 char *p = (char *) gettimeofday;
6552 #endif
6556 return 0;
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_cxx_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 groff_cv_decl_needed_gettimeofday=no
6583 else
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 groff_cv_decl_needed_gettimeofday=yes
6589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6593 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6594 if test $groff_cv_decl_needed_gettimeofday = yes; then
6596 cat >>confdefs.h <<\_ACEOF
6597 #define NEED_DECLARATION_GETTIMEOFDAY 1
6598 _ACEOF
6601 ac_ext=c
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6608 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6609 ac_ext=cc
6610 ac_cpp='$CXXCPP $CPPFLAGS'
6611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6615 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6627 #include <stdio.h>
6628 #ifdef HAVE_STRING_H
6629 #include <string.h>
6630 #endif
6631 #ifdef HAVE_STRINGS_H
6632 #include <strings.h>
6633 #endif
6634 #ifdef HAVE_STDLIB_H
6635 #include <stdlib.h>
6636 #endif
6637 #ifdef HAVE_SYS_TIME_H
6638 #include <sys/time.h>
6639 #endif
6640 #ifdef HAVE_UNISTD_H
6641 #include <unistd.h>
6642 #endif
6643 #ifdef HAVE_MATH_H
6644 #include <math.h>
6645 #endif
6649 main ()
6653 #ifndef hypot
6654 char *p = (char *) hypot;
6655 #endif
6659 return 0;
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_cxx_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 groff_cv_decl_needed_hypot=no
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6690 groff_cv_decl_needed_hypot=yes
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6695 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6696 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6697 if test $groff_cv_decl_needed_hypot = yes; then
6699 cat >>confdefs.h <<\_ACEOF
6700 #define NEED_DECLARATION_HYPOT 1
6701 _ACEOF
6704 ac_ext=c
6705 ac_cpp='$CPP $CPPFLAGS'
6706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6711 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6712 ac_ext=cc
6713 ac_cpp='$CXXCPP $CPPFLAGS'
6714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6718 if test "${groff_cv_decl_needed_popen+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6730 #include <stdio.h>
6731 #ifdef HAVE_STRING_H
6732 #include <string.h>
6733 #endif
6734 #ifdef HAVE_STRINGS_H
6735 #include <strings.h>
6736 #endif
6737 #ifdef HAVE_STDLIB_H
6738 #include <stdlib.h>
6739 #endif
6740 #ifdef HAVE_SYS_TIME_H
6741 #include <sys/time.h>
6742 #endif
6743 #ifdef HAVE_UNISTD_H
6744 #include <unistd.h>
6745 #endif
6746 #ifdef HAVE_MATH_H
6747 #include <math.h>
6748 #endif
6752 main ()
6756 #ifndef popen
6757 char *p = (char *) popen;
6758 #endif
6762 return 0;
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -z "$ac_cxx_werror_flag"
6776 || test ! -s conftest.err'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; } &&
6782 { ac_try='test -s conftest.$ac_objext'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 (eval $ac_try) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6788 groff_cv_decl_needed_popen=no
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 groff_cv_decl_needed_popen=yes
6795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6798 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6799 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6800 if test $groff_cv_decl_needed_popen = yes; then
6802 cat >>confdefs.h <<\_ACEOF
6803 #define NEED_DECLARATION_POPEN 1
6804 _ACEOF
6807 ac_ext=c
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6813 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6814 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6815 ac_ext=cc
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6821 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6833 #include <stdio.h>
6834 #ifdef HAVE_STRING_H
6835 #include <string.h>
6836 #endif
6837 #ifdef HAVE_STRINGS_H
6838 #include <strings.h>
6839 #endif
6840 #ifdef HAVE_STDLIB_H
6841 #include <stdlib.h>
6842 #endif
6843 #ifdef HAVE_SYS_TIME_H
6844 #include <sys/time.h>
6845 #endif
6846 #ifdef HAVE_UNISTD_H
6847 #include <unistd.h>
6848 #endif
6849 #ifdef HAVE_MATH_H
6850 #include <math.h>
6851 #endif
6855 main ()
6859 #ifndef pclose
6860 char *p = (char *) pclose;
6861 #endif
6865 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_cxx_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 groff_cv_decl_needed_pclose=no
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 groff_cv_decl_needed_pclose=yes
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6902 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6903 if test $groff_cv_decl_needed_pclose = yes; then
6905 cat >>confdefs.h <<\_ACEOF
6906 #define NEED_DECLARATION_PCLOSE 1
6907 _ACEOF
6910 ac_ext=c
6911 ac_cpp='$CPP $CPPFLAGS'
6912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6917 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6918 ac_ext=cc
6919 ac_cpp='$CXXCPP $CPPFLAGS'
6920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6924 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6936 #include <stdio.h>
6937 #ifdef HAVE_STRING_H
6938 #include <string.h>
6939 #endif
6940 #ifdef HAVE_STRINGS_H
6941 #include <strings.h>
6942 #endif
6943 #ifdef HAVE_STDLIB_H
6944 #include <stdlib.h>
6945 #endif
6946 #ifdef HAVE_SYS_TIME_H
6947 #include <sys/time.h>
6948 #endif
6949 #ifdef HAVE_UNISTD_H
6950 #include <unistd.h>
6951 #endif
6952 #ifdef HAVE_MATH_H
6953 #include <math.h>
6954 #endif
6958 main ()
6962 #ifndef putenv
6963 char *p = (char *) putenv;
6964 #endif
6968 return 0;
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -z "$ac_cxx_werror_flag"
6982 || test ! -s conftest.err'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 (eval $ac_try) 2>&5
6985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try='test -s conftest.$ac_objext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 groff_cv_decl_needed_putenv=no
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 groff_cv_decl_needed_putenv=yes
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7005 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7006 if test $groff_cv_decl_needed_putenv = yes; then
7008 cat >>confdefs.h <<\_ACEOF
7009 #define NEED_DECLARATION_PUTENV 1
7010 _ACEOF
7013 ac_ext=c
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7020 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7021 ac_ext=cc
7022 ac_cpp='$CXXCPP $CPPFLAGS'
7023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7027 if test "${groff_cv_decl_needed_rand+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7039 #include <stdio.h>
7040 #ifdef HAVE_STRING_H
7041 #include <string.h>
7042 #endif
7043 #ifdef HAVE_STRINGS_H
7044 #include <strings.h>
7045 #endif
7046 #ifdef HAVE_STDLIB_H
7047 #include <stdlib.h>
7048 #endif
7049 #ifdef HAVE_SYS_TIME_H
7050 #include <sys/time.h>
7051 #endif
7052 #ifdef HAVE_UNISTD_H
7053 #include <unistd.h>
7054 #endif
7055 #ifdef HAVE_MATH_H
7056 #include <math.h>
7057 #endif
7061 main ()
7065 #ifndef rand
7066 char *p = (char *) rand;
7067 #endif
7071 return 0;
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -z "$ac_cxx_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 groff_cv_decl_needed_rand=no
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 groff_cv_decl_needed_rand=yes
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7107 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7108 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7109 if test $groff_cv_decl_needed_rand = yes; then
7111 cat >>confdefs.h <<\_ACEOF
7112 #define NEED_DECLARATION_RAND 1
7113 _ACEOF
7116 ac_ext=c
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7123 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7124 ac_ext=cc
7125 ac_cpp='$CXXCPP $CPPFLAGS'
7126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7130 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7142 #include <stdio.h>
7143 #ifdef HAVE_STRING_H
7144 #include <string.h>
7145 #endif
7146 #ifdef HAVE_STRINGS_H
7147 #include <strings.h>
7148 #endif
7149 #ifdef HAVE_STDLIB_H
7150 #include <stdlib.h>
7151 #endif
7152 #ifdef HAVE_SYS_TIME_H
7153 #include <sys/time.h>
7154 #endif
7155 #ifdef HAVE_UNISTD_H
7156 #include <unistd.h>
7157 #endif
7158 #ifdef HAVE_MATH_H
7159 #include <math.h>
7160 #endif
7164 main ()
7168 #ifndef snprintf
7169 char *p = (char *) snprintf;
7170 #endif
7174 return 0;
7177 _ACEOF
7178 rm -f conftest.$ac_objext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -z "$ac_cxx_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 groff_cv_decl_needed_snprintf=no
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 groff_cv_decl_needed_snprintf=yes
7207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7211 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7212 if test $groff_cv_decl_needed_snprintf = yes; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define NEED_DECLARATION_SNPRINTF 1
7216 _ACEOF
7219 ac_ext=c
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7226 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7227 ac_ext=cc
7228 ac_cpp='$CXXCPP $CPPFLAGS'
7229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7233 if test "${groff_cv_decl_needed_srand+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7245 #include <stdio.h>
7246 #ifdef HAVE_STRING_H
7247 #include <string.h>
7248 #endif
7249 #ifdef HAVE_STRINGS_H
7250 #include <strings.h>
7251 #endif
7252 #ifdef HAVE_STDLIB_H
7253 #include <stdlib.h>
7254 #endif
7255 #ifdef HAVE_SYS_TIME_H
7256 #include <sys/time.h>
7257 #endif
7258 #ifdef HAVE_UNISTD_H
7259 #include <unistd.h>
7260 #endif
7261 #ifdef HAVE_MATH_H
7262 #include <math.h>
7263 #endif
7267 main ()
7271 #ifndef srand
7272 char *p = (char *) srand;
7273 #endif
7277 return 0;
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_cxx_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 (eval $ac_try) 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 (eval $ac_try) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 groff_cv_decl_needed_srand=no
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 groff_cv_decl_needed_srand=yes
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7314 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7315 if test $groff_cv_decl_needed_srand = yes; then
7317 cat >>confdefs.h <<\_ACEOF
7318 #define NEED_DECLARATION_SRAND 1
7319 _ACEOF
7322 ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7329 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7330 ac_ext=cc
7331 ac_cpp='$CXXCPP $CPPFLAGS'
7332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7336 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7348 #include <stdio.h>
7349 #ifdef HAVE_STRING_H
7350 #include <string.h>
7351 #endif
7352 #ifdef HAVE_STRINGS_H
7353 #include <strings.h>
7354 #endif
7355 #ifdef HAVE_STDLIB_H
7356 #include <stdlib.h>
7357 #endif
7358 #ifdef HAVE_SYS_TIME_H
7359 #include <sys/time.h>
7360 #endif
7361 #ifdef HAVE_UNISTD_H
7362 #include <unistd.h>
7363 #endif
7364 #ifdef HAVE_MATH_H
7365 #include <math.h>
7366 #endif
7370 main ()
7374 #ifndef strcasecmp
7375 char *p = (char *) strcasecmp;
7376 #endif
7380 return 0;
7383 _ACEOF
7384 rm -f conftest.$ac_objext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386 (eval $ac_compile) 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_cxx_werror_flag"
7394 || test ! -s conftest.err'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; } &&
7400 { ac_try='test -s conftest.$ac_objext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 groff_cv_decl_needed_strcasecmp=no
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 groff_cv_decl_needed_strcasecmp=yes
7413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7416 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7417 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7418 if test $groff_cv_decl_needed_strcasecmp = yes; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define NEED_DECLARATION_STRCASECMP 1
7422 _ACEOF
7425 ac_ext=c
7426 ac_cpp='$CPP $CPPFLAGS'
7427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7432 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7433 ac_ext=cc
7434 ac_cpp='$CXXCPP $CPPFLAGS'
7435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7439 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7451 #include <stdio.h>
7452 #ifdef HAVE_STRING_H
7453 #include <string.h>
7454 #endif
7455 #ifdef HAVE_STRINGS_H
7456 #include <strings.h>
7457 #endif
7458 #ifdef HAVE_STDLIB_H
7459 #include <stdlib.h>
7460 #endif
7461 #ifdef HAVE_SYS_TIME_H
7462 #include <sys/time.h>
7463 #endif
7464 #ifdef HAVE_UNISTD_H
7465 #include <unistd.h>
7466 #endif
7467 #ifdef HAVE_MATH_H
7468 #include <math.h>
7469 #endif
7473 main ()
7477 #ifndef strncasecmp
7478 char *p = (char *) strncasecmp;
7479 #endif
7483 return 0;
7486 _ACEOF
7487 rm -f conftest.$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -z "$ac_cxx_werror_flag"
7497 || test ! -s conftest.err'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; } &&
7503 { ac_try='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 groff_cv_decl_needed_strncasecmp=no
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7514 groff_cv_decl_needed_strncasecmp=yes
7516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7519 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7520 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7521 if test $groff_cv_decl_needed_strncasecmp = yes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define NEED_DECLARATION_STRNCASECMP 1
7525 _ACEOF
7528 ac_ext=c
7529 ac_cpp='$CPP $CPPFLAGS'
7530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7535 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7536 ac_ext=cc
7537 ac_cpp='$CXXCPP $CPPFLAGS'
7538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7542 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7554 #include <stdio.h>
7555 #ifdef HAVE_STRING_H
7556 #include <string.h>
7557 #endif
7558 #ifdef HAVE_STRINGS_H
7559 #include <strings.h>
7560 #endif
7561 #ifdef HAVE_STDLIB_H
7562 #include <stdlib.h>
7563 #endif
7564 #ifdef HAVE_SYS_TIME_H
7565 #include <sys/time.h>
7566 #endif
7567 #ifdef HAVE_UNISTD_H
7568 #include <unistd.h>
7569 #endif
7570 #ifdef HAVE_MATH_H
7571 #include <math.h>
7572 #endif
7576 main ()
7580 #ifndef vfprintf
7581 char *p = (char *) vfprintf;
7582 #endif
7586 return 0;
7589 _ACEOF
7590 rm -f conftest.$ac_objext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -z "$ac_cxx_werror_flag"
7600 || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest.$ac_objext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 groff_cv_decl_needed_vfprintf=no
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 groff_cv_decl_needed_vfprintf=yes
7619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7623 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7624 if test $groff_cv_decl_needed_vfprintf = yes; then
7626 cat >>confdefs.h <<\_ACEOF
7627 #define NEED_DECLARATION_VFPRINTF 1
7628 _ACEOF
7631 ac_ext=c
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7638 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7639 ac_ext=cc
7640 ac_cpp='$CXXCPP $CPPFLAGS'
7641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7645 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7657 #include <stdio.h>
7658 #ifdef HAVE_STRING_H
7659 #include <string.h>
7660 #endif
7661 #ifdef HAVE_STRINGS_H
7662 #include <strings.h>
7663 #endif
7664 #ifdef HAVE_STDLIB_H
7665 #include <stdlib.h>
7666 #endif
7667 #ifdef HAVE_SYS_TIME_H
7668 #include <sys/time.h>
7669 #endif
7670 #ifdef HAVE_UNISTD_H
7671 #include <unistd.h>
7672 #endif
7673 #ifdef HAVE_MATH_H
7674 #include <math.h>
7675 #endif
7679 main ()
7683 #ifndef vsnprintf
7684 char *p = (char *) vsnprintf;
7685 #endif
7689 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_cxx_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 groff_cv_decl_needed_vsnprintf=no
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 groff_cv_decl_needed_vsnprintf=yes
7722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7725 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7726 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7727 if test $groff_cv_decl_needed_vsnprintf = yes; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define NEED_DECLARATION_VSNPRINTF 1
7731 _ACEOF
7734 ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740 ac_ext=cc
7741 ac_cpp='$CXXCPP $CPPFLAGS'
7742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7746 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7747 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7757 #include <errno.h>
7758 #include <stdio.h>
7759 #include <stdlib.h>
7763 main ()
7767 int k;
7768 k = sys_nerr;
7772 return 0;
7775 _ACEOF
7776 rm -f conftest.$ac_objext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778 (eval $ac_compile) 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_cxx_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7798 echo "$as_me:$LINENO: result: yes" >&5
7799 echo "${ECHO_T}yes" >&6
7801 cat >>confdefs.h <<\_ACEOF
7802 #define HAVE_SYS_NERR 1
7803 _ACEOF
7805 else
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 ac_ext=c
7814 ac_cpp='$CPP $CPPFLAGS'
7815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7820 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h. */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7830 #include <errno.h>
7831 #include <stdio.h>
7832 #include <stdlib.h>
7836 main ()
7840 int k;
7841 k = (int)sys_errlist[0];
7845 return 0;
7848 _ACEOF
7849 rm -f conftest.$ac_objext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7851 (eval $ac_compile) 2>conftest.er1
7852 ac_status=$?
7853 grep -v '^ *+' conftest.er1 >conftest.err
7854 rm -f conftest.er1
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try='test -z "$ac_c_werror_flag"
7859 || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7861 (eval $ac_try) 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest.$ac_objext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 (eval $ac_try) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872 echo "${ECHO_T}yes" >&6
7874 cat >>confdefs.h <<\_ACEOF
7875 #define HAVE_SYS_ERRLIST 1
7876 _ACEOF
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7886 ac_ext=cc
7887 ac_cpp='$CXXCPP $CPPFLAGS'
7888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7892 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7893 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7894 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7903 #include <osfcn.h>
7907 main ()
7911 read(0, 0, 0);
7912 open(0, 0);
7916 return 0;
7919 _ACEOF
7920 rm -f conftest.$ac_objext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922 (eval $ac_compile) 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -z "$ac_cxx_werror_flag"
7930 || test ! -s conftest.err'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6
7945 cat >>confdefs.h <<\_ACEOF
7946 #define HAVE_CC_OSFCN_H 1
7947 _ACEOF
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 ac_ext=c
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963 ac_ext=cc
7964 ac_cpp='$CXXCPP $CPPFLAGS'
7965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7969 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7970 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7971 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7980 #include <limits.h>
7984 main ()
7988 int x = INT_MIN;
7989 int y = INT_MAX;
7990 int z = UCHAR_MAX;
7994 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_cxx_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8023 cat >>confdefs.h <<\_ACEOF
8024 #define HAVE_CC_LIMITS_H 1
8025 _ACEOF
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035 ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041 ac_ext=cc
8042 ac_cpp='$CXXCPP $CPPFLAGS'
8043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8047 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8048 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8049 cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h. */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8058 #include <sys/types.h>
8059 #include <inttypes.h>
8063 main ()
8067 uintmax_t i = (uintmax_t)-1;
8071 return 0;
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_cxx_werror_flag"
8085 || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 (eval $ac_try) 2>&5
8094 ac_status=$?
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 groff_cv_header_inttypes_h=yes
8099 cat >>confdefs.h <<\_ACEOF
8100 #define HAVE_CC_INTTYPES_H 1
8101 _ACEOF
8103 else
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 groff_cv_header_inttypes_h=no
8109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8110 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8111 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8112 ac_ext=c
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 # checks for typedefs
8120 ac_ext=cc
8121 ac_cpp='$CXXCPP $CPPFLAGS'
8122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8126 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8127 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8128 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8137 unsigned long long ull = 1;
8138 int i = 63;
8139 unsigned long long ullmax = (unsigned long long)-1;
8143 main ()
8147 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8151 return 0;
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157 (eval $ac_link) 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try='test -z "$ac_cxx_werror_flag"
8165 || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest$ac_exeext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 groff_cv_type_unsigned_long_long=yes
8178 else
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8182 groff_cv_type_unsigned_long_long=no
8184 rm -f conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8187 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8188 ac_ext=c
8189 ac_cpp='$CPP $CPPFLAGS'
8190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195 if test $groff_cv_header_inttypes_h = no; then
8197 test $groff_cv_type_unsigned_long_long = yes \
8198 && ac_type='unsigned long long' \
8199 || ac_type='unsigned long'
8201 cat >>confdefs.h <<_ACEOF
8202 #define uintmax_t $ac_type
8203 _ACEOF
8206 ac_ext=cc
8207 ac_cpp='$CXXCPP $CPPFLAGS'
8208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8212 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8213 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8223 #include <time.h>
8227 main ()
8231 time_t t = time(0);
8232 struct tm *p = localtime(&t);
8236 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_cxx_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest.$ac_objext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 echo "$as_me:$LINENO: result: no" >&5
8269 echo "${ECHO_T}no" >&6
8271 cat >>confdefs.h <<\_ACEOF
8272 #define LONG_FOR_TIME_T 1
8273 _ACEOF
8276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8277 ac_ext=c
8278 ac_cpp='$CPP $CPPFLAGS'
8279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8283 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8284 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8285 if test "${ac_cv_type_signal+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 #include <sys/types.h>
8295 #include <signal.h>
8296 #ifdef signal
8297 # undef signal
8298 #endif
8299 #ifdef __cplusplus
8300 extern "C" void (*signal (int, void (*)(int)))(int);
8301 #else
8302 void (*signal ()) ();
8303 #endif
8306 main ()
8308 int i;
8310 return 0;
8312 _ACEOF
8313 rm -f conftest.$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest.$ac_objext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_type_signal=void
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_type_signal=int
8342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8345 echo "${ECHO_T}$ac_cv_type_signal" >&6
8347 cat >>confdefs.h <<_ACEOF
8348 #define RETSIGTYPE $ac_cv_type_signal
8349 _ACEOF
8352 echo "$as_me:$LINENO: checking struct exception" >&5
8353 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8363 #include <math.h>
8367 main ()
8371 struct exception e;
8375 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag"
8389 || test ! -s conftest.err'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try='test -s conftest.$ac_objext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402 echo "${ECHO_T}yes" >&6
8404 cat >>confdefs.h <<\_ACEOF
8405 #define HAVE_STRUCT_EXCEPTION 1
8406 _ACEOF
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6
8415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8417 # checks for libraries
8418 echo "$as_me:$LINENO: checking for main in -lc" >&5
8419 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8420 if test "${ac_cv_lib_c_main+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lc $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8434 main ()
8436 main ();
8438 return 0;
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8444 ac_status=$?
8445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_cv_lib_c_main=yes
8464 else
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_cv_lib_c_main=no
8470 rm -f conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472 LIBS=$ac_check_lib_save_LIBS
8474 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8475 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8476 if test $ac_cv_lib_c_main = yes; then
8477 LIBC=-lc
8481 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8482 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8483 if test "${ac_cv_lib_m_sin+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-lm $LIBS"
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any gcc2 internal prototype to avoid an error. */
8496 #ifdef __cplusplus
8497 extern "C"
8498 #endif
8499 /* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8501 char sin ();
8503 main ()
8505 sin ();
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512 (eval $ac_link) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_lib_m_sin=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 ac_cv_lib_m_sin=no
8539 rm -f conftest.err conftest.$ac_objext \
8540 conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8543 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8544 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8545 if test $ac_cv_lib_m_sin = yes; then
8546 LIBM=-lm
8551 # checks for functions
8554 for ac_header in stdlib.h unistd.h
8556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558 echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8565 else
8566 # Is the header compilable?
8567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8576 #include <$ac_header>
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_header_compiler=yes
8601 else
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 ac_header_compiler=no
8607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609 echo "${ECHO_T}$ac_header_compiler" >&6
8611 # Is the header present?
8612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <$ac_header>
8621 _ACEOF
8622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null; then
8630 if test -s conftest.err; then
8631 ac_cpp_err=$ac_c_preproc_warn_flag
8632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8633 else
8634 ac_cpp_err=
8636 else
8637 ac_cpp_err=yes
8639 if test -z "$ac_cpp_err"; then
8640 ac_header_preproc=yes
8641 else
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_header_preproc=no
8647 rm -f conftest.err conftest.$ac_ext
8648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8649 echo "${ECHO_T}$ac_header_preproc" >&6
8651 # So? What about this header?
8652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8653 yes:no: )
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8658 ac_header_preproc=yes
8660 no:yes:* )
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8674 cat <<\_ASBOX
8675 ## ------------------------------------------ ##
8676 ## Report this to the AC_PACKAGE_NAME lists. ##
8677 ## ------------------------------------------ ##
8678 _ASBOX
8680 sed "s/^/$as_me: WARNING: /" >&2
8682 esac
8683 echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 eval "$as_ac_Header=\$ac_header_preproc"
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695 cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8697 _ACEOF
8701 done
8704 for ac_func in getpagesize
8706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8707 echo "$as_me:$LINENO: checking for $ac_func" >&5
8708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8709 if eval "test \"\${$as_ac_var+set}\" = set"; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h. */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8720 #define $ac_func innocuous_$ac_func
8722 /* System header to define __stub macros and hopefully few prototypes,
8723 which can conflict with char $ac_func (); below.
8724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725 <limits.h> exists even on freestanding compilers. */
8727 #ifdef __STDC__
8728 # include <limits.h>
8729 #else
8730 # include <assert.h>
8731 #endif
8733 #undef $ac_func
8735 /* Override any gcc2 internal prototype to avoid an error. */
8736 #ifdef __cplusplus
8737 extern "C"
8739 #endif
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742 char $ac_func ();
8743 /* The GNU C library defines this for functions which it implements
8744 to always fail with ENOSYS. Some functions are actually named
8745 something starting with __ and the normal name is an alias. */
8746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8747 choke me
8748 #else
8749 char (*f) () = $ac_func;
8750 #endif
8751 #ifdef __cplusplus
8753 #endif
8756 main ()
8758 return f != $ac_func;
8760 return 0;
8762 _ACEOF
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>conftest.er1
8766 ac_status=$?
8767 grep -v '^ *+' conftest.er1 >conftest.err
8768 rm -f conftest.er1
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -z "$ac_c_werror_flag"
8773 || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try='test -s conftest$ac_exeext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 eval "$as_ac_var=yes"
8786 else
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8790 eval "$as_ac_var=no"
8792 rm -f conftest.err conftest.$ac_objext \
8793 conftest$ac_exeext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8797 if test `eval echo '${'$as_ac_var'}'` = yes; then
8798 cat >>confdefs.h <<_ACEOF
8799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8800 _ACEOF
8803 done
8805 echo "$as_me:$LINENO: checking for working mmap" >&5
8806 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8807 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 if test "$cross_compiling" = yes; then
8811 ac_cv_func_mmap_fixed_mapped=no
8812 else
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 $ac_includes_default
8820 /* malloc might have been renamed as rpl_malloc. */
8821 #undef malloc
8823 /* Thanks to Mike Haertel and Jim Avera for this test.
8824 Here is a matrix of mmap possibilities:
8825 mmap private not fixed
8826 mmap private fixed at somewhere currently unmapped
8827 mmap private fixed at somewhere already mapped
8828 mmap shared not fixed
8829 mmap shared fixed at somewhere currently unmapped
8830 mmap shared fixed at somewhere already mapped
8831 For private mappings, we should verify that changes cannot be read()
8832 back from the file, nor mmap's back from the file at a different
8833 address. (There have been systems where private was not correctly
8834 implemented like the infamous i386 svr4.0, and systems where the
8835 VM page cache was not coherent with the file system buffer cache
8836 like early versions of FreeBSD and possibly contemporary NetBSD.)
8837 For shared mappings, we should conversely verify that changes get
8838 propagated back to all the places they're supposed to be.
8840 Grep wants private fixed already mapped.
8841 The main things grep needs to know about mmap are:
8842 * does it exist and is it safe to write into the mmap'd area
8843 * how to use it (BSD variants) */
8845 #include <fcntl.h>
8846 #include <sys/mman.h>
8848 #if !STDC_HEADERS && !HAVE_STDLIB_H
8849 char *malloc ();
8850 #endif
8852 /* This mess was copied from the GNU getpagesize.h. */
8853 #if !HAVE_GETPAGESIZE
8854 /* Assume that all systems that can run configure have sys/param.h. */
8855 # if !HAVE_SYS_PARAM_H
8856 # define HAVE_SYS_PARAM_H 1
8857 # endif
8859 # ifdef _SC_PAGESIZE
8860 # define getpagesize() sysconf(_SC_PAGESIZE)
8861 # else /* no _SC_PAGESIZE */
8862 # if HAVE_SYS_PARAM_H
8863 # include <sys/param.h>
8864 # ifdef EXEC_PAGESIZE
8865 # define getpagesize() EXEC_PAGESIZE
8866 # else /* no EXEC_PAGESIZE */
8867 # ifdef NBPG
8868 # define getpagesize() NBPG * CLSIZE
8869 # ifndef CLSIZE
8870 # define CLSIZE 1
8871 # endif /* no CLSIZE */
8872 # else /* no NBPG */
8873 # ifdef NBPC
8874 # define getpagesize() NBPC
8875 # else /* no NBPC */
8876 # ifdef PAGESIZE
8877 # define getpagesize() PAGESIZE
8878 # endif /* PAGESIZE */
8879 # endif /* no NBPC */
8880 # endif /* no NBPG */
8881 # endif /* no EXEC_PAGESIZE */
8882 # else /* no HAVE_SYS_PARAM_H */
8883 # define getpagesize() 8192 /* punt totally */
8884 # endif /* no HAVE_SYS_PARAM_H */
8885 # endif /* no _SC_PAGESIZE */
8887 #endif /* no HAVE_GETPAGESIZE */
8890 main ()
8892 char *data, *data2, *data3;
8893 int i, pagesize;
8894 int fd;
8896 pagesize = getpagesize ();
8898 /* First, make a file with some known garbage in it. */
8899 data = (char *) malloc (pagesize);
8900 if (!data)
8901 exit (1);
8902 for (i = 0; i < pagesize; ++i)
8903 *(data + i) = rand ();
8904 umask (0);
8905 fd = creat ("conftest.mmap", 0600);
8906 if (fd < 0)
8907 exit (1);
8908 if (write (fd, data, pagesize) != pagesize)
8909 exit (1);
8910 close (fd);
8912 /* Next, try to mmap the file at a fixed address which already has
8913 something else allocated at it. If we can, also make sure that
8914 we see the same garbage. */
8915 fd = open ("conftest.mmap", O_RDWR);
8916 if (fd < 0)
8917 exit (1);
8918 data2 = (char *) malloc (2 * pagesize);
8919 if (!data2)
8920 exit (1);
8921 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8924 exit (1);
8925 for (i = 0; i < pagesize; ++i)
8926 if (*(data + i) != *(data2 + i))
8927 exit (1);
8929 /* Finally, make sure that changes to the mapped area do not
8930 percolate back to the file as seen by read(). (This is a bug on
8931 some variants of i386 svr4.0.) */
8932 for (i = 0; i < pagesize; ++i)
8933 *(data2 + i) = *(data2 + i) + 1;
8934 data3 = (char *) malloc (pagesize);
8935 if (!data3)
8936 exit (1);
8937 if (read (fd, data3, pagesize) != pagesize)
8938 exit (1);
8939 for (i = 0; i < pagesize; ++i)
8940 if (*(data + i) != *(data3 + i))
8941 exit (1);
8942 close (fd);
8943 exit (0);
8945 _ACEOF
8946 rm -f conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_cv_func_mmap_fixed_mapped=yes
8958 else
8959 echo "$as_me: program exited with status $ac_status" >&5
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ( exit $ac_status )
8964 ac_cv_func_mmap_fixed_mapped=no
8966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8969 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8970 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8971 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8973 cat >>confdefs.h <<\_ACEOF
8974 #define HAVE_MMAP 1
8975 _ACEOF
8978 rm -f conftest.mmap
8980 saved_libs="$LIBS"
8981 LIBS="$LIBS $LIBC $LIBM"
8990 for ac_func in fmod getcwd putenv snprintf strcasecmp \
8991 strerror strncasecmp strtol
8993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8994 echo "$as_me:$LINENO: checking for $ac_func" >&5
8995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8996 if eval "test \"\${$as_ac_var+set}\" = set"; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9007 #define $ac_func innocuous_$ac_func
9009 /* System header to define __stub macros and hopefully few prototypes,
9010 which can conflict with char $ac_func (); below.
9011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9012 <limits.h> exists even on freestanding compilers. */
9014 #ifdef __STDC__
9015 # include <limits.h>
9016 #else
9017 # include <assert.h>
9018 #endif
9020 #undef $ac_func
9022 /* Override any gcc2 internal prototype to avoid an error. */
9023 #ifdef __cplusplus
9024 extern "C"
9026 #endif
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029 char $ac_func ();
9030 /* The GNU C library defines this for functions which it implements
9031 to always fail with ENOSYS. Some functions are actually named
9032 something starting with __ and the normal name is an alias. */
9033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9034 choke me
9035 #else
9036 char (*f) () = $ac_func;
9037 #endif
9038 #ifdef __cplusplus
9040 #endif
9043 main ()
9045 return f != $ac_func;
9047 return 0;
9049 _ACEOF
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 eval "$as_ac_var=yes"
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 eval "$as_ac_var=no"
9079 rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9084 if test `eval echo '${'$as_ac_var'}'` = yes; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9087 _ACEOF
9089 else
9090 case $LIBOBJS in
9091 "$ac_func.$ac_objext" | \
9092 *" $ac_func.$ac_objext" | \
9093 "$ac_func.$ac_objext "* | \
9094 *" $ac_func.$ac_objext "* ) ;;
9095 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
9096 esac
9099 done
9102 # vsnprintf is in the same source file as snprintf
9104 for ac_func in vsnprintf
9106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9107 echo "$as_me:$LINENO: checking for $ac_func" >&5
9108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9109 if eval "test \"\${$as_ac_var+set}\" = set"; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h. */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9120 #define $ac_func innocuous_$ac_func
9122 /* System header to define __stub macros and hopefully few prototypes,
9123 which can conflict with char $ac_func (); below.
9124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 <limits.h> exists even on freestanding compilers. */
9127 #ifdef __STDC__
9128 # include <limits.h>
9129 #else
9130 # include <assert.h>
9131 #endif
9133 #undef $ac_func
9135 /* Override any gcc2 internal prototype to avoid an error. */
9136 #ifdef __cplusplus
9137 extern "C"
9139 #endif
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9142 char $ac_func ();
9143 /* The GNU C library defines this for functions which it implements
9144 to always fail with ENOSYS. Some functions are actually named
9145 something starting with __ and the normal name is an alias. */
9146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9147 choke me
9148 #else
9149 char (*f) () = $ac_func;
9150 #endif
9151 #ifdef __cplusplus
9153 #endif
9156 main ()
9158 return f != $ac_func;
9160 return 0;
9162 _ACEOF
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag"
9173 || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 eval "$as_ac_var=yes"
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 eval "$as_ac_var=no"
9192 rm -f conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9197 if test `eval echo '${'$as_ac_var'}'` = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9200 _ACEOF
9202 else
9203 case $LIBOBJS in
9204 "snprintf.$ac_objext" | \
9205 *" snprintf.$ac_objext" | \
9206 "snprintf.$ac_objext "* | \
9207 *" snprintf.$ac_objext "* ) ;;
9208 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
9209 esac
9212 done
9214 LIBS="$saved_libs"
9221 for ac_func in gettimeofday isatty kill rename setlocale strsep
9223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9224 echo "$as_me:$LINENO: checking for $ac_func" >&5
9225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_var+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9237 #define $ac_func innocuous_$ac_func
9239 /* System header to define __stub macros and hopefully few prototypes,
9240 which can conflict with char $ac_func (); below.
9241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242 <limits.h> exists even on freestanding compilers. */
9244 #ifdef __STDC__
9245 # include <limits.h>
9246 #else
9247 # include <assert.h>
9248 #endif
9250 #undef $ac_func
9252 /* Override any gcc2 internal prototype to avoid an error. */
9253 #ifdef __cplusplus
9254 extern "C"
9256 #endif
9257 /* We use char because int might match the return type of a gcc2
9258 builtin and then its argument prototype would still apply. */
9259 char $ac_func ();
9260 /* The GNU C library defines this for functions which it implements
9261 to always fail with ENOSYS. Some functions are actually named
9262 something starting with __ and the normal name is an alias. */
9263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9264 choke me
9265 #else
9266 char (*f) () = $ac_func;
9267 #endif
9268 #ifdef __cplusplus
9270 #endif
9273 main ()
9275 return f != $ac_func;
9277 return 0;
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 eval "$as_ac_var=yes"
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 eval "$as_ac_var=no"
9309 rm -f conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9314 if test `eval echo '${'$as_ac_var'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9317 _ACEOF
9320 done
9322 echo "$as_me:$LINENO: checking for mkstemp" >&5
9323 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9324 ac_ext=cc
9325 ac_cpp='$CXXCPP $CPPFLAGS'
9326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9331 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9340 #include <stdlib.h>
9341 #include <unistd.h>
9342 int (*f) (char *);
9346 main ()
9350 f = mkstemp;
9354 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>conftest.er1
9361 ac_status=$?
9362 grep -v '^ *+' conftest.er1 >conftest.err
9363 rm -f conftest.er1
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -z "$ac_cxx_werror_flag"
9368 || test ! -s conftest.err'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 (eval $ac_try) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 echo "$as_me:$LINENO: result: yes" >&5
9381 echo "${ECHO_T}yes" >&6
9383 cat >>confdefs.h <<\_ACEOF
9384 #define HAVE_MKSTEMP 1
9385 _ACEOF
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 echo "$as_me:$LINENO: result: no" >&5
9392 echo "${ECHO_T}no" >&6
9393 case $LIBOBJS in
9394 "mkstemp.$ac_objext" | \
9395 *" mkstemp.$ac_objext" | \
9396 "mkstemp.$ac_objext "* | \
9397 *" mkstemp.$ac_objext "* ) ;;
9398 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
9399 esac
9402 rm -f conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 ac_ext=c
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9410 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9411 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 $ac_includes_default
9423 main ()
9425 #ifndef sys_siglist
9426 char *p = (char *) sys_siglist;
9427 #endif
9430 return 0;
9432 _ACEOF
9433 rm -f conftest.$ac_objext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9435 (eval $ac_compile) 2>conftest.er1
9436 ac_status=$?
9437 grep -v '^ *+' conftest.er1 >conftest.err
9438 rm -f conftest.er1
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -z "$ac_c_werror_flag"
9443 || test ! -s conftest.err'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; } &&
9449 { ac_try='test -s conftest.$ac_objext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 (eval $ac_try) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 ac_cv_have_decl_sys_siglist=yes
9456 else
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_have_decl_sys_siglist=no
9462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9465 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9466 if test $ac_cv_have_decl_sys_siglist = yes; then
9468 cat >>confdefs.h <<_ACEOF
9469 #define HAVE_DECL_SYS_SIGLIST 1
9470 _ACEOF
9473 else
9474 cat >>confdefs.h <<_ACEOF
9475 #define HAVE_DECL_SYS_SIGLIST 0
9476 _ACEOF
9483 # checks for compiler characteristics
9484 ac_ext=cc
9485 ac_cpp='$CXXCPP $CPPFLAGS'
9486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9490 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9491 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9492 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9501 main ()
9505 char *p = new char[5];
9506 delete [] p;
9510 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_cxx_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 echo "$as_me:$LINENO: result: yes" >&5
9537 echo "${ECHO_T}yes" >&6
9538 else
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9542 echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9545 cat >>confdefs.h <<\_ACEOF
9546 #define ARRAY_DELETE_NEEDS_SIZE 1
9547 _ACEOF
9550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9551 ac_ext=c
9552 ac_cpp='$CPP $CPPFLAGS'
9553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557 ac_ext=cc
9558 ac_cpp='$CXXCPP $CPPFLAGS'
9559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9563 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9564 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9565 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9574 #define name2(a, b) a/**/b
9578 main ()
9582 int name2(foo, bar);
9586 return 0;
9589 _ACEOF
9590 rm -f conftest.$ac_objext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_cxx_werror_flag"
9600 || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest.$ac_objext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 echo "$as_me:$LINENO: result: yes" >&5
9613 echo "${ECHO_T}yes" >&6
9615 cat >>confdefs.h <<\_ACEOF
9616 #define TRADITIONAL_CPP 1
9617 _ACEOF
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 echo "$as_me:$LINENO: result: no" >&5
9624 echo "${ECHO_T}no" >&6
9626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9627 ac_ext=c
9628 ac_cpp='$CPP $CPPFLAGS'
9629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9634 # checks for operating system services
9635 echo "$as_me:$LINENO: checking w_coredump" >&5
9636 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9637 if test "$cross_compiling" = yes; then
9638 echo "$as_me:$LINENO: result: no" >&5
9639 echo "${ECHO_T}no" >&6
9640 else
9641 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9650 #include <sys/types.h>
9651 #include <sys/wait.h>
9655 main ()
9659 main()
9661 #ifdef WCOREFLAG
9662 exit(1);
9663 #else
9664 int i = 0;
9665 ((union wait *)&i)->w_coredump = 1;
9666 exit(i != 0200);
9667 #endif
9672 return 0;
9675 _ACEOF
9676 rm -f conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6
9690 cat >>confdefs.h <<\_ACEOF
9691 #define WCOREFLAG 0200
9692 _ACEOF
9694 else
9695 echo "$as_me: program exited with status $ac_status" >&5
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ( exit $ac_status )
9700 echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9706 # other random stuff
9707 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9708 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9709 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
9710 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9711 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9713 echo "$as_me:$LINENO: checking default paper size" >&5
9714 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9715 groff_prefix=$prefix
9716 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
9717 if test -z "$PAGE"; then
9718 descfile=
9719 if test -r $groff_prefix/share/groff/font/devps/DESC; then
9720 descfile=$groff_prefix/share/groff/font/devps/DESC
9721 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
9722 descfile=$groff_prefix/lib/groff/font/devps/DESC
9723 else
9724 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
9725 if test -r $f; then
9726 descfile=$f
9727 break
9729 done
9732 if test -n "$descfile"; then
9733 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
9734 PAGE=A4
9735 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
9736 PAGE=A4
9741 if test -z "$PAGE"; then
9742 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9743 /etc/resolv.conf 2>/dev/null`
9744 if test -z "$dom"; then
9745 dom=`(domainname) 2>/dev/null | tr -d '+'`
9746 if test -z "$dom" \
9747 || test "$dom" = '(none)'; then
9748 dom=`(hostname) 2>/dev/null | grep '\.'`
9751 # If the top-level domain is two letters and it's not `us' or `ca'
9752 # then they probably use A4 paper.
9753 case "$dom" in
9754 *.[Uu][Ss]|*.[Cc][Aa])
9756 *.[A-Za-z][A-Za-z])
9757 PAGE=A4 ;;
9758 esac
9761 test -n "$PAGE" || PAGE=letter
9762 if test "x$PAGE" = "xA4"; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define PAGEA4 1
9766 _ACEOF
9769 echo "$as_me:$LINENO: result: $PAGE" >&5
9770 echo "${ECHO_T}$PAGE" >&6
9772 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9773 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9774 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
9775 echo "$as_me:$LINENO: result: yes" >&5
9776 echo "${ECHO_T}yes" >&6
9778 else
9779 echo "$as_me:$LINENO: result: no" >&5
9780 echo "${ECHO_T}no" >&6
9784 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9785 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9786 sys_tmac_prefix=
9787 sys_tmac_file_prefix=
9788 for d in /usr/share/lib/tmac /usr/lib/tmac; do
9789 for t in "" tmac.; do
9790 for m in an s m; do
9791 f=$d/$t$m
9792 if test -z "$sys_tmac_prefix" \
9793 && test -f $f \
9794 && grep '^\.if' $f >/dev/null 2>&1; then
9795 sys_tmac_prefix=$d/$t
9796 sys_tmac_file_prefix=$t
9798 done
9799 done
9800 done
9801 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9802 echo "${ECHO_T}$sys_tmac_prefix" >&6
9805 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9806 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9807 tmac_wrap=
9808 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9809 for f in $sys_tmac_prefix*; do
9810 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9811 case "$suff" in
9815 grep "Copyright.*Free Software Foundation" $f >/dev/null \
9816 || tmac_wrap="$tmac_wrap $suff" ;;
9817 esac
9818 done
9819 elif test -n "$sys_tmac_prefix"; then
9820 files=`echo $sys_tmac_prefix*`
9821 grep "\\.so" $files >conftest.sol
9822 for f in $files; do
9823 case "$f" in
9824 ${sys_tmac_prefix}e)
9826 *.me)
9828 */ms.*)
9831 b=`basename $f`
9832 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
9833 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
9835 else
9836 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9837 case "$suff" in
9838 tmac.*)
9841 tmac_wrap="$tmac_wrap $suff" ;;
9842 esac
9844 esac
9845 done
9846 rm -f conftest.sol
9848 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9849 echo "${ECHO_T}$tmac_wrap" >&6
9851 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9852 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9853 cp ${srcdir}/src/include/nonposix.h conftest.h
9854 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9863 #include <ctype.h>
9864 #include "conftest.h"
9868 main ()
9872 #if PATH_SEP_CHAR == ';'
9873 make an error "Path separator is ';'"
9874 #endif
9878 return 0;
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 (eval $ac_try) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 GROFF_PATH_SEPARATOR=":"
9905 else
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 GROFF_PATH_SEPARATOR=";"
9911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9913 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9915 make_html=html
9916 make_install_html=install_html
9918 missing=
9919 # Extract the first word of "pnmcut", so it can be a program name with args.
9920 set dummy pnmcut; ac_word=$2
9921 echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923 if test "${ac_cv_prog_pnmcut+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 if test -n "$pnmcut"; then
9927 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
9928 else
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9932 IFS=$as_save_IFS
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_prog_pnmcut="found"
9937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 break 2
9940 done
9941 done
9943 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
9946 pnmcut=$ac_cv_prog_pnmcut
9947 if test -n "$pnmcut"; then
9948 echo "$as_me:$LINENO: result: $pnmcut" >&5
9949 echo "${ECHO_T}$pnmcut" >&6
9950 else
9951 echo "$as_me:$LINENO: result: no" >&5
9952 echo "${ECHO_T}no" >&6
9955 if test $pnmcut = missing; then
9956 missing="$missing pnmcut"
9957 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
9958 set dummy pnmcrop; ac_word=$2
9959 echo "$as_me:$LINENO: checking for $ac_word" >&5
9960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9961 if test "${ac_cv_prog_pnmcrop+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 if test -n "$pnmcrop"; then
9965 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_prog_pnmcrop="found"
9975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9978 done
9979 done
9981 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
9984 pnmcrop=$ac_cv_prog_pnmcrop
9985 if test -n "$pnmcrop"; then
9986 echo "$as_me:$LINENO: result: $pnmcrop" >&5
9987 echo "${ECHO_T}$pnmcrop" >&6
9988 else
9989 echo "$as_me:$LINENO: result: no" >&5
9990 echo "${ECHO_T}no" >&6
9993 if test $pnmcrop = missing; then
9994 missing="$missing pnmcrop"
9995 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
9996 set dummy pnmtopng; ac_word=$2
9997 echo "$as_me:$LINENO: checking for $ac_word" >&5
9998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9999 if test "${ac_cv_prog_pnmtopng+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002 if test -n "$pnmtopng"; then
10003 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
10004 else
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_prog_pnmtopng="found"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10019 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
10022 pnmtopng=$ac_cv_prog_pnmtopng
10023 if test -n "$pnmtopng"; then
10024 echo "$as_me:$LINENO: result: $pnmtopng" >&5
10025 echo "${ECHO_T}$pnmtopng" >&6
10026 else
10027 echo "$as_me:$LINENO: result: no" >&5
10028 echo "${ECHO_T}no" >&6
10031 if test $pnmtopng = missing; then
10032 missing="$missing pnmtopng"
10033 fi;# Extract the first word of "psselect", so it can be a program name with args.
10034 set dummy psselect; ac_word=$2
10035 echo "$as_me:$LINENO: checking for $ac_word" >&5
10036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037 if test "${ac_cv_prog_psselect+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040 if test -n "$psselect"; then
10041 ac_cv_prog_psselect="$psselect" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_psselect="found"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10054 done
10055 done
10057 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
10060 psselect=$ac_cv_prog_psselect
10061 if test -n "$psselect"; then
10062 echo "$as_me:$LINENO: result: $psselect" >&5
10063 echo "${ECHO_T}$psselect" >&6
10064 else
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10069 if test $psselect = missing; then
10070 missing="$missing psselect"
10071 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10072 set dummy pnmtops; ac_word=$2
10073 echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075 if test "${ac_cv_prog_pnmtops+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 if test -n "$pnmtops"; then
10079 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
10080 else
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_prog_pnmtops="found"
10089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 break 2
10092 done
10093 done
10095 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
10098 pnmtops=$ac_cv_prog_pnmtops
10099 if test -n "$pnmtops"; then
10100 echo "$as_me:$LINENO: result: $pnmtops" >&5
10101 echo "${ECHO_T}$pnmtops" >&6
10102 else
10103 echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10107 if test $pnmtops = missing; then
10108 missing="$missing pnmtops"
10109 fi;# Extract the first word of "gs", so it can be a program name with args.
10110 set dummy gs; ac_word=$2
10111 echo "$as_me:$LINENO: checking for $ac_word" >&5
10112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10113 if test "${ac_cv_prog_gs+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116 if test -n "$gs"; then
10117 ac_cv_prog_gs="$gs" # Let the user override the test.
10118 else
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10120 for as_dir in $PATH
10122 IFS=$as_save_IFS
10123 test -z "$as_dir" && as_dir=.
10124 for ac_exec_ext in '' $ac_executable_extensions; do
10125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10126 ac_cv_prog_gs="found"
10127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 break 2
10130 done
10131 done
10133 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs="missing"
10136 gs=$ac_cv_prog_gs
10137 if test -n "$gs"; then
10138 echo "$as_me:$LINENO: result: $gs" >&5
10139 echo "${ECHO_T}$gs" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10145 if test $gs = missing; then
10146 missing="$missing gs"
10149 if test -n "$missing"; then
10150 cnt=0
10151 for i in $missing
10153 cnt=`expr $cnt + 1`
10154 eval "prog$cnt=$i"
10155 done
10156 plural="s"
10157 case $cnt in
10159 plural=""
10160 progs="\`$prog1'" ;;
10162 progs="\`$prog1' and \`$prog2'" ;;
10164 progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
10166 progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
10168 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
10170 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
10171 esac
10173 make_html=
10174 make_install_html=
10176 { echo "$as_me:$LINENO: WARNING:
10178 The program$plural
10179 $progs
10180 can't be found in the path, thus the HTML backend of groff (grohtml)
10181 won't work properly. Consequently, no documentation in HTML format
10182 is built and installed.
10183 " >&5
10184 echo "$as_me: WARNING:
10186 The program$plural
10187 $progs
10188 can't be found in the path, thus the HTML backend of groff (grohtml)
10189 won't work properly. Consequently, no documentation in HTML format
10190 is built and installed.
10191 " >&2;}
10196 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
10197 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
10198 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
10199 echo "$as_me:$LINENO: result: yes" >&5
10200 echo "${ECHO_T}yes" >&6
10201 pnmtops_nosetpage="pnmtops -nosetpage"
10202 else
10203 echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6
10205 pnmtops_nosetpage="pnmtops"
10208 if test -n "$ac_tool_prefix"; then
10209 # Extract the first word of "${ac_tool_prefix}gs gsos2", so it can be a program name with args.
10210 set dummy ${ac_tool_prefix}gs gsos2; ac_word=$2
10211 echo "$as_me:$LINENO: checking for $ac_word" >&5
10212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10213 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 case $GHOSTSCRIPT in
10217 [\\/]* | ?:[\\/]*)
10218 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
10229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10232 done
10233 done
10236 esac
10238 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
10240 if test -n "$GHOSTSCRIPT"; then
10241 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
10242 echo "${ECHO_T}$GHOSTSCRIPT" >&6
10243 else
10244 echo "$as_me:$LINENO: result: no" >&5
10245 echo "${ECHO_T}no" >&6
10249 if test -z "$ac_cv_path_GHOSTSCRIPT"; then
10250 ac_pt_GHOSTSCRIPT=$GHOSTSCRIPT
10251 # Extract the first word of "gs gsos2", so it can be a program name with args.
10252 set dummy gs gsos2; ac_word=$2
10253 echo "$as_me:$LINENO: checking for $ac_word" >&5
10254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10255 if test "${ac_cv_path_ac_pt_GHOSTSCRIPT+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258 case $ac_pt_GHOSTSCRIPT in
10259 [\\/]* | ?:[\\/]*)
10260 ac_cv_path_ac_pt_GHOSTSCRIPT="$ac_pt_GHOSTSCRIPT" # Let the user override the test with a path.
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10270 ac_cv_path_ac_pt_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10278 esac
10280 ac_pt_GHOSTSCRIPT=$ac_cv_path_ac_pt_GHOSTSCRIPT
10282 if test -n "$ac_pt_GHOSTSCRIPT"; then
10283 echo "$as_me:$LINENO: result: $ac_pt_GHOSTSCRIPT" >&5
10284 echo "${ECHO_T}$ac_pt_GHOSTSCRIPT" >&6
10285 else
10286 echo "$as_me:$LINENO: result: no" >&5
10287 echo "${ECHO_T}no" >&6
10290 if test "x$ac_pt_GHOSTSCRIPT" = x; then
10291 GHOSTSCRIPT="missing"
10292 else
10293 if test "$build" != "$host"; then
10294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10295 whose name does not start with the host triplet. If you think this
10296 configuration is useful to you, please write to autoconf@gnu.org." >&5
10297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10298 whose name does not start with the host triplet. If you think this
10299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10301 GHOSTSCRIPT=$ac_pt_GHOSTSCRIPT
10303 else
10304 GHOSTSCRIPT="$ac_cv_path_GHOSTSCRIPT"
10309 ac_config_files="$ac_config_files stamp-h"
10311 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10313 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
10315 ac_config_files="$ac_config_files test-groff"
10317 cat >confcache <<\_ACEOF
10318 # This file is a shell script that caches the results of configure
10319 # tests run on this system so they can be shared between configure
10320 # scripts and configure runs, see configure's option --config-cache.
10321 # It is not useful on other systems. If it contains results you don't
10322 # want to keep, you may remove or edit it.
10324 # config.status only pays attention to the cache file if you give it
10325 # the --recheck option to rerun configure.
10327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10329 # following values.
10331 _ACEOF
10333 # The following way of writing the cache mishandles newlines in values,
10334 # but we know of no workaround that is simple, portable, and efficient.
10335 # So, don't put newlines in cache variables' values.
10336 # Ultrix sh set writes to stderr and can't be redirected directly,
10337 # and sets the high bit in the cache file unless we assign to the vars.
10339 (set) 2>&1 |
10340 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10341 *ac_space=\ *)
10342 # `set' does not quote correctly, so add quotes (double-quote
10343 # substitution turns \\\\ into \\, and sed turns \\ into \).
10344 sed -n \
10345 "s/'/'\\\\''/g;
10346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10349 # `set' quotes correctly as required by POSIX, so do not add quotes.
10350 sed -n \
10351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10353 esac;
10355 sed '
10356 t clear
10357 : clear
10358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10359 t end
10360 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10361 : end' >>confcache
10362 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10363 if test -w $cache_file; then
10364 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10365 cat confcache >$cache_file
10366 else
10367 echo "not updating unwritable cache $cache_file"
10370 rm -f confcache
10372 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10373 # Let make expand exec_prefix.
10374 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10378 # trailing colons and then remove the whole line if VPATH becomes empty
10379 # (actually we leave an empty line to preserve line numbers).
10380 if test "x$srcdir" = x.; then
10381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10382 s/:*\$(srcdir):*/:/;
10383 s/:*\${srcdir}:*/:/;
10384 s/:*@srcdir@:*/:/;
10385 s/^\([^=]*=[ ]*\):*/\1/;
10386 s/:*$//;
10387 s/^[^=]*=[ ]*$//;
10391 DEFS=-DHAVE_CONFIG_H
10393 ac_libobjs=
10394 ac_ltlibobjs=
10395 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10396 # 1. Remove the extension, and $U if already installed.
10397 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10398 ac_i=`echo "$ac_i" | sed "$ac_script"`
10399 # 2. Add them.
10400 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10401 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10402 done
10403 LIBOBJS=$ac_libobjs
10405 LTLIBOBJS=$ac_ltlibobjs
10409 : ${CONFIG_STATUS=./config.status}
10410 ac_clean_files_save=$ac_clean_files
10411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10412 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10413 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10414 cat >$CONFIG_STATUS <<_ACEOF
10415 #! $SHELL
10416 # Generated by $as_me.
10417 # Run this file to recreate the current configuration.
10418 # Compiler output produced by configure, useful for debugging
10419 # configure, is in config.log if it exists.
10421 debug=false
10422 ac_cs_recheck=false
10423 ac_cs_silent=false
10424 SHELL=\${CONFIG_SHELL-$SHELL}
10425 _ACEOF
10427 cat >>$CONFIG_STATUS <<\_ACEOF
10428 ## --------------------- ##
10429 ## M4sh Initialization. ##
10430 ## --------------------- ##
10432 # Be Bourne compatible
10433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10434 emulate sh
10435 NULLCMD=:
10436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10437 # is contrary to our usage. Disable this feature.
10438 alias -g '${1+"$@"}'='"$@"'
10439 setopt NO_GLOB_SUBST
10440 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10441 set -o posix
10443 BIN_SH=xpg4; export BIN_SH # for Tru64
10444 DUALCASE=1; export DUALCASE # for MKS sh
10447 # PATH needs CR
10448 # Avoid depending upon Character Ranges.
10449 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10450 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10451 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10452 as_cr_digits='0123456789'
10453 as_cr_alnum=$as_cr_Letters$as_cr_digits
10455 # The user is always right.
10456 if test "${PATH_SEPARATOR+set}" != set; then
10457 echo "#! /bin/sh" >conf$$.sh
10458 echo "exit 0" >>conf$$.sh
10459 chmod +x conf$$.sh
10460 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10461 PATH_SEPARATOR=';'
10462 else
10463 PATH_SEPARATOR=:
10465 rm -f conf$$.sh
10468 # Support unset when possible.
10469 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10470 as_unset=unset
10471 else
10472 as_unset=false
10476 # Find who we are. Look in the path if we contain no path at all
10477 # relative or not.
10478 case $0 in
10479 *[\\/]* ) as_myself=$0 ;;
10480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10486 done
10489 esac
10490 # We did not find ourselves, most probably we were run as `sh COMMAND'
10491 # in which case we are not to be found in the path.
10492 if test "x$as_myself" = x; then
10493 as_myself=$0
10495 if test ! -f "$as_myself"; then
10496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
10497 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
10498 { (exit 1); exit 1; }; }
10501 # Work around bugs in pre-3.0 UWIN ksh.
10502 for as_var in ENV MAIL MAILPATH
10503 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10504 done
10505 PS1='$ '
10506 PS2='> '
10507 PS4='+ '
10509 # NLS nuisances.
10510 for as_var in \
10511 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10512 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10513 LC_TELEPHONE LC_TIME
10515 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10516 eval $as_var=C; export $as_var
10517 else
10518 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10520 done
10522 # Required to use basename.
10523 if expr a : '\(a\)' >/dev/null 2>&1; then
10524 as_expr=expr
10525 else
10526 as_expr=false
10529 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10530 as_basename=basename
10531 else
10532 as_basename=false
10536 # Name of the executable.
10537 as_me=`$as_basename "$0" ||
10538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10539 X"$0" : 'X\(//\)$' \| \
10540 X"$0" : 'X\(/\)$' \| \
10541 . : '\(.\)' 2>/dev/null ||
10542 echo X/"$0" |
10543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10544 /^X\/\(\/\/\)$/{ s//\1/; q; }
10545 /^X\/\(\/\).*/{ s//\1/; q; }
10546 s/.*/./; q'`
10551 as_lineno_1=$LINENO
10552 as_lineno_2=$LINENO
10553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10554 test "x$as_lineno_1" != "x$as_lineno_2" &&
10555 test "x$as_lineno_3" = "x$as_lineno_2" || {
10557 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10558 # uniformly replaced by the line number. The first 'sed' inserts a
10559 # line-number line after each line using $LINENO; the second 'sed'
10560 # does the real work. The second script uses 'N' to pair each
10561 # line-number line with the line containing $LINENO, and appends
10562 # trailing '-' during substitution so that $LINENO is not a special
10563 # case at line end.
10564 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10565 # scripts with optimization help from Paolo Bonzini. Blame Lee
10566 # E. McMahon (1931-1989) for sed's syntax. :-)
10567 sed -n '
10569 /[$]LINENO/=
10570 ' <$as_myself |
10571 sed '
10572 s,[$]LINENO.*,&-,
10573 t lineno
10575 : lineno
10577 : loop
10578 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10579 t loop
10580 s,-\n.*,,
10581 ' >$as_me.lineno &&
10582 chmod +x $as_me.lineno ||
10583 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10584 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10585 { (exit 1); exit 1; }; }
10587 # Don't try to exec as it changes $[0], causing all sort of problems
10588 # (the dirname of $[0] is not the place where we might find the
10589 # original and so on. Autoconf is especially sensible to this).
10590 . ./$as_me.lineno
10591 # Exit status is that of the last command.
10592 exit
10596 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10597 *c*,-n*) ECHO_N= ECHO_C='
10598 ' ECHO_T=' ' ;;
10599 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10600 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10601 esac
10603 if expr a : '\(a\)' >/dev/null 2>&1; then
10604 as_expr=expr
10605 else
10606 as_expr=false
10609 rm -f conf$$ conf$$.exe conf$$.file
10610 echo >conf$$.file
10611 if ln -s conf$$.file conf$$ 2>/dev/null; then
10612 # We could just check for DJGPP; but this test a) works b) is more generic
10613 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10614 if test -f conf$$.exe; then
10615 # Don't use ln at all; we don't have any links
10616 as_ln_s='cp -p'
10617 else
10618 as_ln_s='ln -s'
10620 elif ln conf$$.file conf$$ 2>/dev/null; then
10621 as_ln_s=ln
10622 else
10623 as_ln_s='cp -p'
10625 rm -f conf$$ conf$$.exe conf$$.file
10627 if mkdir -p . 2>/dev/null; then
10628 as_mkdir_p=:
10629 else
10630 test -d ./-p && rmdir ./-p
10631 as_mkdir_p=false
10634 as_executable_p="test -f"
10636 # Sed expression to map a string onto a valid CPP name.
10637 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10639 # Sed expression to map a string onto a valid variable name.
10640 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10643 # IFS
10644 # We need space, tab and new line, in precisely that order.
10645 as_nl='
10647 IFS=" $as_nl"
10649 # CDPATH.
10650 $as_unset CDPATH
10652 exec 6>&1
10654 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10655 # report actual input values of CONFIG_FILES etc. instead of their
10656 # values after options handling. Logging --version etc. is OK.
10657 exec 5>>config.log
10659 echo
10660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10661 ## Running $as_me. ##
10662 _ASBOX
10663 } >&5
10664 cat >&5 <<_CSEOF
10666 This file was extended by $as_me, which was
10667 generated by GNU Autoconf 2.59b. Invocation command line was
10669 CONFIG_FILES = $CONFIG_FILES
10670 CONFIG_HEADERS = $CONFIG_HEADERS
10671 CONFIG_LINKS = $CONFIG_LINKS
10672 CONFIG_COMMANDS = $CONFIG_COMMANDS
10673 $ $0 $@
10675 _CSEOF
10676 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10677 echo >&5
10678 _ACEOF
10680 # Files that config.status was made for.
10681 if test -n "$ac_config_files"; then
10682 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10685 if test -n "$ac_config_headers"; then
10686 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10689 if test -n "$ac_config_links"; then
10690 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10693 if test -n "$ac_config_commands"; then
10694 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10697 cat >>$CONFIG_STATUS <<\_ACEOF
10699 ac_cs_usage="\
10700 \`$as_me' instantiates files from templates according to the
10701 current configuration.
10703 Usage: $0 [OPTIONS] [FILE]...
10705 -h, --help print this help, then exit
10706 -V, --version print version number, then exit
10707 -q, --quiet do not print progress messages
10708 -d, --debug don't remove temporary files
10709 --recheck update $as_me by reconfiguring in the same conditions
10710 --file=FILE[:TEMPLATE]
10711 instantiate the configuration file FILE
10712 --header=FILE[:TEMPLATE]
10713 instantiate the configuration header FILE
10715 Configuration files:
10716 $config_files
10718 Configuration headers:
10719 $config_headers
10721 Report bugs to <bug-autoconf@gnu.org>."
10722 _ACEOF
10724 cat >>$CONFIG_STATUS <<_ACEOF
10725 ac_cs_version="\\
10726 config.status
10727 configured by $0, generated by GNU Autoconf 2.59b,
10728 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10730 Copyright (C) 2004 Free Software Foundation, Inc.
10731 This config.status script is free software; the Free Software Foundation
10732 gives unlimited permission to copy, distribute and modify it."
10733 srcdir=$srcdir
10734 INSTALL="$INSTALL"
10735 _ACEOF
10737 cat >>$CONFIG_STATUS <<\_ACEOF
10738 # If no file are specified by the user, then we need to provide default
10739 # value. By we need to know if files were specified by the user.
10740 ac_need_defaults=:
10741 while test $# != 0
10743 case $1 in
10744 --*=*)
10745 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10746 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10747 ac_shift=:
10750 ac_option=$1
10751 ac_optarg=$2
10752 ac_shift=shift
10754 *) # This is not an option, so the user has probably given explicit
10755 # arguments.
10756 ac_option=$1
10757 ac_need_defaults=false;;
10758 esac
10760 case $ac_option in
10761 # Handling of the options.
10762 _ACEOF
10763 cat >>$CONFIG_STATUS <<\_ACEOF
10764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10765 ac_cs_recheck=: ;;
10766 --version | --vers* | -V )
10767 echo "$ac_cs_version"; exit 0 ;;
10768 --he | --h)
10769 # Conflict between --help and --header
10770 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10771 Try \`$0 --help' for more information." >&5
10772 echo "$as_me: error: ambiguous option: $1
10773 Try \`$0 --help' for more information." >&2;}
10774 { (exit 1); exit 1; }; };;
10775 --help | --hel | -h )
10776 echo "$ac_cs_usage"; exit 0 ;;
10777 --debug | --d* | -d )
10778 debug=: ;;
10779 --file | --fil | --fi | --f )
10780 $ac_shift
10781 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10782 ac_need_defaults=false;;
10783 --header | --heade | --head | --hea )
10784 $ac_shift
10785 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10786 ac_need_defaults=false;;
10787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10789 ac_cs_silent=: ;;
10791 # This is an error.
10792 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10793 Try \`$0 --help' for more information." >&5
10794 echo "$as_me: error: unrecognized option: $1
10795 Try \`$0 --help' for more information." >&2;}
10796 { (exit 1); exit 1; }; } ;;
10798 *) ac_config_targets="$ac_config_targets $1" ;;
10800 esac
10801 shift
10802 done
10804 ac_configure_extra_args=
10806 if $ac_cs_silent; then
10807 exec 6>/dev/null
10808 ac_configure_extra_args="$ac_configure_extra_args --silent"
10811 _ACEOF
10812 cat >>$CONFIG_STATUS <<_ACEOF
10813 if \$ac_cs_recheck; then
10814 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10815 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10818 _ACEOF
10824 cat >>$CONFIG_STATUS <<\_ACEOF
10825 for ac_config_target in $ac_config_targets
10827 case "$ac_config_target" in
10828 # Handling of arguments.
10829 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
10830 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10831 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10832 "src/utils/xtotroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10833 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
10834 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
10835 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10836 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10837 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10838 { (exit 1); exit 1; }; };;
10839 esac
10840 done
10842 # If the user did not use the arguments to specify the items to instantiate,
10843 # then the envvar interface is used. Set only those that are not.
10844 # We use the long form for the default assignment because of an extremely
10845 # bizarre bug on SunOS 4.1.3.
10846 if $ac_need_defaults; then
10847 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10848 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10851 # Have a temporary directory for convenience. Make it in the build tree
10852 # simply because there is no reason to put it here, and in addition,
10853 # creating and moving files from /tmp can sometimes cause problems.
10854 # Create a temporary directory, and hook for its removal unless debugging.
10855 $debug ||
10857 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
10858 trap '{ (exit 1); exit 1; }' 1 2 13 15
10861 # Create a (secure) tmp directory for tmp files.
10864 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10865 test -n "$tmp" && test -d "$tmp"
10866 } ||
10868 tmp=./confstat$$-$RANDOM
10869 (umask 077 && mkdir $tmp)
10870 } ||
10872 echo "$me: cannot create a temporary directory in ." >&2
10873 { (exit 1); exit 1; }
10876 _ACEOF
10878 cat >>$CONFIG_STATUS <<_ACEOF
10881 # CONFIG_FILES section.
10884 # No need to generate the scripts if there are no CONFIG_FILES.
10885 # This happens for instance when ./config.status config.h
10886 if test -n "\$CONFIG_FILES"; then
10887 # Protect against being on the right side of a sed subst in config.status.
10888 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10889 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10890 s,@SHELL@,$SHELL,;t t
10891 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10892 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10893 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10894 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10895 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10896 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10897 s,@exec_prefix@,$exec_prefix,;t t
10898 s,@prefix@,$prefix,;t t
10899 s,@program_transform_name@,$program_transform_name,;t t
10900 s,@bindir@,$bindir,;t t
10901 s,@sbindir@,$sbindir,;t t
10902 s,@libexecdir@,$libexecdir,;t t
10903 s,@datadir@,$datadir,;t t
10904 s,@sysconfdir@,$sysconfdir,;t t
10905 s,@sharedstatedir@,$sharedstatedir,;t t
10906 s,@localstatedir@,$localstatedir,;t t
10907 s,@libdir@,$libdir,;t t
10908 s,@includedir@,$includedir,;t t
10909 s,@oldincludedir@,$oldincludedir,;t t
10910 s,@infodir@,$infodir,;t t
10911 s,@mandir@,$mandir,;t t
10912 s,@build_alias@,$build_alias,;t t
10913 s,@host_alias@,$host_alias,;t t
10914 s,@target_alias@,$target_alias,;t t
10915 s,@DEFS@,$DEFS,;t t
10916 s,@ECHO_C@,$ECHO_C,;t t
10917 s,@ECHO_N@,$ECHO_N,;t t
10918 s,@ECHO_T@,$ECHO_T,;t t
10919 s,@LIBS@,$LIBS,;t t
10920 s,@CC@,$CC,;t t
10921 s,@CFLAGS@,$CFLAGS,;t t
10922 s,@LDFLAGS@,$LDFLAGS,;t t
10923 s,@CPPFLAGS@,$CPPFLAGS,;t t
10924 s,@ac_ct_CC@,$ac_ct_CC,;t t
10925 s,@EXEEXT@,$EXEEXT,;t t
10926 s,@OBJEXT@,$OBJEXT,;t t
10927 s,@CXX@,$CXX,;t t
10928 s,@CXXFLAGS@,$CXXFLAGS,;t t
10929 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10930 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
10931 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
10932 s,@CPP@,$CPP,;t t
10933 s,@X_CFLAGS@,$X_CFLAGS,;t t
10934 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10935 s,@X_LIBS@,$X_LIBS,;t t
10936 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10937 s,@XDEVDIRS@,$XDEVDIRS,;t t
10938 s,@XPROGDIRS@,$XPROGDIRS,;t t
10939 s,@XLIBDIRS@,$XLIBDIRS,;t t
10940 s,@appresdir@,$appresdir,;t t
10941 s,@LPR@,$LPR,;t t
10942 s,@LP@,$LP,;t t
10943 s,@LPQ@,$LPQ,;t t
10944 s,@PSPRINT@,$PSPRINT,;t t
10945 s,@DVIPRINT@,$DVIPRINT,;t t
10946 s,@PERLPATH@,$PERLPATH,;t t
10947 s,@YACC@,$YACC,;t t
10948 s,@RANLIB@,$RANLIB,;t t
10949 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10950 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
10951 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10952 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10953 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10954 s,@LN_S@,$LN_S,;t t
10955 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
10956 s,@GREP@,$GREP,;t t
10957 s,@EGREP@,$EGREP,;t t
10958 s,@LIBC@,$LIBC,;t t
10959 s,@LIBM@,$LIBM,;t t
10960 s,@LIBOBJS@,$LIBOBJS,;t t
10961 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
10962 s,@PAGE@,$PAGE,;t t
10963 s,@g@,$g,;t t
10964 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
10965 s,@tmac_wrap@,$tmac_wrap,;t t
10966 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
10967 s,@pnmcut@,$pnmcut,;t t
10968 s,@pnmcrop@,$pnmcrop,;t t
10969 s,@pnmtopng@,$pnmtopng,;t t
10970 s,@psselect@,$psselect,;t t
10971 s,@pnmtops@,$pnmtops,;t t
10972 s,@gs@,$gs,;t t
10973 s,@make_html@,$make_html,;t t
10974 s,@make_install_html@,$make_install_html,;t t
10975 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
10976 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
10977 s,@ac_pt_GHOSTSCRIPT@,$ac_pt_GHOSTSCRIPT,;t t
10978 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10979 CEOF
10981 _ACEOF
10983 cat >>$CONFIG_STATUS <<\_ACEOF
10984 # Split the substitutions into bite-sized pieces for seds with
10985 # small command number limits, like on Digital OSF/1 and HP-UX.
10986 ac_max_sed_lines=48
10987 ac_sed_frag=1 # Number of current file.
10988 ac_beg=1 # First line for current file.
10989 ac_end=$ac_max_sed_lines # Line after last line for current file.
10990 ac_more_lines=:
10991 ac_sed_cmds=
10992 while $ac_more_lines; do
10993 if test $ac_beg -gt 1; then
10994 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10995 else
10996 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10998 if test ! -s $tmp/subs.frag; then
10999 ac_more_lines=false
11000 else
11001 # The purpose of the label and of the branching condition is to
11002 # speed up the sed processing (if there are no `@' at all, there
11003 # is no need to browse any of the substitutions).
11004 # These are the two extra sed commands mentioned above.
11005 (echo ':t
11006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11007 if test -z "$ac_sed_cmds"; then
11008 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11009 else
11010 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11012 ac_sed_frag=`expr $ac_sed_frag + 1`
11013 ac_beg=$ac_end
11014 ac_end=`expr $ac_end + $ac_max_sed_lines`
11016 done
11017 if test -z "$ac_sed_cmds"; then
11018 ac_sed_cmds=cat
11020 fi # test -n "$CONFIG_FILES"
11022 _ACEOF
11023 cat >>$CONFIG_STATUS <<\_ACEOF
11024 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11026 case $ac_file in
11027 - | *:- | *:-:* ) # input from stdin
11028 cat >$tmp/stdin
11029 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11031 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11033 * ) ac_file_in=$ac_file.in ;;
11034 esac
11036 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11037 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11039 X"$ac_file" : 'X\(//\)[^/]' \| \
11040 X"$ac_file" : 'X\(//\)$' \| \
11041 X"$ac_file" : 'X\(/\)' \| \
11042 . : '\(.\)' 2>/dev/null ||
11043 echo X"$ac_file" |
11044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11046 /^X\(\/\/\)$/{ s//\1/; q; }
11047 /^X\(\/\).*/{ s//\1/; q; }
11048 s/.*/./; q'`
11049 { if $as_mkdir_p; then
11050 test -d "$ac_dir" || mkdir -p "$ac_dir"
11051 else
11052 as_dir="$ac_dir"
11053 as_dirs=
11054 while test ! -d "$as_dir"; do
11055 as_dirs="$as_dir $as_dirs"
11056 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11058 X"$as_dir" : 'X\(//\)[^/]' \| \
11059 X"$as_dir" : 'X\(//\)$' \| \
11060 X"$as_dir" : 'X\(/\)' \| \
11061 . : '\(.\)' 2>/dev/null ||
11062 echo X"$as_dir" |
11063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11065 /^X\(\/\/\)$/{ s//\1/; q; }
11066 /^X\(\/\).*/{ s//\1/; q; }
11067 s/.*/./; q'`
11068 done
11069 test ! -n "$as_dirs" || mkdir $as_dirs
11070 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11071 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11072 { (exit 1); exit 1; }; }; }
11074 ac_builddir=.
11076 if test "$ac_dir" != .; then
11077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11078 # A "../" for each directory in $ac_dir_suffix.
11079 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11080 else
11081 ac_dir_suffix= ac_top_builddir=
11084 case $srcdir in
11085 .) # No --srcdir option. We are building in place.
11086 ac_srcdir=.
11087 if test -z "$ac_top_builddir"; then
11088 ac_top_srcdir=.
11089 else
11090 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11091 fi ;;
11092 [\\/]* | ?:[\\/]* ) # Absolute name.
11093 ac_srcdir=$srcdir$ac_dir_suffix;
11094 ac_top_srcdir=$srcdir ;;
11095 *) # Relative name.
11096 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11097 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11098 esac
11100 # Do not use `cd foo && pwd` to compute absolute names, because
11101 # the directories may not exist.
11102 case `pwd` in
11103 .) ac_abs_builddir="$ac_dir";;
11105 case "$ac_dir" in
11106 .) ac_abs_builddir=`pwd`;;
11107 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11108 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11109 esac;;
11110 esac
11111 case $ac_abs_builddir in
11112 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11114 case ${ac_top_builddir}. in
11115 .) ac_abs_top_builddir=$ac_abs_builddir;;
11116 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11117 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11118 esac;;
11119 esac
11120 case $ac_abs_builddir in
11121 .) ac_abs_srcdir=$ac_srcdir;;
11123 case $ac_srcdir in
11124 .) ac_abs_srcdir=$ac_abs_builddir;;
11125 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11126 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11127 esac;;
11128 esac
11129 case $ac_abs_builddir in
11130 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11132 case $ac_top_srcdir in
11133 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11134 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11135 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11136 esac;;
11137 esac
11140 case $INSTALL in
11141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11142 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11143 esac
11145 if test x"$ac_file" != x-; then
11146 { echo "$as_me:$LINENO: creating $ac_file" >&5
11147 echo "$as_me: creating $ac_file" >&6;}
11148 rm -f "$ac_file"
11150 # Let's still pretend it is `configure' which instantiates (i.e., don't
11151 # use $as_me), people would be surprised to read:
11152 # /* config.h. Generated by config.status. */
11153 if test x"$ac_file" = x-; then
11154 configure_input=
11155 else
11156 configure_input="$ac_file. "
11158 configure_input=$configure_input"Generated from `echo $ac_file_in |
11159 sed 's,.*/,,'` by configure."
11161 # First look for the input files in the build tree, otherwise in the
11162 # src tree.
11163 ac_file_inputs=`IFS=:
11164 for f in $ac_file_in; do
11165 case $f in
11166 -) echo $tmp/stdin ;;
11167 [\\/$]*)
11168 # Absolute (can't be DOS-style, as IFS=:)
11169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11170 echo "$as_me: error: cannot find input file: $f" >&2;}
11171 { (exit 1); exit 1; }; }
11172 echo "$f";;
11173 *) # Relative
11174 if test -f "$f"; then
11175 # Build tree
11176 echo "$f"
11177 elif test -f "$srcdir/$f"; then
11178 # Source tree
11179 echo "$srcdir/$f"
11180 else
11181 # /dev/null tree
11182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11183 echo "$as_me: error: cannot find input file: $f" >&2;}
11184 { (exit 1); exit 1; }; }
11185 fi;;
11186 esac
11187 done` || { (exit 1); exit 1; }
11188 _ACEOF
11189 cat >>$CONFIG_STATUS <<_ACEOF
11190 sed "$ac_vpsub
11191 $extrasub
11192 _ACEOF
11193 cat >>$CONFIG_STATUS <<\_ACEOF
11195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11196 s,@configure_input@,$configure_input,;t t
11197 s,@srcdir@,$ac_srcdir,;t t
11198 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11199 s,@top_srcdir@,$ac_top_srcdir,;t t
11200 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11201 s,@builddir@,$ac_builddir,;t t
11202 s,@abs_builddir@,$ac_abs_builddir,;t t
11203 s,@top_builddir@,$ac_top_builddir,;t t
11204 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11205 s,@INSTALL@,$ac_INSTALL,;t t
11206 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11207 rm -f $tmp/stdin
11208 if test x"$ac_file" != x-; then
11209 mv $tmp/out $ac_file
11210 else
11211 cat $tmp/out
11212 rm -f $tmp/out
11215 # Run the commands associated with the file.
11216 case $ac_file in
11217 stamp-h ) echo timestamp > stamp-h ;;
11218 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
11219 test-groff ) chmod +x test-groff ;;
11220 esac
11221 done
11222 _ACEOF
11223 cat >>$CONFIG_STATUS <<\_ACEOF
11226 # CONFIG_HEADER section.
11229 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11230 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11232 # ac_d sets the value in "#define NAME VALUE" lines.
11233 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11234 ac_dB='[ ].*$,\1#\2'
11235 ac_dC=' '
11236 ac_dD=',;t'
11237 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11238 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11239 ac_uB='$,\1#\2define\3'
11240 ac_uC=' '
11241 ac_uD=',;t'
11243 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11245 case $ac_file in
11246 - | *:- | *:-:* ) # input from stdin
11247 cat >$tmp/stdin
11248 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11249 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11250 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11252 * ) ac_file_in=$ac_file.in ;;
11253 esac
11255 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11256 echo "$as_me: creating $ac_file" >&6;}
11258 # First look for the input files in the build tree, otherwise in the
11259 # src tree.
11260 ac_file_inputs=`IFS=:
11261 for f in $ac_file_in; do
11262 case $f in
11263 -) echo $tmp/stdin ;;
11264 [\\/$]*)
11265 # Absolute (can't be DOS-style, as IFS=:)
11266 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11267 echo "$as_me: error: cannot find input file: $f" >&2;}
11268 { (exit 1); exit 1; }; }
11269 # Quote $f, to prevent DOS file names from being IFS'd.
11270 echo "$f";;
11271 *) # Relative
11272 if test -f "$f"; then
11273 # Build tree
11274 echo "$f"
11275 elif test -f "$srcdir/$f"; then
11276 # Source tree
11277 echo "$srcdir/$f"
11278 else
11279 # /dev/null tree
11280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11281 echo "$as_me: error: cannot find input file: $f" >&2;}
11282 { (exit 1); exit 1; }; }
11283 fi;;
11284 esac
11285 done` || { (exit 1); exit 1; }
11286 # Remove the trailing spaces.
11287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11289 _ACEOF
11291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11292 # `conftest.undefs', that substitutes the proper values into
11293 # config.h.in to produce config.h. The first handles `#define'
11294 # templates, and the second `#undef' templates.
11295 # And first: Protect against being on the right side of a sed subst in
11296 # config.status. Protect against being in an unquoted here document
11297 # in config.status.
11298 rm -f conftest.defines conftest.undefs
11299 # Using a here document instead of a string reduces the quoting nightmare.
11300 # Putting comments in sed scripts is not portable.
11302 # `end' is used to avoid that the second main sed command (meant for
11303 # 0-ary CPP macros) applies to n-ary macro definitions.
11304 # See the Autoconf documentation for `clear'.
11305 cat >confdef2sed.sed <<\_ACEOF
11306 s/[\\&,]/\\&/g
11307 s,[\\$`],\\&,g
11308 t clear
11309 : clear
11310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11311 t end
11312 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11313 : end
11314 _ACEOF
11315 # If some macros were called several times there might be several times
11316 # the same #defines, which is useless. Nevertheless, we may not want to
11317 # sort them, since we want the *last* AC-DEFINE to be honored.
11318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11320 rm -f confdef2sed.sed
11322 # This sed command replaces #undef with comments. This is necessary, for
11323 # example, in the case of _POSIX_SOURCE, which is predefined and required
11324 # on some systems where configure will not decide to define it.
11325 cat >>conftest.undefs <<\_ACEOF
11326 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11327 _ACEOF
11329 # Break up conftest.defines because some shells have a limit on the size
11330 # of here documents, and old seds have small limits too (100 cmds).
11331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11332 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11334 echo ' :' >>$CONFIG_STATUS
11335 rm -f conftest.tail
11336 while grep . conftest.defines >/dev/null
11338 # Write a limited-size here document to $tmp/defines.sed.
11339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11340 # Speed up: don't consider the non `#define' lines.
11341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11342 # Work around the forget-to-reset-the-flag bug.
11343 echo 't clr' >>$CONFIG_STATUS
11344 echo ': clr' >>$CONFIG_STATUS
11345 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11346 echo 'CEOF
11347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11348 rm -f $tmp/in
11349 mv $tmp/out $tmp/in
11350 ' >>$CONFIG_STATUS
11351 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11352 rm -f conftest.defines
11353 mv conftest.tail conftest.defines
11354 done
11355 rm -f conftest.defines
11356 echo ' fi # grep' >>$CONFIG_STATUS
11357 echo >>$CONFIG_STATUS
11359 # Break up conftest.undefs because some shells have a limit on the size
11360 # of here documents, and old seds have small limits too (100 cmds).
11361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11362 rm -f conftest.tail
11363 while grep . conftest.undefs >/dev/null
11365 # Write a limited-size here document to $tmp/undefs.sed.
11366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11367 # Speed up: don't consider the non `#undef'
11368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11369 # Work around the forget-to-reset-the-flag bug.
11370 echo 't clr' >>$CONFIG_STATUS
11371 echo ': clr' >>$CONFIG_STATUS
11372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11373 echo 'CEOF
11374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11375 rm -f $tmp/in
11376 mv $tmp/out $tmp/in
11377 ' >>$CONFIG_STATUS
11378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11379 rm -f conftest.undefs
11380 mv conftest.tail conftest.undefs
11381 done
11382 rm -f conftest.undefs
11384 cat >>$CONFIG_STATUS <<\_ACEOF
11385 # Let's still pretend it is `configure' which instantiates (i.e., don't
11386 # use $as_me), people would be surprised to read:
11387 # /* config.h. Generated by config.status. */
11388 if test x"$ac_file" = x-; then
11389 echo "/* Generated by configure. */" >$tmp/config.h
11390 else
11391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11393 cat $tmp/in >>$tmp/config.h
11394 rm -f $tmp/in
11395 if test x"$ac_file" != x-; then
11396 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11398 echo "$as_me: $ac_file is unchanged" >&6;}
11399 else
11400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11402 X"$ac_file" : 'X\(//\)[^/]' \| \
11403 X"$ac_file" : 'X\(//\)$' \| \
11404 X"$ac_file" : 'X\(/\)' \| \
11405 . : '\(.\)' 2>/dev/null ||
11406 echo X"$ac_file" |
11407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11409 /^X\(\/\/\)$/{ s//\1/; q; }
11410 /^X\(\/\).*/{ s//\1/; q; }
11411 s/.*/./; q'`
11412 { if $as_mkdir_p; then
11413 test -d "$ac_dir" || mkdir -p "$ac_dir"
11414 else
11415 as_dir="$ac_dir"
11416 as_dirs=
11417 while test ! -d "$as_dir"; do
11418 as_dirs="$as_dir $as_dirs"
11419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11421 X"$as_dir" : 'X\(//\)[^/]' \| \
11422 X"$as_dir" : 'X\(//\)$' \| \
11423 X"$as_dir" : 'X\(/\)' \| \
11424 . : '\(.\)' 2>/dev/null ||
11425 echo X"$as_dir" |
11426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11428 /^X\(\/\/\)$/{ s//\1/; q; }
11429 /^X\(\/\).*/{ s//\1/; q; }
11430 s/.*/./; q'`
11431 done
11432 test ! -n "$as_dirs" || mkdir $as_dirs
11433 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11434 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11435 { (exit 1); exit 1; }; }; }
11437 rm -f $ac_file
11438 mv $tmp/config.h $ac_file
11440 else
11441 cat $tmp/config.h
11442 rm -f $tmp/config.h
11444 done
11445 _ACEOF
11447 cat >>$CONFIG_STATUS <<\_ACEOF
11449 { (exit 0); exit 0; }
11450 _ACEOF
11451 chmod +x $CONFIG_STATUS
11452 ac_clean_files=$ac_clean_files_save
11455 # configure is writing to config.log, and then calls config.status.
11456 # config.status does its own redirection, appending to config.log.
11457 # Unfortunately, on DOS this fails, as config.log is still kept open
11458 # by configure, so config.status won't be able to write to it; its
11459 # output is simply discarded. So we exec the FD to /dev/null,
11460 # effectively closing config.log, so it can be properly (re)opened and
11461 # appended to by config.status. When coming back to configure, we
11462 # need to make the FD available again.
11463 if test "$no_create" != yes; then
11464 ac_cs_success=:
11465 ac_config_status_args=
11466 test "$silent" = yes &&
11467 ac_config_status_args="$ac_config_status_args --quiet"
11468 exec 5>/dev/null
11469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11470 exec 5>>config.log
11471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11472 # would make configure fail if this is the last instruction.
11473 $ac_cs_success || { (exit 1); exit 1; }
11477 if test -z "$groff_no_x"; then
11478 if test "x$with_appresdir" = "x"; then
11479 { echo "$as_me:$LINENO:
11481 The application resource file for gxditview will be installed as
11483 $appresdir/GXditview
11485 (an existing file will be saved as \`GXditview.old').
11486 To install it into a different directory, say, \`/etc/gxditview',
11487 add \`--with-appresdir=/etc/gxditview' to the configure script
11488 command line options and rerun it. The environment variable
11489 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11490 omitting the \`gxditview' part which is automatically appended by
11491 the X11 searching routines for resource files. More details can be
11492 found in the X(7) manual page.
11493 " >&5
11494 echo "$as_me:
11496 The application resource file for gxditview will be installed as
11498 $appresdir/GXditview
11500 (an existing file will be saved as \`GXditview.old').
11501 To install it into a different directory, say, \`/etc/gxditview',
11502 add \`--with-appresdir=/etc/gxditview' to the configure script
11503 command line options and rerun it. The environment variable
11504 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11505 omitting the \`gxditview' part which is automatically appended by
11506 the X11 searching routines for resource files. More details can be
11507 found in the X(7) manual page.
11508 " >&6;}