Typo.
[s-roff.git] / configure
blobefe814ec21813e4fcbd942a699bceeb3a3a77639
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/roff/groff/groff.cpp"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
661 CXXFLAGS
662 ac_ct_CXX
663 TTYDEVDIRS
664 OTHERDEVDIRS
665 XMKMF
667 X_CFLAGS
668 X_PRE_LIBS
669 X_LIBS
670 X_EXTRA_LIBS
671 XDEVDIRS
672 XPROGDIRS
673 XLIBDIRS
674 appresdir
678 PSPRINT
679 DVIPRINT
680 GREP
681 EGREP
682 PERLPATH
683 YACC
684 MAKEINFO
685 RANLIB
686 INSTALL_INFO
687 INSTALL_PROGRAM
688 INSTALL_SCRIPT
689 INSTALL_DATA
690 LN_S
691 SH_SCRIPT_SED_CMD
692 LIBC
693 LIBM
694 build
695 build_cpu
696 build_vendor
697 build_os
698 host
699 host_cpu
700 host_vendor
701 host_os
702 LIBICONV
703 LTLIBICONV
704 LIBOBJS
705 BROKEN_SPOOLER_FLAGS
706 PAGE
708 sys_tmac_prefix
709 tmac_wrap
710 GROFF_PATH_SEPARATOR
711 ALT_GHOSTSCRIPT_PROGS
712 GHOSTSCRIPT
713 ac_ct_GHOSTSCRIPT
714 pnmcut
715 pnmcrop
716 pnmtopng
717 psselect
718 pnmtops
719 make_html
720 make_install_html
721 ALT_AWK_PROGS
723 ac_ct_AWK
724 make_pdfdoc
725 make_install_pdfdoc
726 pnmtops_nosetpage
727 GLIBC21
728 LTLIBOBJS'
729 ac_subst_files=''
730 ac_precious_vars='build_alias
731 host_alias
732 target_alias
734 CFLAGS
735 LDFLAGS
736 LIBS
737 CPPFLAGS
739 CXXFLAGS
741 XMKMF
742 CPP'
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 esac
1120 done
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164 test "$silent" = yes && exec 6>/dev/null
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1195 /^X\(\/\/\)$/{
1196 s//\1/
1199 /^X\(\/\).*/{
1200 s//\1/
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1208 else
1209 ac_srcdir_defaulted=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1300 cat <<\_ACEOF
1302 X features:
1303 --x-includes=DIR X include files are in DIR
1304 --x-libraries=DIR X library files are in DIR
1306 System types:
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1309 _ACEOF
1312 if test -n "$ac_init_help"; then
1314 cat <<\_ACEOF
1316 Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --disable-rpath do not hardcode runtime library paths
1321 Optional Packages:
1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1324 --with-x use the X Window System
1325 --with-appresdir=DIR X11 application resource files
1326 --with-gnu-ld assume the C compiler uses GNU ld default=no
1327 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1328 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1329 --with-alt-gs=LIST alternative names for ghostscript executable
1330 --with-gs=PROG actual [/path/]name of ghostscript executable
1331 --with-alt-awk=LIST alternative names for awk executable
1332 --with-awk=PROG actual [/path/]name of awk executable
1334 Some influential environment variables:
1335 CC C compiler command
1336 CFLAGS C compiler flags
1337 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1338 nonstandard directory <lib dir>
1339 LIBS libraries to pass to the linker, e.g. -l<library>
1340 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1341 you have headers in a nonstandard directory <include dir>
1342 CXX C++ compiler command
1343 CXXFLAGS C++ compiler flags
1344 XMKMF Path to xmkmf, Makefile generator for X Window System
1345 CPP C preprocessor
1347 Use these variables to override the choices made by `configure' or to help
1348 it to find libraries and programs with nonstandard names/locations.
1350 _ACEOF
1351 ac_status=$?
1354 if test "$ac_init_help" = "recursive"; then
1355 # If there are subdirs, report their specific --help.
1356 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1357 test -d "$ac_dir" || continue
1358 ac_builddir=.
1360 case "$ac_dir" in
1361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1364 # A ".." for each directory in $ac_dir_suffix.
1365 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1366 case $ac_top_builddir_sub in
1367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1369 esac ;;
1370 esac
1371 ac_abs_top_builddir=$ac_pwd
1372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1373 # for backward compatibility:
1374 ac_top_builddir=$ac_top_build_prefix
1376 case $srcdir in
1377 .) # We are building in place.
1378 ac_srcdir=.
1379 ac_top_srcdir=$ac_top_builddir_sub
1380 ac_abs_top_srcdir=$ac_pwd ;;
1381 [\\/]* | ?:[\\/]* ) # Absolute name.
1382 ac_srcdir=$srcdir$ac_dir_suffix;
1383 ac_top_srcdir=$srcdir
1384 ac_abs_top_srcdir=$srcdir ;;
1385 *) # Relative name.
1386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1387 ac_top_srcdir=$ac_top_build_prefix$srcdir
1388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1389 esac
1390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392 cd "$ac_dir" || { ac_status=$?; continue; }
1393 # Check for guested configure.
1394 if test -f "$ac_srcdir/configure.gnu"; then
1395 echo &&
1396 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1397 elif test -f "$ac_srcdir/configure"; then
1398 echo &&
1399 $SHELL "$ac_srcdir/configure" --help=recursive
1400 else
1401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1402 fi || ac_status=$?
1403 cd "$ac_pwd" || { ac_status=$?; break; }
1404 done
1407 test -n "$ac_init_help" && exit $ac_status
1408 if $ac_init_version; then
1409 cat <<\_ACEOF
1410 configure
1411 generated by GNU Autoconf 2.61
1413 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1414 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1415 This configure script is free software; the Free Software Foundation
1416 gives unlimited permission to copy, distribute and modify it.
1417 _ACEOF
1418 exit
1420 cat >config.log <<_ACEOF
1421 This file contains any messages produced by compilers while
1422 running configure, to aid debugging if configure makes a mistake.
1424 It was created by $as_me, which was
1425 generated by GNU Autoconf 2.61. Invocation command line was
1427 $ $0 $@
1429 _ACEOF
1430 exec 5>>config.log
1432 cat <<_ASUNAME
1433 ## --------- ##
1434 ## Platform. ##
1435 ## --------- ##
1437 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1438 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1439 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1440 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1441 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1444 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1446 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1447 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1448 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1449 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1450 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1451 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1452 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1454 _ASUNAME
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 for as_dir in $PATH
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 echo "PATH: $as_dir"
1462 done
1463 IFS=$as_save_IFS
1465 } >&5
1467 cat >&5 <<_ACEOF
1470 ## ----------- ##
1471 ## Core tests. ##
1472 ## ----------- ##
1474 _ACEOF
1477 # Keep a trace of the command line.
1478 # Strip out --no-create and --no-recursion so they do not pile up.
1479 # Strip out --silent because we don't want to record it for future runs.
1480 # Also quote any args containing shell meta-characters.
1481 # Make two passes to allow for proper duplicate-argument suppression.
1482 ac_configure_args=
1483 ac_configure_args0=
1484 ac_configure_args1=
1485 ac_must_keep_next=false
1486 for ac_pass in 1 2
1488 for ac_arg
1490 case $ac_arg in
1491 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1493 | -silent | --silent | --silen | --sile | --sil)
1494 continue ;;
1495 *\'*)
1496 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1497 esac
1498 case $ac_pass in
1499 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1501 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1502 if test $ac_must_keep_next = true; then
1503 ac_must_keep_next=false # Got value, back to normal.
1504 else
1505 case $ac_arg in
1506 *=* | --config-cache | -C | -disable-* | --disable-* \
1507 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1508 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1509 | -with-* | --with-* | -without-* | --without-* | --x)
1510 case "$ac_configure_args0 " in
1511 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1512 esac
1514 -* ) ac_must_keep_next=true ;;
1515 esac
1517 ac_configure_args="$ac_configure_args '$ac_arg'"
1519 esac
1520 done
1521 done
1522 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1523 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1525 # When interrupted or exit'd, cleanup temporary files, and complete
1526 # config.log. We remove comments because anyway the quotes in there
1527 # would cause problems or look ugly.
1528 # WARNING: Use '\'' to represent an apostrophe within the trap.
1529 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1530 trap 'exit_status=$?
1531 # Save into config.log some information that might help in debugging.
1533 echo
1535 cat <<\_ASBOX
1536 ## ---------------- ##
1537 ## Cache variables. ##
1538 ## ---------------- ##
1539 _ASBOX
1540 echo
1541 # The following way of writing the cache mishandles newlines in values,
1543 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1544 eval ac_val=\$$ac_var
1545 case $ac_val in #(
1546 *${as_nl}*)
1547 case $ac_var in #(
1548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1550 esac
1551 case $ac_var in #(
1552 _ | IFS | as_nl) ;; #(
1553 *) $as_unset $ac_var ;;
1554 esac ;;
1555 esac
1556 done
1557 (set) 2>&1 |
1558 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1559 *${as_nl}ac_space=\ *)
1560 sed -n \
1561 "s/'\''/'\''\\\\'\'''\''/g;
1562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1563 ;; #(
1565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1567 esac |
1568 sort
1570 echo
1572 cat <<\_ASBOX
1573 ## ----------------- ##
1574 ## Output variables. ##
1575 ## ----------------- ##
1576 _ASBOX
1577 echo
1578 for ac_var in $ac_subst_vars
1580 eval ac_val=\$$ac_var
1581 case $ac_val in
1582 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1583 esac
1584 echo "$ac_var='\''$ac_val'\''"
1585 done | sort
1586 echo
1588 if test -n "$ac_subst_files"; then
1589 cat <<\_ASBOX
1590 ## ------------------- ##
1591 ## File substitutions. ##
1592 ## ------------------- ##
1593 _ASBOX
1594 echo
1595 for ac_var in $ac_subst_files
1597 eval ac_val=\$$ac_var
1598 case $ac_val in
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 esac
1601 echo "$ac_var='\''$ac_val'\''"
1602 done | sort
1603 echo
1606 if test -s confdefs.h; then
1607 cat <<\_ASBOX
1608 ## ----------- ##
1609 ## confdefs.h. ##
1610 ## ----------- ##
1611 _ASBOX
1612 echo
1613 cat confdefs.h
1614 echo
1616 test "$ac_signal" != 0 &&
1617 echo "$as_me: caught signal $ac_signal"
1618 echo "$as_me: exit $exit_status"
1619 } >&5
1620 rm -f core *.core core.conftest.* &&
1621 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1622 exit $exit_status
1624 for ac_signal in 1 2 13 15; do
1625 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1626 done
1627 ac_signal=0
1629 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1630 rm -f -r conftest* confdefs.h
1632 # Predefined preprocessor variables.
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_NAME "$PACKAGE_NAME"
1636 _ACEOF
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1641 _ACEOF
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1646 _ACEOF
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_STRING "$PACKAGE_STRING"
1651 _ACEOF
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1656 _ACEOF
1659 # Let the site file select an alternate cache file if it wants to.
1660 # Prefer explicitly selected file to automatically selected ones.
1661 if test -n "$CONFIG_SITE"; then
1662 set x "$CONFIG_SITE"
1663 elif test "x$prefix" != xNONE; then
1664 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1665 else
1666 set x "$ac_default_prefix/share/config.site" \
1667 "$ac_default_prefix/etc/config.site"
1669 shift
1670 for ac_site_file
1672 if test -r "$ac_site_file"; then
1673 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1674 echo "$as_me: loading site script $ac_site_file" >&6;}
1675 sed 's/^/| /' "$ac_site_file" >&5
1676 . "$ac_site_file"
1678 done
1680 if test -r "$cache_file"; then
1681 # Some versions of bash will fail to source /dev/null (special
1682 # files actually), so we avoid doing that.
1683 if test -f "$cache_file"; then
1684 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1685 echo "$as_me: loading cache $cache_file" >&6;}
1686 case $cache_file in
1687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1688 *) . "./$cache_file";;
1689 esac
1691 else
1692 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1693 echo "$as_me: creating cache $cache_file" >&6;}
1694 >$cache_file
1697 # Check that the precious variables saved in the cache have kept the same
1698 # value.
1699 ac_cache_corrupted=false
1700 for ac_var in $ac_precious_vars; do
1701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1702 eval ac_new_set=\$ac_env_${ac_var}_set
1703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1704 eval ac_new_val=\$ac_env_${ac_var}_value
1705 case $ac_old_set,$ac_new_set in
1706 set,)
1707 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1708 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1709 ac_cache_corrupted=: ;;
1710 ,set)
1711 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1712 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1713 ac_cache_corrupted=: ;;
1714 ,);;
1716 if test "x$ac_old_val" != "x$ac_new_val"; then
1717 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1718 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1719 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1720 echo "$as_me: former value: $ac_old_val" >&2;}
1721 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1722 echo "$as_me: current value: $ac_new_val" >&2;}
1723 ac_cache_corrupted=:
1724 fi;;
1725 esac
1726 # Pass precious variables to config.status.
1727 if test "$ac_new_set" = set; then
1728 case $ac_new_val in
1729 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 *) ac_arg=$ac_var=$ac_new_val ;;
1731 esac
1732 case " $ac_configure_args " in
1733 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1734 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1735 esac
1737 done
1738 if $ac_cache_corrupted; then
1739 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1740 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1741 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1742 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1743 { (exit 1); exit 1; }; }
1762 ac_ext=c
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1775 # checks for programs
1776 ac_ext=c
1777 ac_cpp='$CPP $CPPFLAGS'
1778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1781 if test -n "$ac_tool_prefix"; then
1782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1803 done
1804 done
1805 IFS=$as_save_IFS
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811 { echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6; }
1813 else
1814 { echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6; }
1820 if test -z "$ac_cv_prog_CC"; then
1821 ac_ct_CC=$CC
1822 # Extract the first word of "gcc", so it can be a program name with args.
1823 set dummy gcc; ac_word=$2
1824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 if test -n "$ac_ct_CC"; then
1830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1831 else
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 for ac_exec_ext in '' $ac_executable_extensions; do
1838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1839 ac_cv_prog_ac_ct_CC="gcc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1843 done
1844 done
1845 IFS=$as_save_IFS
1849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1850 if test -n "$ac_ct_CC"; then
1851 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1852 echo "${ECHO_T}$ac_ct_CC" >&6; }
1853 else
1854 { echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6; }
1858 if test "x$ac_ct_CC" = x; then
1859 CC=""
1860 else
1861 case $cross_compiling:$ac_tool_warned in
1862 yes:)
1863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1864 whose name does not start with the host triplet. If you think this
1865 configuration is useful to you, please write to autoconf@gnu.org." >&5
1866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1867 whose name does not start with the host triplet. If you think this
1868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1869 ac_tool_warned=yes ;;
1870 esac
1871 CC=$ac_ct_CC
1873 else
1874 CC="$ac_cv_prog_CC"
1877 if test -z "$CC"; then
1878 if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}cc; ac_word=$2
1881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1896 ac_cv_prog_CC="${ac_tool_prefix}cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1900 done
1901 done
1902 IFS=$as_save_IFS
1906 CC=$ac_cv_prog_CC
1907 if test -n "$CC"; then
1908 { echo "$as_me:$LINENO: result: $CC" >&5
1909 echo "${ECHO_T}$CC" >&6; }
1910 else
1911 { echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6; }
1918 if test -z "$CC"; then
1919 # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1923 if test "${ac_cv_prog_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1928 else
1929 ac_prog_rejected=no
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1938 ac_prog_rejected=yes
1939 continue
1941 ac_cv_prog_CC="cc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1945 done
1946 done
1947 IFS=$as_save_IFS
1949 if test $ac_prog_rejected = yes; then
1950 # We found a bogon in the path, so make sure we never use it.
1951 set dummy $ac_cv_prog_CC
1952 shift
1953 if test $# != 0; then
1954 # We chose a different compiler from the bogus one.
1955 # However, it has the same basename, so the bogon will be chosen
1956 # first if we set CC to just the basename; use the full file name.
1957 shift
1958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965 { echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6; }
1967 else
1968 { echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6; }
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in cl.exe
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1999 done
2000 done
2001 IFS=$as_save_IFS
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2016 done
2018 if test -z "$CC"; then
2019 ac_ct_CC=$CC
2020 for ac_prog in cl.exe
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2043 done
2044 done
2045 IFS=$as_save_IFS
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 else
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2060 done
2062 if test "x$ac_ct_CC" = x; then
2063 CC=""
2064 else
2065 case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2074 esac
2075 CC=$ac_ct_CC
2082 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&2;}
2086 { (exit 1); exit 1; }; }
2088 # Provide some information about the compiler.
2089 echo "$as_me:$LINENO: checking for C compiler version" >&5
2090 ac_compiler=`set X $ac_compile; echo $2`
2091 { (ac_try="$ac_compiler --version >&5"
2092 case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler --version >&5") 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (ac_try="$ac_compiler -v >&5"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -v >&5") 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111 { (ac_try="$ac_compiler -V >&5"
2112 case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2117 (eval "$ac_compiler -V >&5") 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2122 cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h. */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2130 main ()
2134 return 0;
2136 _ACEOF
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2141 # of exeext.
2142 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2143 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146 # List of possible output files, starting from the most likely.
2147 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2148 # only as a last resort. b.out is created by i960 compilers.
2149 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2151 # The IRIX 6 linker writes into existing files which may not be
2152 # executable, retaining their permissions. Remove them first so a
2153 # subsequent execution test works.
2154 ac_rmfiles=
2155 for ac_file in $ac_files
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2159 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2160 esac
2161 done
2162 rm -f $ac_rmfiles
2164 if { (ac_try="$ac_link_default"
2165 case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168 esac
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_link_default") 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2177 # so that the user can short-circuit this test for compilers unknown to
2178 # Autoconf.
2179 for ac_file in $ac_files ''
2181 test -f "$ac_file" || continue
2182 case $ac_file in
2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2185 [ab].out )
2186 # We found the default executable, but exeext='' is most
2187 # certainly right.
2188 break;;
2189 *.* )
2190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2191 then :; else
2192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 # We set ac_cv_exeext here because the later test for it is not
2195 # safe: cross compilers may not add the suffix if given an `-o'
2196 # argument, so we may need to know it at that point already.
2197 # Even if this section looks crufty: it has the advantage of
2198 # actually working.
2199 break;;
2201 break;;
2202 esac
2203 done
2204 test "$ac_cv_exeext" = no && ac_cv_exeext=
2206 else
2207 ac_file=''
2210 { echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6; }
2212 if test -z "$ac_file"; then
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2216 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&2;}
2220 { (exit 77); exit 77; }; }
2223 ac_exeext=$ac_cv_exeext
2225 # Check that the compiler produces executables we can run. If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232 if { ac_try='./$ac_file'
2233 { (case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cross_compiling=no
2243 else
2244 if test "$cross_compiling" = maybe; then
2245 cross_compiling=yes
2246 else
2247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run. If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2272 case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_link") 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 # `rm'.
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2287 case $ac_file in
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290 break;;
2291 * ) break;;
2292 esac
2293 done
2294 else
2295 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299 { (exit 1); exit 1; }; }
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2308 ac_exeext=$EXEEXT
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h. */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2322 main ()
2326 return 0;
2328 _ACEOF
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2331 case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_compile") 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; then
2340 for ac_file in conftest.o conftest.obj conftest.*; do
2341 test -f "$ac_file" || continue;
2342 case $ac_file in
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 break;;
2346 esac
2347 done
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356 { (exit 1); exit 1; }; }
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2378 main ()
2380 #ifndef __GNUC__
2381 choke me
2382 #endif
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } && {
2402 test -z "$ac_c_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest.$ac_objext; then
2405 ac_compiler_gnu=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 ac_compiler_gnu=no
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2429 ac_cv_prog_cc_g=no
2430 CFLAGS="-g"
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2439 main ()
2443 return 0;
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } && {
2460 test -z "$ac_c_werror_flag" ||
2461 test ! -s conftest.err
2462 } && test -s conftest.$ac_objext; then
2463 ac_cv_prog_cc_g=yes
2464 else
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 CFLAGS=""
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2477 main ()
2481 return 0;
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } && {
2498 test -z "$ac_c_werror_flag" ||
2499 test ! -s conftest.err
2500 } && test -s conftest.$ac_objext; then
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2506 ac_c_werror_flag=$ac_save_c_werror_flag
2507 CFLAGS="-g"
2508 cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h. */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2516 main ()
2520 return 0;
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } && {
2537 test -z "$ac_c_werror_flag" ||
2538 test ! -s conftest.err
2539 } && test -s conftest.$ac_objext; then
2540 ac_cv_prog_cc_g=yes
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2557 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2558 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2559 if test "$ac_test_CFLAGS" = set; then
2560 CFLAGS=$ac_save_CFLAGS
2561 elif test $ac_cv_prog_cc_g = yes; then
2562 if test "$GCC" = yes; then
2563 CFLAGS="-g -O2"
2564 else
2565 CFLAGS="-g"
2567 else
2568 if test "$GCC" = yes; then
2569 CFLAGS="-O2"
2570 else
2571 CFLAGS=
2574 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2575 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_cc_c89+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 ac_cv_prog_cc_c89=no
2580 ac_save_CC=$CC
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 #include <stdarg.h>
2588 #include <stdio.h>
2589 #include <sys/types.h>
2590 #include <sys/stat.h>
2591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2592 struct buf { int x; };
2593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2594 static char *e (p, i)
2595 char **p;
2596 int i;
2598 return p[i];
2600 static char *f (char * (*g) (char **, int), char **p, ...)
2602 char *s;
2603 va_list v;
2604 va_start (v,p);
2605 s = g (p, va_arg (v,int));
2606 va_end (v);
2607 return s;
2610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2611 function prototypes and stuff, but not '\xHH' hex character constants.
2612 These don't provoke an error unfortunately, instead are silently treated
2613 as 'x'. The following induces an error, until -std is added to get
2614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2615 array size at least. It's necessary to write '\x00'==0 to get something
2616 that's true only with -std. */
2617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2620 inside strings and character constants. */
2621 #define FOO(x) 'x'
2622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2624 int test (int i, double x);
2625 struct s1 {int (*f) (int a);};
2626 struct s2 {int (*f) (double a);};
2627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2628 int argc;
2629 char **argv;
2631 main ()
2633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2635 return 0;
2637 _ACEOF
2638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2641 CC="$ac_save_CC $ac_arg"
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2650 ac_status=$?
2651 grep -v '^ *+' conftest.er1 >conftest.err
2652 rm -f conftest.er1
2653 cat conftest.err >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } && {
2656 test -z "$ac_c_werror_flag" ||
2657 test ! -s conftest.err
2658 } && test -s conftest.$ac_objext; then
2659 ac_cv_prog_cc_c89=$ac_arg
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f core conftest.err conftest.$ac_objext
2668 test "x$ac_cv_prog_cc_c89" != "xno" && break
2669 done
2670 rm -f conftest.$ac_ext
2671 CC=$ac_save_CC
2674 # AC_CACHE_VAL
2675 case "x$ac_cv_prog_cc_c89" in
2677 { echo "$as_me:$LINENO: result: none needed" >&5
2678 echo "${ECHO_T}none needed" >&6; } ;;
2679 xno)
2680 { echo "$as_me:$LINENO: result: unsupported" >&5
2681 echo "${ECHO_T}unsupported" >&6; } ;;
2683 CC="$CC $ac_cv_prog_cc_c89"
2684 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2686 esac
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 ac_ext=cpp
2696 ac_cpp='$CXXCPP $CPPFLAGS'
2697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2700 if test -z "$CXX"; then
2701 if test -n "$CCC"; then
2702 CXX=$CCC
2703 else
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_CXX+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 if test -n "$CXX"; then
2715 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2730 IFS=$as_save_IFS
2734 CXX=$ac_cv_prog_CXX
2735 if test -n "$CXX"; then
2736 { echo "$as_me:$LINENO: result: $CXX" >&5
2737 echo "${ECHO_T}$CXX" >&6; }
2738 else
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2744 test -n "$CXX" && break
2745 done
2747 if test -z "$CXX"; then
2748 ac_ct_CXX=$CXX
2749 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if test -n "$ac_ct_CXX"; then
2759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CXX="$ac_prog"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2779 if test -n "$ac_ct_CXX"; then
2780 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2781 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2782 else
2783 { echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6; }
2788 test -n "$ac_ct_CXX" && break
2789 done
2791 if test "x$ac_ct_CXX" = x; then
2792 CXX="g++"
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 CXX=$ac_ct_CXX
2810 # Provide some information about the compiler.
2811 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2812 ac_compiler=`set X $ac_compile; echo $2`
2813 { (ac_try="$ac_compiler --version >&5"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compiler --version >&5") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }
2823 { (ac_try="$ac_compiler -v >&5"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compiler -v >&5") 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }
2833 { (ac_try="$ac_compiler -V >&5"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compiler -V >&5") 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2844 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2845 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h. */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2857 main ()
2859 #ifndef __GNUC__
2860 choke me
2861 #endif
2864 return 0;
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } && {
2881 test -z "$ac_cxx_werror_flag" ||
2882 test ! -s conftest.err
2883 } && test -s conftest.$ac_objext; then
2884 ac_compiler_gnu=yes
2885 else
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2889 ac_compiler_gnu=no
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2896 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2897 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2898 GXX=`test $ac_compiler_gnu = yes && echo yes`
2899 ac_test_CXXFLAGS=${CXXFLAGS+set}
2900 ac_save_CXXFLAGS=$CXXFLAGS
2901 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2902 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2903 if test "${ac_cv_prog_cxx_g+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2907 ac_cxx_werror_flag=yes
2908 ac_cv_prog_cxx_g=no
2909 CXXFLAGS="-g"
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 main ()
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_cxx_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.$ac_objext; then
2942 ac_cv_prog_cxx_g=yes
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 CXXFLAGS=""
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2956 main ()
2960 return 0;
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } && {
2977 test -z "$ac_cxx_werror_flag" ||
2978 test ! -s conftest.err
2979 } && test -s conftest.$ac_objext; then
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2986 CXXFLAGS="-g"
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2995 main ()
2999 return 0;
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_cxx_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3019 ac_cv_prog_cxx_g=yes
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3037 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3038 if test "$ac_test_CXXFLAGS" = set; then
3039 CXXFLAGS=$ac_save_CXXFLAGS
3040 elif test $ac_cv_prog_cxx_g = yes; then
3041 if test "$GXX" = yes; then
3042 CXXFLAGS="-g -O2"
3043 else
3044 CXXFLAGS="-g"
3046 else
3047 if test "$GXX" = yes; then
3048 CXXFLAGS="-O2"
3049 else
3050 CXXFLAGS=
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 ac_ext=cpp
3062 ac_cpp='$CXXCPP $CPPFLAGS'
3063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3067 if test "$cross_compiling" = no; then
3068 { echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3069 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6; }
3071 if test "$cross_compiling" = yes; then
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3083 int main() {
3084 return 0;
3089 _ACEOF
3090 rm -f conftest$ac_exeext
3091 if { (ac_try="$ac_link"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 { echo "$as_me:$LINENO: result: yes" >&5
3111 echo "${ECHO_T}yes" >&6; }
3112 else
3113 echo "$as_me: program exited with status $ac_status" >&5
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 ( exit $ac_status )
3118 { echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6; }
3120 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3121 echo "$as_me: error: a working C++ compiler is required" >&2;}
3122 { (exit 1); exit 1; }; }
3124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3129 if test "$cross_compiling" = no; then
3130 { echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3131 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6; }
3133 if test "$cross_compiling" = yes; then
3135 else
3136 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3145 extern "C" {
3146 void _exit(int);
3149 int i;
3150 struct A {
3151 char dummy;
3152 A() { i = 1; }
3153 ~A() { if (i == 1) _exit(0); }
3156 A a;
3158 int main()
3160 return 1;
3165 _ACEOF
3166 rm -f conftest$ac_exeext
3167 if { (ac_try="$ac_link"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_link") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3177 { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 { echo "$as_me:$LINENO: result: yes" >&5
3187 echo "${ECHO_T}yes" >&6; }
3188 else
3189 echo "$as_me: program exited with status $ac_status" >&5
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 ( exit $ac_status )
3194 { echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6; }
3196 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3197 echo "$as_me: error: a working C++ compiler is required" >&2;}
3198 { (exit 1); exit 1; }; }
3200 rm -f core *.core core.conftest.* 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 { (ac_try="$ac_link"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_link") 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } && {
3246 test -z "$ac_cxx_werror_flag" ||
3247 test ! -s conftest.err
3248 } && test -s conftest$ac_exeext &&
3249 $as_test_x conftest$ac_exeext; then
3250 { echo "$as_me:$LINENO: result: yes" >&5
3251 echo "${ECHO_T}yes" >&6; }
3252 else
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 { echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6; }
3258 { { echo "$as_me:$LINENO: error: header files do not support C++
3259 (if you are using a version of gcc/g++ earlier than 2.5,
3260 you should install libg++)" >&5
3261 echo "$as_me: error: header files do not support C++
3262 (if you are using a version of gcc/g++ earlier than 2.5,
3263 you should install libg++)" >&2;}
3264 { (exit 1); exit 1; }; }
3267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3268 conftest$ac_exeext conftest.$ac_ext
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 { echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3277 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6; }
3278 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3287 /* Treat any failure as ASCII for compatibility with existing art.
3288 Use compile-time rather than run-time tests for cross-compiler
3289 tolerance. */
3290 #if '0' != 240
3291 make an error "Character set is not EBCDIC"
3292 #endif
3296 main ()
3300 return 0;
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } && {
3318 test -z "$ac_c_werror_flag" ||
3319 test ! -s conftest.err
3320 } && test -s conftest.$ac_objext; then
3321 groff_cv_ebcdic="yes"
3322 TTYDEVDIRS="font/devcp1047"
3323 { echo "$as_me:$LINENO: result: yes" >&5
3324 echo "${ECHO_T}yes" >&6; }
3326 cat >>confdefs.h <<\_ACEOF
3327 #define IS_EBCDIC_HOST 1
3328 _ACEOF
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 groff_cv_ebcdic="no"
3335 TTYDEVDIRS="font/devascii font/devlatin1"
3336 OTHERDEVDIRS="font/devlj4 font/devlbp"
3337 { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 if test "$groff_cv_ebcdic" = "yes"; then
3345 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3346 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
3347 case `uname` in
3348 OS/390)
3349 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3350 { echo "$as_me:$LINENO: result: yes" >&5
3351 echo "${ECHO_T}yes" >&6; } ;;
3353 { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; } ;;
3355 esac
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3366 CPP=
3368 if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375 ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395 Syntax error
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null && {
3410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 }; then
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3419 continue
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null && {
3447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 }; then
3450 # Broken: success on invalid input.
3451 continue
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Passes both tests.
3457 ac_preproc_ok=:
3458 break
3461 rm -f conftest.err conftest.$ac_ext
3463 done
3464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465 rm -f conftest.err conftest.$ac_ext
3466 if $ac_preproc_ok; then
3467 break
3470 done
3471 ac_cv_prog_CPP=$CPP
3474 CPP=$ac_cv_prog_CPP
3475 else
3476 ac_cv_prog_CPP=$CPP
3478 { echo "$as_me:$LINENO: result: $CPP" >&5
3479 echo "${ECHO_T}$CPP" >&6; }
3480 ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #ifdef __STDC__
3496 # include <limits.h>
3497 #else
3498 # include <assert.h>
3499 #endif
3500 Syntax error
3501 _ACEOF
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null && {
3515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 }; then
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Broken: fails on valid input.
3524 continue
3527 rm -f conftest.err conftest.$ac_ext
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <ac_nonexistent.h>
3538 _ACEOF
3539 if { (ac_try="$ac_cpp conftest.$ac_ext"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3546 ac_status=$?
3547 grep -v '^ *+' conftest.er1 >conftest.err
3548 rm -f conftest.er1
3549 cat conftest.err >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } >/dev/null && {
3552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3553 test ! -s conftest.err
3554 }; then
3555 # Broken: success on invalid input.
3556 continue
3557 else
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 # Passes both tests.
3562 ac_preproc_ok=:
3563 break
3566 rm -f conftest.err conftest.$ac_ext
3568 done
3569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3570 rm -f conftest.err conftest.$ac_ext
3571 if $ac_preproc_ok; then
3573 else
3574 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details." >&5
3576 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3577 See \`config.log' for more details." >&2;}
3578 { (exit 1); exit 1; }; }
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 { echo "$as_me:$LINENO: checking for X" >&5
3589 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3592 # Check whether --with-x was given.
3593 if test "${with_x+set}" = set; then
3594 withval=$with_x;
3597 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3598 if test "x$with_x" = xno; then
3599 # The user explicitly disabled X.
3600 have_x=disabled
3601 else
3602 case $x_includes,$x_libraries in #(
3603 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3604 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3605 { (exit 1); exit 1; }; };; #(
3606 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 # One or both of the vars are not set, and there is no cached value.
3610 ac_x_includes=no ac_x_libraries=no
3611 rm -f -r conftest.dir
3612 if mkdir conftest.dir; then
3613 cd conftest.dir
3614 cat >Imakefile <<'_ACEOF'
3615 incroot:
3616 @echo incroot='${INCROOT}'
3617 usrlibdir:
3618 @echo usrlibdir='${USRLIBDIR}'
3619 libdir:
3620 @echo libdir='${LIBDIR}'
3621 _ACEOF
3622 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3624 for ac_var in incroot usrlibdir libdir; do
3625 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3626 done
3627 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3628 for ac_extension in a so sl; do
3629 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3630 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3631 ac_im_usrlibdir=$ac_im_libdir; break
3633 done
3634 # Screen out bogus values from the imake configuration. They are
3635 # bogus both because they are the default anyway, and because
3636 # using them would break gcc on systems where it needs fixed includes.
3637 case $ac_im_incroot in
3638 /usr/include) ac_x_includes= ;;
3639 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3640 esac
3641 case $ac_im_usrlibdir in
3642 /usr/lib | /lib) ;;
3643 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3644 esac
3646 cd ..
3647 rm -f -r conftest.dir
3650 # Standard set of common directories for X headers.
3651 # Check X11 before X11Rn because it is often a symlink to the current release.
3652 ac_x_header_dirs='
3653 /usr/X11/include
3654 /usr/X11R6/include
3655 /usr/X11R5/include
3656 /usr/X11R4/include
3658 /usr/include/X11
3659 /usr/include/X11R6
3660 /usr/include/X11R5
3661 /usr/include/X11R4
3663 /usr/local/X11/include
3664 /usr/local/X11R6/include
3665 /usr/local/X11R5/include
3666 /usr/local/X11R4/include
3668 /usr/local/include/X11
3669 /usr/local/include/X11R6
3670 /usr/local/include/X11R5
3671 /usr/local/include/X11R4
3673 /usr/X386/include
3674 /usr/x386/include
3675 /usr/XFree86/include/X11
3677 /usr/include
3678 /usr/local/include
3679 /usr/unsupported/include
3680 /usr/athena/include
3681 /usr/local/x11r5/include
3682 /usr/lpp/Xamples/include
3684 /usr/openwin/include
3685 /usr/openwin/share/include'
3687 if test "$ac_x_includes" = no; then
3688 # Guess where to find include files, by looking for Xlib.h.
3689 # First, try using that file with no special directory specified.
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include <X11/Xlib.h>
3697 _ACEOF
3698 if { (ac_try="$ac_cpp conftest.$ac_ext"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } >/dev/null && {
3711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 }; then
3714 # We can compile using X headers with no special include directory.
3715 ac_x_includes=
3716 else
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 for ac_dir in $ac_x_header_dirs; do
3721 if test -r "$ac_dir/X11/Xlib.h"; then
3722 ac_x_includes=$ac_dir
3723 break
3725 done
3728 rm -f conftest.err conftest.$ac_ext
3729 fi # $ac_x_includes = no
3731 if test "$ac_x_libraries" = no; then
3732 # Check for the libraries.
3733 # See if we find them without any special options.
3734 # Don't add to $LIBS permanently.
3735 ac_save_LIBS=$LIBS
3736 LIBS="-lX11 $LIBS"
3737 cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h. */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 #include <X11/Xlib.h>
3745 main ()
3747 XrmInitialize ()
3749 return 0;
3751 _ACEOF
3752 rm -f conftest.$ac_objext conftest$ac_exeext
3753 if { (ac_try="$ac_link"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_link") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest$ac_exeext &&
3769 $as_test_x conftest$ac_exeext; then
3770 LIBS=$ac_save_LIBS
3771 # We can link X programs with no special library path.
3772 ac_x_libraries=
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 LIBS=$ac_save_LIBS
3778 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3780 # Don't even attempt the hair of trying to link an X program!
3781 for ac_extension in a so sl; do
3782 if test -r "$ac_dir/libX11.$ac_extension"; then
3783 ac_x_libraries=$ac_dir
3784 break 2
3786 done
3787 done
3790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3791 conftest$ac_exeext conftest.$ac_ext
3792 fi # $ac_x_libraries = no
3794 case $ac_x_includes,$ac_x_libraries in #(
3795 no,* | *,no | *\'*)
3796 # Didn't find X, or a directory has "'" in its name.
3797 ac_cv_have_x="have_x=no";; #(
3799 # Record where we found X for the cache.
3800 ac_cv_have_x="have_x=yes\
3801 ac_x_includes='$ac_x_includes'\
3802 ac_x_libraries='$ac_x_libraries'"
3803 esac
3805 ;; #(
3806 *) have_x=yes;;
3807 esac
3808 eval "$ac_cv_have_x"
3809 fi # $with_x != no
3811 if test "$have_x" != yes; then
3812 { echo "$as_me:$LINENO: result: $have_x" >&5
3813 echo "${ECHO_T}$have_x" >&6; }
3814 no_x=yes
3815 else
3816 # If each of the values was on the command line, it overrides each guess.
3817 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3818 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3819 # Update the cache value to reflect the command line values.
3820 ac_cv_have_x="have_x=yes\
3821 ac_x_includes='$x_includes'\
3822 ac_x_libraries='$x_libraries'"
3823 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3824 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3827 if test "$no_x" = yes; then
3828 # Not all programs may use this symbol, but it does not hurt to define it.
3830 cat >>confdefs.h <<\_ACEOF
3831 #define X_DISPLAY_MISSING 1
3832 _ACEOF
3834 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3835 else
3836 if test -n "$x_includes"; then
3837 X_CFLAGS="$X_CFLAGS -I$x_includes"
3840 # It would also be nice to do this for all -L options, not just this one.
3841 if test -n "$x_libraries"; then
3842 X_LIBS="$X_LIBS -L$x_libraries"
3843 # For Solaris; some versions of Sun CC require a space after -R and
3844 # others require no space. Words are not sufficient . . . .
3845 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3846 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3847 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3848 ac_xsave_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3858 main ()
3862 return 0;
3864 _ACEOF
3865 rm -f conftest.$ac_objext conftest$ac_exeext
3866 if { (ac_try="$ac_link"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_link") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest$ac_exeext &&
3882 $as_test_x conftest$ac_exeext; then
3883 { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3885 X_LIBS="$X_LIBS -R$x_libraries"
3886 else
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 LIBS="$ac_xsave_LIBS -R $x_libraries"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext conftest$ac_exeext
3907 if { (ac_try="$ac_link"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_link") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest$ac_exeext &&
3923 $as_test_x conftest$ac_exeext; then
3924 { echo "$as_me:$LINENO: result: yes" >&5
3925 echo "${ECHO_T}yes" >&6; }
3926 X_LIBS="$X_LIBS -R $x_libraries"
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 { echo "$as_me:$LINENO: result: neither works" >&5
3932 echo "${ECHO_T}neither works" >&6; }
3935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3936 conftest$ac_exeext conftest.$ac_ext
3939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3940 conftest$ac_exeext conftest.$ac_ext
3941 ac_c_werror_flag=$ac_xsave_c_werror_flag
3942 LIBS=$ac_xsave_LIBS
3945 # Check for system-dependent libraries X programs must link with.
3946 # Do this before checking for the system-independent R6 libraries
3947 # (-lICE), since we may need -lsocket or whatever for X linking.
3949 if test "$ISC" = yes; then
3950 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3951 else
3952 # Martyn Johnson says this is needed for Ultrix, if the X
3953 # libraries were built with DECnet support. And Karl Berry says
3954 # the Alpha needs dnet_stub (dnet does not exist).
3955 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 /* Override any GCC internal prototype to avoid an error.
3964 Use char because int might match the return type of a GCC
3965 builtin and then its argument prototype would still apply. */
3966 #ifdef __cplusplus
3967 extern "C"
3968 #endif
3969 char XOpenDisplay ();
3971 main ()
3973 return XOpenDisplay ();
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (ac_try="$ac_link"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_link") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext &&
3995 $as_test_x conftest$ac_exeext; then
3997 else
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4002 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4003 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 ac_check_lib_save_LIBS=$LIBS
4007 LIBS="-ldnet $LIBS"
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4015 /* Override any GCC internal prototype to avoid an error.
4016 Use char because int might match the return type of a GCC
4017 builtin and then its argument prototype would still apply. */
4018 #ifdef __cplusplus
4019 extern "C"
4020 #endif
4021 char dnet_ntoa ();
4023 main ()
4025 return dnet_ntoa ();
4027 return 0;
4029 _ACEOF
4030 rm -f conftest.$ac_objext conftest$ac_exeext
4031 if { (ac_try="$ac_link"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_link") 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } && {
4044 test -z "$ac_c_werror_flag" ||
4045 test ! -s conftest.err
4046 } && test -s conftest$ac_exeext &&
4047 $as_test_x conftest$ac_exeext; then
4048 ac_cv_lib_dnet_dnet_ntoa=yes
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_cv_lib_dnet_dnet_ntoa=no
4056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4057 conftest$ac_exeext conftest.$ac_ext
4058 LIBS=$ac_check_lib_save_LIBS
4060 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4061 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4062 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4063 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4066 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4067 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4068 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4069 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 ac_check_lib_save_LIBS=$LIBS
4073 LIBS="-ldnet_stub $LIBS"
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4081 /* Override any GCC internal prototype to avoid an error.
4082 Use char because int might match the return type of a GCC
4083 builtin and then its argument prototype would still apply. */
4084 #ifdef __cplusplus
4085 extern "C"
4086 #endif
4087 char dnet_ntoa ();
4089 main ()
4091 return dnet_ntoa ();
4093 return 0;
4095 _ACEOF
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (ac_try="$ac_link"
4098 case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_link") 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } && {
4110 test -z "$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest$ac_exeext &&
4113 $as_test_x conftest$ac_exeext; then
4114 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_cv_lib_dnet_stub_dnet_ntoa=no
4122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4123 conftest$ac_exeext conftest.$ac_ext
4124 LIBS=$ac_check_lib_save_LIBS
4126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4127 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4128 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4129 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4136 conftest$ac_exeext conftest.$ac_ext
4137 LIBS="$ac_xsave_LIBS"
4139 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4140 # to get the SysV transport functions.
4141 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4142 # needs -lnsl.
4143 # The nsl library prevents programs from opening the X display
4144 # on Irix 5.2, according to T.E. Dickey.
4145 # The functions gethostbyname, getservbyname, and inet_addr are
4146 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4147 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4148 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4149 if test "${ac_cv_func_gethostbyname+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4160 #define gethostbyname innocuous_gethostbyname
4162 /* System header to define __stub macros and hopefully few prototypes,
4163 which can conflict with char gethostbyname (); below.
4164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165 <limits.h> exists even on freestanding compilers. */
4167 #ifdef __STDC__
4168 # include <limits.h>
4169 #else
4170 # include <assert.h>
4171 #endif
4173 #undef gethostbyname
4175 /* Override any GCC internal prototype to avoid an error.
4176 Use char because int might match the return type of a GCC
4177 builtin and then its argument prototype would still apply. */
4178 #ifdef __cplusplus
4179 extern "C"
4180 #endif
4181 char gethostbyname ();
4182 /* The GNU C library defines this for functions which it implements
4183 to always fail with ENOSYS. Some functions are actually named
4184 something starting with __ and the normal name is an alias. */
4185 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4186 choke me
4187 #endif
4190 main ()
4192 return gethostbyname ();
4194 return 0;
4196 _ACEOF
4197 rm -f conftest.$ac_objext conftest$ac_exeext
4198 if { (ac_try="$ac_link"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_link") 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && {
4211 test -z "$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 } && test -s conftest$ac_exeext &&
4214 $as_test_x conftest$ac_exeext; then
4215 ac_cv_func_gethostbyname=yes
4216 else
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 ac_cv_func_gethostbyname=no
4223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4224 conftest$ac_exeext conftest.$ac_ext
4226 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4227 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4229 if test $ac_cv_func_gethostbyname = no; then
4230 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4231 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4232 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 ac_check_lib_save_LIBS=$LIBS
4236 LIBS="-lnsl $LIBS"
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4244 /* Override any GCC internal prototype to avoid an error.
4245 Use char because int might match the return type of a GCC
4246 builtin and then its argument prototype would still apply. */
4247 #ifdef __cplusplus
4248 extern "C"
4249 #endif
4250 char gethostbyname ();
4252 main ()
4254 return gethostbyname ();
4256 return 0;
4258 _ACEOF
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_link") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest$ac_exeext &&
4276 $as_test_x conftest$ac_exeext; then
4277 ac_cv_lib_nsl_gethostbyname=yes
4278 else
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 ac_cv_lib_nsl_gethostbyname=no
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286 conftest$ac_exeext conftest.$ac_ext
4287 LIBS=$ac_check_lib_save_LIBS
4289 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4290 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4291 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4295 if test $ac_cv_lib_nsl_gethostbyname = no; then
4296 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4297 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4298 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 ac_check_lib_save_LIBS=$LIBS
4302 LIBS="-lbsd $LIBS"
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h. */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4310 /* Override any GCC internal prototype to avoid an error.
4311 Use char because int might match the return type of a GCC
4312 builtin and then its argument prototype would still apply. */
4313 #ifdef __cplusplus
4314 extern "C"
4315 #endif
4316 char gethostbyname ();
4318 main ()
4320 return gethostbyname ();
4322 return 0;
4324 _ACEOF
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_link") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest$ac_exeext &&
4342 $as_test_x conftest$ac_exeext; then
4343 ac_cv_lib_bsd_gethostbyname=yes
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_lib_bsd_gethostbyname=no
4351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4352 conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4355 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4356 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4357 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4364 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4365 # socket/setsockopt and other routines are undefined under SCO ODT
4366 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4367 # on later versions), says Simon Leinen: it contains gethostby*
4368 # variants that don't use the name server (or something). -lsocket
4369 # must be given before -lnsl if both are needed. We assume that
4370 # if connect needs -lnsl, so does gethostbyname.
4371 { echo "$as_me:$LINENO: checking for connect" >&5
4372 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4373 if test "${ac_cv_func_connect+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4384 #define connect innocuous_connect
4386 /* System header to define __stub macros and hopefully few prototypes,
4387 which can conflict with char connect (); below.
4388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 <limits.h> exists even on freestanding compilers. */
4391 #ifdef __STDC__
4392 # include <limits.h>
4393 #else
4394 # include <assert.h>
4395 #endif
4397 #undef connect
4399 /* Override any GCC internal prototype to avoid an error.
4400 Use char because int might match the return type of a GCC
4401 builtin and then its argument prototype would still apply. */
4402 #ifdef __cplusplus
4403 extern "C"
4404 #endif
4405 char connect ();
4406 /* The GNU C library defines this for functions which it implements
4407 to always fail with ENOSYS. Some functions are actually named
4408 something starting with __ and the normal name is an alias. */
4409 #if defined __stub_connect || defined __stub___connect
4410 choke me
4411 #endif
4414 main ()
4416 return connect ();
4418 return 0;
4420 _ACEOF
4421 rm -f conftest.$ac_objext conftest$ac_exeext
4422 if { (ac_try="$ac_link"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428 (eval "$ac_link") 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } && {
4435 test -z "$ac_c_werror_flag" ||
4436 test ! -s conftest.err
4437 } && test -s conftest$ac_exeext &&
4438 $as_test_x conftest$ac_exeext; then
4439 ac_cv_func_connect=yes
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_cv_func_connect=no
4447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4448 conftest$ac_exeext conftest.$ac_ext
4450 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4451 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4453 if test $ac_cv_func_connect = no; then
4454 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4455 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4456 if test "${ac_cv_lib_socket_connect+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 ac_check_lib_save_LIBS=$LIBS
4460 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4468 /* Override any GCC internal prototype to avoid an error.
4469 Use char because int might match the return type of a GCC
4470 builtin and then its argument prototype would still apply. */
4471 #ifdef __cplusplus
4472 extern "C"
4473 #endif
4474 char connect ();
4476 main ()
4478 return connect ();
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext conftest$ac_exeext
4484 if { (ac_try="$ac_link"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_link") 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } && {
4497 test -z "$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4499 } && test -s conftest$ac_exeext &&
4500 $as_test_x conftest$ac_exeext; then
4501 ac_cv_lib_socket_connect=yes
4502 else
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_cv_lib_socket_connect=no
4509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4510 conftest$ac_exeext conftest.$ac_ext
4511 LIBS=$ac_check_lib_save_LIBS
4513 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4514 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4515 if test $ac_cv_lib_socket_connect = yes; then
4516 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4521 # Guillermo Gomez says -lposix is necessary on A/UX.
4522 { echo "$as_me:$LINENO: checking for remove" >&5
4523 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4524 if test "${ac_cv_func_remove+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4535 #define remove innocuous_remove
4537 /* System header to define __stub macros and hopefully few prototypes,
4538 which can conflict with char remove (); below.
4539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4540 <limits.h> exists even on freestanding compilers. */
4542 #ifdef __STDC__
4543 # include <limits.h>
4544 #else
4545 # include <assert.h>
4546 #endif
4548 #undef remove
4550 /* Override any GCC internal prototype to avoid an error.
4551 Use char because int might match the return type of a GCC
4552 builtin and then its argument prototype would still apply. */
4553 #ifdef __cplusplus
4554 extern "C"
4555 #endif
4556 char remove ();
4557 /* The GNU C library defines this for functions which it implements
4558 to always fail with ENOSYS. Some functions are actually named
4559 something starting with __ and the normal name is an alias. */
4560 #if defined __stub_remove || defined __stub___remove
4561 choke me
4562 #endif
4565 main ()
4567 return remove ();
4569 return 0;
4571 _ACEOF
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (ac_try="$ac_link"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_link") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && {
4586 test -z "$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 } && test -s conftest$ac_exeext &&
4589 $as_test_x conftest$ac_exeext; then
4590 ac_cv_func_remove=yes
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 ac_cv_func_remove=no
4598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4599 conftest$ac_exeext conftest.$ac_ext
4601 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4602 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4604 if test $ac_cv_func_remove = no; then
4605 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4606 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4607 if test "${ac_cv_lib_posix_remove+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 ac_check_lib_save_LIBS=$LIBS
4611 LIBS="-lposix $LIBS"
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 /* Override any GCC internal prototype to avoid an error.
4620 Use char because int might match the return type of a GCC
4621 builtin and then its argument prototype would still apply. */
4622 #ifdef __cplusplus
4623 extern "C"
4624 #endif
4625 char remove ();
4627 main ()
4629 return remove ();
4631 return 0;
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (ac_try="$ac_link"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_link") 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && {
4648 test -z "$ac_c_werror_flag" ||
4649 test ! -s conftest.err
4650 } && test -s conftest$ac_exeext &&
4651 $as_test_x conftest$ac_exeext; then
4652 ac_cv_lib_posix_remove=yes
4653 else
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cv_lib_posix_remove=no
4660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4661 conftest$ac_exeext conftest.$ac_ext
4662 LIBS=$ac_check_lib_save_LIBS
4664 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4665 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4666 if test $ac_cv_lib_posix_remove = yes; then
4667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4672 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4673 { echo "$as_me:$LINENO: checking for shmat" >&5
4674 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4675 if test "${ac_cv_func_shmat+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4686 #define shmat innocuous_shmat
4688 /* System header to define __stub macros and hopefully few prototypes,
4689 which can conflict with char shmat (); below.
4690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691 <limits.h> exists even on freestanding compilers. */
4693 #ifdef __STDC__
4694 # include <limits.h>
4695 #else
4696 # include <assert.h>
4697 #endif
4699 #undef shmat
4701 /* Override any GCC internal prototype to avoid an error.
4702 Use char because int might match the return type of a GCC
4703 builtin and then its argument prototype would still apply. */
4704 #ifdef __cplusplus
4705 extern "C"
4706 #endif
4707 char shmat ();
4708 /* The GNU C library defines this for functions which it implements
4709 to always fail with ENOSYS. Some functions are actually named
4710 something starting with __ and the normal name is an alias. */
4711 #if defined __stub_shmat || defined __stub___shmat
4712 choke me
4713 #endif
4716 main ()
4718 return shmat ();
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest$ac_exeext &&
4740 $as_test_x conftest$ac_exeext; then
4741 ac_cv_func_shmat=yes
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 ac_cv_func_shmat=no
4749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4750 conftest$ac_exeext conftest.$ac_ext
4752 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4753 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4755 if test $ac_cv_func_shmat = no; then
4756 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4757 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4758 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 ac_check_lib_save_LIBS=$LIBS
4762 LIBS="-lipc $LIBS"
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4770 /* Override any GCC internal prototype to avoid an error.
4771 Use char because int might match the return type of a GCC
4772 builtin and then its argument prototype would still apply. */
4773 #ifdef __cplusplus
4774 extern "C"
4775 #endif
4776 char shmat ();
4778 main ()
4780 return shmat ();
4782 return 0;
4784 _ACEOF
4785 rm -f conftest.$ac_objext conftest$ac_exeext
4786 if { (ac_try="$ac_link"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_link") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest$ac_exeext &&
4802 $as_test_x conftest$ac_exeext; then
4803 ac_cv_lib_ipc_shmat=yes
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 ac_cv_lib_ipc_shmat=no
4811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4812 conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4815 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4816 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4817 if test $ac_cv_lib_ipc_shmat = yes; then
4818 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4824 # Check for libraries that X11R6 Xt/Xaw programs need.
4825 ac_save_LDFLAGS=$LDFLAGS
4826 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4827 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4828 # check for ICE first), but we must link in the order -lSM -lICE or
4829 # we get undefined symbols. So assume we have SM if we have ICE.
4830 # These have to be linked with before -lX11, unlike the other
4831 # libraries we check for below, so use a different variable.
4832 # John Interrante, Karl Berry
4833 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4834 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4835 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 ac_check_lib_save_LIBS=$LIBS
4839 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4847 /* Override any GCC internal prototype to avoid an error.
4848 Use char because int might match the return type of a GCC
4849 builtin and then its argument prototype would still apply. */
4850 #ifdef __cplusplus
4851 extern "C"
4852 #endif
4853 char IceConnectionNumber ();
4855 main ()
4857 return IceConnectionNumber ();
4859 return 0;
4861 _ACEOF
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (ac_try="$ac_link"
4864 case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_link") 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest$ac_exeext &&
4879 $as_test_x conftest$ac_exeext; then
4880 ac_cv_lib_ICE_IceConnectionNumber=yes
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 ac_cv_lib_ICE_IceConnectionNumber=no
4888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4889 conftest$ac_exeext conftest.$ac_ext
4890 LIBS=$ac_check_lib_save_LIBS
4892 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4893 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4894 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4895 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4898 LDFLAGS=$ac_save_LDFLAGS
4903 groff_no_x=$no_x
4904 if test -z "$groff_no_x"; then
4905 OLDCFLAGS=$CFLAGS
4906 OLDLDFLAGS=$LDFLAGS
4907 OLDLIBS=$LIBS
4908 CFLAGS="$CFLAGS $X_CFLAGS"
4909 LDFLAGS="$LDFLAGS $X_LIBS"
4910 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4912 LIBS="$LIBS -lXaw"
4913 { echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
4914 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6; }
4915 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4924 #include <X11/Intrinsic.h>
4925 #include <X11/Xaw/Simple.h>
4929 main ()
4933 return 0;
4936 _ACEOF
4937 rm -f conftest.$ac_objext conftest$ac_exeext
4938 if { (ac_try="$ac_link"
4939 case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942 esac
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_link") 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && {
4951 test -z "$ac_c_werror_flag" ||
4952 test ! -s conftest.err
4953 } && test -s conftest$ac_exeext &&
4954 $as_test_x conftest$ac_exeext; then
4955 { echo "$as_me:$LINENO: result: yes" >&5
4956 echo "${ECHO_T}yes" >&6; }
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 { echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6; }
4963 groff_no_x="yes"
4966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4967 conftest$ac_exeext conftest.$ac_ext
4969 LIBS="$LIBS -lXmu"
4970 { echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
4971 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6; }
4972 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4981 #include <X11/Intrinsic.h>
4982 #include <X11/Xmu/Converters.h>
4986 main ()
4990 return 0;
4993 _ACEOF
4994 rm -f conftest.$ac_objext conftest$ac_exeext
4995 if { (ac_try="$ac_link"
4996 case "(($ac_try" in
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
4999 esac
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001 (eval "$ac_link") 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest$ac_exeext &&
5011 $as_test_x conftest$ac_exeext; then
5012 { echo "$as_me:$LINENO: result: yes" >&5
5013 echo "${ECHO_T}yes" >&6; }
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5020 groff_no_x="yes"
5023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5024 conftest$ac_exeext conftest.$ac_ext
5026 CFLAGS=$OLDCFLAGS
5027 LDFLAGS=$OLDLDFLAGS
5028 LIBS=$OLDLIBS
5031 if test "x$groff_no_x" = "xyes"; then
5032 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5033 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5034 else
5035 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5036 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5037 XLIBDIRS="src/libs/libxutil"
5044 # Check whether --with-appresdir was given.
5045 if test "${with_appresdir+set}" = set; then
5046 withval=$with_appresdir;
5049 if test -z "$groff_no_x"; then
5050 # Create an Imakefile, run `xmkmf', then `make'.
5051 rm -f -r conftest.dir
5052 if mkdir conftest.dir; then
5053 cd conftest.dir
5054 # Make sure to not put `make' in the Imakefile rules,
5055 # since we grep it out.
5056 cat >Imakefile <<'EOF'
5058 xlibdirs:
5059 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5062 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5063 # GNU make sometimes prints "make[1]: Entering...",
5064 # which would confuse us.
5065 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5067 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5068 for groff_extension in a so sl; do
5069 if test ! -f $groff_x_usrlibdir/libX11.$groff_extension &&
5070 test -f $groff_x_libdir/libX11.$groff_extension; then
5071 groff_x_usrlibdir=$groff_x_libdir
5072 break
5074 done
5077 cd ..
5078 rm -f -r conftest.dir
5081 # In case the test with `xmkmf' wasn't successful, try a suite of
5082 # standard directories. Check `X11' before `X11Rn' because it is often
5083 # a symlink to the current release.
5084 groff_x_libdirs='
5085 /usr/X11/lib
5086 /usr/X11R6/lib
5087 /usr/X11R5/lib
5088 /usr/X11R4/lib
5090 /usr/lib/X11
5091 /usr/lib/X11R6
5092 /usr/lib/X11R5
5093 /usr/lib/X11R4
5095 /usr/local/X11/lib
5096 /usr/local/X11R6/lib
5097 /usr/local/X11R5/lib
5098 /usr/local/X11R4/lib
5100 /usr/local/lib/X11
5101 /usr/local/lib/X11R6
5102 /usr/local/lib/X11R5
5103 /usr/local/lib/X11R4
5105 /usr/X386/lib
5106 /usr/x386/lib
5107 /usr/XFree86/lib/X11
5109 /usr/lib
5110 /usr/local/lib
5111 /usr/unsupported/lib
5112 /usr/athena/lib
5113 /usr/local/x11r5/lib
5114 /usr/lpp/Xamples/lib
5116 /usr/openwin/lib
5117 /usr/openwin/share/lib'
5119 if test -z "$groff_x_usrlibdir"; then
5120 # We only test whether libX11 exists.
5121 for groff_dir in $groff_x_libdirs; do
5122 for groff_extension in a so sl; do
5123 if test ! -r $groff_dir/libX11.$groff_extension; then
5124 groff_x_usrlibdir=$groff_dir
5125 break 2
5127 done
5128 done
5131 if test "x$with_appresdir" = "x"; then
5132 appresdir=$groff_x_usrlibdir/X11/app-defaults
5133 else
5134 appresdir=$with_appresdir
5138 if test -z "$PSPRINT"; then
5139 for ac_prog in lpr
5141 # Extract the first word of "$ac_prog", so it can be a program name with args.
5142 set dummy $ac_prog; ac_word=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_prog_LPR+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 if test -n "$LPR"; then
5149 ac_cv_prog_LPR="$LPR" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_LPR="$ac_prog"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5162 done
5163 done
5164 IFS=$as_save_IFS
5168 LPR=$ac_cv_prog_LPR
5169 if test -n "$LPR"; then
5170 { echo "$as_me:$LINENO: result: $LPR" >&5
5171 echo "${ECHO_T}$LPR" >&6; }
5172 else
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5178 test -n "$LPR" && break
5179 done
5181 for ac_prog in lp
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy $ac_prog; ac_word=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_prog_LP+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 if test -n "$LP"; then
5191 ac_cv_prog_LP="$LP" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_LP="$ac_prog"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 LP=$ac_cv_prog_LP
5211 if test -n "$LP"; then
5212 { echo "$as_me:$LINENO: result: $LP" >&5
5213 echo "${ECHO_T}$LP" >&6; }
5214 else
5215 { echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6; }
5220 test -n "$LP" && break
5221 done
5223 if test -n "$LPR" && test -n "$LP"; then
5224 # HP-UX provides an lpr command that emulates lpr using lp,
5225 # but it doesn't have lpq; in this case we want to use lp
5226 # rather than lpr.
5227 for ac_prog in lpq
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_LPQ+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 if test -n "$LPQ"; then
5237 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_LPQ="$ac_prog"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 LPQ=$ac_cv_prog_LPQ
5257 if test -n "$LPQ"; then
5258 { echo "$as_me:$LINENO: result: $LPQ" >&5
5259 echo "${ECHO_T}$LPQ" >&6; }
5260 else
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 test -n "$LPQ" && break
5267 done
5269 test -n "$LPQ" || LPR=
5271 if test -n "$LPR"; then
5272 PSPRINT="$LPR"
5273 elif test -n "$LP"; then
5274 PSPRINT="$LP"
5278 { echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5279 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6; }
5280 { echo "$as_me:$LINENO: result: $PSPRINT" >&5
5281 echo "${ECHO_T}$PSPRINT" >&6; }
5283 # Figure out DVIPRINT from PSPRINT.
5284 { echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5285 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6; }
5286 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5287 if test "x$PSPRINT" = "xlpr"; then
5288 DVIPRINT="lpr -d"
5289 else
5290 DVIPRINT="$PSPRINT"
5294 { echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5295 echo "${ECHO_T}$DVIPRINT" >&6; }
5296 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5297 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5298 if test "${ac_cv_path_GREP+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 # Extract the first word of "grep ggrep" to use in msg output
5302 if test -z "$GREP"; then
5303 set dummy grep ggrep; ac_prog_name=$2
5304 if test "${ac_cv_path_GREP+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 ac_path_GREP_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in grep ggrep; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5317 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5318 # Check for GNU ac_path_GREP and select it if it is found.
5319 # Check for GNU $ac_path_GREP
5320 case `"$ac_path_GREP" --version 2>&1` in
5321 *GNU*)
5322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5324 ac_count=0
5325 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5326 while :
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 echo 'GREP' >> "conftest.nl"
5332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 ac_count=`expr $ac_count + 1`
5335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_GREP="$ac_path_GREP"
5338 ac_path_GREP_max=$ac_count
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5342 done
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5347 $ac_path_GREP_found && break 3
5348 done
5349 done
5351 done
5352 IFS=$as_save_IFS
5357 GREP="$ac_cv_path_GREP"
5358 if test -z "$GREP"; then
5359 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5360 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5361 { (exit 1); exit 1; }; }
5364 else
5365 ac_cv_path_GREP=$GREP
5370 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5371 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5372 GREP="$ac_cv_path_GREP"
5375 { echo "$as_me:$LINENO: checking for egrep" >&5
5376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5377 if test "${ac_cv_path_EGREP+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5381 then ac_cv_path_EGREP="$GREP -E"
5382 else
5383 # Extract the first word of "egrep" to use in msg output
5384 if test -z "$EGREP"; then
5385 set dummy egrep; ac_prog_name=$2
5386 if test "${ac_cv_path_EGREP+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 ac_path_EGREP_found=false
5390 # Loop through the user's path and test for each of PROGNAME-LIST
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_prog in egrep; do
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5400 # Check for GNU ac_path_EGREP and select it if it is found.
5401 # Check for GNU $ac_path_EGREP
5402 case `"$ac_path_EGREP" --version 2>&1` in
5403 *GNU*)
5404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5406 ac_count=0
5407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5408 while :
5410 cat "conftest.in" "conftest.in" >"conftest.tmp"
5411 mv "conftest.tmp" "conftest.in"
5412 cp "conftest.in" "conftest.nl"
5413 echo 'EGREP' >> "conftest.nl"
5414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5416 ac_count=`expr $ac_count + 1`
5417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5418 # Best one so far, save it but keep looking for a better one
5419 ac_cv_path_EGREP="$ac_path_EGREP"
5420 ac_path_EGREP_max=$ac_count
5422 # 10*(2^10) chars as input seems more than enough
5423 test $ac_count -gt 10 && break
5424 done
5425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5426 esac
5429 $ac_path_EGREP_found && break 3
5430 done
5431 done
5433 done
5434 IFS=$as_save_IFS
5439 EGREP="$ac_cv_path_EGREP"
5440 if test -z "$EGREP"; then
5441 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5443 { (exit 1); exit 1; }; }
5446 else
5447 ac_cv_path_EGREP=$EGREP
5453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5455 EGREP="$ac_cv_path_EGREP"
5458 # Extract the first word of "perl", so it can be a program name with args.
5459 set dummy perl; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_PERLPATH+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 case $PERLPATH in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5485 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
5487 esac
5489 PERLPATH=$ac_cv_path_PERLPATH
5490 if test -n "$PERLPATH"; then
5491 { echo "$as_me:$LINENO: result: $PERLPATH" >&5
5492 echo "${ECHO_T}$PERLPATH" >&6; }
5493 else
5494 { echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6; }
5499 for ac_prog in byacc 'bison -y'
5501 # Extract the first word of "$ac_prog", so it can be a program name with args.
5502 set dummy $ac_prog; 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_YACC+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508 if test -n "$YACC"; then
5509 ac_cv_prog_YACC="$YACC" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_prog_YACC="$ac_prog"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5524 IFS=$as_save_IFS
5528 YACC=$ac_cv_prog_YACC
5529 if test -n "$YACC"; then
5530 { echo "$as_me:$LINENO: result: $YACC" >&5
5531 echo "${ECHO_T}$YACC" >&6; }
5532 else
5533 { echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6; }
5538 test -n "$YACC" && break
5539 done
5540 test -n "$YACC" || YACC="yacc"
5542 missing=
5543 # Extract the first word of "makeinfo", so it can be a program name with args.
5544 set dummy makeinfo; ac_word=$2
5545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5547 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 if test -n "$MAKEINFO"; then
5551 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_MAKEINFO="makeinfo"
5561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5570 MAKEINFO=$ac_cv_prog_MAKEINFO
5571 if test -n "$MAKEINFO"; then
5572 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5573 echo "${ECHO_T}$MAKEINFO" >&6; }
5574 else
5575 { echo "$as_me:$LINENO: result: no" >&5
5576 echo "${ECHO_T}no" >&6; }
5580 if test -z "$MAKEINFO"; then
5581 missing="\`makeinfo' is missing."
5582 else
5583 { echo "$as_me:$LINENO: checking for makeinfo version" >&5
5584 echo $ECHO_N "checking for makeinfo version... $ECHO_C" >&6; }
5585 # We need an additional level of quoting to make sed's regexps work.
5586 makeinfo_version=`$MAKEINFO --version 2>&1 \
5587 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5588 { echo "$as_me:$LINENO: result: $makeinfo_version" >&5
5589 echo "${ECHO_T}$makeinfo_version" >&6; }
5590 # Consider only the first two numbers in version number string.
5591 makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
5592 makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
5593 makeinfo_version_numeric=`
5594 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5595 if test $makeinfo_version_numeric -lt 4008; then
5596 missing="\`makeinfo' is too old."
5600 if test -n "$missing"; then
5601 infofile=doc/groff.info
5602 test -f ${infofile} || infofile=${srcdir}/${infofile}
5603 if test ! -f ${infofile} \
5604 || test ${srcdir}/doc/groff.texinfo -nt ${infofile}; then
5605 { { echo "$as_me:$LINENO: error: $missing
5606 Get the \`texinfo' package version 4.8 or newer." >&5
5607 echo "$as_me: error: $missing
5608 Get the \`texinfo' package version 4.8 or newer." >&2;}
5609 { (exit 1); exit 1; }; }
5610 else
5611 { echo "$as_me:$LINENO: WARNING: $missing
5612 Get the \`texinfo' package version 4.8 or newer if you want to convert
5613 \`groff.texinfo' into a PDF or HTML document." >&5
5614 echo "$as_me: WARNING: $missing
5615 Get the \`texinfo' package version 4.8 or newer if you want to convert
5616 \`groff.texinfo' into a PDF or HTML document." >&2;}
5620 if test -n "$ac_tool_prefix"; then
5621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5625 if test "${ac_cv_prog_RANLIB+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 if test -n "$RANLIB"; then
5629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5642 done
5643 done
5644 IFS=$as_save_IFS
5648 RANLIB=$ac_cv_prog_RANLIB
5649 if test -n "$RANLIB"; then
5650 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5651 echo "${ECHO_T}$RANLIB" >&6; }
5652 else
5653 { echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6; }
5659 if test -z "$ac_cv_prog_RANLIB"; then
5660 ac_ct_RANLIB=$RANLIB
5661 # Extract the first word of "ranlib", so it can be a program name with args.
5662 set dummy ranlib; ac_word=$2
5663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668 if test -n "$ac_ct_RANLIB"; then
5669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678 ac_cv_prog_ac_ct_RANLIB="ranlib"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5682 done
5683 done
5684 IFS=$as_save_IFS
5688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5689 if test -n "$ac_ct_RANLIB"; then
5690 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5691 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5692 else
5693 { echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6; }
5697 if test "x$ac_ct_RANLIB" = x; then
5698 RANLIB=":"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701 yes:)
5702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5703 whose name does not start with the host triplet. If you think this
5704 configuration is useful to you, please write to autoconf@gnu.org." >&5
5705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5706 whose name does not start with the host triplet. If you think this
5707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710 RANLIB=$ac_ct_RANLIB
5712 else
5713 RANLIB="$ac_cv_prog_RANLIB"
5716 ac_aux_dir=
5717 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5718 if test -f "$ac_dir/install-sh"; then
5719 ac_aux_dir=$ac_dir
5720 ac_install_sh="$ac_aux_dir/install-sh -c"
5721 break
5722 elif test -f "$ac_dir/install.sh"; then
5723 ac_aux_dir=$ac_dir
5724 ac_install_sh="$ac_aux_dir/install.sh -c"
5725 break
5726 elif test -f "$ac_dir/shtool"; then
5727 ac_aux_dir=$ac_dir
5728 ac_install_sh="$ac_aux_dir/shtool install -c"
5729 break
5731 done
5732 if test -z "$ac_aux_dir"; then
5733 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5734 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5735 { (exit 1); exit 1; }; }
5738 # These three variables are undocumented and unsupported,
5739 # and are intended to be withdrawn in a future Autoconf release.
5740 # They can cause serious problems if a builder's source tree is in a directory
5741 # whose full name contains unusual characters.
5742 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5743 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5744 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5748 ac_dir=`cd $ac_aux_dir; pwd`
5749 ac_install_sh="$ac_dir/install-sh -c"
5750 for ac_prog in install-info
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759 if test -n "$INSTALL_INFO"; then
5760 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_INSTALL_INFO="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
5780 if test -n "$INSTALL_INFO"; then
5781 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5782 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5783 else
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$INSTALL_INFO" && break
5790 done
5791 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
5793 # Find a good install program. We prefer a C program (faster),
5794 # so one script is as good as another. But avoid the broken or
5795 # incompatible versions:
5796 # SysV /etc/install, /usr/sbin/install
5797 # SunOS /usr/etc/install
5798 # IRIX /sbin/install
5799 # AIX /bin/install
5800 # AmigaOS /C/install, which installs bootblocks on floppy discs
5801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5804 # OS/2's system install, which has a completely different semantic
5805 # ./install, which can be erroneously created by make from ./install.sh.
5806 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5807 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5808 if test -z "$INSTALL"; then
5809 if test "${ac_cv_path_install+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 # Account for people who put trailing slashes in PATH elements.
5818 case $as_dir/ in
5819 ./ | .// | /cC/* | \
5820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5821 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5822 /usr/ucb/* ) ;;
5824 # OSF1 and SCO ODT 3.0 have their own names for install.
5825 # Don't use installbsd from OSF since it installs stuff as root
5826 # by default.
5827 for ac_prog in ginstall scoinst install; do
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5830 if test $ac_prog = install &&
5831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5832 # AIX install. It has an incompatible calling convention.
5834 elif test $ac_prog = install &&
5835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5836 # program-specific install script used by HP pwplus--don't use.
5838 else
5839 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5840 break 3
5843 done
5844 done
5846 esac
5847 done
5848 IFS=$as_save_IFS
5852 if test "${ac_cv_path_install+set}" = set; then
5853 INSTALL=$ac_cv_path_install
5854 else
5855 # As a last resort, use the slow shell script. Don't cache a
5856 # value for INSTALL within a source directory, because that will
5857 # break other packages using the cache if that directory is
5858 # removed, or if the value is a relative name.
5859 INSTALL=$ac_install_sh
5862 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5863 echo "${ECHO_T}$INSTALL" >&6; }
5865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5866 # It thinks the first close brace ends the variable substitution.
5867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5871 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5873 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5874 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5875 LN_S=$as_ln_s
5876 if test "$LN_S" = "ln -s"; then
5877 { echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6; }
5879 else
5880 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5881 echo "${ECHO_T}no, using $LN_S" >&6; }
5885 # use a dummy substitution if no csh hack is necessary to avoid errors
5886 # with non-GNU sed programs
5887 { echo "$as_me:$LINENO: checking for csh hash hack" >&5
5888 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6; }
5890 cat <<EOF >conftest.sh
5891 #! /bin/sh
5892 true || exit 0
5893 export PATH || exit 0
5894 exit 1
5897 chmod +x conftest.sh
5898 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
5899 { echo "$as_me:$LINENO: result: yes" >&5
5900 echo "${ECHO_T}yes" >&6; }
5901 SH_SCRIPT_SED_CMD='1s/.*/:/'
5902 else
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 SH_SCRIPT_SED_CMD='1s/a/a/'
5907 rm -f conftest.sh
5910 # checks for headers
5911 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5912 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5913 if test "${ac_cv_header_stdc+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #include <stdlib.h>
5923 #include <stdarg.h>
5924 #include <string.h>
5925 #include <float.h>
5928 main ()
5932 return 0;
5934 _ACEOF
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && {
5949 test -z "$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 } && test -s conftest.$ac_objext; then
5952 ac_cv_header_stdc=yes
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cv_header_stdc=no
5960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 if test $ac_cv_header_stdc = yes; then
5963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 #include <string.h>
5972 _ACEOF
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974 $EGREP "memchr" >/dev/null 2>&1; then
5976 else
5977 ac_cv_header_stdc=no
5979 rm -f conftest*
5983 if test $ac_cv_header_stdc = yes; then
5984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 #include <stdlib.h>
5993 _ACEOF
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 $EGREP "free" >/dev/null 2>&1; then
5997 else
5998 ac_cv_header_stdc=no
6000 rm -f conftest*
6004 if test $ac_cv_header_stdc = yes; then
6005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6006 if test "$cross_compiling" = yes; then
6008 else
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #include <ctype.h>
6016 #include <stdlib.h>
6017 #if ((' ' & 0x0FF) == 0x020)
6018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6020 #else
6021 # define ISLOWER(c) \
6022 (('a' <= (c) && (c) <= 'i') \
6023 || ('j' <= (c) && (c) <= 'r') \
6024 || ('s' <= (c) && (c) <= 'z'))
6025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6026 #endif
6028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6030 main ()
6032 int i;
6033 for (i = 0; i < 256; i++)
6034 if (XOR (islower (i), ISLOWER (i))
6035 || toupper (i) != TOUPPER (i))
6036 return 2;
6037 return 0;
6039 _ACEOF
6040 rm -f conftest$ac_exeext
6041 if { (ac_try="$ac_link"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_link") 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6051 { (case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6061 else
6062 echo "$as_me: program exited with status $ac_status" >&5
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ( exit $ac_status )
6067 ac_cv_header_stdc=no
6069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6076 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6077 if test $ac_cv_header_stdc = yes; then
6079 cat >>confdefs.h <<\_ACEOF
6080 #define STDC_HEADERS 1
6081 _ACEOF
6085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6096 inttypes.h stdint.h unistd.h
6098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6112 #include <$ac_header>
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (ac_try="$ac_compile"
6116 case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compile") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest.$ac_objext; then
6131 eval "$as_ac_Header=yes"
6132 else
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 eval "$as_ac_Header=no"
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 ac_res=`eval echo '${'$as_ac_Header'}'`
6142 { echo "$as_me:$LINENO: result: $ac_res" >&5
6143 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 _ACEOF
6151 done
6166 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
6167 string.h strings.h math.h sys/time.h direct.h process.h
6169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 ac_res=`eval echo '${'$as_ac_Header'}'`
6177 { echo "$as_me:$LINENO: result: $ac_res" >&5
6178 echo "${ECHO_T}$ac_res" >&6; }
6179 else
6180 # Is the header compilable?
6181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 #include <$ac_header>
6191 _ACEOF
6192 rm -f conftest.$ac_objext
6193 if { (ac_try="$ac_compile"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6200 ac_status=$?
6201 grep -v '^ *+' conftest.er1 >conftest.err
6202 rm -f conftest.er1
6203 cat conftest.err >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 ac_header_compiler=yes
6210 else
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 ac_header_compiler=no
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6219 echo "${ECHO_T}$ac_header_compiler" >&6; }
6221 # Is the header present?
6222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6224 cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h. */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <$ac_header>
6231 _ACEOF
6232 if { (ac_try="$ac_cpp conftest.$ac_ext"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } >/dev/null && {
6245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 }; then
6248 ac_header_preproc=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 ac_header_preproc=no
6256 rm -f conftest.err conftest.$ac_ext
6257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6258 echo "${ECHO_T}$ac_header_preproc" >&6; }
6260 # So? What about this header?
6261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6262 yes:no: )
6263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6267 ac_header_preproc=yes
6269 no:yes:* )
6270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6284 esac
6285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 eval "$as_ac_Header=\$ac_header_preproc"
6292 ac_res=`eval echo '${'$as_ac_Header'}'`
6293 { echo "$as_me:$LINENO: result: $ac_res" >&5
6294 echo "${ECHO_T}$ac_res" >&6; }
6297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6298 cat >>confdefs.h <<_ACEOF
6299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6300 _ACEOF
6304 done
6306 { echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6307 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6; }
6308 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
6309 then
6310 { echo "$as_me:$LINENO: result: yes" >&5
6311 echo "${ECHO_T}yes" >&6; }
6313 cat >>confdefs.h <<\_ACEOF
6314 #define _SYSV3 1
6315 _ACEOF
6317 else
6318 { echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6; }
6321 { echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6322 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6; }
6323 ac_ext=cpp
6324 ac_cpp='$CXXCPP $CPPFLAGS'
6325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6329 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6338 #include <stdio.h>
6339 extern "C" { void fileno(int); }
6343 main ()
6347 return 0;
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_cxx_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 { echo "$as_me:$LINENO: result: yes" >&5
6369 echo "${ECHO_T}yes" >&6; }
6371 cat >>confdefs.h <<\_ACEOF
6372 #define _POSIX_SOURCE 1
6373 _ACEOF
6375 else
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 ac_ext=c
6385 ac_cpp='$CPP $CPPFLAGS'
6386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 # checks for header stuff
6392 ac_ext=cpp
6393 ac_cpp='$CXXCPP $CPPFLAGS'
6394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6398 { echo "$as_me:$LINENO: checking for return type of srand" >&5
6399 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6; }
6400 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6409 #include <stdlib.h>
6410 extern "C" { void srand(unsigned int); }
6414 main ()
6418 return 0;
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_cxx_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 { echo "$as_me:$LINENO: result: void" >&5
6440 echo "${ECHO_T}void" >&6; }
6442 cat >>confdefs.h <<\_ACEOF
6443 #define RET_TYPE_SRAND_IS_VOID 1
6444 _ACEOF
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 { echo "$as_me:$LINENO: result: int" >&5
6451 echo "${ECHO_T}int" >&6; }
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 ac_ext=c
6456 ac_cpp='$CPP $CPPFLAGS'
6457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461 { echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6462 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6; }
6463 ac_ext=cpp
6464 ac_cpp='$CXXCPP $CPPFLAGS'
6465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6469 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6481 #include <stdio.h>
6482 #ifdef HAVE_STRING_H
6483 #include <string.h>
6484 #endif
6485 #ifdef HAVE_STRINGS_H
6486 #include <strings.h>
6487 #endif
6488 #ifdef HAVE_STDLIB_H
6489 #include <stdlib.h>
6490 #endif
6491 #ifdef HAVE_SYS_TIME_H
6492 #include <sys/time.h>
6493 #endif
6494 #ifdef HAVE_UNISTD_H
6495 #include <unistd.h>
6496 #endif
6497 #ifdef HAVE_MATH_H
6498 #include <math.h>
6499 #endif
6503 main ()
6507 #ifndef gettimeofday
6508 char *p = (char *) gettimeofday;
6509 #endif
6513 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_cxx_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.$ac_objext; then
6534 groff_cv_decl_needed_gettimeofday=no
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 groff_cv_decl_needed_gettimeofday=yes
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6546 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6; }
6547 if test $groff_cv_decl_needed_gettimeofday = yes; then
6549 cat >>confdefs.h <<\_ACEOF
6550 #define NEED_DECLARATION_GETTIMEOFDAY 1
6551 _ACEOF
6554 ac_ext=c
6555 ac_cpp='$CPP $CPPFLAGS'
6556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560 { echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6561 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6; }
6562 ac_ext=cpp
6563 ac_cpp='$CXXCPP $CPPFLAGS'
6564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6568 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6580 #include <stdio.h>
6581 #ifdef HAVE_STRING_H
6582 #include <string.h>
6583 #endif
6584 #ifdef HAVE_STRINGS_H
6585 #include <strings.h>
6586 #endif
6587 #ifdef HAVE_STDLIB_H
6588 #include <stdlib.h>
6589 #endif
6590 #ifdef HAVE_SYS_TIME_H
6591 #include <sys/time.h>
6592 #endif
6593 #ifdef HAVE_UNISTD_H
6594 #include <unistd.h>
6595 #endif
6596 #ifdef HAVE_MATH_H
6597 #include <math.h>
6598 #endif
6602 main ()
6606 #ifndef hypot
6607 char *p = (char *) hypot;
6608 #endif
6612 return 0;
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6618 case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621 esac
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_compile") 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && {
6630 test -z "$ac_cxx_werror_flag" ||
6631 test ! -s conftest.err
6632 } && test -s conftest.$ac_objext; then
6633 groff_cv_decl_needed_hypot=no
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 groff_cv_decl_needed_hypot=yes
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6645 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6; }
6646 if test $groff_cv_decl_needed_hypot = yes; then
6648 cat >>confdefs.h <<\_ACEOF
6649 #define NEED_DECLARATION_HYPOT 1
6650 _ACEOF
6653 ac_ext=c
6654 ac_cpp='$CPP $CPPFLAGS'
6655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659 { echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6660 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6; }
6661 ac_ext=cpp
6662 ac_cpp='$CXXCPP $CPPFLAGS'
6663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6667 if test "${groff_cv_decl_needed_popen+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6679 #include <stdio.h>
6680 #ifdef HAVE_STRING_H
6681 #include <string.h>
6682 #endif
6683 #ifdef HAVE_STRINGS_H
6684 #include <strings.h>
6685 #endif
6686 #ifdef HAVE_STDLIB_H
6687 #include <stdlib.h>
6688 #endif
6689 #ifdef HAVE_SYS_TIME_H
6690 #include <sys/time.h>
6691 #endif
6692 #ifdef HAVE_UNISTD_H
6693 #include <unistd.h>
6694 #endif
6695 #ifdef HAVE_MATH_H
6696 #include <math.h>
6697 #endif
6701 main ()
6705 #ifndef popen
6706 char *p = (char *) popen;
6707 #endif
6711 return 0;
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6717 case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_compile") 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_cxx_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest.$ac_objext; then
6732 groff_cv_decl_needed_popen=no
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 groff_cv_decl_needed_popen=yes
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6744 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6; }
6745 if test $groff_cv_decl_needed_popen = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define NEED_DECLARATION_POPEN 1
6749 _ACEOF
6752 ac_ext=c
6753 ac_cpp='$CPP $CPPFLAGS'
6754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758 { echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6759 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6; }
6760 ac_ext=cpp
6761 ac_cpp='$CXXCPP $CPPFLAGS'
6762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6766 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6778 #include <stdio.h>
6779 #ifdef HAVE_STRING_H
6780 #include <string.h>
6781 #endif
6782 #ifdef HAVE_STRINGS_H
6783 #include <strings.h>
6784 #endif
6785 #ifdef HAVE_STDLIB_H
6786 #include <stdlib.h>
6787 #endif
6788 #ifdef HAVE_SYS_TIME_H
6789 #include <sys/time.h>
6790 #endif
6791 #ifdef HAVE_UNISTD_H
6792 #include <unistd.h>
6793 #endif
6794 #ifdef HAVE_MATH_H
6795 #include <math.h>
6796 #endif
6800 main ()
6804 #ifndef pclose
6805 char *p = (char *) pclose;
6806 #endif
6810 return 0;
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_cxx_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 groff_cv_decl_needed_pclose=no
6832 else
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 groff_cv_decl_needed_pclose=yes
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6843 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6; }
6844 if test $groff_cv_decl_needed_pclose = yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define NEED_DECLARATION_PCLOSE 1
6848 _ACEOF
6851 ac_ext=c
6852 ac_cpp='$CPP $CPPFLAGS'
6853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6857 { echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6858 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6; }
6859 ac_ext=cpp
6860 ac_cpp='$CXXCPP $CPPFLAGS'
6861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6865 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6877 #include <stdio.h>
6878 #ifdef HAVE_STRING_H
6879 #include <string.h>
6880 #endif
6881 #ifdef HAVE_STRINGS_H
6882 #include <strings.h>
6883 #endif
6884 #ifdef HAVE_STDLIB_H
6885 #include <stdlib.h>
6886 #endif
6887 #ifdef HAVE_SYS_TIME_H
6888 #include <sys/time.h>
6889 #endif
6890 #ifdef HAVE_UNISTD_H
6891 #include <unistd.h>
6892 #endif
6893 #ifdef HAVE_MATH_H
6894 #include <math.h>
6895 #endif
6899 main ()
6903 #ifndef putenv
6904 char *p = (char *) putenv;
6905 #endif
6909 return 0;
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (ac_try="$ac_compile"
6915 case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918 esac
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_cxx_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 groff_cv_decl_needed_putenv=no
6931 else
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 groff_cv_decl_needed_putenv=yes
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
6942 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6; }
6943 if test $groff_cv_decl_needed_putenv = yes; then
6945 cat >>confdefs.h <<\_ACEOF
6946 #define NEED_DECLARATION_PUTENV 1
6947 _ACEOF
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6956 { echo "$as_me:$LINENO: checking whether rand must be declared" >&5
6957 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6; }
6958 ac_ext=cpp
6959 ac_cpp='$CXXCPP $CPPFLAGS'
6960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6964 if test "${groff_cv_decl_needed_rand+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6976 #include <stdio.h>
6977 #ifdef HAVE_STRING_H
6978 #include <string.h>
6979 #endif
6980 #ifdef HAVE_STRINGS_H
6981 #include <strings.h>
6982 #endif
6983 #ifdef HAVE_STDLIB_H
6984 #include <stdlib.h>
6985 #endif
6986 #ifdef HAVE_SYS_TIME_H
6987 #include <sys/time.h>
6988 #endif
6989 #ifdef HAVE_UNISTD_H
6990 #include <unistd.h>
6991 #endif
6992 #ifdef HAVE_MATH_H
6993 #include <math.h>
6994 #endif
6998 main ()
7002 #ifndef rand
7003 char *p = (char *) rand;
7004 #endif
7008 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_cxx_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 groff_cv_decl_needed_rand=no
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 groff_cv_decl_needed_rand=yes
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7041 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6; }
7042 if test $groff_cv_decl_needed_rand = yes; then
7044 cat >>confdefs.h <<\_ACEOF
7045 #define NEED_DECLARATION_RAND 1
7046 _ACEOF
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 { echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7056 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6; }
7057 ac_ext=cpp
7058 ac_cpp='$CXXCPP $CPPFLAGS'
7059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7063 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7075 #include <stdio.h>
7076 #ifdef HAVE_STRING_H
7077 #include <string.h>
7078 #endif
7079 #ifdef HAVE_STRINGS_H
7080 #include <strings.h>
7081 #endif
7082 #ifdef HAVE_STDLIB_H
7083 #include <stdlib.h>
7084 #endif
7085 #ifdef HAVE_SYS_TIME_H
7086 #include <sys/time.h>
7087 #endif
7088 #ifdef HAVE_UNISTD_H
7089 #include <unistd.h>
7090 #endif
7091 #ifdef HAVE_MATH_H
7092 #include <math.h>
7093 #endif
7097 main ()
7101 #ifndef snprintf
7102 char *p = (char *) snprintf;
7103 #endif
7107 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_cxx_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 groff_cv_decl_needed_snprintf=no
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 groff_cv_decl_needed_snprintf=yes
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7140 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6; }
7141 if test $groff_cv_decl_needed_snprintf = yes; then
7143 cat >>confdefs.h <<\_ACEOF
7144 #define NEED_DECLARATION_SNPRINTF 1
7145 _ACEOF
7148 ac_ext=c
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154 { echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7155 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6; }
7156 ac_ext=cpp
7157 ac_cpp='$CXXCPP $CPPFLAGS'
7158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7162 if test "${groff_cv_decl_needed_srand+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7174 #include <stdio.h>
7175 #ifdef HAVE_STRING_H
7176 #include <string.h>
7177 #endif
7178 #ifdef HAVE_STRINGS_H
7179 #include <strings.h>
7180 #endif
7181 #ifdef HAVE_STDLIB_H
7182 #include <stdlib.h>
7183 #endif
7184 #ifdef HAVE_SYS_TIME_H
7185 #include <sys/time.h>
7186 #endif
7187 #ifdef HAVE_UNISTD_H
7188 #include <unistd.h>
7189 #endif
7190 #ifdef HAVE_MATH_H
7191 #include <math.h>
7192 #endif
7196 main ()
7200 #ifndef srand
7201 char *p = (char *) srand;
7202 #endif
7206 return 0;
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_cxx_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 groff_cv_decl_needed_srand=no
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 groff_cv_decl_needed_srand=yes
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7239 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6; }
7240 if test $groff_cv_decl_needed_srand = yes; then
7242 cat >>confdefs.h <<\_ACEOF
7243 #define NEED_DECLARATION_SRAND 1
7244 _ACEOF
7247 ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253 { echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7254 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6; }
7255 ac_ext=cpp
7256 ac_cpp='$CXXCPP $CPPFLAGS'
7257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7261 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7273 #include <stdio.h>
7274 #ifdef HAVE_STRING_H
7275 #include <string.h>
7276 #endif
7277 #ifdef HAVE_STRINGS_H
7278 #include <strings.h>
7279 #endif
7280 #ifdef HAVE_STDLIB_H
7281 #include <stdlib.h>
7282 #endif
7283 #ifdef HAVE_SYS_TIME_H
7284 #include <sys/time.h>
7285 #endif
7286 #ifdef HAVE_UNISTD_H
7287 #include <unistd.h>
7288 #endif
7289 #ifdef HAVE_MATH_H
7290 #include <math.h>
7291 #endif
7295 main ()
7299 #ifndef strcasecmp
7300 char *p = (char *) strcasecmp;
7301 #endif
7305 return 0;
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7311 case "(($ac_try" in
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_cxx_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7326 groff_cv_decl_needed_strcasecmp=no
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 groff_cv_decl_needed_strcasecmp=yes
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7338 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6; }
7339 if test $groff_cv_decl_needed_strcasecmp = yes; then
7341 cat >>confdefs.h <<\_ACEOF
7342 #define NEED_DECLARATION_STRCASECMP 1
7343 _ACEOF
7346 ac_ext=c
7347 ac_cpp='$CPP $CPPFLAGS'
7348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352 { echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7353 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6; }
7354 ac_ext=cpp
7355 ac_cpp='$CXXCPP $CPPFLAGS'
7356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7360 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7372 #include <stdio.h>
7373 #ifdef HAVE_STRING_H
7374 #include <string.h>
7375 #endif
7376 #ifdef HAVE_STRINGS_H
7377 #include <strings.h>
7378 #endif
7379 #ifdef HAVE_STDLIB_H
7380 #include <stdlib.h>
7381 #endif
7382 #ifdef HAVE_SYS_TIME_H
7383 #include <sys/time.h>
7384 #endif
7385 #ifdef HAVE_UNISTD_H
7386 #include <unistd.h>
7387 #endif
7388 #ifdef HAVE_MATH_H
7389 #include <math.h>
7390 #endif
7394 main ()
7398 #ifndef strncasecmp
7399 char *p = (char *) strncasecmp;
7400 #endif
7404 return 0;
7407 _ACEOF
7408 rm -f conftest.$ac_objext
7409 if { (ac_try="$ac_compile"
7410 case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413 esac
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_cxx_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
7425 groff_cv_decl_needed_strncasecmp=no
7426 else
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 groff_cv_decl_needed_strncasecmp=yes
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7437 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6; }
7438 if test $groff_cv_decl_needed_strncasecmp = yes; then
7440 cat >>confdefs.h <<\_ACEOF
7441 #define NEED_DECLARATION_STRNCASECMP 1
7442 _ACEOF
7445 ac_ext=c
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451 { echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7452 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6; }
7453 ac_ext=cpp
7454 ac_cpp='$CXXCPP $CPPFLAGS'
7455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7459 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h. */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7471 #include <stdio.h>
7472 #ifdef HAVE_STRING_H
7473 #include <string.h>
7474 #endif
7475 #ifdef HAVE_STRINGS_H
7476 #include <strings.h>
7477 #endif
7478 #ifdef HAVE_STDLIB_H
7479 #include <stdlib.h>
7480 #endif
7481 #ifdef HAVE_SYS_TIME_H
7482 #include <sys/time.h>
7483 #endif
7484 #ifdef HAVE_UNISTD_H
7485 #include <unistd.h>
7486 #endif
7487 #ifdef HAVE_MATH_H
7488 #include <math.h>
7489 #endif
7493 main ()
7497 #ifndef vfprintf
7498 char *p = (char *) vfprintf;
7499 #endif
7503 return 0;
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (ac_try="$ac_compile"
7509 case "(($ac_try" in
7510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7512 esac
7513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_cxx_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7524 groff_cv_decl_needed_vfprintf=no
7525 else
7526 echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 groff_cv_decl_needed_vfprintf=yes
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7536 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6; }
7537 if test $groff_cv_decl_needed_vfprintf = yes; then
7539 cat >>confdefs.h <<\_ACEOF
7540 #define NEED_DECLARATION_VFPRINTF 1
7541 _ACEOF
7544 ac_ext=c
7545 ac_cpp='$CPP $CPPFLAGS'
7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7550 { echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7551 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6; }
7552 ac_ext=cpp
7553 ac_cpp='$CXXCPP $CPPFLAGS'
7554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7558 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7570 #include <stdio.h>
7571 #ifdef HAVE_STRING_H
7572 #include <string.h>
7573 #endif
7574 #ifdef HAVE_STRINGS_H
7575 #include <strings.h>
7576 #endif
7577 #ifdef HAVE_STDLIB_H
7578 #include <stdlib.h>
7579 #endif
7580 #ifdef HAVE_SYS_TIME_H
7581 #include <sys/time.h>
7582 #endif
7583 #ifdef HAVE_UNISTD_H
7584 #include <unistd.h>
7585 #endif
7586 #ifdef HAVE_MATH_H
7587 #include <math.h>
7588 #endif
7592 main ()
7596 #ifndef vsnprintf
7597 char *p = (char *) vsnprintf;
7598 #endif
7602 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7608 case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_cxx_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
7623 groff_cv_decl_needed_vsnprintf=no
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 groff_cv_decl_needed_vsnprintf=yes
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 { echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7635 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6; }
7636 if test $groff_cv_decl_needed_vsnprintf = yes; then
7638 cat >>confdefs.h <<\_ACEOF
7639 #define NEED_DECLARATION_VSNPRINTF 1
7640 _ACEOF
7643 ac_ext=c
7644 ac_cpp='$CPP $CPPFLAGS'
7645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 ac_ext=cpp
7650 ac_cpp='$CXXCPP $CPPFLAGS'
7651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7655 { echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7656 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6; }
7657 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7666 #include <errno.h>
7667 #include <stdio.h>
7668 #include <stdlib.h>
7672 main ()
7676 int k;
7677 k = sys_nerr;
7681 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_cxx_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 { echo "$as_me:$LINENO: result: yes" >&5
7703 echo "${ECHO_T}yes" >&6; }
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_SYS_NERR 1
7707 _ACEOF
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 ac_ext=c
7719 ac_cpp='$CPP $CPPFLAGS'
7720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724 { echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7725 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6; }
7726 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7735 #include <errno.h>
7736 #include <stdio.h>
7737 #include <stdlib.h>
7741 main ()
7745 int k;
7746 k = (int)sys_errlist[0];
7750 return 0;
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7762 ac_status=$?
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7771 { echo "$as_me:$LINENO: result: yes" >&5
7772 echo "${ECHO_T}yes" >&6; }
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_SYS_ERRLIST 1
7776 _ACEOF
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 ac_ext=cpp
7788 ac_cpp='$CXXCPP $CPPFLAGS'
7789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7793 { echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7794 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6; }
7795 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7804 #include <osfcn.h>
7808 main ()
7812 read(0, 0, 0);
7813 open(0, 0);
7817 return 0;
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (ac_try="$ac_compile"
7823 case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_cxx_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest.$ac_objext; then
7838 { echo "$as_me:$LINENO: result: yes" >&5
7839 echo "${ECHO_T}yes" >&6; }
7841 cat >>confdefs.h <<\_ACEOF
7842 #define HAVE_CC_OSFCN_H 1
7843 _ACEOF
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 { echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6; }
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 ac_ext=c
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860 ac_ext=cpp
7861 ac_cpp='$CXXCPP $CPPFLAGS'
7862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7866 { echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7867 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6; }
7868 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7877 #include <limits.h>
7881 main ()
7885 int x = INT_MIN;
7886 int y = INT_MAX;
7887 int z = UCHAR_MAX;
7891 return 0;
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_cxx_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7912 { echo "$as_me:$LINENO: result: yes" >&5
7913 echo "${ECHO_T}yes" >&6; }
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_CC_LIMITS_H 1
7917 _ACEOF
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 ac_ext=c
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 ac_ext=cpp
7935 ac_cpp='$CXXCPP $CPPFLAGS'
7936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7940 { echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
7941 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6; }
7942 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7951 #include <sys/types.h>
7952 #include <inttypes.h>
7956 main ()
7960 uintmax_t i = (uintmax_t)-1;
7964 return 0;
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7970 case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_cxx_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 groff_cv_header_inttypes_h=yes
7987 cat >>confdefs.h <<\_ACEOF
7988 #define HAVE_CC_INTTYPES_H 1
7989 _ACEOF
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 groff_cv_header_inttypes_h=no
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 { echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8000 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6; }
8001 ac_ext=c
8002 ac_cpp='$CPP $CPPFLAGS'
8003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008 # checks for typedefs
8009 ac_ext=cpp
8010 ac_cpp='$CXXCPP $CPPFLAGS'
8011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8015 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8016 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8017 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8026 unsigned long long ull = 1;
8027 int i = 63;
8028 unsigned long long ullmax = (unsigned long long)-1;
8032 main ()
8036 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8040 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (ac_try="$ac_link"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_link") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_cxx_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest$ac_exeext &&
8061 $as_test_x conftest$ac_exeext; then
8062 groff_cv_type_unsigned_long_long=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8067 groff_cv_type_unsigned_long_long=no
8070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8071 conftest$ac_exeext conftest.$ac_ext
8072 { echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8073 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6; }
8074 ac_ext=c
8075 ac_cpp='$CPP $CPPFLAGS'
8076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8081 if test $groff_cv_header_inttypes_h = no; then
8083 test $groff_cv_type_unsigned_long_long = yes \
8084 && ac_type='unsigned long long' \
8085 || ac_type='unsigned long'
8087 cat >>confdefs.h <<_ACEOF
8088 #define uintmax_t $ac_type
8089 _ACEOF
8092 ac_ext=cpp
8093 ac_cpp='$CXXCPP $CPPFLAGS'
8094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8098 { echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8099 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6; }
8100 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h. */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8109 #include <time.h>
8113 main ()
8117 time_t t = time(0);
8118 struct tm *p = localtime(&t);
8122 return 0;
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (ac_try="$ac_compile"
8128 case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_compile") 2>conftest.er1
8134 ac_status=$?
8135 grep -v '^ *+' conftest.er1 >conftest.err
8136 rm -f conftest.er1
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && {
8140 test -z "$ac_cxx_werror_flag" ||
8141 test ! -s conftest.err
8142 } && test -s conftest.$ac_objext; then
8143 { echo "$as_me:$LINENO: result: yes" >&5
8144 echo "${ECHO_T}yes" >&6; }
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 { echo "$as_me:$LINENO: result: no" >&5
8150 echo "${ECHO_T}no" >&6; }
8152 cat >>confdefs.h <<\_ACEOF
8153 #define LONG_FOR_TIME_T 1
8154 _ACEOF
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 ac_ext=c
8160 ac_cpp='$CPP $CPPFLAGS'
8161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165 { echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8166 echo $ECHO_N "checking for return type of signal handlers... $ECHO_C" >&6; }
8167 for groff_declaration in \
8168 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8169 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8170 'void (*signal ()) ();'
8172 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8181 #include <sys/types.h>
8182 #include <signal.h>
8183 #ifdef signal
8184 # undef signal
8185 #endif
8186 $groff_declaration
8190 main ()
8194 int i;
8198 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 break
8220 else
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 continue
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 done
8230 if test -n "$groff_declaration"; then
8231 { echo "$as_me:$LINENO: result: void" >&5
8232 echo "${ECHO_T}void" >&6; }
8234 cat >>confdefs.h <<\_ACEOF
8235 #define RETSIGTYPE void
8236 _ACEOF
8238 else
8239 { echo "$as_me:$LINENO: result: int" >&5
8240 echo "${ECHO_T}int" >&6; }
8242 cat >>confdefs.h <<\_ACEOF
8243 #define RETSIGTYPE int
8244 _ACEOF
8247 { echo "$as_me:$LINENO: checking struct exception" >&5
8248 echo $ECHO_N "checking struct exception... $ECHO_C" >&6; }
8249 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8258 #include <math.h>
8262 main ()
8266 struct exception e;
8270 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 { echo "$as_me:$LINENO: result: yes" >&5
8292 echo "${ECHO_T}yes" >&6; }
8294 cat >>confdefs.h <<\_ACEOF
8295 #define HAVE_STRUCT_EXCEPTION 1
8296 _ACEOF
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 { echo "$as_me:$LINENO: result: no" >&5
8303 echo "${ECHO_T}no" >&6; }
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 # check endianness
8309 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8310 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
8311 if test "${ac_cv_c_bigendian+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 # See if sys/param.h defines the BYTE_ORDER macro.
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 #include <sys/types.h>
8322 #include <sys/param.h>
8325 main ()
8327 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
8328 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
8329 bogus endian macros
8330 #endif
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest.$ac_objext; then
8353 # It does; now see whether it defined to BIG_ENDIAN or not.
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 #include <sys/types.h>
8361 #include <sys/param.h>
8364 main ()
8366 #if BYTE_ORDER != BIG_ENDIAN
8367 not big endian
8368 #endif
8371 return 0;
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8376 case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 ac_cv_c_bigendian=yes
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_cv_c_bigendian=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8404 # It does not; compile a test program.
8405 if test "$cross_compiling" = yes; then
8406 # try to guess the endianness by grepping values into an object file
8407 ac_cv_c_bigendian=unknown
8408 cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h. */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h. */
8414 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8415 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8416 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8417 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8418 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8419 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8421 main ()
8423 _ascii (); _ebcdic ();
8425 return 0;
8427 _ACEOF
8428 rm -f conftest.$ac_objext
8429 if { (ac_try="$ac_compile"
8430 case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8446 ac_cv_c_bigendian=yes
8448 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8449 if test "$ac_cv_c_bigendian" = unknown; then
8450 ac_cv_c_bigendian=no
8451 else
8452 # finding both strings is unlikely to happen, but who knows?
8453 ac_cv_c_bigendian=unknown
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 else
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h. */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8473 main ()
8476 /* Are we little or big endian? From Harbison&Steele. */
8477 union
8479 long int l;
8480 char c[sizeof (long int)];
8481 } u;
8482 u.l = 1;
8483 return u.c[sizeof (long int) - 1] == 1;
8486 return 0;
8488 _ACEOF
8489 rm -f conftest$ac_exeext
8490 if { (ac_try="$ac_link"
8491 case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_link") 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_c_bigendian=no
8510 else
8511 echo "$as_me: program exited with status $ac_status" >&5
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ( exit $ac_status )
8516 ac_cv_c_bigendian=yes
8518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8527 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
8528 case $ac_cv_c_bigendian in
8529 yes)
8531 cat >>confdefs.h <<\_ACEOF
8532 #define WORDS_BIGENDIAN 1
8533 _ACEOF
8538 { { echo "$as_me:$LINENO: error: unknown endianness
8539 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8540 echo "$as_me: error: unknown endianness
8541 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8542 { (exit 1); exit 1; }; } ;;
8543 esac
8546 # checks for libraries
8547 { echo "$as_me:$LINENO: checking for main in -lc" >&5
8548 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6; }
8549 if test "${ac_cv_lib_c_main+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552 ac_check_lib_save_LIBS=$LIBS
8553 LIBS="-lc $LIBS"
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8563 main ()
8565 return main ();
8567 return 0;
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (ac_try="$ac_link"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_link") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest$ac_exeext &&
8587 $as_test_x conftest$ac_exeext; then
8588 ac_cv_lib_c_main=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_cv_lib_c_main=no
8596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8600 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8601 echo "${ECHO_T}$ac_cv_lib_c_main" >&6; }
8602 if test $ac_cv_lib_c_main = yes; then
8603 LIBC=-lc
8607 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8608 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8609 if test "${ac_cv_lib_m_sin+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612 ac_check_lib_save_LIBS=$LIBS
8613 LIBS="-lm $LIBS"
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. */
8621 /* Override any GCC internal prototype to avoid an error.
8622 Use char because int might match the return type of a GCC
8623 builtin and then its argument prototype would still apply. */
8624 #ifdef __cplusplus
8625 extern "C"
8626 #endif
8627 char sin ();
8629 main ()
8631 return sin ();
8633 return 0;
8635 _ACEOF
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (ac_try="$ac_link"
8638 case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_link") 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest$ac_exeext &&
8653 $as_test_x conftest$ac_exeext; then
8654 ac_cv_lib_m_sin=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_lib_m_sin=no
8662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8663 conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8666 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8667 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8668 if test $ac_cv_lib_m_sin = yes; then
8669 LIBM=-lm
8673 # Make sure we can run config.sub.
8674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8675 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8677 { (exit 1); exit 1; }; }
8679 { echo "$as_me:$LINENO: checking build system type" >&5
8680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8681 if test "${ac_cv_build+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 ac_build_alias=$build_alias
8685 test "x$ac_build_alias" = x &&
8686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8687 test "x$ac_build_alias" = x &&
8688 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8690 { (exit 1); exit 1; }; }
8691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8692 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8694 { (exit 1); exit 1; }; }
8697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8698 echo "${ECHO_T}$ac_cv_build" >&6; }
8699 case $ac_cv_build in
8700 *-*-*) ;;
8701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8702 echo "$as_me: error: invalid value of canonical build" >&2;}
8703 { (exit 1); exit 1; }; };;
8704 esac
8705 build=$ac_cv_build
8706 ac_save_IFS=$IFS; IFS='-'
8707 set x $ac_cv_build
8708 shift
8709 build_cpu=$1
8710 build_vendor=$2
8711 shift; shift
8712 # Remember, the first character of IFS is used to create $*,
8713 # except with old shells:
8714 build_os=$*
8715 IFS=$ac_save_IFS
8716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8719 { echo "$as_me:$LINENO: checking host system type" >&5
8720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8721 if test "${ac_cv_host+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724 if test "x$host_alias" = x; then
8725 ac_cv_host=$ac_cv_build
8726 else
8727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8728 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8730 { (exit 1); exit 1; }; }
8734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8735 echo "${ECHO_T}$ac_cv_host" >&6; }
8736 case $ac_cv_host in
8737 *-*-*) ;;
8738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8739 echo "$as_me: error: invalid value of canonical host" >&2;}
8740 { (exit 1); exit 1; }; };;
8741 esac
8742 host=$ac_cv_host
8743 ac_save_IFS=$IFS; IFS='-'
8744 set x $ac_cv_host
8745 shift
8746 host_cpu=$1
8747 host_vendor=$2
8748 shift; shift
8749 # Remember, the first character of IFS is used to create $*,
8750 # except with old shells:
8751 host_os=$*
8752 IFS=$ac_save_IFS
8753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8757 if test "X$prefix" = "XNONE"; then
8758 acl_final_prefix="$ac_default_prefix"
8759 else
8760 acl_final_prefix="$prefix"
8762 if test "X$exec_prefix" = "XNONE"; then
8763 acl_final_exec_prefix='${prefix}'
8764 else
8765 acl_final_exec_prefix="$exec_prefix"
8767 acl_save_prefix="$prefix"
8768 prefix="$acl_final_prefix"
8769 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8770 prefix="$acl_save_prefix"
8773 # Check whether --with-gnu-ld was given.
8774 if test "${with_gnu_ld+set}" = set; then
8775 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8776 else
8777 with_gnu_ld=no
8780 # Prepare PATH_SEPARATOR.
8781 # The user is always right.
8782 if test "${PATH_SEPARATOR+set}" != set; then
8783 echo "#! /bin/sh" >conf$$.sh
8784 echo "exit 0" >>conf$$.sh
8785 chmod +x conf$$.sh
8786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8787 PATH_SEPARATOR=';'
8788 else
8789 PATH_SEPARATOR=:
8791 rm -f conf$$.sh
8793 ac_prog=ld
8794 if test "$GCC" = yes; then
8795 # Check if gcc -print-prog-name=ld gives a path.
8796 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8797 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8798 case $host in
8799 *-*-mingw*)
8800 # gcc leaves a trailing carriage return which upsets mingw
8801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8804 esac
8805 case $ac_prog in
8806 # Accept absolute paths.
8807 [\\/]* | [A-Za-z]:[\\/]*)
8808 re_direlt='/[^/][^/]*/\.\./'
8809 # Canonicalize the path of ld
8810 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8812 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8813 done
8814 test -z "$LD" && LD="$ac_prog"
8817 # If it fails, then pretend we aren't using GCC.
8818 ac_prog=ld
8821 # If it is relative, then search for the first ld in PATH.
8822 with_gnu_ld=unknown
8824 esac
8825 elif test "$with_gnu_ld" = yes; then
8826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8827 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8828 else
8829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8830 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8832 if test "${acl_cv_path_LD+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835 if test -z "$LD"; then
8836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8837 for ac_dir in $PATH; do
8838 test -z "$ac_dir" && ac_dir=.
8839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8840 acl_cv_path_LD="$ac_dir/$ac_prog"
8841 # Check to see if the program is GNU ld. I'd rather use --version,
8842 # but apparently some GNU ld's only accept -v.
8843 # Break only if it was the GNU/non-GNU ld that we prefer.
8844 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8845 *GNU* | *'with BFD'*)
8846 test "$with_gnu_ld" != no && break ;;
8848 test "$with_gnu_ld" != yes && break ;;
8849 esac
8851 done
8852 IFS="$ac_save_ifs"
8853 else
8854 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8858 LD="$acl_cv_path_LD"
8859 if test -n "$LD"; then
8860 { echo "$as_me:$LINENO: result: $LD" >&5
8861 echo "${ECHO_T}$LD" >&6; }
8862 else
8863 { echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6; }
8866 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8867 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8868 { (exit 1); exit 1; }; }
8869 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8870 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8871 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8875 case `$LD -v 2>&1 </dev/null` in
8876 *GNU* | *'with BFD'*)
8877 acl_cv_prog_gnu_ld=yes ;;
8879 acl_cv_prog_gnu_ld=no ;;
8880 esac
8882 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8883 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8884 with_gnu_ld=$acl_cv_prog_gnu_ld
8889 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8890 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8891 if test "${acl_cv_rpath+set}" = set; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8895 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8896 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8897 . ./conftest.sh
8898 rm -f ./conftest.sh
8899 acl_cv_rpath=done
8902 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8903 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8904 wl="$acl_cv_wl"
8905 acl_libext="$acl_cv_libext"
8906 acl_shlibext="$acl_cv_shlibext"
8907 acl_libname_spec="$acl_cv_libname_spec"
8908 acl_library_names_spec="$acl_cv_library_names_spec"
8909 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8910 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8911 acl_hardcode_direct="$acl_cv_hardcode_direct"
8912 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8913 # Check whether --enable-rpath was given.
8914 if test "${enable_rpath+set}" = set; then
8915 enableval=$enable_rpath; :
8916 else
8917 enable_rpath=yes
8922 acl_libdirstem=lib
8923 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8924 if test -n "$searchpath"; then
8925 acl_save_IFS="${IFS= }"; IFS=":"
8926 for searchdir in $searchpath; do
8927 if test -d "$searchdir"; then
8928 case "$searchdir" in
8929 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
8930 *) searchdir=`cd "$searchdir" && pwd`
8931 case "$searchdir" in
8932 */lib64 ) acl_libdirstem=lib64 ;;
8933 esac ;;
8934 esac
8936 done
8937 IFS="$acl_save_IFS"
8948 use_additional=yes
8950 acl_save_prefix="$prefix"
8951 prefix="$acl_final_prefix"
8952 acl_save_exec_prefix="$exec_prefix"
8953 exec_prefix="$acl_final_exec_prefix"
8955 eval additional_includedir=\"$includedir\"
8956 eval additional_libdir=\"$libdir\"
8958 exec_prefix="$acl_save_exec_prefix"
8959 prefix="$acl_save_prefix"
8962 # Check whether --with-libiconv-prefix was given.
8963 if test "${with_libiconv_prefix+set}" = set; then
8964 withval=$with_libiconv_prefix;
8965 if test "X$withval" = "Xno"; then
8966 use_additional=no
8967 else
8968 if test "X$withval" = "X"; then
8970 acl_save_prefix="$prefix"
8971 prefix="$acl_final_prefix"
8972 acl_save_exec_prefix="$exec_prefix"
8973 exec_prefix="$acl_final_exec_prefix"
8975 eval additional_includedir=\"$includedir\"
8976 eval additional_libdir=\"$libdir\"
8978 exec_prefix="$acl_save_exec_prefix"
8979 prefix="$acl_save_prefix"
8981 else
8982 additional_includedir="$withval/include"
8983 additional_libdir="$withval/$acl_libdirstem"
8989 LIBICONV=
8990 LTLIBICONV=
8991 INCICONV=
8992 LIBICONV_PREFIX=
8993 rpathdirs=
8994 ltrpathdirs=
8995 names_already_handled=
8996 names_next_round='iconv '
8997 while test -n "$names_next_round"; do
8998 names_this_round="$names_next_round"
8999 names_next_round=
9000 for name in $names_this_round; do
9001 already_handled=
9002 for n in $names_already_handled; do
9003 if test "$n" = "$name"; then
9004 already_handled=yes
9005 break
9007 done
9008 if test -z "$already_handled"; then
9009 names_already_handled="$names_already_handled $name"
9010 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9011 eval value=\"\$HAVE_LIB$uppername\"
9012 if test -n "$value"; then
9013 if test "$value" = yes; then
9014 eval value=\"\$LIB$uppername\"
9015 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9016 eval value=\"\$LTLIB$uppername\"
9017 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9018 else
9021 else
9022 found_dir=
9023 found_la=
9024 found_so=
9025 found_a=
9026 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9027 if test -n "$acl_shlibext"; then
9028 shrext=".$acl_shlibext" # typically: shrext=.so
9029 else
9030 shrext=
9032 if test $use_additional = yes; then
9033 dir="$additional_libdir"
9034 if test -n "$acl_shlibext"; then
9035 if test -f "$dir/$libname$shrext"; then
9036 found_dir="$dir"
9037 found_so="$dir/$libname$shrext"
9038 else
9039 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9040 ver=`(cd "$dir" && \
9041 for f in "$libname$shrext".*; do echo "$f"; done \
9042 | sed -e "s,^$libname$shrext\\\\.,," \
9043 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9044 | sed 1q ) 2>/dev/null`
9045 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9046 found_dir="$dir"
9047 found_so="$dir/$libname$shrext.$ver"
9049 else
9050 eval library_names=\"$acl_library_names_spec\"
9051 for f in $library_names; do
9052 if test -f "$dir/$f"; then
9053 found_dir="$dir"
9054 found_so="$dir/$f"
9055 break
9057 done
9061 if test "X$found_dir" = "X"; then
9062 if test -f "$dir/$libname.$acl_libext"; then
9063 found_dir="$dir"
9064 found_a="$dir/$libname.$acl_libext"
9067 if test "X$found_dir" != "X"; then
9068 if test -f "$dir/$libname.la"; then
9069 found_la="$dir/$libname.la"
9073 if test "X$found_dir" = "X"; then
9074 for x in $LDFLAGS $LTLIBICONV; do
9076 acl_save_prefix="$prefix"
9077 prefix="$acl_final_prefix"
9078 acl_save_exec_prefix="$exec_prefix"
9079 exec_prefix="$acl_final_exec_prefix"
9080 eval x=\"$x\"
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9084 case "$x" in
9085 -L*)
9086 dir=`echo "X$x" | sed -e 's/^X-L//'`
9087 if test -n "$acl_shlibext"; then
9088 if test -f "$dir/$libname$shrext"; then
9089 found_dir="$dir"
9090 found_so="$dir/$libname$shrext"
9091 else
9092 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9093 ver=`(cd "$dir" && \
9094 for f in "$libname$shrext".*; do echo "$f"; done \
9095 | sed -e "s,^$libname$shrext\\\\.,," \
9096 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9097 | sed 1q ) 2>/dev/null`
9098 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9099 found_dir="$dir"
9100 found_so="$dir/$libname$shrext.$ver"
9102 else
9103 eval library_names=\"$acl_library_names_spec\"
9104 for f in $library_names; do
9105 if test -f "$dir/$f"; then
9106 found_dir="$dir"
9107 found_so="$dir/$f"
9108 break
9110 done
9114 if test "X$found_dir" = "X"; then
9115 if test -f "$dir/$libname.$acl_libext"; then
9116 found_dir="$dir"
9117 found_a="$dir/$libname.$acl_libext"
9120 if test "X$found_dir" != "X"; then
9121 if test -f "$dir/$libname.la"; then
9122 found_la="$dir/$libname.la"
9126 esac
9127 if test "X$found_dir" != "X"; then
9128 break
9130 done
9132 if test "X$found_dir" != "X"; then
9133 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9134 if test "X$found_so" != "X"; then
9135 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
9136 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9137 else
9138 haveit=
9139 for x in $ltrpathdirs; do
9140 if test "X$x" = "X$found_dir"; then
9141 haveit=yes
9142 break
9144 done
9145 if test -z "$haveit"; then
9146 ltrpathdirs="$ltrpathdirs $found_dir"
9148 if test "$acl_hardcode_direct" = yes; then
9149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9150 else
9151 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9152 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9153 haveit=
9154 for x in $rpathdirs; do
9155 if test "X$x" = "X$found_dir"; then
9156 haveit=yes
9157 break
9159 done
9160 if test -z "$haveit"; then
9161 rpathdirs="$rpathdirs $found_dir"
9163 else
9164 haveit=
9165 for x in $LDFLAGS $LIBICONV; do
9167 acl_save_prefix="$prefix"
9168 prefix="$acl_final_prefix"
9169 acl_save_exec_prefix="$exec_prefix"
9170 exec_prefix="$acl_final_exec_prefix"
9171 eval x=\"$x\"
9172 exec_prefix="$acl_save_exec_prefix"
9173 prefix="$acl_save_prefix"
9175 if test "X$x" = "X-L$found_dir"; then
9176 haveit=yes
9177 break
9179 done
9180 if test -z "$haveit"; then
9181 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9183 if test "$acl_hardcode_minus_L" != no; then
9184 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9185 else
9186 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9191 else
9192 if test "X$found_a" != "X"; then
9193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9194 else
9195 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9198 additional_includedir=
9199 case "$found_dir" in
9200 */$acl_libdirstem | */$acl_libdirstem/)
9201 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9202 LIBICONV_PREFIX="$basedir"
9203 additional_includedir="$basedir/include"
9205 esac
9206 if test "X$additional_includedir" != "X"; then
9207 if test "X$additional_includedir" != "X/usr/include"; then
9208 haveit=
9209 if test "X$additional_includedir" = "X/usr/local/include"; then
9210 if test -n "$GCC"; then
9211 case $host_os in
9212 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9213 esac
9216 if test -z "$haveit"; then
9217 for x in $CPPFLAGS $INCICONV; do
9219 acl_save_prefix="$prefix"
9220 prefix="$acl_final_prefix"
9221 acl_save_exec_prefix="$exec_prefix"
9222 exec_prefix="$acl_final_exec_prefix"
9223 eval x=\"$x\"
9224 exec_prefix="$acl_save_exec_prefix"
9225 prefix="$acl_save_prefix"
9227 if test "X$x" = "X-I$additional_includedir"; then
9228 haveit=yes
9229 break
9231 done
9232 if test -z "$haveit"; then
9233 if test -d "$additional_includedir"; then
9234 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9240 if test -n "$found_la"; then
9241 save_libdir="$libdir"
9242 case "$found_la" in
9243 */* | *\\*) . "$found_la" ;;
9244 *) . "./$found_la" ;;
9245 esac
9246 libdir="$save_libdir"
9247 for dep in $dependency_libs; do
9248 case "$dep" in
9249 -L*)
9250 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9251 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9252 haveit=
9253 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9254 if test -n "$GCC"; then
9255 case $host_os in
9256 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9257 esac
9260 if test -z "$haveit"; then
9261 haveit=
9262 for x in $LDFLAGS $LIBICONV; do
9264 acl_save_prefix="$prefix"
9265 prefix="$acl_final_prefix"
9266 acl_save_exec_prefix="$exec_prefix"
9267 exec_prefix="$acl_final_exec_prefix"
9268 eval x=\"$x\"
9269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9272 if test "X$x" = "X-L$additional_libdir"; then
9273 haveit=yes
9274 break
9276 done
9277 if test -z "$haveit"; then
9278 if test -d "$additional_libdir"; then
9279 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9282 haveit=
9283 for x in $LDFLAGS $LTLIBICONV; do
9285 acl_save_prefix="$prefix"
9286 prefix="$acl_final_prefix"
9287 acl_save_exec_prefix="$exec_prefix"
9288 exec_prefix="$acl_final_exec_prefix"
9289 eval x=\"$x\"
9290 exec_prefix="$acl_save_exec_prefix"
9291 prefix="$acl_save_prefix"
9293 if test "X$x" = "X-L$additional_libdir"; then
9294 haveit=yes
9295 break
9297 done
9298 if test -z "$haveit"; then
9299 if test -d "$additional_libdir"; then
9300 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9306 -R*)
9307 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9308 if test "$enable_rpath" != no; then
9309 haveit=
9310 for x in $rpathdirs; do
9311 if test "X$x" = "X$dir"; then
9312 haveit=yes
9313 break
9315 done
9316 if test -z "$haveit"; then
9317 rpathdirs="$rpathdirs $dir"
9319 haveit=
9320 for x in $ltrpathdirs; do
9321 if test "X$x" = "X$dir"; then
9322 haveit=yes
9323 break
9325 done
9326 if test -z "$haveit"; then
9327 ltrpathdirs="$ltrpathdirs $dir"
9331 -l*)
9332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9334 *.la)
9335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9338 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9339 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9341 esac
9342 done
9344 else
9345 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9350 done
9351 done
9352 if test "X$rpathdirs" != "X"; then
9353 if test -n "$acl_hardcode_libdir_separator"; then
9354 alldirs=
9355 for found_dir in $rpathdirs; do
9356 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9357 done
9358 acl_save_libdir="$libdir"
9359 libdir="$alldirs"
9360 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9361 libdir="$acl_save_libdir"
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9363 else
9364 for found_dir in $rpathdirs; do
9365 acl_save_libdir="$libdir"
9366 libdir="$found_dir"
9367 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9368 libdir="$acl_save_libdir"
9369 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9370 done
9373 if test "X$ltrpathdirs" != "X"; then
9374 for found_dir in $ltrpathdirs; do
9375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9376 done
9385 am_save_CPPFLAGS="$CPPFLAGS"
9387 for element in $INCICONV; do
9388 haveit=
9389 for x in $CPPFLAGS; do
9391 acl_save_prefix="$prefix"
9392 prefix="$acl_final_prefix"
9393 acl_save_exec_prefix="$exec_prefix"
9394 exec_prefix="$acl_final_exec_prefix"
9395 eval x=\"$x\"
9396 exec_prefix="$acl_save_exec_prefix"
9397 prefix="$acl_save_prefix"
9399 if test "X$x" = "X$element"; then
9400 haveit=yes
9401 break
9403 done
9404 if test -z "$haveit"; then
9405 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9407 done
9410 { echo "$as_me:$LINENO: checking for iconv" >&5
9411 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9412 if test "${am_cv_func_iconv+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9416 am_cv_func_iconv="no, consider installing GNU libiconv"
9417 am_cv_lib_iconv=no
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 #include <stdlib.h>
9425 #include <iconv.h>
9427 main ()
9429 iconv_t cd = iconv_open("","");
9430 iconv(cd,NULL,NULL,NULL,NULL);
9431 iconv_close(cd);
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (ac_try="$ac_link"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_link") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest$ac_exeext &&
9453 $as_test_x conftest$ac_exeext; then
9454 am_cv_func_iconv=yes
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463 conftest$ac_exeext conftest.$ac_ext
9464 if test "$am_cv_func_iconv" != yes; then
9465 am_save_LIBS="$LIBS"
9466 LIBS="$LIBS $LIBICONV"
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 #include <stdlib.h>
9474 #include <iconv.h>
9476 main ()
9478 iconv_t cd = iconv_open("","");
9479 iconv(cd,NULL,NULL,NULL,NULL);
9480 iconv_close(cd);
9482 return 0;
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9487 case "(($ac_try" in
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest$ac_exeext &&
9502 $as_test_x conftest$ac_exeext; then
9503 am_cv_lib_iconv=yes
9504 am_cv_func_iconv=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LIBS="$am_save_LIBS"
9518 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9519 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9520 if test "$am_cv_func_iconv" = yes; then
9521 { echo "$as_me:$LINENO: checking for working iconv" >&5
9522 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
9523 if test "${am_cv_func_iconv_works+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9527 am_save_LIBS="$LIBS"
9528 if test $am_cv_lib_iconv = yes; then
9529 LIBS="$LIBS $LIBICONV"
9531 if test "$cross_compiling" = yes; then
9532 case "$host_os" in
9533 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9534 *) am_cv_func_iconv_works="guessing yes" ;;
9535 esac
9536 else
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 #include <iconv.h>
9545 #include <string.h>
9546 int main ()
9548 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9549 returns. */
9551 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9552 if (cd_utf8_to_88591 != (iconv_t)(-1))
9554 static const char input[] = "\342\202\254"; /* EURO SIGN */
9555 char buf[10];
9556 const char *inptr = input;
9557 size_t inbytesleft = strlen (input);
9558 char *outptr = buf;
9559 size_t outbytesleft = sizeof (buf);
9560 size_t res = iconv (cd_utf8_to_88591,
9561 (char **) &inptr, &inbytesleft,
9562 &outptr, &outbytesleft);
9563 if (res == 0)
9564 return 1;
9567 #if 0 /* This bug could be worked around by the caller. */
9568 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9570 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9571 if (cd_88591_to_utf8 != (iconv_t)(-1))
9573 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9574 char buf[50];
9575 const char *inptr = input;
9576 size_t inbytesleft = strlen (input);
9577 char *outptr = buf;
9578 size_t outbytesleft = sizeof (buf);
9579 size_t res = iconv (cd_88591_to_utf8,
9580 (char **) &inptr, &inbytesleft,
9581 &outptr, &outbytesleft);
9582 if ((int)res > 0)
9583 return 1;
9586 #endif
9587 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9588 provided. */
9589 if (/* Try standardized names. */
9590 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9591 /* Try IRIX, OSF/1 names. */
9592 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9593 /* Try AIX names. */
9594 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9595 /* Try HP-UX names. */
9596 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9597 return 1;
9598 return 0;
9600 _ACEOF
9601 rm -f conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 am_cv_func_iconv_works=yes
9622 else
9623 echo "$as_me: program exited with status $ac_status" >&5
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ( exit $ac_status )
9628 am_cv_func_iconv_works=no
9630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 LIBS="$am_save_LIBS"
9637 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
9638 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
9639 case "$am_cv_func_iconv_works" in
9640 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9641 *) am_func_iconv=yes ;;
9642 esac
9643 else
9644 am_func_iconv=no am_cv_lib_iconv=no
9646 if test "$am_func_iconv" = yes; then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define HAVE_ICONV 1
9650 _ACEOF
9653 if test "$am_cv_lib_iconv" = yes; then
9654 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9655 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9656 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9657 echo "${ECHO_T}$LIBICONV" >&6; }
9658 else
9659 CPPFLAGS="$am_save_CPPFLAGS"
9660 LIBICONV=
9661 LTLIBICONV=
9666 if test "$am_cv_func_iconv" = yes; then
9667 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9668 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9669 if test "${am_cv_proto_iconv+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9680 #include <stdlib.h>
9681 #include <iconv.h>
9682 extern
9683 #ifdef __cplusplus
9685 #endif
9686 #if defined(__STDC__) || defined(__cplusplus)
9687 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9688 #else
9689 size_t iconv();
9690 #endif
9693 main ()
9697 return 0;
9699 _ACEOF
9700 rm -f conftest.$ac_objext
9701 if { (ac_try="$ac_compile"
9702 case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_compile") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest.$ac_objext; then
9717 am_cv_proto_iconv_arg1=""
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 am_cv_proto_iconv_arg1="const"
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9729 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9730 { echo "$as_me:$LINENO: result: ${ac_t:-
9731 }$am_cv_proto_iconv" >&5
9732 echo "${ECHO_T}${ac_t:-
9733 }$am_cv_proto_iconv" >&6; }
9735 cat >>confdefs.h <<_ACEOF
9736 #define ICONV_CONST $am_cv_proto_iconv_arg1
9737 _ACEOF
9742 # checks for functions
9745 for ac_header in stdlib.h unistd.h
9747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 ac_res=`eval echo '${'$as_ac_Header'}'`
9755 { echo "$as_me:$LINENO: result: $ac_res" >&5
9756 echo "${ECHO_T}$ac_res" >&6; }
9757 else
9758 # Is the header compilable?
9759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 #include <$ac_header>
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_compile") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest.$ac_objext; then
9787 ac_header_compiler=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 ac_header_compiler=no
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9797 echo "${ECHO_T}$ac_header_compiler" >&6; }
9799 # Is the header present?
9800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 #include <$ac_header>
9809 _ACEOF
9810 if { (ac_try="$ac_cpp conftest.$ac_ext"
9811 case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } >/dev/null && {
9823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 }; then
9826 ac_header_preproc=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 ac_header_preproc=no
9834 rm -f conftest.err conftest.$ac_ext
9835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9836 echo "${ECHO_T}$ac_header_preproc" >&6; }
9838 # So? What about this header?
9839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9840 yes:no: )
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9845 ac_header_preproc=yes
9847 no:yes:* )
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9862 esac
9863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 eval "$as_ac_Header=\$ac_header_preproc"
9870 ac_res=`eval echo '${'$as_ac_Header'}'`
9871 { echo "$as_me:$LINENO: result: $ac_res" >&5
9872 echo "${ECHO_T}$ac_res" >&6; }
9875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9876 cat >>confdefs.h <<_ACEOF
9877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9878 _ACEOF
9882 done
9885 for ac_func in getpagesize
9887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 #define $ac_func innocuous_$ac_func
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char $ac_func (); below.
9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 <limits.h> exists even on freestanding compilers. */
9908 #ifdef __STDC__
9909 # include <limits.h>
9910 #else
9911 # include <assert.h>
9912 #endif
9914 #undef $ac_func
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char $ac_func ();
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined __stub_$ac_func || defined __stub___$ac_func
9927 choke me
9928 #endif
9931 main ()
9933 return $ac_func ();
9935 return 0;
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 eval "$as_ac_var=yes"
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 eval "$as_ac_var=no"
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9967 ac_res=`eval echo '${'$as_ac_var'}'`
9968 { echo "$as_me:$LINENO: result: $ac_res" >&5
9969 echo "${ECHO_T}$ac_res" >&6; }
9970 if test `eval echo '${'$as_ac_var'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9973 _ACEOF
9976 done
9978 { echo "$as_me:$LINENO: checking for working mmap" >&5
9979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 if test "$cross_compiling" = yes; then
9984 ac_cv_func_mmap_fixed_mapped=no
9985 else
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 /* malloc might have been renamed as rpl_malloc. */
9994 #undef malloc
9996 /* Thanks to Mike Haertel and Jim Avera for this test.
9997 Here is a matrix of mmap possibilities:
9998 mmap private not fixed
9999 mmap private fixed at somewhere currently unmapped
10000 mmap private fixed at somewhere already mapped
10001 mmap shared not fixed
10002 mmap shared fixed at somewhere currently unmapped
10003 mmap shared fixed at somewhere already mapped
10004 For private mappings, we should verify that changes cannot be read()
10005 back from the file, nor mmap's back from the file at a different
10006 address. (There have been systems where private was not correctly
10007 implemented like the infamous i386 svr4.0, and systems where the
10008 VM page cache was not coherent with the file system buffer cache
10009 like early versions of FreeBSD and possibly contemporary NetBSD.)
10010 For shared mappings, we should conversely verify that changes get
10011 propagated back to all the places they're supposed to be.
10013 Grep wants private fixed already mapped.
10014 The main things grep needs to know about mmap are:
10015 * does it exist and is it safe to write into the mmap'd area
10016 * how to use it (BSD variants) */
10018 #include <fcntl.h>
10019 #include <sys/mman.h>
10021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10022 char *malloc ();
10023 #endif
10025 /* This mess was copied from the GNU getpagesize.h. */
10026 #ifndef HAVE_GETPAGESIZE
10027 /* Assume that all systems that can run configure have sys/param.h. */
10028 # ifndef HAVE_SYS_PARAM_H
10029 # define HAVE_SYS_PARAM_H 1
10030 # endif
10032 # ifdef _SC_PAGESIZE
10033 # define getpagesize() sysconf(_SC_PAGESIZE)
10034 # else /* no _SC_PAGESIZE */
10035 # ifdef HAVE_SYS_PARAM_H
10036 # include <sys/param.h>
10037 # ifdef EXEC_PAGESIZE
10038 # define getpagesize() EXEC_PAGESIZE
10039 # else /* no EXEC_PAGESIZE */
10040 # ifdef NBPG
10041 # define getpagesize() NBPG * CLSIZE
10042 # ifndef CLSIZE
10043 # define CLSIZE 1
10044 # endif /* no CLSIZE */
10045 # else /* no NBPG */
10046 # ifdef NBPC
10047 # define getpagesize() NBPC
10048 # else /* no NBPC */
10049 # ifdef PAGESIZE
10050 # define getpagesize() PAGESIZE
10051 # endif /* PAGESIZE */
10052 # endif /* no NBPC */
10053 # endif /* no NBPG */
10054 # endif /* no EXEC_PAGESIZE */
10055 # else /* no HAVE_SYS_PARAM_H */
10056 # define getpagesize() 8192 /* punt totally */
10057 # endif /* no HAVE_SYS_PARAM_H */
10058 # endif /* no _SC_PAGESIZE */
10060 #endif /* no HAVE_GETPAGESIZE */
10063 main ()
10065 char *data, *data2, *data3;
10066 int i, pagesize;
10067 int fd;
10069 pagesize = getpagesize ();
10071 /* First, make a file with some known garbage in it. */
10072 data = (char *) malloc (pagesize);
10073 if (!data)
10074 return 1;
10075 for (i = 0; i < pagesize; ++i)
10076 *(data + i) = rand ();
10077 umask (0);
10078 fd = creat ("conftest.mmap", 0600);
10079 if (fd < 0)
10080 return 1;
10081 if (write (fd, data, pagesize) != pagesize)
10082 return 1;
10083 close (fd);
10085 /* Next, try to mmap the file at a fixed address which already has
10086 something else allocated at it. If we can, also make sure that
10087 we see the same garbage. */
10088 fd = open ("conftest.mmap", O_RDWR);
10089 if (fd < 0)
10090 return 1;
10091 data2 = (char *) malloc (2 * pagesize);
10092 if (!data2)
10093 return 1;
10094 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10097 return 1;
10098 for (i = 0; i < pagesize; ++i)
10099 if (*(data + i) != *(data2 + i))
10100 return 1;
10102 /* Finally, make sure that changes to the mapped area do not
10103 percolate back to the file as seen by read(). (This is a bug on
10104 some variants of i386 svr4.0.) */
10105 for (i = 0; i < pagesize; ++i)
10106 *(data2 + i) = *(data2 + i) + 1;
10107 data3 = (char *) malloc (pagesize);
10108 if (!data3)
10109 return 1;
10110 if (read (fd, data3, pagesize) != pagesize)
10111 return 1;
10112 for (i = 0; i < pagesize; ++i)
10113 if (*(data + i) != *(data3 + i))
10114 return 1;
10115 close (fd);
10116 return 0;
10118 _ACEOF
10119 rm -f conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func_mmap_fixed_mapped=yes
10140 else
10141 echo "$as_me: program exited with status $ac_status" >&5
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ( exit $ac_status )
10146 ac_cv_func_mmap_fixed_mapped=no
10148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10153 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10154 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10155 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10157 cat >>confdefs.h <<\_ACEOF
10158 #define HAVE_MMAP 1
10159 _ACEOF
10162 rm -f conftest.mmap
10164 saved_libs="$LIBS"
10165 LIBS="$LIBS $LIBC $LIBM"
10174 for ac_func in fmod getcwd putenv snprintf strcasecmp \
10175 strerror strncasecmp strtol
10177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10191 #define $ac_func innocuous_$ac_func
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func (); below.
10195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10196 <limits.h> exists even on freestanding compilers. */
10198 #ifdef __STDC__
10199 # include <limits.h>
10200 #else
10201 # include <assert.h>
10202 #endif
10204 #undef $ac_func
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char $ac_func ();
10213 /* The GNU C library defines this for functions which it implements
10214 to always fail with ENOSYS. Some functions are actually named
10215 something starting with __ and the normal name is an alias. */
10216 #if defined __stub_$ac_func || defined __stub___$ac_func
10217 choke me
10218 #endif
10221 main ()
10223 return $ac_func ();
10225 return 0;
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 eval "$as_ac_var=yes"
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 eval "$as_ac_var=no"
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10257 ac_res=`eval echo '${'$as_ac_var'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259 echo "${ECHO_T}$ac_res" >&6; }
10260 if test `eval echo '${'$as_ac_var'}'` = yes; then
10261 cat >>confdefs.h <<_ACEOF
10262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10263 _ACEOF
10265 else
10266 case " $LIBOBJS " in
10267 *" $ac_func.$ac_objext "* ) ;;
10268 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10270 esac
10273 done
10276 # vsnprintf is in the same source file as snprintf
10278 for ac_func in vsnprintf
10280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294 #define $ac_func innocuous_$ac_func
10296 /* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char $ac_func (); below.
10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299 <limits.h> exists even on freestanding compilers. */
10301 #ifdef __STDC__
10302 # include <limits.h>
10303 #else
10304 # include <assert.h>
10305 #endif
10307 #undef $ac_func
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char $ac_func ();
10316 /* The GNU C library defines this for functions which it implements
10317 to always fail with ENOSYS. Some functions are actually named
10318 something starting with __ and the normal name is an alias. */
10319 #if defined __stub_$ac_func || defined __stub___$ac_func
10320 choke me
10321 #endif
10324 main ()
10326 return $ac_func ();
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest$ac_exeext &&
10348 $as_test_x conftest$ac_exeext; then
10349 eval "$as_ac_var=yes"
10350 else
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 eval "$as_ac_var=no"
10357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10358 conftest$ac_exeext conftest.$ac_ext
10360 ac_res=`eval echo '${'$as_ac_var'}'`
10361 { echo "$as_me:$LINENO: result: $ac_res" >&5
10362 echo "${ECHO_T}$ac_res" >&6; }
10363 if test `eval echo '${'$as_ac_var'}'` = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10366 _ACEOF
10368 else
10369 case " $LIBOBJS " in
10370 *" snprintf.$ac_objext "* ) ;;
10371 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
10373 esac
10376 done
10378 LIBS="$saved_libs"
10385 for ac_func in gettimeofday isatty kill rename setlocale strsep
10387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10401 #define $ac_func innocuous_$ac_func
10403 /* System header to define __stub macros and hopefully few prototypes,
10404 which can conflict with char $ac_func (); below.
10405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10406 <limits.h> exists even on freestanding compilers. */
10408 #ifdef __STDC__
10409 # include <limits.h>
10410 #else
10411 # include <assert.h>
10412 #endif
10414 #undef $ac_func
10416 /* Override any GCC internal prototype to avoid an error.
10417 Use char because int might match the return type of a GCC
10418 builtin and then its argument prototype would still apply. */
10419 #ifdef __cplusplus
10420 extern "C"
10421 #endif
10422 char $ac_func ();
10423 /* The GNU C library defines this for functions which it implements
10424 to always fail with ENOSYS. Some functions are actually named
10425 something starting with __ and the normal name is an alias. */
10426 #if defined __stub_$ac_func || defined __stub___$ac_func
10427 choke me
10428 #endif
10431 main ()
10433 return $ac_func ();
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
10456 eval "$as_ac_var=yes"
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 eval "$as_ac_var=no"
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10467 ac_res=`eval echo '${'$as_ac_var'}'`
10468 { echo "$as_me:$LINENO: result: $ac_res" >&5
10469 echo "${ECHO_T}$ac_res" >&6; }
10470 if test `eval echo '${'$as_ac_var'}'` = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10473 _ACEOF
10476 done
10478 { echo "$as_me:$LINENO: checking for mkstemp" >&5
10479 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
10480 ac_ext=cpp
10481 ac_cpp='$CXXCPP $CPPFLAGS'
10482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10487 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10496 #include <stdlib.h>
10497 #include <unistd.h>
10498 int (*f) (char *);
10502 main ()
10506 f = mkstemp;
10510 return 0;
10513 _ACEOF
10514 rm -f conftest.$ac_objext conftest$ac_exeext
10515 if { (ac_try="$ac_link"
10516 case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519 esac
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_link") 2>conftest.er1
10522 ac_status=$?
10523 grep -v '^ *+' conftest.er1 >conftest.err
10524 rm -f conftest.er1
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && {
10528 test -z "$ac_cxx_werror_flag" ||
10529 test ! -s conftest.err
10530 } && test -s conftest$ac_exeext &&
10531 $as_test_x conftest$ac_exeext; then
10532 { echo "$as_me:$LINENO: result: yes" >&5
10533 echo "${ECHO_T}yes" >&6; }
10535 cat >>confdefs.h <<\_ACEOF
10536 #define HAVE_MKSTEMP 1
10537 _ACEOF
10539 else
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 { echo "$as_me:$LINENO: result: no" >&5
10544 echo "${ECHO_T}no" >&6; }
10545 case " $LIBOBJS " in
10546 *" mkstemp.$ac_objext "* ) ;;
10547 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
10549 esac
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 ac_ext=c
10556 ac_cpp='$CPP $CPPFLAGS'
10557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
10562 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
10563 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10574 main ()
10576 #ifndef sys_siglist
10577 (void) sys_siglist;
10578 #endif
10581 return 0;
10583 _ACEOF
10584 rm -f conftest.$ac_objext
10585 if { (ac_try="$ac_compile"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest.$ac_objext; then
10601 ac_cv_have_decl_sys_siglist=yes
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_cv_have_decl_sys_siglist=no
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
10612 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
10613 if test $ac_cv_have_decl_sys_siglist = yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define HAVE_DECL_SYS_SIGLIST 1
10617 _ACEOF
10620 else
10621 cat >>confdefs.h <<_ACEOF
10622 #define HAVE_DECL_SYS_SIGLIST 0
10623 _ACEOF
10627 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10628 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10629 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10640 main ()
10642 #ifndef getc_unlocked
10643 (void) getc_unlocked;
10644 #endif
10647 return 0;
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (ac_try="$ac_compile"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_compile") 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest.$ac_objext; then
10667 ac_cv_have_decl_getc_unlocked=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_cv_have_decl_getc_unlocked=no
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10678 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10679 if test $ac_cv_have_decl_getc_unlocked = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_DECL_GETC_UNLOCKED 1
10683 _ACEOF
10686 else
10687 cat >>confdefs.h <<_ACEOF
10688 #define HAVE_DECL_GETC_UNLOCKED 0
10689 _ACEOF
10696 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10697 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10698 if test "${am_cv_langinfo_codeset+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h. */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 #include <langinfo.h>
10709 main ()
10711 char* cs = nl_langinfo(CODESET); return !cs;
10713 return 0;
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest$ac_exeext &&
10733 $as_test_x conftest$ac_exeext; then
10734 am_cv_langinfo_codeset=yes
10735 else
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 am_cv_langinfo_codeset=no
10742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10743 conftest$ac_exeext conftest.$ac_ext
10746 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10747 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10748 if test $am_cv_langinfo_codeset = yes; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_LANGINFO_CODESET 1
10752 _ACEOF
10757 # checks for compiler characteristics
10758 ac_ext=cpp
10759 ac_cpp='$CXXCPP $CPPFLAGS'
10760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10764 { echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
10765 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6; }
10766 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10775 main ()
10779 char *p = new char[5];
10780 delete [] p;
10784 return 0;
10787 _ACEOF
10788 rm -f conftest.$ac_objext
10789 if { (ac_try="$ac_compile"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_cxx_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.$ac_objext; then
10805 { echo "$as_me:$LINENO: result: yes" >&5
10806 echo "${ECHO_T}yes" >&6; }
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 { echo "$as_me:$LINENO: result: no" >&5
10812 echo "${ECHO_T}no" >&6; }
10814 cat >>confdefs.h <<\_ACEOF
10815 #define ARRAY_DELETE_NEEDS_SIZE 1
10816 _ACEOF
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 ac_ext=c
10822 ac_cpp='$CPP $CPPFLAGS'
10823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10827 ac_ext=cpp
10828 ac_cpp='$CXXCPP $CPPFLAGS'
10829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10833 { echo "$as_me:$LINENO: checking traditional preprocessor" >&5
10834 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6; }
10835 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10844 #define name2(a, b) a/**/b
10848 main ()
10852 int name2(foo, bar);
10856 return 0;
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (ac_try="$ac_compile"
10862 case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_compile") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_cxx_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest.$ac_objext; then
10877 { echo "$as_me:$LINENO: result: yes" >&5
10878 echo "${ECHO_T}yes" >&6; }
10880 cat >>confdefs.h <<\_ACEOF
10881 #define TRADITIONAL_CPP 1
10882 _ACEOF
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 { echo "$as_me:$LINENO: result: no" >&5
10889 echo "${ECHO_T}no" >&6; }
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 ac_ext=c
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10900 # checks for operating system services
10901 { echo "$as_me:$LINENO: checking w_coredump" >&5
10902 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6; }
10903 if test "$cross_compiling" = yes; then
10904 { echo "$as_me:$LINENO: result: no" >&5
10905 echo "${ECHO_T}no" >&6; }
10906 else
10907 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10916 #include <sys/types.h>
10917 #include <sys/wait.h>
10921 main ()
10925 main()
10927 #ifdef WCOREFLAG
10928 exit(1);
10929 #else
10930 int i = 0;
10931 ((union wait *)&i)->w_coredump = 1;
10932 exit(i != 0200);
10933 #endif
10938 return 0;
10941 _ACEOF
10942 rm -f conftest$ac_exeext
10943 if { (ac_try="$ac_link"
10944 case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 { echo "$as_me:$LINENO: result: yes" >&5
10963 echo "${ECHO_T}yes" >&6; }
10965 cat >>confdefs.h <<\_ACEOF
10966 #define WCOREFLAG 0200
10967 _ACEOF
10969 else
10970 echo "$as_me: program exited with status $ac_status" >&5
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ( exit $ac_status )
10975 { echo "$as_me:$LINENO: result: no" >&5
10976 echo "${ECHO_T}no" >&6; }
10978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10983 # other random stuff
10984 { echo "$as_me:$LINENO: checking default value for grops -b option" >&5
10985 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6; }
10986 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
10987 { echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
10988 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6; }
10990 { echo "$as_me:$LINENO: checking default paper size" >&5
10991 echo $ECHO_N "checking default paper size... $ECHO_C" >&6; }
10992 groff_prefix=$prefix
10993 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
10994 if test -z "$PAGE"; then
10995 descfile=
10996 if test -r $groff_prefix/share/groff/font/devps/DESC; then
10997 descfile=$groff_prefix/share/groff/font/devps/DESC
10998 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
10999 descfile=$groff_prefix/lib/groff/font/devps/DESC
11000 else
11001 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
11002 if test -r $f; then
11003 descfile=$f
11004 break
11006 done
11009 if test -n "$descfile"; then
11010 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
11011 PAGE=A4
11012 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
11013 PAGE=A4
11018 if test -z "$PAGE"; then
11019 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
11020 /etc/resolv.conf 2>/dev/null`
11021 if test -z "$dom"; then
11022 dom=`(domainname) 2>/dev/null | tr -d '+'`
11023 if test -z "$dom" \
11024 || test "$dom" = '(none)'; then
11025 dom=`(hostname) 2>/dev/null | grep '\.'`
11028 # If the top-level domain is two letters and it's not `us' or `ca'
11029 # then they probably use A4 paper.
11030 case "$dom" in
11031 *.[Uu][Ss]|*.[Cc][Aa])
11033 *.[A-Za-z][A-Za-z])
11034 PAGE=A4 ;;
11035 esac
11038 test -n "$PAGE" || PAGE=letter
11039 if test "x$PAGE" = "xA4"; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define PAGEA4 1
11043 _ACEOF
11046 { echo "$as_me:$LINENO: result: $PAGE" >&5
11047 echo "${ECHO_T}$PAGE" >&6; }
11049 { echo "$as_me:$LINENO: checking for existing troff installation" >&5
11050 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6; }
11051 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
11052 { echo "$as_me:$LINENO: result: yes" >&5
11053 echo "${ECHO_T}yes" >&6; }
11055 else
11056 { echo "$as_me:$LINENO: result: no" >&5
11057 echo "${ECHO_T}no" >&6; }
11061 { echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
11062 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6; }
11063 sys_tmac_prefix=
11064 sys_tmac_file_prefix=
11065 for d in /usr/share/lib/tmac /usr/lib/tmac; do
11066 for t in "" tmac.; do
11067 for m in an s m; do
11068 f=$d/$t$m
11069 if test -z "$sys_tmac_prefix" \
11070 && test -f $f \
11071 && grep '^\.if' $f >/dev/null 2>&1; then
11072 sys_tmac_prefix=$d/$t
11073 sys_tmac_file_prefix=$t
11075 done
11076 done
11077 done
11078 { echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
11079 echo "${ECHO_T}$sys_tmac_prefix" >&6; }
11082 { echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
11083 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6; }
11084 tmac_wrap=
11085 if test "x$sys_tmac_file_prefix" = "xtmac."; then
11086 for f in $sys_tmac_prefix*; do
11087 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11088 case "$suff" in
11092 grep "Copyright.*Free Software Foundation" $f >/dev/null \
11093 || tmac_wrap="$tmac_wrap $suff" ;;
11094 esac
11095 done
11096 elif test -n "$sys_tmac_prefix"; then
11097 files=`echo $sys_tmac_prefix*`
11098 grep "\\.so" $files >conftest.sol
11099 for f in $files; do
11100 case "$f" in
11101 ${sys_tmac_prefix}e)
11103 *.me)
11105 */ms.*)
11108 b=`basename $f`
11109 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
11110 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
11112 else
11113 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11114 case "$suff" in
11115 tmac.*)
11118 tmac_wrap="$tmac_wrap $suff" ;;
11119 esac
11121 esac
11122 done
11123 rm -f conftest.sol
11125 { echo "$as_me:$LINENO: result: $tmac_wrap" >&5
11126 echo "${ECHO_T}$tmac_wrap" >&6; }
11128 { echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
11129 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6; }
11130 cp ${srcdir}/src/include/nonposix.h conftest.h
11131 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11140 #include <ctype.h>
11141 #include "conftest.h"
11145 main ()
11149 #if PATH_SEP_CHAR == ';'
11150 make an error "Path separator is ';'"
11151 #endif
11155 return 0;
11158 _ACEOF
11159 rm -f conftest.$ac_objext
11160 if { (ac_try="$ac_compile"
11161 case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_compile") 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && {
11173 test -z "$ac_c_werror_flag" ||
11174 test ! -s conftest.err
11175 } && test -s conftest.$ac_objext; then
11176 GROFF_PATH_SEPARATOR=":"
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11181 GROFF_PATH_SEPARATOR=";"
11184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 { echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
11186 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6; }
11189 # Check whether --with-alt-gs was given.
11190 if test "${with_alt_gs+set}" = set; then
11191 withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
11192 else
11193 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
11199 # Check whether --with-gs was given.
11200 if test "${with_gs+set}" = set; then
11201 withval=$with_gs; GHOSTSCRIPT=$withval
11202 else
11203 if test -n "$ac_tool_prefix"; then
11204 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11210 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 if test -n "$GHOSTSCRIPT"; then
11214 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11227 done
11228 done
11229 IFS=$as_save_IFS
11233 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
11234 if test -n "$GHOSTSCRIPT"; then
11235 { echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
11236 echo "${ECHO_T}$GHOSTSCRIPT" >&6; }
11237 else
11238 { echo "$as_me:$LINENO: result: no" >&5
11239 echo "${ECHO_T}no" >&6; }
11243 test -n "$GHOSTSCRIPT" && break
11244 done
11246 if test -z "$GHOSTSCRIPT"; then
11247 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
11248 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11250 # Extract the first word of "$ac_prog", so it can be a program name with args.
11251 set dummy $ac_prog; ac_word=$2
11252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11254 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 if test -n "$ac_ct_GHOSTSCRIPT"; then
11258 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11259 else
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11267 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
11268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 break 2
11271 done
11272 done
11273 IFS=$as_save_IFS
11277 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
11278 if test -n "$ac_ct_GHOSTSCRIPT"; then
11279 { echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
11280 echo "${ECHO_T}$ac_ct_GHOSTSCRIPT" >&6; }
11281 else
11282 { echo "$as_me:$LINENO: result: no" >&5
11283 echo "${ECHO_T}no" >&6; }
11287 test -n "$ac_ct_GHOSTSCRIPT" && break
11288 done
11290 if test "x$ac_ct_GHOSTSCRIPT" = x; then
11291 GHOSTSCRIPT="missing"
11292 else
11293 case $cross_compiling:$ac_tool_warned in
11294 yes:)
11295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11296 whose name does not start with the host triplet. If you think this
11297 configuration is useful to you, please write to autoconf@gnu.org." >&5
11298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11299 whose name does not start with the host triplet. If you think this
11300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11301 ac_tool_warned=yes ;;
11302 esac
11303 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
11309 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
11311 make_html=html
11312 make_install_html=install_html
11314 missing=
11315 # Extract the first word of "pnmcut", so it can be a program name with args.
11316 set dummy pnmcut; ac_word=$2
11317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11319 if test "${ac_cv_prog_pnmcut+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 if test -n "$pnmcut"; then
11323 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332 ac_cv_prog_pnmcut="found"
11333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11336 done
11337 done
11338 IFS=$as_save_IFS
11340 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
11343 pnmcut=$ac_cv_prog_pnmcut
11344 if test -n "$pnmcut"; then
11345 { echo "$as_me:$LINENO: result: $pnmcut" >&5
11346 echo "${ECHO_T}$pnmcut" >&6; }
11347 else
11348 { echo "$as_me:$LINENO: result: no" >&5
11349 echo "${ECHO_T}no" >&6; }
11353 if test $pnmcut = missing; then
11354 missing="$missing \`pnmcut'"
11355 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
11356 set dummy pnmcrop; ac_word=$2
11357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11359 if test "${ac_cv_prog_pnmcrop+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 if test -n "$pnmcrop"; then
11363 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
11364 else
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11372 ac_cv_prog_pnmcrop="found"
11373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11376 done
11377 done
11378 IFS=$as_save_IFS
11380 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
11383 pnmcrop=$ac_cv_prog_pnmcrop
11384 if test -n "$pnmcrop"; then
11385 { echo "$as_me:$LINENO: result: $pnmcrop" >&5
11386 echo "${ECHO_T}$pnmcrop" >&6; }
11387 else
11388 { echo "$as_me:$LINENO: result: no" >&5
11389 echo "${ECHO_T}no" >&6; }
11393 if test $pnmcrop = missing; then
11394 missing="$missing \`pnmcrop'"
11395 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
11396 set dummy pnmtopng; ac_word=$2
11397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11399 if test "${ac_cv_prog_pnmtopng+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402 if test -n "$pnmtopng"; then
11403 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
11404 else
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_prog_pnmtopng="found"
11413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11416 done
11417 done
11418 IFS=$as_save_IFS
11420 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
11423 pnmtopng=$ac_cv_prog_pnmtopng
11424 if test -n "$pnmtopng"; then
11425 { echo "$as_me:$LINENO: result: $pnmtopng" >&5
11426 echo "${ECHO_T}$pnmtopng" >&6; }
11427 else
11428 { echo "$as_me:$LINENO: result: no" >&5
11429 echo "${ECHO_T}no" >&6; }
11433 if test $pnmtopng = missing; then
11434 missing="$missing \`pnmtopng'"
11435 fi;# Extract the first word of "psselect", so it can be a program name with args.
11436 set dummy psselect; ac_word=$2
11437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11439 if test "${ac_cv_prog_psselect+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 if test -n "$psselect"; then
11443 ac_cv_prog_psselect="$psselect" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11452 ac_cv_prog_psselect="found"
11453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11456 done
11457 done
11458 IFS=$as_save_IFS
11460 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
11463 psselect=$ac_cv_prog_psselect
11464 if test -n "$psselect"; then
11465 { echo "$as_me:$LINENO: result: $psselect" >&5
11466 echo "${ECHO_T}$psselect" >&6; }
11467 else
11468 { echo "$as_me:$LINENO: result: no" >&5
11469 echo "${ECHO_T}no" >&6; }
11473 if test $psselect = missing; then
11474 missing="$missing \`psselect'"
11475 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
11476 set dummy pnmtops; ac_word=$2
11477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11479 if test "${ac_cv_prog_pnmtops+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482 if test -n "$pnmtops"; then
11483 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_prog_pnmtops="found"
11493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11496 done
11497 done
11498 IFS=$as_save_IFS
11500 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
11503 pnmtops=$ac_cv_prog_pnmtops
11504 if test -n "$pnmtops"; then
11505 { echo "$as_me:$LINENO: result: $pnmtops" >&5
11506 echo "${ECHO_T}$pnmtops" >&6; }
11507 else
11508 { echo "$as_me:$LINENO: result: no" >&5
11509 echo "${ECHO_T}no" >&6; }
11513 if test $pnmtops = missing; then
11514 missing="$missing \`pnmtops'"
11517 test "$GHOSTSCRIPT" = "missing" && missing="$missing \`gs'"
11519 if test -n "$missing"; then
11520 plural=`set $missing; test $# -gt 1 && echo s`
11521 missing=`set $missing
11522 missing=""
11523 while test $# -gt 0
11525 case $# in
11526 1) missing="$missing$1" ;;
11527 2) missing="$missing$1 and " ;;
11528 *) missing="$missing$1, " ;;
11529 esac
11530 shift
11531 done
11532 echo $missing`
11534 make_html=
11535 make_install_html=
11537 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11539 The program$plural
11540 $missing
11541 cannot be found in the PATH.
11542 Consequently, groff's HTML backend (grohtml) will not work properly;
11543 therefore, it will neither be possible to prepare, nor to install,
11544 documentation in HTML format.
11545 " >&5
11546 echo "$as_me: WARNING: missing program$plural:
11548 The program$plural
11549 $missing
11550 cannot be found in the PATH.
11551 Consequently, groff's HTML backend (grohtml) will not work properly;
11552 therefore, it will neither be possible to prepare, nor to install,
11553 documentation in HTML format.
11554 " >&2;}
11560 # Check whether --with-alt-awk was given.
11561 if test "${with_alt_awk+set}" = set; then
11562 withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
11563 else
11564 ALT_AWK_PROGS="gawk mawk nawk awk"
11570 # Check whether --with-awk was given.
11571 if test "${with_awk+set}" = set; then
11572 withval=$with_awk; AWK=$withval
11573 else
11574 if test -n "$ac_tool_prefix"; then
11575 for ac_prog in $ALT_AWK_PROGS
11577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11581 if test "${ac_cv_prog_AWK+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 if test -n "$AWK"; then
11585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11586 else
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
11595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11598 done
11599 done
11600 IFS=$as_save_IFS
11604 AWK=$ac_cv_prog_AWK
11605 if test -n "$AWK"; then
11606 { echo "$as_me:$LINENO: result: $AWK" >&5
11607 echo "${ECHO_T}$AWK" >&6; }
11608 else
11609 { echo "$as_me:$LINENO: result: no" >&5
11610 echo "${ECHO_T}no" >&6; }
11614 test -n "$AWK" && break
11615 done
11617 if test -z "$AWK"; then
11618 ac_ct_AWK=$AWK
11619 for ac_prog in $ALT_AWK_PROGS
11621 # Extract the first word of "$ac_prog", so it can be a program name with args.
11622 set dummy $ac_prog; ac_word=$2
11623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11625 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 if test -n "$ac_ct_AWK"; then
11629 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_ac_ct_AWK="$ac_prog"
11639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11642 done
11643 done
11644 IFS=$as_save_IFS
11648 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
11649 if test -n "$ac_ct_AWK"; then
11650 { echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
11651 echo "${ECHO_T}$ac_ct_AWK" >&6; }
11652 else
11653 { echo "$as_me:$LINENO: result: no" >&5
11654 echo "${ECHO_T}no" >&6; }
11658 test -n "$ac_ct_AWK" && break
11659 done
11661 if test "x$ac_ct_AWK" = x; then
11662 AWK="missing"
11663 else
11664 case $cross_compiling:$ac_tool_warned in
11665 yes:)
11666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11667 whose name does not start with the host triplet. If you think this
11668 configuration is useful to you, please write to autoconf@gnu.org." >&5
11669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11670 whose name does not start with the host triplet. If you think this
11671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11672 ac_tool_warned=yes ;;
11673 esac
11674 AWK=$ac_ct_AWK
11680 test "$AWK" = "no" && AWK=missing
11684 make_pdfdoc=pdfdoc
11685 make_install_pdfdoc=install_pdfdoc
11687 missing=""
11688 test "$AWK" = missing && missing="\`awk'"
11689 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
11690 if test -n "$missing"; then
11691 plural=`set $missing; test $# -eq 2 && echo s`
11692 test x$plural = xs \
11693 && missing=`set $missing; echo "$1 and $2"` \
11694 || missing=`echo $missing`
11696 make_pdfdoc=
11697 make_install_pdfdoc=
11699 { echo "$as_me:$LINENO: WARNING: missing program$plural:
11701 The program$plural $missing cannot be found in the PATH.
11702 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11703 therefore, it will neither be possible to prepare, nor to install,
11704 documentation in PDF format.
11705 " >&5
11706 echo "$as_me: WARNING: missing program$plural:
11708 The program$plural $missing cannot be found in the PATH.
11709 Consequently, groff's PDF formatter (pdfroff) will not work properly;
11710 therefore, it will neither be possible to prepare, nor to install,
11711 documentation in PDF format.
11712 " >&2;}
11717 { echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
11718 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6; }
11719 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
11720 { echo "$as_me:$LINENO: result: yes" >&5
11721 echo "${ECHO_T}yes" >&6; }
11722 pnmtops_nosetpage="pnmtops -nosetpage"
11723 else
11724 { echo "$as_me:$LINENO: result: no" >&5
11725 echo "${ECHO_T}no" >&6; }
11726 pnmtops_nosetpage="pnmtops"
11730 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11731 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
11732 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 #include <features.h>
11743 #ifdef __GNU_LIBRARY__
11744 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11745 Lucky GNU user
11746 #endif
11747 #endif
11749 _ACEOF
11750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11751 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11752 ac_cv_gnu_library_2_1=yes
11753 else
11754 ac_cv_gnu_library_2_1=no
11756 rm -f conftest*
11761 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11762 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
11764 GLIBC21="$ac_cv_gnu_library_2_1"
11768 ac_config_files="$ac_config_files stamp-h"
11770 ac_config_files="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
11772 ac_config_files="$ac_config_files contrib/gdiffmk/tests/runtests"
11774 ac_config_files="$ac_config_files test-groff"
11776 cat >confcache <<\_ACEOF
11777 # This file is a shell script that caches the results of configure
11778 # tests run on this system so they can be shared between configure
11779 # scripts and configure runs, see configure's option --config-cache.
11780 # It is not useful on other systems. If it contains results you don't
11781 # want to keep, you may remove or edit it.
11783 # config.status only pays attention to the cache file if you give it
11784 # the --recheck option to rerun configure.
11786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11788 # following values.
11790 _ACEOF
11792 # The following way of writing the cache mishandles newlines in values,
11793 # but we know of no workaround that is simple, portable, and efficient.
11794 # So, we kill variables containing newlines.
11795 # Ultrix sh set writes to stderr and can't be redirected directly,
11796 # and sets the high bit in the cache file unless we assign to the vars.
11798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11799 eval ac_val=\$$ac_var
11800 case $ac_val in #(
11801 *${as_nl}*)
11802 case $ac_var in #(
11803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11805 esac
11806 case $ac_var in #(
11807 _ | IFS | as_nl) ;; #(
11808 *) $as_unset $ac_var ;;
11809 esac ;;
11810 esac
11811 done
11813 (set) 2>&1 |
11814 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11815 *${as_nl}ac_space=\ *)
11816 # `set' does not quote correctly, so add quotes (double-quote
11817 # substitution turns \\\\ into \\, and sed turns \\ into \).
11818 sed -n \
11819 "s/'/'\\\\''/g;
11820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11821 ;; #(
11823 # `set' quotes correctly as required by POSIX, so do not add quotes.
11824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11826 esac |
11827 sort
11829 sed '
11830 /^ac_cv_env_/b end
11831 t clear
11832 :clear
11833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11834 t end
11835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11836 :end' >>confcache
11837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11838 if test -w "$cache_file"; then
11839 test "x$cache_file" != "x/dev/null" &&
11840 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11841 echo "$as_me: updating cache $cache_file" >&6;}
11842 cat confcache >$cache_file
11843 else
11844 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11845 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11848 rm -f confcache
11850 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11851 # Let make expand exec_prefix.
11852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11854 DEFS=-DHAVE_CONFIG_H
11856 ac_libobjs=
11857 ac_ltlibobjs=
11858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11859 # 1. Remove the extension, and $U if already installed.
11860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11861 ac_i=`echo "$ac_i" | sed "$ac_script"`
11862 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11863 # will be set to the directory where LIBOBJS objects are built.
11864 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11865 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11866 done
11867 LIBOBJS=$ac_libobjs
11869 LTLIBOBJS=$ac_ltlibobjs
11873 : ${CONFIG_STATUS=./config.status}
11874 ac_clean_files_save=$ac_clean_files
11875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11876 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11877 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11878 cat >$CONFIG_STATUS <<_ACEOF
11879 #! $SHELL
11880 # Generated by $as_me.
11881 # Run this file to recreate the current configuration.
11882 # Compiler output produced by configure, useful for debugging
11883 # configure, is in config.log if it exists.
11885 debug=false
11886 ac_cs_recheck=false
11887 ac_cs_silent=false
11888 SHELL=\${CONFIG_SHELL-$SHELL}
11889 _ACEOF
11891 cat >>$CONFIG_STATUS <<\_ACEOF
11892 ## --------------------- ##
11893 ## M4sh Initialization. ##
11894 ## --------------------- ##
11896 # Be more Bourne compatible
11897 DUALCASE=1; export DUALCASE # for MKS sh
11898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11899 emulate sh
11900 NULLCMD=:
11901 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11902 # is contrary to our usage. Disable this feature.
11903 alias -g '${1+"$@"}'='"$@"'
11904 setopt NO_GLOB_SUBST
11905 else
11906 case `(set -o) 2>/dev/null` in
11907 *posix*) set -o posix ;;
11908 esac
11915 # PATH needs CR
11916 # Avoid depending upon Character Ranges.
11917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11920 as_cr_digits='0123456789'
11921 as_cr_alnum=$as_cr_Letters$as_cr_digits
11923 # The user is always right.
11924 if test "${PATH_SEPARATOR+set}" != set; then
11925 echo "#! /bin/sh" >conf$$.sh
11926 echo "exit 0" >>conf$$.sh
11927 chmod +x conf$$.sh
11928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11929 PATH_SEPARATOR=';'
11930 else
11931 PATH_SEPARATOR=:
11933 rm -f conf$$.sh
11936 # Support unset when possible.
11937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11938 as_unset=unset
11939 else
11940 as_unset=false
11944 # IFS
11945 # We need space, tab and new line, in precisely that order. Quoting is
11946 # there to prevent editors from complaining about space-tab.
11947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11948 # splitting by setting IFS to empty value.)
11949 as_nl='
11951 IFS=" "" $as_nl"
11953 # Find who we are. Look in the path if we contain no directory separator.
11954 case $0 in
11955 *[\\/]* ) as_myself=$0 ;;
11956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11962 done
11963 IFS=$as_save_IFS
11966 esac
11967 # We did not find ourselves, most probably we were run as `sh COMMAND'
11968 # in which case we are not to be found in the path.
11969 if test "x$as_myself" = x; then
11970 as_myself=$0
11972 if test ! -f "$as_myself"; then
11973 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11974 { (exit 1); exit 1; }
11977 # Work around bugs in pre-3.0 UWIN ksh.
11978 for as_var in ENV MAIL MAILPATH
11979 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11980 done
11981 PS1='$ '
11982 PS2='> '
11983 PS4='+ '
11985 # NLS nuisances.
11986 for as_var in \
11987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11989 LC_TELEPHONE LC_TIME
11991 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11992 eval $as_var=C; export $as_var
11993 else
11994 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11996 done
11998 # Required to use basename.
11999 if expr a : '\(a\)' >/dev/null 2>&1 &&
12000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12001 as_expr=expr
12002 else
12003 as_expr=false
12006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12007 as_basename=basename
12008 else
12009 as_basename=false
12013 # Name of the executable.
12014 as_me=`$as_basename -- "$0" ||
12015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12016 X"$0" : 'X\(//\)$' \| \
12017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12018 echo X/"$0" |
12019 sed '/^.*\/\([^/][^/]*\)\/*$/{
12020 s//\1/
12023 /^X\/\(\/\/\)$/{
12024 s//\1/
12027 /^X\/\(\/\).*/{
12028 s//\1/
12031 s/.*/./; q'`
12033 # CDPATH.
12034 $as_unset CDPATH
12038 as_lineno_1=$LINENO
12039 as_lineno_2=$LINENO
12040 test "x$as_lineno_1" != "x$as_lineno_2" &&
12041 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12044 # uniformly replaced by the line number. The first 'sed' inserts a
12045 # line-number line after each line using $LINENO; the second 'sed'
12046 # does the real work. The second script uses 'N' to pair each
12047 # line-number line with the line containing $LINENO, and appends
12048 # trailing '-' during substitution so that $LINENO is not a special
12049 # case at line end.
12050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12051 # scripts with optimization help from Paolo Bonzini. Blame Lee
12052 # E. McMahon (1931-1989) for sed's syntax. :-)
12053 sed -n '
12055 /[$]LINENO/=
12056 ' <$as_myself |
12057 sed '
12058 s/[$]LINENO.*/&-/
12059 t lineno
12061 :lineno
12063 :loop
12064 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12065 t loop
12066 s/-\n.*//
12067 ' >$as_me.lineno &&
12068 chmod +x "$as_me.lineno" ||
12069 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12070 { (exit 1); exit 1; }; }
12072 # Don't try to exec as it changes $[0], causing all sort of problems
12073 # (the dirname of $[0] is not the place where we might find the
12074 # original and so on. Autoconf is especially sensitive to this).
12075 . "./$as_me.lineno"
12076 # Exit status is that of the last command.
12077 exit
12081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12082 as_dirname=dirname
12083 else
12084 as_dirname=false
12087 ECHO_C= ECHO_N= ECHO_T=
12088 case `echo -n x` in
12089 -n*)
12090 case `echo 'x\c'` in
12091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12092 *) ECHO_C='\c';;
12093 esac;;
12095 ECHO_N='-n';;
12096 esac
12098 if expr a : '\(a\)' >/dev/null 2>&1 &&
12099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12100 as_expr=expr
12101 else
12102 as_expr=false
12105 rm -f conf$$ conf$$.exe conf$$.file
12106 if test -d conf$$.dir; then
12107 rm -f conf$$.dir/conf$$.file
12108 else
12109 rm -f conf$$.dir
12110 mkdir conf$$.dir
12112 echo >conf$$.file
12113 if ln -s conf$$.file conf$$ 2>/dev/null; then
12114 as_ln_s='ln -s'
12115 # ... but there are two gotchas:
12116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12118 # In both cases, we have to default to `cp -p'.
12119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12120 as_ln_s='cp -p'
12121 elif ln conf$$.file conf$$ 2>/dev/null; then
12122 as_ln_s=ln
12123 else
12124 as_ln_s='cp -p'
12126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12127 rmdir conf$$.dir 2>/dev/null
12129 if mkdir -p . 2>/dev/null; then
12130 as_mkdir_p=:
12131 else
12132 test -d ./-p && rmdir ./-p
12133 as_mkdir_p=false
12136 if test -x / >/dev/null 2>&1; then
12137 as_test_x='test -x'
12138 else
12139 if ls -dL / >/dev/null 2>&1; then
12140 as_ls_L_option=L
12141 else
12142 as_ls_L_option=
12144 as_test_x='
12145 eval sh -c '\''
12146 if test -d "$1"; then
12147 test -d "$1/.";
12148 else
12149 case $1 in
12150 -*)set "./$1";;
12151 esac;
12152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12153 ???[sx]*):;;*)false;;esac;fi
12154 '\'' sh
12157 as_executable_p=$as_test_x
12159 # Sed expression to map a string onto a valid CPP name.
12160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12162 # Sed expression to map a string onto a valid variable name.
12163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12166 exec 6>&1
12168 # Save the log message, to keep $[0] and so on meaningful, and to
12169 # report actual input values of CONFIG_FILES etc. instead of their
12170 # values after options handling.
12171 ac_log="
12172 This file was extended by $as_me, which was
12173 generated by GNU Autoconf 2.61. Invocation command line was
12175 CONFIG_FILES = $CONFIG_FILES
12176 CONFIG_HEADERS = $CONFIG_HEADERS
12177 CONFIG_LINKS = $CONFIG_LINKS
12178 CONFIG_COMMANDS = $CONFIG_COMMANDS
12179 $ $0 $@
12181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12184 _ACEOF
12186 cat >>$CONFIG_STATUS <<_ACEOF
12187 # Files that config.status was made for.
12188 config_files="$ac_config_files"
12189 config_headers="$ac_config_headers"
12191 _ACEOF
12193 cat >>$CONFIG_STATUS <<\_ACEOF
12194 ac_cs_usage="\
12195 \`$as_me' instantiates files from templates according to the
12196 current configuration.
12198 Usage: $0 [OPTIONS] [FILE]...
12200 -h, --help print this help, then exit
12201 -V, --version print version number and configuration settings, then exit
12202 -q, --quiet do not print progress messages
12203 -d, --debug don't remove temporary files
12204 --recheck update $as_me by reconfiguring in the same conditions
12205 --file=FILE[:TEMPLATE]
12206 instantiate the configuration file FILE
12207 --header=FILE[:TEMPLATE]
12208 instantiate the configuration header FILE
12210 Configuration files:
12211 $config_files
12213 Configuration headers:
12214 $config_headers
12216 Report bugs to <bug-autoconf@gnu.org>."
12218 _ACEOF
12219 cat >>$CONFIG_STATUS <<_ACEOF
12220 ac_cs_version="\\
12221 config.status
12222 configured by $0, generated by GNU Autoconf 2.61,
12223 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12225 Copyright (C) 2006 Free Software Foundation, Inc.
12226 This config.status script is free software; the Free Software Foundation
12227 gives unlimited permission to copy, distribute and modify it."
12229 ac_pwd='$ac_pwd'
12230 srcdir='$srcdir'
12231 INSTALL='$INSTALL'
12232 _ACEOF
12234 cat >>$CONFIG_STATUS <<\_ACEOF
12235 # If no file are specified by the user, then we need to provide default
12236 # value. By we need to know if files were specified by the user.
12237 ac_need_defaults=:
12238 while test $# != 0
12240 case $1 in
12241 --*=*)
12242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12244 ac_shift=:
12247 ac_option=$1
12248 ac_optarg=$2
12249 ac_shift=shift
12251 esac
12253 case $ac_option in
12254 # Handling of the options.
12255 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12256 ac_cs_recheck=: ;;
12257 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12258 echo "$ac_cs_version"; exit ;;
12259 --debug | --debu | --deb | --de | --d | -d )
12260 debug=: ;;
12261 --file | --fil | --fi | --f )
12262 $ac_shift
12263 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12264 ac_need_defaults=false;;
12265 --header | --heade | --head | --hea )
12266 $ac_shift
12267 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12268 ac_need_defaults=false;;
12269 --he | --h)
12270 # Conflict between --help and --header
12271 { echo "$as_me: error: ambiguous option: $1
12272 Try \`$0 --help' for more information." >&2
12273 { (exit 1); exit 1; }; };;
12274 --help | --hel | -h )
12275 echo "$ac_cs_usage"; exit ;;
12276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12277 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12278 ac_cs_silent=: ;;
12280 # This is an error.
12281 -*) { echo "$as_me: error: unrecognized option: $1
12282 Try \`$0 --help' for more information." >&2
12283 { (exit 1); exit 1; }; } ;;
12285 *) ac_config_targets="$ac_config_targets $1"
12286 ac_need_defaults=false ;;
12288 esac
12289 shift
12290 done
12292 ac_configure_extra_args=
12294 if $ac_cs_silent; then
12295 exec 6>/dev/null
12296 ac_configure_extra_args="$ac_configure_extra_args --silent"
12299 _ACEOF
12300 cat >>$CONFIG_STATUS <<_ACEOF
12301 if \$ac_cs_recheck; then
12302 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12303 CONFIG_SHELL=$SHELL
12304 export CONFIG_SHELL
12305 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12308 _ACEOF
12309 cat >>$CONFIG_STATUS <<\_ACEOF
12310 exec 5>>config.log
12312 echo
12313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12314 ## Running $as_me. ##
12315 _ASBOX
12316 echo "$ac_log"
12317 } >&5
12319 _ACEOF
12320 cat >>$CONFIG_STATUS <<_ACEOF
12321 _ACEOF
12323 cat >>$CONFIG_STATUS <<\_ACEOF
12325 # Handling of arguments.
12326 for ac_config_target in $ac_config_targets
12328 case $ac_config_target in
12329 "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
12330 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
12331 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12332 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12333 "src/utils/xtotroff/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
12334 "contrib/gdiffmk/tests/runtests") CONFIG_FILES="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
12335 "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
12337 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12339 { (exit 1); exit 1; }; };;
12340 esac
12341 done
12344 # If the user did not use the arguments to specify the items to instantiate,
12345 # then the envvar interface is used. Set only those that are not.
12346 # We use the long form for the default assignment because of an extremely
12347 # bizarre bug on SunOS 4.1.3.
12348 if $ac_need_defaults; then
12349 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12350 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12353 # Have a temporary directory for convenience. Make it in the build tree
12354 # simply because there is no reason against having it here, and in addition,
12355 # creating and moving files from /tmp can sometimes cause problems.
12356 # Hook for its removal unless debugging.
12357 # Note that there is a small window in which the directory will not be cleaned:
12358 # after its creation but before its name has been assigned to `$tmp'.
12359 $debug ||
12361 tmp=
12362 trap 'exit_status=$?
12363 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12365 trap '{ (exit 1); exit 1; }' 1 2 13 15
12367 # Create a (secure) tmp directory for tmp files.
12370 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12371 test -n "$tmp" && test -d "$tmp"
12372 } ||
12374 tmp=./conf$$-$RANDOM
12375 (umask 077 && mkdir "$tmp")
12376 } ||
12378 echo "$me: cannot create a temporary directory in ." >&2
12379 { (exit 1); exit 1; }
12383 # Set up the sed scripts for CONFIG_FILES section.
12386 # No need to generate the scripts if there are no CONFIG_FILES.
12387 # This happens for instance when ./config.status config.h
12388 if test -n "$CONFIG_FILES"; then
12390 _ACEOF
12394 ac_delim='%!_!# '
12395 for ac_last_try in false false false false false :; do
12396 cat >conf$$subs.sed <<_ACEOF
12397 SHELL!$SHELL$ac_delim
12398 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12399 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12400 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12401 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12402 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12403 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12404 exec_prefix!$exec_prefix$ac_delim
12405 prefix!$prefix$ac_delim
12406 program_transform_name!$program_transform_name$ac_delim
12407 bindir!$bindir$ac_delim
12408 sbindir!$sbindir$ac_delim
12409 libexecdir!$libexecdir$ac_delim
12410 datarootdir!$datarootdir$ac_delim
12411 datadir!$datadir$ac_delim
12412 sysconfdir!$sysconfdir$ac_delim
12413 sharedstatedir!$sharedstatedir$ac_delim
12414 localstatedir!$localstatedir$ac_delim
12415 includedir!$includedir$ac_delim
12416 oldincludedir!$oldincludedir$ac_delim
12417 docdir!$docdir$ac_delim
12418 infodir!$infodir$ac_delim
12419 htmldir!$htmldir$ac_delim
12420 dvidir!$dvidir$ac_delim
12421 pdfdir!$pdfdir$ac_delim
12422 psdir!$psdir$ac_delim
12423 libdir!$libdir$ac_delim
12424 localedir!$localedir$ac_delim
12425 mandir!$mandir$ac_delim
12426 DEFS!$DEFS$ac_delim
12427 ECHO_C!$ECHO_C$ac_delim
12428 ECHO_N!$ECHO_N$ac_delim
12429 ECHO_T!$ECHO_T$ac_delim
12430 LIBS!$LIBS$ac_delim
12431 build_alias!$build_alias$ac_delim
12432 host_alias!$host_alias$ac_delim
12433 target_alias!$target_alias$ac_delim
12434 CC!$CC$ac_delim
12435 CFLAGS!$CFLAGS$ac_delim
12436 LDFLAGS!$LDFLAGS$ac_delim
12437 CPPFLAGS!$CPPFLAGS$ac_delim
12438 ac_ct_CC!$ac_ct_CC$ac_delim
12439 EXEEXT!$EXEEXT$ac_delim
12440 OBJEXT!$OBJEXT$ac_delim
12441 CXX!$CXX$ac_delim
12442 CXXFLAGS!$CXXFLAGS$ac_delim
12443 ac_ct_CXX!$ac_ct_CXX$ac_delim
12444 TTYDEVDIRS!$TTYDEVDIRS$ac_delim
12445 OTHERDEVDIRS!$OTHERDEVDIRS$ac_delim
12446 XMKMF!$XMKMF$ac_delim
12447 CPP!$CPP$ac_delim
12448 X_CFLAGS!$X_CFLAGS$ac_delim
12449 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12450 X_LIBS!$X_LIBS$ac_delim
12451 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12452 XDEVDIRS!$XDEVDIRS$ac_delim
12453 XPROGDIRS!$XPROGDIRS$ac_delim
12454 XLIBDIRS!$XLIBDIRS$ac_delim
12455 appresdir!$appresdir$ac_delim
12456 LPR!$LPR$ac_delim
12457 LP!$LP$ac_delim
12458 LPQ!$LPQ$ac_delim
12459 PSPRINT!$PSPRINT$ac_delim
12460 DVIPRINT!$DVIPRINT$ac_delim
12461 GREP!$GREP$ac_delim
12462 EGREP!$EGREP$ac_delim
12463 PERLPATH!$PERLPATH$ac_delim
12464 YACC!$YACC$ac_delim
12465 MAKEINFO!$MAKEINFO$ac_delim
12466 RANLIB!$RANLIB$ac_delim
12467 INSTALL_INFO!$INSTALL_INFO$ac_delim
12468 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12469 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12470 INSTALL_DATA!$INSTALL_DATA$ac_delim
12471 LN_S!$LN_S$ac_delim
12472 SH_SCRIPT_SED_CMD!$SH_SCRIPT_SED_CMD$ac_delim
12473 LIBC!$LIBC$ac_delim
12474 LIBM!$LIBM$ac_delim
12475 build!$build$ac_delim
12476 build_cpu!$build_cpu$ac_delim
12477 build_vendor!$build_vendor$ac_delim
12478 build_os!$build_os$ac_delim
12479 host!$host$ac_delim
12480 host_cpu!$host_cpu$ac_delim
12481 host_vendor!$host_vendor$ac_delim
12482 host_os!$host_os$ac_delim
12483 LIBICONV!$LIBICONV$ac_delim
12484 LTLIBICONV!$LTLIBICONV$ac_delim
12485 LIBOBJS!$LIBOBJS$ac_delim
12486 BROKEN_SPOOLER_FLAGS!$BROKEN_SPOOLER_FLAGS$ac_delim
12487 PAGE!$PAGE$ac_delim
12488 g!$g$ac_delim
12489 sys_tmac_prefix!$sys_tmac_prefix$ac_delim
12490 tmac_wrap!$tmac_wrap$ac_delim
12491 GROFF_PATH_SEPARATOR!$GROFF_PATH_SEPARATOR$ac_delim
12492 ALT_GHOSTSCRIPT_PROGS!$ALT_GHOSTSCRIPT_PROGS$ac_delim
12493 GHOSTSCRIPT!$GHOSTSCRIPT$ac_delim
12494 _ACEOF
12496 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12497 break
12498 elif $ac_last_try; then
12499 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12500 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12501 { (exit 1); exit 1; }; }
12502 else
12503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12505 done
12507 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12508 if test -n "$ac_eof"; then
12509 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12510 ac_eof=`expr $ac_eof + 1`
12513 cat >>$CONFIG_STATUS <<_ACEOF
12514 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12516 _ACEOF
12517 sed '
12518 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12519 s/^/s,@/; s/!/@,|#_!!_#|/
12522 s/'"$ac_delim"'$/,g/; t
12523 s/$/\\/; p
12524 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12525 ' >>$CONFIG_STATUS <conf$$subs.sed
12526 rm -f conf$$subs.sed
12527 cat >>$CONFIG_STATUS <<_ACEOF
12528 CEOF$ac_eof
12529 _ACEOF
12532 ac_delim='%!_!# '
12533 for ac_last_try in false false false false false :; do
12534 cat >conf$$subs.sed <<_ACEOF
12535 ac_ct_GHOSTSCRIPT!$ac_ct_GHOSTSCRIPT$ac_delim
12536 pnmcut!$pnmcut$ac_delim
12537 pnmcrop!$pnmcrop$ac_delim
12538 pnmtopng!$pnmtopng$ac_delim
12539 psselect!$psselect$ac_delim
12540 pnmtops!$pnmtops$ac_delim
12541 make_html!$make_html$ac_delim
12542 make_install_html!$make_install_html$ac_delim
12543 ALT_AWK_PROGS!$ALT_AWK_PROGS$ac_delim
12544 AWK!$AWK$ac_delim
12545 ac_ct_AWK!$ac_ct_AWK$ac_delim
12546 make_pdfdoc!$make_pdfdoc$ac_delim
12547 make_install_pdfdoc!$make_install_pdfdoc$ac_delim
12548 pnmtops_nosetpage!$pnmtops_nosetpage$ac_delim
12549 GLIBC21!$GLIBC21$ac_delim
12550 LTLIBOBJS!$LTLIBOBJS$ac_delim
12551 _ACEOF
12553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
12554 break
12555 elif $ac_last_try; then
12556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12558 { (exit 1); exit 1; }; }
12559 else
12560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12562 done
12564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12565 if test -n "$ac_eof"; then
12566 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12567 ac_eof=`expr $ac_eof + 1`
12570 cat >>$CONFIG_STATUS <<_ACEOF
12571 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12573 _ACEOF
12574 sed '
12575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12576 s/^/s,@/; s/!/@,|#_!!_#|/
12579 s/'"$ac_delim"'$/,g/; t
12580 s/$/\\/; p
12581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12582 ' >>$CONFIG_STATUS <conf$$subs.sed
12583 rm -f conf$$subs.sed
12584 cat >>$CONFIG_STATUS <<_ACEOF
12585 :end
12586 s/|#_!!_#|//g
12587 CEOF$ac_eof
12588 _ACEOF
12591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12593 # trailing colons and then remove the whole line if VPATH becomes empty
12594 # (actually we leave an empty line to preserve line numbers).
12595 if test "x$srcdir" = x.; then
12596 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12597 s/:*\$(srcdir):*/:/
12598 s/:*\${srcdir}:*/:/
12599 s/:*@srcdir@:*/:/
12600 s/^\([^=]*=[ ]*\):*/\1/
12601 s/:*$//
12602 s/^[^=]*=[ ]*$//
12606 cat >>$CONFIG_STATUS <<\_ACEOF
12607 fi # test -n "$CONFIG_FILES"
12610 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12612 case $ac_tag in
12613 :[FHLC]) ac_mode=$ac_tag; continue;;
12614 esac
12615 case $ac_mode$ac_tag in
12616 :[FHL]*:*);;
12617 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12619 { (exit 1); exit 1; }; };;
12620 :[FH]-) ac_tag=-:-;;
12621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12622 esac
12623 ac_save_IFS=$IFS
12624 IFS=:
12625 set x $ac_tag
12626 IFS=$ac_save_IFS
12627 shift
12628 ac_file=$1
12629 shift
12631 case $ac_mode in
12632 :L) ac_source=$1;;
12633 :[FH])
12634 ac_file_inputs=
12635 for ac_f
12637 case $ac_f in
12638 -) ac_f="$tmp/stdin";;
12639 *) # Look for the file first in the build tree, then in the source tree
12640 # (if the path is not absolute). The absolute path cannot be DOS-style,
12641 # because $ac_f cannot contain `:'.
12642 test -f "$ac_f" ||
12643 case $ac_f in
12644 [\\/$]*) false;;
12645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12646 esac ||
12647 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12649 { (exit 1); exit 1; }; };;
12650 esac
12651 ac_file_inputs="$ac_file_inputs $ac_f"
12652 done
12654 # Let's still pretend it is `configure' which instantiates (i.e., don't
12655 # use $as_me), people would be surprised to read:
12656 # /* config.h. Generated by config.status. */
12657 configure_input="Generated from "`IFS=:
12658 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12659 if test x"$ac_file" != x-; then
12660 configure_input="$ac_file. $configure_input"
12661 { echo "$as_me:$LINENO: creating $ac_file" >&5
12662 echo "$as_me: creating $ac_file" >&6;}
12665 case $ac_tag in
12666 *:-:* | *:-) cat >"$tmp/stdin";;
12667 esac
12669 esac
12671 ac_dir=`$as_dirname -- "$ac_file" ||
12672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12673 X"$ac_file" : 'X\(//\)[^/]' \| \
12674 X"$ac_file" : 'X\(//\)$' \| \
12675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12676 echo X"$ac_file" |
12677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12678 s//\1/
12681 /^X\(\/\/\)[^/].*/{
12682 s//\1/
12685 /^X\(\/\/\)$/{
12686 s//\1/
12689 /^X\(\/\).*/{
12690 s//\1/
12693 s/.*/./; q'`
12694 { as_dir="$ac_dir"
12695 case $as_dir in #(
12696 -*) as_dir=./$as_dir;;
12697 esac
12698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12699 as_dirs=
12700 while :; do
12701 case $as_dir in #(
12702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12703 *) as_qdir=$as_dir;;
12704 esac
12705 as_dirs="'$as_qdir' $as_dirs"
12706 as_dir=`$as_dirname -- "$as_dir" ||
12707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12708 X"$as_dir" : 'X\(//\)[^/]' \| \
12709 X"$as_dir" : 'X\(//\)$' \| \
12710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12711 echo X"$as_dir" |
12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12713 s//\1/
12716 /^X\(\/\/\)[^/].*/{
12717 s//\1/
12720 /^X\(\/\/\)$/{
12721 s//\1/
12724 /^X\(\/\).*/{
12725 s//\1/
12728 s/.*/./; q'`
12729 test -d "$as_dir" && break
12730 done
12731 test -z "$as_dirs" || eval "mkdir $as_dirs"
12732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12734 { (exit 1); exit 1; }; }; }
12735 ac_builddir=.
12737 case "$ac_dir" in
12738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12741 # A ".." for each directory in $ac_dir_suffix.
12742 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12743 case $ac_top_builddir_sub in
12744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12746 esac ;;
12747 esac
12748 ac_abs_top_builddir=$ac_pwd
12749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12750 # for backward compatibility:
12751 ac_top_builddir=$ac_top_build_prefix
12753 case $srcdir in
12754 .) # We are building in place.
12755 ac_srcdir=.
12756 ac_top_srcdir=$ac_top_builddir_sub
12757 ac_abs_top_srcdir=$ac_pwd ;;
12758 [\\/]* | ?:[\\/]* ) # Absolute name.
12759 ac_srcdir=$srcdir$ac_dir_suffix;
12760 ac_top_srcdir=$srcdir
12761 ac_abs_top_srcdir=$srcdir ;;
12762 *) # Relative name.
12763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12764 ac_top_srcdir=$ac_top_build_prefix$srcdir
12765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12766 esac
12767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12770 case $ac_mode in
12773 # CONFIG_FILE
12776 case $INSTALL in
12777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12779 esac
12780 _ACEOF
12782 cat >>$CONFIG_STATUS <<\_ACEOF
12783 # If the template does not know about datarootdir, expand it.
12784 # FIXME: This hack should be removed a few years after 2.60.
12785 ac_datarootdir_hack=; ac_datarootdir_seen=
12787 case `sed -n '/datarootdir/ {
12791 /@datadir@/p
12792 /@docdir@/p
12793 /@infodir@/p
12794 /@localedir@/p
12795 /@mandir@/p
12796 ' $ac_file_inputs` in
12797 *datarootdir*) ac_datarootdir_seen=yes;;
12798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12799 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12800 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12801 _ACEOF
12802 cat >>$CONFIG_STATUS <<_ACEOF
12803 ac_datarootdir_hack='
12804 s&@datadir@&$datadir&g
12805 s&@docdir@&$docdir&g
12806 s&@infodir@&$infodir&g
12807 s&@localedir@&$localedir&g
12808 s&@mandir@&$mandir&g
12809 s&\\\${datarootdir}&$datarootdir&g' ;;
12810 esac
12811 _ACEOF
12813 # Neutralize VPATH when `$srcdir' = `.'.
12814 # Shell code in configure.ac might set extrasub.
12815 # FIXME: do we really want to maintain this feature?
12816 cat >>$CONFIG_STATUS <<_ACEOF
12817 sed "$ac_vpsub
12818 $extrasub
12819 _ACEOF
12820 cat >>$CONFIG_STATUS <<\_ACEOF
12822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12823 s&@configure_input@&$configure_input&;t t
12824 s&@top_builddir@&$ac_top_builddir_sub&;t t
12825 s&@srcdir@&$ac_srcdir&;t t
12826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12827 s&@top_srcdir@&$ac_top_srcdir&;t t
12828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12829 s&@builddir@&$ac_builddir&;t t
12830 s&@abs_builddir@&$ac_abs_builddir&;t t
12831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12832 s&@INSTALL@&$ac_INSTALL&;t t
12833 $ac_datarootdir_hack
12834 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12839 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12840 which seems to be undefined. Please make sure it is defined." >&5
12841 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12842 which seems to be undefined. Please make sure it is defined." >&2;}
12844 rm -f "$tmp/stdin"
12845 case $ac_file in
12846 -) cat "$tmp/out"; rm -f "$tmp/out";;
12847 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12848 esac
12852 # CONFIG_HEADER
12854 _ACEOF
12856 # Transform confdefs.h into a sed script `conftest.defines', that
12857 # substitutes the proper values into config.h.in to produce config.h.
12858 rm -f conftest.defines conftest.tail
12859 # First, append a space to every undef/define line, to ease matching.
12860 echo 's/$/ /' >conftest.defines
12861 # Then, protect against being on the right side of a sed subst, or in
12862 # an unquoted here document, in config.status. If some macros were
12863 # called several times there might be several #defines for the same
12864 # symbol, which is useless. But do not sort them, since the last
12865 # AC_DEFINE must be honored.
12866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12867 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12868 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12869 # PARAMS is the parameter list in the macro definition--in most cases, it's
12870 # just an empty string.
12871 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12872 ac_dB='\\)[ (].*,\\1define\\2'
12873 ac_dC=' '
12874 ac_dD=' ,'
12876 uniq confdefs.h |
12877 sed -n '
12878 t rset
12879 :rset
12880 s/^[ ]*#[ ]*define[ ][ ]*//
12881 t ok
12884 s/[\\&,]/\\&/g
12885 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12886 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12887 ' >>conftest.defines
12889 # Remove the space that was appended to ease matching.
12890 # Then replace #undef with comments. This is necessary, for
12891 # example, in the case of _POSIX_SOURCE, which is predefined and required
12892 # on some systems where configure will not decide to define it.
12893 # (The regexp can be short, since the line contains either #define or #undef.)
12894 echo 's/ $//
12895 s,^[ #]*u.*,/* & */,' >>conftest.defines
12897 # Break up conftest.defines:
12898 ac_max_sed_lines=50
12900 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12901 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12902 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12903 # et cetera.
12904 ac_in='$ac_file_inputs'
12905 ac_out='"$tmp/out1"'
12906 ac_nxt='"$tmp/out2"'
12908 while :
12910 # Write a here document:
12911 cat >>$CONFIG_STATUS <<_ACEOF
12912 # First, check the format of the line:
12913 cat >"\$tmp/defines.sed" <<\\CEOF
12914 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12915 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12917 :def
12918 _ACEOF
12919 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12920 echo 'CEOF
12921 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12922 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12923 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12924 grep . conftest.tail >/dev/null || break
12925 rm -f conftest.defines
12926 mv conftest.tail conftest.defines
12927 done
12928 rm -f conftest.defines conftest.tail
12930 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12931 cat >>$CONFIG_STATUS <<\_ACEOF
12932 if test x"$ac_file" != x-; then
12933 echo "/* $configure_input */" >"$tmp/config.h"
12934 cat "$ac_result" >>"$tmp/config.h"
12935 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12936 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12937 echo "$as_me: $ac_file is unchanged" >&6;}
12938 else
12939 rm -f $ac_file
12940 mv "$tmp/config.h" $ac_file
12942 else
12943 echo "/* $configure_input */"
12944 cat "$ac_result"
12946 rm -f "$tmp/out12"
12950 esac
12953 case $ac_file$ac_mode in
12954 "stamp-h":F) echo timestamp > stamp-h ;;
12955 "contrib/gdiffmk/tests/runtests":F) chmod +x contrib/gdiffmk/tests/runtests ;;
12956 "test-groff":F) chmod +x test-groff ;;
12958 esac
12959 done # for ac_tag
12962 { (exit 0); exit 0; }
12963 _ACEOF
12964 chmod +x $CONFIG_STATUS
12965 ac_clean_files=$ac_clean_files_save
12968 # configure is writing to config.log, and then calls config.status.
12969 # config.status does its own redirection, appending to config.log.
12970 # Unfortunately, on DOS this fails, as config.log is still kept open
12971 # by configure, so config.status won't be able to write to it; its
12972 # output is simply discarded. So we exec the FD to /dev/null,
12973 # effectively closing config.log, so it can be properly (re)opened and
12974 # appended to by config.status. When coming back to configure, we
12975 # need to make the FD available again.
12976 if test "$no_create" != yes; then
12977 ac_cs_success=:
12978 ac_config_status_args=
12979 test "$silent" = yes &&
12980 ac_config_status_args="$ac_config_status_args --quiet"
12981 exec 5>/dev/null
12982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12983 exec 5>>config.log
12984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12985 # would make configure fail if this is the last instruction.
12986 $ac_cs_success || { (exit 1); exit 1; }
12990 if test -z "$groff_no_x"; then
12991 if test "x$with_appresdir" = "x"; then
12992 { echo "$as_me:$LINENO:
12994 The application resource files for gxditview will be installed as
12996 $appresdir/GXditview
13000 $appresdir/GXditview-color
13002 (existing files will be saved by appending \`.old' to the file
13003 name).
13005 To install them into a different directory, say, \`/etc/gxditview',
13006 add \`--with-appresdir=/etc/gxditview' to the configure script
13007 command line options and rerun it. The environment variable
13008 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13009 omitting the \`gxditview' part which is automatically appended by
13010 the X11 searching routines for resource files. More details can be
13011 found in the X(7) manual page.
13012 " >&5
13013 echo "$as_me:
13015 The application resource files for gxditview will be installed as
13017 $appresdir/GXditview
13021 $appresdir/GXditview-color
13023 (existing files will be saved by appending \`.old' to the file
13024 name).
13026 To install them into a different directory, say, \`/etc/gxditview',
13027 add \`--with-appresdir=/etc/gxditview' to the configure script
13028 command line options and rerun it. The environment variable
13029 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13030 omitting the \`gxditview' part which is automatically appended by
13031 the X11 searching routines for resource files. More details can be
13032 found in the X(7) manual page.
13033 " >&6;}