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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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
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`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/roff/groff/groff.cpp"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
711 ALT_GHOSTSCRIPT_PROGS
730 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
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'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
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)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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.
886 -help |
--help |
--hel |
--he |
-h)
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)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
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
;;
1080 # Obsolete; use --with-x.
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; }; }
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}
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
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
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.
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
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 ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
1303 --x-includes=DIR X include files are
in DIR
1304 --x-libraries=DIR X library files are
in DIR
1307 --build=BUILD configure
for building on BUILD
[guessed
]
1308 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1312 if test -n "$ac_init_help"; then
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
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
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.
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
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/ ;;
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
1377 .
) # We are building in place.
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 ;;
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 ;;
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
1396 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1397 elif test -f "$ac_srcdir/configure"; then
1399 $SHELL "$ac_srcdir/configure" --help=recursive
1401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1407 test -n "$ac_init_help" && exit $ac_status
1408 if $ac_init_version; then
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.
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
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`
1456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir
=.
1461 echo "PATH: $as_dir"
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.
1485 ac_must_keep_next
=false
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)
1496 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1514 -* ) ac_must_keep_next
=true
;;
1517 ac_configure_args
="$ac_configure_args '$ac_arg'"
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.
1536 ## ---------------- ##
1537 ## Cache variables. ##
1538 ## ---------------- ##
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
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;} ;;
1552 _ | IFS | as_nl) ;; #(
1553 *) $as_unset $ac_var ;;
1558 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1559 *${as_nl}ac_space=\ *)
1561 "s/'\''/'\''\\\\'\'''\''/g;
1562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1573 ## ----------------- ##
1574 ## Output variables. ##
1575 ## ----------------- ##
1578 for ac_var in $ac_subst_vars
1580 eval ac_val=\$$ac_var
1582 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584 echo "$ac_var='\''$ac_val'\''"
1588 if test -n "$ac_subst_files"; then
1590 ## ------------------- ##
1591 ## File substitutions. ##
1592 ## ------------------- ##
1595 for ac_var
in $ac_subst_files
1597 eval ac_val
=\$
$ac_var
1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 echo "$ac_var='\''$ac_val'\''"
1606 if test -s confdefs.h; then
1616 test "$ac_signal" != 0 &&
1617 echo "$as_me: caught signal $ac_signal"
1618 echo "$as_me: exit $exit_status"
1620 rm -f core *.core core.conftest.* &&
1621 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1624 for ac_signal
in 1 2 13 15; do
1625 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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"
1639 cat >>confdefs.h
<<_ACEOF
1640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1644 cat >>confdefs.h
<<_ACEOF
1645 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1649 cat >>confdefs.h
<<_ACEOF
1650 #define PACKAGE_STRING "$PACKAGE_STRING"
1654 cat >>confdefs.h
<<_ACEOF
1655 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1666 set x
"$ac_default_prefix/share/config.site" \
1667 "$ac_default_prefix/etc/config.site"
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
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;}
1687 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1688 *) .
"./$cache_file";;
1692 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1693 echo "$as_me: creating cache $cache_file" >&6;}
1697 # Check that the precious variables saved in the cache have kept the same
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
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
=: ;;
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
=: ;;
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
=:
1726 # Pass precious variables to config.status.
1727 if test "$ac_new_set" = set; then
1729 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 *) ac_arg
=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC
="$CC" # Let the user override the test.
1792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1810 if test -n "$CC"; then
1811 { echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6; }
1814 { echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6; }
1820 if test -z "$ac_cv_prog_CC"; then
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
1829 if test -n "$ac_ct_CC"; then
1830 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
1854 { echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6; }
1858 if test "x$ac_ct_CC" = x
; then
1861 case $cross_compiling:$ac_tool_warned in
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 ;;
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
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC
="$CC" # Let the user override the test.
1889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1907 if test -n "$CC"; then
1908 { echo "$as_me:$LINENO: result: $CC" >&5
1909 echo "${ECHO_T}$CC" >&6; }
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
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC
="$CC" # Let the user override the test.
1930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1958 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1964 if test -n "$CC"; then
1965 { echo "$as_me:$LINENO: result: $CC" >&5
1966 echo "${ECHO_T}$CC" >&6; }
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
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC
="$CC" # Let the user override the test.
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
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
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x
; then
2065 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
2093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler --version >&5") 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (ac_try="$ac_compiler -v >&5"
2103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2104 *) ac_try_echo
=$ac_try;;
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -v >&5") 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111 { (ac_try
="$ac_compiler -V >&5"
2113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2117 (eval "$ac_compiler -V >&5") 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
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
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.
2155 for ac_file in $ac_files
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2159 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164 if { (ac_try="$ac_link_default"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_link_default") 2>&5
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
2179 for ac_file
in $ac_files ''
2181 test -f "$ac_file" ||
continue
2183 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2186 # We found the default executable, but exeext='' is most
2190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
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
2204 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
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;;
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_try") 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 if test "$cross_compiling" = maybe; then
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"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_link") 2>&5
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
2285 for ac_file
in conftest.exe conftest conftest.
*; do
2286 test -f "$ac_file" ||
continue
2288 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2289 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
2314 cat >conftest.
$ac_ext <<_ACEOF
2317 cat confdefs.h
>>conftest.
$ac_ext
2318 cat >>conftest.
$ac_ext <<_ACEOF
2319 /* end confdefs.h. */
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try
="$ac_compile"
2332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336 (eval "$ac_compile") 2>&5
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;
2343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
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
2407 echo "$as_me: failed program was
:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
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
2427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
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
2465 echo "$as_me: failed program was
:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2493 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2508 cat >conftest.$ac_ext <<_ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2568 if test "$GCC" = yes; then
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
2579 ac_cv_prog_cc_c89=no
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.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)
2600 static char *f (char * (*g) (char **, int), char **p, ...)
2605 s = g (p, va_arg (v,int));
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. */
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);
2633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2651 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2670 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
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
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
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
2714 if test -n "$CXX"; then
2715 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2735 if test -n "$CXX"; then
2736 { echo "$as_me:$LINENO: result
: $CXX" >&5
2737 echo "${ECHO_T}$CXX" >&6; }
2739 { echo "$as_me:$LINENO: result
: no
" >&5
2740 echo "${ECHO_T}no
" >&6; }
2744 test -n "$CXX" && break
2747 if test -z "$CXX"; then
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
2758 if test -n "$ac_ct_CXX"; then
2759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2783 { echo "$as_me:$LINENO: result
: no
" >&5
2784 echo "${ECHO_T}no
" >&6; }
2788 test -n "$ac_ct_CXX" && break
2791 if test "x
$ac_ct_CXX" = x; then
2794 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_compiler --version >&5") 2>&5
2821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2822 (exit $ac_status); }
2823 { (ac_try="$ac_compiler -v >&5"
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compiler -v >&5") 2>&5
2831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2832 (exit $ac_status); }
2833 { (ac_try="$ac_compiler -V >&5"
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compiler -V >&5") 2>&5
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
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2867 rm -f conftest.$ac_objext
2868 if { (ac_try="$ac_compile"
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
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
2886 echo "$as_me: failed program was
:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
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
2906 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2907 ac_cxx_werror_flag=yes
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2934 grep -v '^ *+' conftest.er1 >conftest.err
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
2944 echo "$as_me: failed program was
:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3047 if test "$GXX" = yes; then
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
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
3074 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest$ac_exeext
3091 if { (ac_try="$ac_link"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link") 2>&5
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;;
3105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
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; }
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
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
3136 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3153 ~A() { if (i == 1) _exit(0); }
3166 rm -f conftest$ac_exeext
3167 if { (ac_try="$ac_link"
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_link") 2>&5
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;;
3181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
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; }
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
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
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (ac_try="$ac_link"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_link") 2>conftest.er1
3241 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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
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
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
3291 make an error "Character
set is not EBCDIC
"
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
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; } ;;
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
3368 if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached
) $ECHO_C" >&6
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
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
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3391 # include <limits.h>
3393 # include <assert.h>
3397 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
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
3415 echo "$as_me: failed program was
:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
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
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3434 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
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
3450 # Broken: success on invalid input.
3453 echo "$as_me: failed program was
:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Passes both tests.
3461 rm -f conftest.err conftest.$ac_ext
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
3478 { echo "$as_me:$LINENO: result
: $CPP" >&5
3479 echo "${ECHO_T}$CPP" >&6; }
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
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3496 # include <limits.h>
3498 # include <assert.h>
3502 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
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
3520 echo "$as_me: failed program was
:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Broken: fails on valid input.
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
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <ac_nonexistent.h>
3539 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
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
3555 # Broken: success on invalid input.
3558 echo "$as_me: failed program was
:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 # Passes both tests.
3566 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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.
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
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
3614 cat >Imakefile <<'_ACEOF'
3616 @echo incroot='${INCROOT}'
3618 @echo usrlibdir='${USRLIBDIR}'
3620 @echo libdir='${LIBDIR}'
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
'\`"
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
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;;
3641 case $ac_im_usrlibdir in
3643 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
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.
3663 /usr
/local
/X11
/include
3664 /usr
/local
/X11R
6/include
3665 /usr
/local
/X11R
5/include
3666 /usr
/local
/X11R
4/include
3668 /usr
/local
/include
/X11
3669 /usr
/local
/include
/X11R6
3670 /usr
/local
/include
/X11R5
3671 /usr
/local
/include
/X11R4
3675 /usr
/XFree86
/include
/X11
3679 /usr
/unsupported
/include
3681 /usr
/local
/x11r
5/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
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include <X11/Xlib.h>
3698 if { (ac_try="$ac_cpp conftest.$ac_ext"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3706 grep -v '^
*+' conftest.er1 >conftest.err
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
3714 # We can compile using X headers with no special include directory.
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
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.
3737 cat >conftest.
$ac_ext <<_ACEOF
3740 cat confdefs.h
>>conftest.
$ac_ext
3741 cat >>conftest.
$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 #include <X11/Xlib.h>
3752 rm -f conftest.
$ac_objext conftest
$ac_exeext
3753 if { (ac_try
="$ac_link"
3755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_link") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
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
3771 # We can link X programs with no special library path.
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
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
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 #(
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'"
3808 eval "$ac_cv_have_x"
3811 if test "$have_x" != yes; then
3812 { echo "$as_me:$LINENO: result: $have_x" >&5
3813 echo "${ECHO_T}$have_x" >&6; }
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
3834 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
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
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.$ac_objext conftest$ac_exeext
3866 if { (ac_try="$ac_link"
3868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3869 *) ac_try_echo
=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_link") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
3894 cat confdefs.h
>>conftest.
$ac_ext
3895 cat >>conftest.
$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3906 rm -f conftest.
$ac_objext conftest
$ac_exeext
3907 if { (ac_try
="$ac_link"
3909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_link") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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"
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
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. */
3969 char XOpenDisplay ();
3973 return XOpenDisplay ();
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (ac_try="$ac_link"
3981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3982 *) ac_try_echo
=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_link") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4006 ac_check_lib_save_LIBS
=$LIBS
4008 cat >conftest.
$ac_ext <<_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. */
4025 return dnet_ntoa ();
4030 rm -f conftest.
$ac_objext conftest
$ac_exeext
4031 if { (ac_try
="$ac_link"
4033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_link") 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4072 ac_check_lib_save_LIBS=$LIBS
4073 LIBS="-ldnet_stub $LIBS"
4074 cat >conftest.$ac_ext <<_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. */
4091 return dnet_ntoa ();
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (ac_try="$ac_link"
4099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4100 *) ac_try_echo
=$ac_try;;
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_link") 2>conftest.er1
4105 grep -v '^ *+' conftest.er1
>conftest.err
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
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)
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
4152 cat >conftest.
$ac_ext <<_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. */
4168 # include <limits.h>
4170 # include <assert.h>
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. */
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
4192 return gethostbyname ();
4197 rm -f conftest.
$ac_objext conftest
$ac_exeext
4198 if { (ac_try
="$ac_link"
4200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_link") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4235 ac_check_lib_save_LIBS=$LIBS
4237 cat >conftest.$ac_ext <<_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. */
4250 char gethostbyname ();
4254 return gethostbyname ();
4259 rm -f conftest.$ac_objext conftest$ac_exeext
4260 if { (ac_try="$ac_link"
4262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4263 *) ac_try_echo
=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_link") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4301 ac_check_lib_save_LIBS
=$LIBS
4303 cat >conftest.
$ac_ext <<_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. */
4316 char gethostbyname ();
4320 return gethostbyname ();
4325 rm -f conftest.
$ac_objext conftest
$ac_exeext
4326 if { (ac_try
="$ac_link"
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_link") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4376 cat >conftest.$ac_ext <<_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. */
4392 # include <limits.h>
4394 # include <assert.h>
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. */
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
4421 rm -f conftest.$ac_objext conftest$ac_exeext
4422 if { (ac_try="$ac_link"
4424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4425 *) ac_try_echo
=$ac_try;;
4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428 (eval "$ac_link") 2>conftest.er1
4430 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4459 ac_check_lib_save_LIBS
=$LIBS
4460 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4461 cat >conftest.
$ac_ext <<_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. */
4483 rm -f conftest.
$ac_objext conftest
$ac_exeext
4484 if { (ac_try
="$ac_link"
4486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_link") 2>conftest.er1
4492 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4527 cat >conftest.$ac_ext <<_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. */
4543 # include <limits.h>
4545 # include <assert.h>
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. */
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
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (ac_try="$ac_link"
4575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4576 *) ac_try_echo
=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_link") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4610 ac_check_lib_save_LIBS
=$LIBS
4611 LIBS
="-lposix $LIBS"
4612 cat >conftest.
$ac_ext <<_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. */
4634 rm -f conftest.
$ac_objext conftest
$ac_exeext
4635 if { (ac_try
="$ac_link"
4637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_link") 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4678 cat >conftest.$ac_ext <<_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. */
4694 # include <limits.h>
4696 # include <assert.h>
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. */
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
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4727 *) ac_try_echo
=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1
>conftest.err
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
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.
$ac_ext >&5
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
4761 ac_check_lib_save_LIBS
=$LIBS
4763 cat >conftest.
$ac_ext <<_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. */
4785 rm -f conftest.
$ac_objext conftest
$ac_exeext
4786 if { (ac_try
="$ac_link"
4788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_link") 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4838 ac_check_lib_save_LIBS=$LIBS
4839 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4840 cat >conftest.$ac_ext <<_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. */
4853 char IceConnectionNumber ();
4857 return IceConnectionNumber ();
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (ac_try="$ac_link"
4865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4866 *) ac_try_echo
=$ac_try;;
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_link") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1
>conftest.err
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
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
4904 if test -z "$groff_no_x"; then
4908 CFLAGS
="$CFLAGS $X_CFLAGS"
4909 LDFLAGS
="$LDFLAGS $X_LIBS"
4910 LIBS
="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
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
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>
4937 rm -f conftest.
$ac_objext conftest
$ac_exeext
4938 if { (ac_try
="$ac_link"
4940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_link") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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; }
4966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4967 conftest$ac_exeext conftest.$ac_ext
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
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>
4994 rm -f conftest.$ac_objext conftest$ac_exeext
4995 if { (ac_try="$ac_link"
4997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4998 *) ac_try_echo
=$ac_try;;
5000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5001 (eval "$ac_link") 2>conftest.er1
5003 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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; }
5023 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5024 conftest
$ac_exeext conftest.
$ac_ext
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;}
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
5054 # Make sure to not put `make' in the Imakefile rules,
5055 # since we grep it out.
5056 cat >Imakefile
<<'EOF'
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
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.
5096 /usr/local/X11R6/lib
5097 /usr/local/X11R5/lib
5098 /usr/local/X11R4/lib
5101 /usr/local/lib/X11R6
5102 /usr/local/lib/X11R5
5103 /usr/local/lib/X11R4
5107 /usr/XFree86/lib/X11
5111 /usr/unsupported/lib
5113 /usr/local/x11r5/lib
5114 /usr/lpp/Xamples/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
5131 if test "x$with_appresdir" = "x"; then
5132 appresdir
=$groff_x_usrlibdir/X11
/app-defaults
5134 appresdir
=$with_appresdir
5138 if test -z "$PSPRINT"; then
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
5148 if test -n "$LPR"; then
5149 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
5151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
5169 if test -n "$LPR"; then
5170 { echo "$as_me:$LINENO: result: $LPR" >&5
5171 echo "${ECHO_T}$LPR" >&6; }
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5178 test -n "$LPR" && break
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
5190 if test -n "$LP"; then
5191 ac_cv_prog_LP
="$LP" # Let the user override the test.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
5211 if test -n "$LP"; then
5212 { echo "$as_me:$LINENO: result: $LP" >&5
5213 echo "${ECHO_T}$LP" >&6; }
5215 { echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6; }
5220 test -n "$LP" && break
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
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
5236 if test -n "$LPQ"; then
5237 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
5257 if test -n "$LPQ"; then
5258 { echo "$as_me:$LINENO: result: $LPQ" >&5
5259 echo "${ECHO_T}$LPQ" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 test -n "$LPQ" && break
5269 test -n "$LPQ" || LPR
=
5271 if test -n "$LPR"; then
5273 elif test -n "$LP"; then
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
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
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
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
/xpg
4/bin
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
5322 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5325 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
5343 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5347 $ac_path_GREP_found && break 3
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; }; }
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
5380 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5381 then ac_cv_path_EGREP
="$GREP -E"
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
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
/xpg
4/bin
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
5404 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5407 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
5425 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5429 $ac_path_EGREP_found && break 3
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; }; }
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
5467 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
5485 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
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; }
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
5508 if test -n "$YACC"; then
5509 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
5533 { echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6; }
5538 test -n "$YACC" && break
5540 test -n "$YACC" || YACC
="yacc"
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
5550 if test -n "$MAKEINFO"; then
5551 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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."
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; }; }
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
5628 if test -n "$RANLIB"; then
5629 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
5668 if test -n "$ac_ct_RANLIB"; then
5669 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
5693 { echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6; }
5697 if test "x$ac_ct_RANLIB" = x
; then
5700 case $cross_compiling:$ac_tool_warned in
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 ;;
5710 RANLIB
=$ac_ct_RANLIB
5713 RANLIB
="$ac_cv_prog_RANLIB"
5717 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5718 if test -f "$ac_dir/install-sh"; then
5720 ac_install_sh
="$ac_aux_dir/install-sh -c"
5722 elif test -f "$ac_dir/install.sh"; then
5724 ac_install_sh
="$ac_aux_dir/install.sh -c"
5726 elif test -f "$ac_dir/shtool"; then
5728 ac_install_sh
="$ac_aux_dir/shtool install -c"
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
5759 if test -n "$INSTALL_INFO"; then
5760 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
5762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$INSTALL_INFO" && break
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
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
5812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir
=.
5817 # Account for people who put trailing slashes in PATH elements.
5819 .
/ | .
// |
/cC
/* | \
5820 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5821 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
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
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.
5839 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5852 if test "${ac_cv_path_install+set}" = set; then
5853 INSTALL
=$ac_cv_path_install
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; }
5876 if test "$LN_S" = "ln -s"; then
5877 { echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6; }
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
5893 export PATH || exit 0
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/.*/:/'
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 SH_SCRIPT_SED_CMD
='1s/a/a/'
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
5916 cat >conftest.
$ac_ext <<_ACEOF
5919 cat confdefs.h
>>conftest.
$ac_ext
5920 cat >>conftest.
$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5935 rm -f conftest.
$ac_objext
5936 if { (ac_try
="$ac_compile"
5938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_compile") 2>conftest.er1
5944 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974 $EGREP "memchr" >/dev/null 2>&1; then
5977 ac_cv_header_stdc=no
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
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 $EGREP "free" >/dev/null 2>&1; then
5998 ac_cv_header_stdc=no
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
6009 cat >conftest.$ac_ext <<_ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6017 #if ((' ' & 0x0FF) == 0x020)
6018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
6028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6033 for (i = 0; i < 256; i++)
6034 if (XOR (islower (i), ISLOWER (i))
6035 || toupper (i) != TOUPPER (i))
6040 rm -f conftest$ac_exeext
6041 if { (ac_try="$ac_link"
6043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6044 *) ac_try_echo
=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_link") 2>&5
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;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
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
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
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
6104 cat >conftest.$ac_ext <<_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>
6114 rm -f conftest.$ac_objext
6115 if { (ac_try="$ac_compile"
6117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6118 *) ac_try_echo
=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compile") 2>conftest.er1
6123 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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; }
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
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>
6192 rm -f conftest.
$ac_objext
6193 if { (ac_try
="$ac_compile"
6195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6201 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6230 #include <$ac_header>
6232 if { (ac_try="$ac_cpp conftest.$ac_ext"
6234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6235 *) ac_try_echo
=$ac_try;;
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6240 grep -v '^ *+' conftest.er1
>conftest.err
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
6248 ac_header_preproc
=yes
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
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
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;}
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
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
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
6310 { echo "$as_me:$LINENO: result: yes" >&5
6311 echo "${ECHO_T}yes" >&6; }
6313 cat >>confdefs.h
<<\_ACEOF
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; }
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
6333 cat confdefs.h
>>conftest.
$ac_ext
6334 cat >>conftest.
$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6339 extern "C" { void fileno(int); }
6351 rm -f conftest.
$ac_objext
6352 if { (ac_try
="$ac_compile"
6354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6410 extern "C" { void srand(unsigned int); }
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6426 *) ac_try_echo
=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
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
6472 cat >conftest.
$ac_ext <<_ACEOF
6476 cat confdefs.h
>>conftest.
$ac_ext
6477 cat >>conftest.
$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6482 #ifdef HAVE_STRING_H
6485 #ifdef HAVE_STRINGS_H
6486 #include <strings.h>
6488 #ifdef HAVE_STDLIB_H
6491 #ifdef HAVE_SYS_TIME_H
6492 #include <sys/time.h>
6494 #ifdef HAVE_UNISTD_H
6507 #ifndef gettimeofday
6508 char *p = (char *) gettimeofday;
6517 rm -f conftest.
$ac_objext
6518 if { (ac_try
="$ac_compile"
6520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
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
6571 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6581 #ifdef HAVE_STRING_H
6584 #ifdef HAVE_STRINGS_H
6585 #include <strings.h>
6587 #ifdef HAVE_STDLIB_H
6590 #ifdef HAVE_SYS_TIME_H
6591 #include <sys/time.h>
6593 #ifdef HAVE_UNISTD_H
6607 char *p = (char *) hypot;
6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6620 *) ac_try_echo
=$ac_try;;
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_compile") 2>conftest.er1
6625 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
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
6670 cat >conftest.
$ac_ext <<_ACEOF
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6680 #ifdef HAVE_STRING_H
6683 #ifdef HAVE_STRINGS_H
6684 #include <strings.h>
6686 #ifdef HAVE_STDLIB_H
6689 #ifdef HAVE_SYS_TIME_H
6690 #include <sys/time.h>
6692 #ifdef HAVE_UNISTD_H
6706 char *p = (char *) popen;
6715 rm -f conftest.
$ac_objext
6716 if { (ac_try
="$ac_compile"
6718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_compile") 2>conftest.er1
6724 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
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
6769 cat >conftest.$ac_ext <<_ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6779 #ifdef HAVE_STRING_H
6782 #ifdef HAVE_STRINGS_H
6783 #include <strings.h>
6785 #ifdef HAVE_STDLIB_H
6788 #ifdef HAVE_SYS_TIME_H
6789 #include <sys/time.h>
6791 #ifdef HAVE_UNISTD_H
6805 char *p = (char *) pclose;
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6818 *) ac_try_echo
=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
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
6868 cat >conftest.
$ac_ext <<_ACEOF
6872 cat confdefs.h
>>conftest.
$ac_ext
6873 cat >>conftest.
$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6878 #ifdef HAVE_STRING_H
6881 #ifdef HAVE_STRINGS_H
6882 #include <strings.h>
6884 #ifdef HAVE_STDLIB_H
6887 #ifdef HAVE_SYS_TIME_H
6888 #include <sys/time.h>
6890 #ifdef HAVE_UNISTD_H
6904 char *p = (char *) putenv;
6913 rm -f conftest.
$ac_objext
6914 if { (ac_try
="$ac_compile"
6916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
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
6967 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6977 #ifdef HAVE_STRING_H
6980 #ifdef HAVE_STRINGS_H
6981 #include <strings.h>
6983 #ifdef HAVE_STDLIB_H
6986 #ifdef HAVE_SYS_TIME_H
6987 #include <sys/time.h>
6989 #ifdef HAVE_UNISTD_H
7003 char *p = (char *) rand;
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7016 *) ac_try_echo
=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
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
7066 cat >conftest.
$ac_ext <<_ACEOF
7070 cat confdefs.h
>>conftest.
$ac_ext
7071 cat >>conftest.
$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7076 #ifdef HAVE_STRING_H
7079 #ifdef HAVE_STRINGS_H
7080 #include <strings.h>
7082 #ifdef HAVE_STDLIB_H
7085 #ifdef HAVE_SYS_TIME_H
7086 #include <sys/time.h>
7088 #ifdef HAVE_UNISTD_H
7102 char *p = (char *) snprintf;
7111 rm -f conftest.
$ac_objext
7112 if { (ac_try
="$ac_compile"
7114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
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
7165 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7175 #ifdef HAVE_STRING_H
7178 #ifdef HAVE_STRINGS_H
7179 #include <strings.h>
7181 #ifdef HAVE_STDLIB_H
7184 #ifdef HAVE_SYS_TIME_H
7185 #include <sys/time.h>
7187 #ifdef HAVE_UNISTD_H
7201 char *p = (char *) srand;
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7214 *) ac_try_echo
=$ac_try;;
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
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
7264 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7274 #ifdef HAVE_STRING_H
7277 #ifdef HAVE_STRINGS_H
7278 #include <strings.h>
7280 #ifdef HAVE_STDLIB_H
7283 #ifdef HAVE_SYS_TIME_H
7284 #include <sys/time.h>
7286 #ifdef HAVE_UNISTD_H
7300 char *p = (char *) strcasecmp;
7309 rm -f conftest.
$ac_objext
7310 if { (ac_try
="$ac_compile"
7312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
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
7363 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7373 #ifdef HAVE_STRING_H
7376 #ifdef HAVE_STRINGS_H
7377 #include <strings.h>
7379 #ifdef HAVE_STDLIB_H
7382 #ifdef HAVE_SYS_TIME_H
7383 #include <sys/time.h>
7385 #ifdef HAVE_UNISTD_H
7399 char *p = (char *) strncasecmp;
7408 rm -f conftest.$ac_objext
7409 if { (ac_try="$ac_compile"
7411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7412 *) ac_try_echo
=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7417 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
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
7462 cat >conftest.
$ac_ext <<_ACEOF
7466 cat confdefs.h
>>conftest.
$ac_ext
7467 cat >>conftest.
$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7472 #ifdef HAVE_STRING_H
7475 #ifdef HAVE_STRINGS_H
7476 #include <strings.h>
7478 #ifdef HAVE_STDLIB_H
7481 #ifdef HAVE_SYS_TIME_H
7482 #include <sys/time.h>
7484 #ifdef HAVE_UNISTD_H
7498 char *p = (char *) vfprintf;
7507 rm -f conftest.
$ac_objext
7508 if { (ac_try
="$ac_compile"
7510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
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
7561 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7571 #ifdef HAVE_STRING_H
7574 #ifdef HAVE_STRINGS_H
7575 #include <strings.h>
7577 #ifdef HAVE_STDLIB_H
7580 #ifdef HAVE_SYS_TIME_H
7581 #include <sys/time.h>
7583 #ifdef HAVE_UNISTD_H
7597 char *p = (char *) vsnprintf;
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7610 *) ac_try_echo
=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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
7661 cat confdefs.h
>>conftest.
$ac_ext
7662 cat >>conftest.
$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7685 rm -f conftest.
$ac_objext
7686 if { (ac_try
="$ac_compile"
7688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7746 k = (int)sys_errlist[0];
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7758 *) ac_try_echo
=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7821 rm -f conftest.
$ac_objext
7822 if { (ac_try
="$ac_compile"
7824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7899 *) ac_try_echo
=$ac_try;;
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7904 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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
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>
7960 uintmax_t i = (uintmax_t)-1;
7968 rm -f conftest.
$ac_objext
7969 if { (ac_try
="$ac_compile"
7971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
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
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
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8026 unsigned long long ull = 1;
8028 unsigned long long ullmax = (unsigned long long)-1;
8036 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (ac_try="$ac_link"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_link") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
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
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
8104 cat confdefs.h
>>conftest.
$ac_ext
8105 cat >>conftest.
$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8118 struct tm *p = localtime(&t);
8126 rm -f conftest.
$ac_objext
8127 if { (ac_try
="$ac_compile"
8129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_compile") 2>conftest.er1
8135 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8181 #include <sys/types.h>
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8206 *) ac_try_echo
=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1
>conftest.err
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
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.
$ac_ext >&5
8227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
8239 { echo "$as_me:$LINENO: result: int" >&5
8240 echo "${ECHO_T}int" >&6; }
8242 cat >>confdefs.h
<<\_ACEOF
8243 #define RETSIGTYPE int
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
8253 cat confdefs.h
>>conftest.
$ac_ext
8254 cat >>conftest.
$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8274 rm -f conftest.
$ac_objext
8275 if { (ac_try
="$ac_compile"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
8314 # See if sys/param.h defines the BYTE_ORDER macro.
8315 cat >conftest.$ac_ext <<_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>
8327 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
8328 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8340 *) ac_try_echo
=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1
>conftest.err
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
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>
8366 #if BYTE_ORDER != BIG_ENDIAN
8374 rm -f conftest.
$ac_objext
8375 if { (ac_try
="$ac_compile"
8377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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; }
8423 _ascii (); _ebcdic ();
8428 rm -f conftest.$ac_objext
8429 if { (ac_try="$ac_compile"
8431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8432 *) ac_try_echo
=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1
>conftest.err
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
8452 # finding both strings is unlikely to happen, but who knows?
8453 ac_cv_c_bigendian
=unknown
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
8465 cat >conftest.
$ac_ext <<_ACEOF
8468 cat confdefs.h
>>conftest.
$ac_ext
8469 cat >>conftest.
$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8476 /* Are we little or big endian? From Harbison&Steele. */
8480 char c[sizeof (long int)];
8483 return u.c[sizeof (long int) - 1] == 1;
8489 rm -f conftest
$ac_exeext
8490 if { (ac_try
="$ac_link"
8492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_link") 2>&5
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;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_c_bigendian
=no
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
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
8531 cat >>confdefs.h
<<\_ACEOF
8532 #define WORDS_BIGENDIAN 1
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; }; } ;;
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
8552 ac_check_lib_save_LIBS
=$LIBS
8554 cat >conftest.
$ac_ext <<_ACEOF
8557 cat confdefs.h
>>conftest.
$ac_ext
8558 cat >>conftest.
$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8570 rm -f conftest.
$ac_objext conftest
$ac_exeext
8571 if { (ac_try
="$ac_link"
8573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_link") 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
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
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
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
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
8612 ac_check_lib_save_LIBS=$LIBS
8614 cat >conftest.$ac_ext <<_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. */
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (ac_try="$ac_link"
8639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8640 *) ac_try_echo
=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_link") 2>conftest.er1
8645 grep -v '^ *+' conftest.er1
>conftest.err
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
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
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
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; }; };;
8706 ac_save_IFS
=$IFS; IFS
='-'
8712 # Remember, the first character of IFS is used to create $*,
8713 # except with old shells:
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
8724 if test "x$host_alias" = x
; then
8725 ac_cv_host
=$ac_cv_build
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; }
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; }; };;
8743 ac_save_IFS
=$IFS; IFS
='-'
8749 # Remember, the first character of IFS is used to create $*,
8750 # except with old shells:
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"
8760 acl_final_prefix
="$prefix"
8762 if test "X$exec_prefix" = "XNONE"; then
8763 acl_final_exec_prefix
='${prefix}'
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
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
8786 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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; }
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` ;;
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%/%"`
8814 test -z "$LD" && LD
="$ac_prog"
8817 # If it fails, then pretend we aren't using GCC.
8821 # If it is relative, then search for the first ld in PATH.
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; }
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
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 ;;
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; }
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
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
;;
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
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
8902 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8903 echo "${ECHO_T}$acl_cv_rpath" >&6; }
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; :
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
;;
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
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"
8982 additional_includedir
="$withval/include"
8983 additional_libdir
="$withval/$acl_libdirstem"
8995 names_already_handled
=
8996 names_next_round
='iconv '
8997 while test -n "$names_next_round"; do
8998 names_this_round
="$names_next_round"
9000 for name
in $names_this_round; do
9002 for n
in $names_already_handled; do
9003 if test "$n" = "$name"; then
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"
9026 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9027 if test -n "$acl_shlibext"; then
9028 shrext
=".$acl_shlibext" # typically: shrext=.so
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
9037 found_so
="$dir/$libname$shrext"
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
9047 found_so
="$dir/$libname$shrext.$ver"
9050 eval library_names
=\"$acl_library_names_spec\"
9051 for f
in $library_names; do
9052 if test -f "$dir/$f"; then
9061 if test "X$found_dir" = "X"; then
9062 if test -f "$dir/$libname.$acl_libext"; then
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"
9081 exec_prefix
="$acl_save_exec_prefix"
9082 prefix
="$acl_save_prefix"
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
9090 found_so
="$dir/$libname$shrext"
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
9100 found_so
="$dir/$libname$shrext.$ver"
9103 eval library_names
=\"$acl_library_names_spec\"
9104 for f
in $library_names; do
9105 if test -f "$dir/$f"; then
9114 if test "X$found_dir" = "X"; then
9115 if test -f "$dir/$libname.$acl_libext"; then
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"
9127 if test "X$found_dir" != "X"; then
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"
9139 for x
in $ltrpathdirs; do
9140 if test "X$x" = "X$found_dir"; then
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"
9151 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9152 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9154 for x
in $rpathdirs; do
9155 if test "X$x" = "X$found_dir"; then
9160 if test -z "$haveit"; then
9161 rpathdirs
="$rpathdirs $found_dir"
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"
9172 exec_prefix
="$acl_save_exec_prefix"
9173 prefix
="$acl_save_prefix"
9175 if test "X$x" = "X-L$found_dir"; then
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"
9186 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9192 if test "X$found_a" != "X"; then
9193 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
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"
9206 if test "X$additional_includedir" != "X"; then
9207 if test "X$additional_includedir" != "X/usr/include"; then
9209 if test "X$additional_includedir" = "X/usr/local/include"; then
9210 if test -n "$GCC"; then
9212 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
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"
9224 exec_prefix
="$acl_save_exec_prefix"
9225 prefix
="$acl_save_prefix"
9227 if test "X$x" = "X-I$additional_includedir"; then
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"
9243 */* |
*\\*) .
"$found_la" ;;
9244 *) .
"./$found_la" ;;
9246 libdir
="$save_libdir"
9247 for dep
in $dependency_libs; do
9250 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9251 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
9253 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
9254 if test -n "$GCC"; then
9256 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9260 if test -z "$haveit"; then
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"
9269 exec_prefix
="$acl_save_exec_prefix"
9270 prefix
="$acl_save_prefix"
9272 if test "X$x" = "X-L$additional_libdir"; then
9277 if test -z "$haveit"; then
9278 if test -d "$additional_libdir"; then
9279 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
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"
9290 exec_prefix
="$acl_save_exec_prefix"
9291 prefix
="$acl_save_prefix"
9293 if test "X$x" = "X-L$additional_libdir"; then
9298 if test -z "$haveit"; then
9299 if test -d "$additional_libdir"; then
9300 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9307 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9308 if test "$enable_rpath" != no
; then
9310 for x
in $rpathdirs; do
9311 if test "X$x" = "X$dir"; then
9316 if test -z "$haveit"; then
9317 rpathdirs
="$rpathdirs $dir"
9320 for x
in $ltrpathdirs; do
9321 if test "X$x" = "X$dir"; then
9326 if test -z "$haveit"; then
9327 ltrpathdirs
="$ltrpathdirs $dir"
9332 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
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"
9345 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9346 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9352 if test "X$rpathdirs" != "X"; then
9353 if test -n "$acl_hardcode_libdir_separator"; then
9355 for found_dir
in $rpathdirs; do
9356 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9358 acl_save_libdir
="$libdir"
9360 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9361 libdir
="$acl_save_libdir"
9362 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9364 for found_dir
in $rpathdirs; do
9365 acl_save_libdir
="$libdir"
9367 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9368 libdir
="$acl_save_libdir"
9369 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9373 if test "X$ltrpathdirs" != "X"; then
9374 for found_dir
in $ltrpathdirs; do
9375 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9385 am_save_CPPFLAGS
="$CPPFLAGS"
9387 for element
in $INCICONV; do
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"
9396 exec_prefix
="$acl_save_exec_prefix"
9397 prefix
="$acl_save_prefix"
9399 if test "X$x" = "X$element"; then
9404 if test -z "$haveit"; then
9405 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
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
9416 am_cv_func_iconv
="no, consider installing GNU libiconv"
9418 cat >conftest.
$ac_ext <<_ACEOF
9421 cat confdefs.h
>>conftest.
$ac_ext
9422 cat >>conftest.
$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9429 iconv_t cd = iconv_open("","");
9430 iconv(cd,NULL,NULL,NULL,NULL);
9436 rm -f conftest.
$ac_objext conftest
$ac_exeext
9437 if { (ac_try
="$ac_link"
9439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_link") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9478 iconv_t cd = iconv_open("","");
9479 iconv(cd,NULL,NULL,NULL,NULL);
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9489 *) ac_try_echo
=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1
>conftest.err
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
9504 am_cv_func_iconv
=yes
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
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
9533 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
9534 *) am_cv_func_iconv_works
="guessing yes" ;;
9537 cat >conftest.
$ac_ext <<_ACEOF
9540 cat confdefs.h
>>conftest.
$ac_ext
9541 cat >>conftest.
$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9548 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
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 */
9556 const char *inptr = input;
9557 size_t inbytesleft = strlen (input);
9559 size_t outbytesleft = sizeof (buf);
9560 size_t res = iconv (cd_utf8_to_88591,
9561 (char **) &inptr, &inbytesleft,
9562 &outptr, &outbytesleft);
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";
9575 const char *inptr = input;
9576 size_t inbytesleft = strlen (input);
9578 size_t outbytesleft = sizeof (buf);
9579 size_t res = iconv (cd_88591_to_utf8,
9580 (char **) &inptr, &inbytesleft,
9581 &outptr, &outbytesleft);
9587 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
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))
9601 rm -f conftest
$ac_exeext
9602 if { (ac_try
="$ac_link"
9604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>&5
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;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 am_cv_func_iconv_works
=yes
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
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 ;;
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
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; }
9659 CPPFLAGS
="$am_save_CPPFLAGS"
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
9673 cat >conftest.
$ac_ext <<_ACEOF
9676 cat confdefs.h
>>conftest.
$ac_ext
9677 cat >>conftest.
$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9686 #if defined(__STDC__) || defined(__cplusplus)
9687 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9700 rm -f conftest.
$ac_objext
9701 if { (ac_try
="$ac_compile"
9703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_compile") 2>conftest.er1
9709 grep -v '^ *+' conftest.er1 >conftest.err
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=""
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
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; }
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
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>
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9774 *) ac_try_echo
=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_compile") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1
>conftest.err
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
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
9805 cat confdefs.h
>>conftest.
$ac_ext
9806 cat >>conftest.
$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 #include <$ac_header>
9810 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
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
9826 ac_header_preproc=yes
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
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
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;}
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
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
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
9893 cat >conftest.$ac_ext <<_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. */
9909 # include <limits.h>
9911 # include <assert.h>
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. */
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
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9942 *) ac_try_echo
=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9947 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
9983 if test "$cross_compiling" = yes; then
9984 ac_cv_func_mmap_fixed_mapped
=no
9986 cat >conftest.
$ac_ext <<_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. */
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) */
10019 #include <sys/mman.h>
10021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
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
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 */
10041 # define getpagesize() NBPG * CLSIZE
10044 # endif /* no CLSIZE */
10045 # else /* no NBPG */
10047 # define getpagesize() NBPC
10048 # else /* no NBPC */
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 */
10065 char *data, *data2, *data3;
10069 pagesize = getpagesize ();
10071 /* First, make a file with some known garbage in it. */
10072 data = (char *) malloc (pagesize);
10075 for (i = 0; i < pagesize; ++i)
10076 *(data + i) = rand ();
10078 fd = creat ("conftest.mmap", 0600);
10081 if (write (fd, data, pagesize) != pagesize)
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);
10091 data2 = (char *) malloc (2 * pagesize);
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))
10098 for (i = 0; i < pagesize; ++i)
10099 if (*(data + i) != *(data2 + i))
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);
10110 if (read (fd, data3, pagesize) != pagesize)
10112 for (i = 0; i < pagesize; ++i)
10113 if (*(data + i) != *(data3 + i))
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;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>&5
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;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func_mmap_fixed_mapped
=yes
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
10162 rm -f conftest.mmap
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
10183 cat >conftest.
$ac_ext <<_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. */
10199 # include <limits.h>
10201 # include <assert.h>
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. */
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
10223 return $ac_func ();
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;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
10266 case " $LIBOBJS " in
10267 *" $ac_func.$ac_objext "* ) ;;
10268 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
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
10286 cat >conftest.$ac_ext <<_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. */
10302 # include <limits.h>
10304 # include <assert.h>
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. */
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
10326 return $ac_func ();
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;;
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>conftest.er1
10340 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
10369 case " $LIBOBJS " in
10370 *" snprintf.$ac_objext "* ) ;;
10371 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
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
10393 cat >conftest.
$ac_ext <<_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. */
10409 # include <limits.h>
10411 # include <assert.h>
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. */
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
10433 return $ac_func ();
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;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
10478 { echo "$as_me:$LINENO: checking for mkstemp" >&5
10479 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
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
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>
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;;
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521 (eval "$ac_link") 2>conftest.er1
10523 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
10553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10554 conftest
$ac_exeext conftest.
$ac_ext
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
10566 cat >conftest.
$ac_ext <<_ACEOF
10569 cat confdefs.h
>>conftest.
$ac_ext
10570 cat >>conftest.
$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10576 #ifndef sys_siglist
10577 (void) sys_siglist;
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;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10621 cat >>confdefs.h <<_ACEOF
10622 #define HAVE_DECL_SYS_SIGLIST 0
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
10632 cat >conftest.$ac_ext <<_ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10642 #ifndef getc_unlocked
10643 (void) getc_unlocked;
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;;
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_compile") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1
>conftest.err
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
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
10687 cat >>confdefs.h
<<_ACEOF
10688 #define HAVE_DECL_GETC_UNLOCKED 0
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
10701 cat >conftest.
$ac_ext <<_ACEOF
10704 cat confdefs.h
>>conftest.
$ac_ext
10705 cat >>conftest.
$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 #include <langinfo.h>
10711 char* cs = nl_langinfo(CODESET); return !cs;
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;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10757 # checks for compiler characteristics
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
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10779 char *p = new char[5];
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;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
10820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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
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
10839 cat confdefs.h
>>conftest.
$ac_ext
10840 cat >>conftest.
$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10844 #define name2(a, b) a/**/b
10852 int name2(foo, bar);
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;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_compile") 2>conftest.er1
10869 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }
10907 cat >conftest.$ac_ext <<_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>
10931 ((union wait *)&i)->w_coredump = 1;
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;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>&5
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;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
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
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
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
11001 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
11002 if test -r $f; then
11009 if test -n "$descfile"; then
11010 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
11012 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
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.
11031 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
11033 *.
[A-Za-z
][A-Za-z
])
11038 test -n "$PAGE" || PAGE
=letter
11039 if test "x$PAGE" = "xA4"; then
11041 cat >>confdefs.h
<<\_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; }
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; }
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
11069 if test -z "$sys_tmac_prefix" \
11071 && grep '^\.if' $f >/dev
/null
2>&1; then
11072 sys_tmac_prefix
=$d/$t
11073 sys_tmac_file_prefix
=$t
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; }
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;;"`
11092 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
11093 || tmac_wrap
="$tmac_wrap $suff" ;;
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
11101 ${sys_tmac_prefix}e
)
11109 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
11110 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
11113 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11118 tmac_wrap
="$tmac_wrap $suff" ;;
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
11135 cat confdefs.h
>>conftest.
$ac_ext
11136 cat >>conftest.
$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11141 #include "conftest.h"
11149 #if PATH_SEP_CHAR == ';'
11150 make an error "Path separator is ';'"
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;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_compile") 2>conftest.er1
11168 grep -v '^ *+' conftest.er1 >conftest.err
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=":"
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"
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
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
11213 if test -n "$GHOSTSCRIPT"; then
11214 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
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
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; }
11238 { echo "$as_me:$LINENO: result: no" >&5
11239 echo "${ECHO_T}no" >&6; }
11243 test -n "$GHOSTSCRIPT" && break
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
11257 if test -n "$ac_ct_GHOSTSCRIPT"; then
11258 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
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
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; }
11282 { echo "$as_me:$LINENO: result: no" >&5
11283 echo "${ECHO_T}no" >&6; }
11287 test -n "$ac_ct_GHOSTSCRIPT" && break
11290 if test "x$ac_ct_GHOSTSCRIPT" = x; then
11291 GHOSTSCRIPT="missing"
11293 case $cross_compiling:$ac_tool_warned in
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 ;;
11303 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
11309 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
11312 make_install_html=install_html
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
11322 if test -n "$pnmcut"; then
11323 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
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
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; }
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
11362 if test -n "$pnmcrop"; then
11363 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
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
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; }
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
11402 if test -n "$pnmtopng"; then
11403 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
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
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; }
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
11442 if test -n "$psselect"; then
11443 ac_cv_prog_psselect="$psselect" # Let the user override the test.
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
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
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; }
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
11482 if test -n "$pnmtops"; then
11483 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
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
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; }
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
11523 while test $# -gt 0
11526 1) missing
="$missing$1" ;;
11527 2) missing
="$missing$1 and " ;;
11528 *) missing
="$missing$1, " ;;
11537 { echo "$as_me:$LINENO: WARNING: missing program$plural:
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.
11546 echo "$as_me: WARNING: missing program$plural:
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.
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"
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
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
11584 if test -n "$AWK"; then
11585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
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
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; }
11609 { echo "$as_me:$LINENO: result: no" >&5
11610 echo "${ECHO_T}no" >&6; }
11614 test -n "$AWK" && break
11617 if test -z "$AWK"; then
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
11628 if test -n "$ac_ct_AWK"; then
11629 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
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
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; }
11653 { echo "$as_me:$LINENO: result: no" >&5
11654 echo "${ECHO_T}no" >&6; }
11658 test -n "$ac_ct_AWK" && break
11661 if test "x$ac_ct_AWK" = x; then
11664 case $cross_compiling:$ac_tool_warned in
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 ;;
11680 test "$AWK" = "no" && AWK=missing
11685 make_install_pdfdoc=install_pdfdoc
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`
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.
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.
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"
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
11735 cat >conftest.$ac_ext <<_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)
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
11754 ac_cv_gnu_library_2_1=no
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.
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
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;} ;;
11807 _ | IFS | as_nl) ;; #(
11808 *) $as_unset $ac_var ;;
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 \).
11820 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
11823 # `set' quotes correctly as required by POSIX, so do not add quotes.
11824 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
11833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
11844 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
11845 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
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
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'
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
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.
11886 ac_cs_recheck=false
11888 SHELL=\${CONFIG_SHELL-$SHELL}
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
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
11906 case `(set -o) 2>/dev/null` in
11907 *posix*) set -o posix ;;
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
11928 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11936 # Support unset when possible.
11937 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
11953 # Find who we are. Look in the path if we contain no directory separator.
11955 *[\\/]* ) as_myself
=$0 ;;
11956 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11957 for as_dir
in $PATH
11960 test -z "$as_dir" && as_dir
=.
11961 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
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
11994 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
11998 # Required to use basename.
11999 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12000 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12006 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12007 as_basename
=basename
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 ||
12019 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
12064 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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.
12081 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12087 ECHO_C
= ECHO_N
= ECHO_T
=
12088 case `echo -n x` in
12090 case `echo 'x\c'` in
12091 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12098 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12099 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12105 rm -f conf$$ conf$$.exe conf$$.
file
12106 if test -d conf$$.dir
; then
12107 rm -f conf$$.dir
/conf$$.
file
12113 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
12121 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
12132 test -d .
/-p && rmdir .
/-p
12136 if test -x / >/dev
/null
2>&1; then
12137 as_test_x
='test -x'
12139 if ls -dL / >/dev
/null
2>&1; then
12146 if test -d "$1"; then
12152 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12153 ???[sx]*):;;*)false;;esac;fi
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'"
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.
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
12181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
12193 cat >>$CONFIG_STATUS <<\_ACEOF
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:
12213 Configuration headers:
12216 Report bugs to <bug-autoconf@gnu.org>."
12219 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
12242 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12243 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12254 # Handling of the options.
12255 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12257 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12258 echo "$ac_cs_version"; exit ;;
12259 --debug |
--debu |
--deb |
--de |
--d |
-d )
12261 --file |
--fil |
--fi |
--f )
12263 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12264 ac_need_defaults
=false
;;
12265 --header |
--heade |
--head |
--hea )
12267 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12268 ac_need_defaults
=false
;;
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)
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
;;
12292 ac_configure_extra_args
=
12294 if $ac_cs_silent; then
12296 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
12309 cat >>$CONFIG_STATUS <<\_ACEOF
12313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12314 ## Running $as_me. ##
12320 cat >>$CONFIG_STATUS <<_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; }; };;
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'.
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"
12374 tmp
=.
/conf$$
-$RANDOM
12375 (umask 077 && mkdir
"$tmp")
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
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
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
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
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
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
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
12496 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
12503 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
12518 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12519 s/^/s,@/; s/!/@,|#_!!_#|/
12522 s/'"$ac_delim"'$/,g/; t
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
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
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
12553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
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; }; }
12560 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
12575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12576 s/^/s,@/; s/!/@,|#_!!_#|/
12579 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
12600 s/^\([^=]*=[ ]*\):*/\1/
12606 cat >>$CONFIG_STATUS <<\_ACEOF
12607 fi # test -n "$CONFIG_FILES"
12610 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
12613 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12615 case $ac_mode$ac_tag in
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;;
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 `:'.
12645 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
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; }; };;
12651 ac_file_inputs
="$ac_file_inputs $ac_f"
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;}
12666 *:-:* |
*:-) cat >"$tmp/stdin";;
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 ||
12677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12681 /^X\(\/\/\)[^/].*/{
12696 -*) as_dir
=.
/$as_dir;;
12698 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
12702 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12703 *) as_qdir
=$as_dir;;
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 ||
12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12716 /^X\(\/\/\)[^/].*/{
12729 test -d "$as_dir" && break
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; }; }; }
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/ ;;
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
12754 .
) # We are building in place.
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 ;;
12767 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12777 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12778 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
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/ {
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;}
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' ;;
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
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;}
12846 -) cat "$tmp/out"; rm -f "$tmp/out";;
12847 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
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'
12880 s/^[ ]*#[ ]*define[ ][ ]*//
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.)
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"
12904 ac_in
='$ac_file_inputs'
12905 ac_out
='"$tmp/out1"'
12906 ac_nxt
='"$tmp/out2"'
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
12919 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
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
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;}
12940 mv "$tmp/config.h" $ac_file
12943 echo "/* $configure_input */"
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
;;
12962 { (exit 0); exit 0; }
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
12978 ac_config_status_args
=
12979 test "$silent" = yes &&
12980 ac_config_status_args
="$ac_config_status_args --quiet"
12982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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
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.
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
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.