2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="src/roff/groff/groff.cpp"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
655 ALT_GHOSTSCRIPT_PROGS
741 program_transform_name
753 enable_option_checking
764 ac_precious_vars
='build_alias
779 # Initialize some variables set by options.
781 ac_init_version
=false
782 ac_unrecognized_opts
=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name
=s
,x
,x
,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir
='${exec_prefix}/bin'
808 sbindir
='${exec_prefix}/sbin'
809 libexecdir
='${exec_prefix}/libexec'
810 datarootdir
='${prefix}/share'
811 datadir
='${datarootdir}'
812 sysconfdir
='${prefix}/etc'
813 sharedstatedir
='${prefix}/com'
814 localstatedir
='${prefix}/var'
815 includedir
='${prefix}/include'
816 oldincludedir
='/usr/include'
817 docdir
='${datarootdir}/doc/${PACKAGE}'
818 infodir
='${datarootdir}/info'
823 libdir
='${exec_prefix}/lib'
824 localedir
='${datarootdir}/locale'
825 mandir
='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\
$ac_option
839 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
851 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
854 -build |
--build |
--buil |
--bui |
--bu)
855 ac_prev
=build_alias
;;
856 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
857 build_alias
=$ac_optarg ;;
859 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
860 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
861 ac_prev
=cache_file
;;
862 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
863 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
864 cache_file
=$ac_optarg ;;
867 cache_file
=config.cache
;;
869 -datadir |
--datadir |
--datadi |
--datad)
871 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
872 datadir
=$ac_optarg ;;
874 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
875 |
--dataroo |
--dataro |
--datar)
876 ac_prev
=datarootdir
;;
877 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
878 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
879 datarootdir
=$ac_optarg ;;
881 -disable-* |
--disable-*)
882 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
885 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
886 { (exit 1); exit 1; }; }
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=no
;;
898 -docdir |
--docdir |
--docdi |
--doc |
--do)
900 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
903 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
905 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
908 -enable-* |
--enable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
913 { (exit 1); exit 1; }; }
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=\
$ac_optarg ;;
925 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
926 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
927 |
--exec |
--exe |
--ex)
928 ac_prev
=exec_prefix
;;
929 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
930 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
931 |
--exec=* |
--exe=* |
--ex=*)
932 exec_prefix
=$ac_optarg ;;
934 -gas |
--gas |
--ga |
--g)
935 # Obsolete; use --with-gas.
938 -help |
--help |
--hel |
--he |
-h)
940 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
941 ac_init_help
=recursive
;;
942 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
943 ac_init_help
=short
;;
945 -host |
--host |
--hos |
--ho)
946 ac_prev
=host_alias
;;
947 -host=* |
--host=* |
--hos=* |
--ho=*)
948 host_alias
=$ac_optarg ;;
950 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
952 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
954 htmldir
=$ac_optarg ;;
956 -includedir |
--includedir |
--includedi |
--included |
--include \
957 |
--includ |
--inclu |
--incl |
--inc)
958 ac_prev
=includedir
;;
959 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
960 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
961 includedir
=$ac_optarg ;;
963 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
965 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
966 infodir
=$ac_optarg ;;
968 -libdir |
--libdir |
--libdi |
--libd)
970 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
973 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
974 |
--libexe |
--libex |
--libe)
975 ac_prev
=libexecdir
;;
976 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
977 |
--libexe=* |
--libex=* |
--libe=*)
978 libexecdir
=$ac_optarg ;;
980 -localedir |
--localedir |
--localedi |
--localed |
--locale)
982 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
983 localedir
=$ac_optarg ;;
985 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
986 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
987 ac_prev
=localstatedir
;;
988 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
989 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
990 localstatedir
=$ac_optarg ;;
992 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
994 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
998 # Obsolete; use --without-fp.
1001 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1002 |
--no-cr |
--no-c |
-n)
1005 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1006 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1009 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1010 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1011 |
--oldin |
--oldi |
--old |
--ol |
--o)
1012 ac_prev
=oldincludedir
;;
1013 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1014 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1015 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1016 oldincludedir
=$ac_optarg ;;
1018 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1020 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1021 prefix
=$ac_optarg ;;
1023 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1024 |
--program-pre |
--program-pr |
--program-p)
1025 ac_prev
=program_prefix
;;
1026 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1027 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1028 program_prefix
=$ac_optarg ;;
1030 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1031 |
--program-suf |
--program-su |
--program-s)
1032 ac_prev
=program_suffix
;;
1033 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1034 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1035 program_suffix
=$ac_optarg ;;
1037 -program-transform-name |
--program-transform-name \
1038 |
--program-transform-nam |
--program-transform-na \
1039 |
--program-transform-n |
--program-transform- \
1040 |
--program-transform |
--program-transfor \
1041 |
--program-transfo |
--program-transf \
1042 |
--program-trans |
--program-tran \
1043 |
--progr-tra |
--program-tr |
--program-t)
1044 ac_prev
=program_transform_name
;;
1045 -program-transform-name=* |
--program-transform-name=* \
1046 |
--program-transform-nam=* |
--program-transform-na=* \
1047 |
--program-transform-n=* |
--program-transform-=* \
1048 |
--program-transform=* |
--program-transfor=* \
1049 |
--program-transfo=* |
--program-transf=* \
1050 |
--program-trans=* |
--program-tran=* \
1051 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1052 program_transform_name
=$ac_optarg ;;
1054 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1056 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1057 pdfdir
=$ac_optarg ;;
1059 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1061 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1064 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1065 |
-silent |
--silent |
--silen |
--sile |
--sil)
1068 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1070 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1072 sbindir
=$ac_optarg ;;
1074 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1075 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1076 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1078 ac_prev
=sharedstatedir
;;
1079 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1080 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1081 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1083 sharedstatedir
=$ac_optarg ;;
1085 -site |
--site |
--sit)
1087 -site=* |
--site=* |
--sit=*)
1090 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1092 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1093 srcdir
=$ac_optarg ;;
1095 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1096 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1097 ac_prev
=sysconfdir
;;
1098 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1099 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1100 sysconfdir
=$ac_optarg ;;
1102 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1103 ac_prev
=target_alias
;;
1104 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1105 target_alias
=$ac_optarg ;;
1107 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1110 -version |
--version |
--versio |
--versi |
--vers |
-V)
1111 ac_init_version
=: ;;
1114 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval with_
$ac_useropt=\
$ac_optarg ;;
1130 -without-* |
--without-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_useropt_orig
=$ac_useropt
1137 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep
=', ';;
1145 eval with_
$ac_useropt=no
;;
1148 # Obsolete; use --with-x.
1151 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1152 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1153 ac_prev
=x_includes
;;
1154 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1155 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1156 x_includes
=$ac_optarg ;;
1158 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1159 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1160 ac_prev
=x_libraries
;;
1161 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1162 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1163 x_libraries
=$ac_optarg ;;
1165 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1166 Try \`$0 --help' for more information." >&2
1167 { (exit 1); exit 1; }; }
1171 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1174 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1175 { (exit 1); exit 1; }; }
1176 eval $ac_envvar=\
$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 if test -n "$ac_prev"; then
1191 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1192 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1193 { (exit 1); exit 1; }; }
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1199 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1200 { (exit 1); exit 1; }; } ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 # Check all directory arguments for consistency.
1206 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val
=\$
$ac_var
1212 # Remove trailing slashes.
1215 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\
$ac_val;;
1218 # Be sure to have absolute directory names.
1220 [\\/$
]* | ?
:[\\/]* ) continue;;
1221 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1223 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target
=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x
; then
1236 if test "x$build_alias" = x
; then
1237 cross_compiling
=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1248 test "$silent" = yes && exec 6>/dev
/null
1251 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di
=`ls -di .` &&
1253 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1254 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted
=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir
=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted
=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1297 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
1300 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1313 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 for ac_var
in $ac_precious_vars; do
1316 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1318 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1329 \`configure' configures this package to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --x-includes=DIR X include files are
in DIR
1388 --x-libraries=DIR X library files are
in DIR
1391 --build=BUILD configure
for building on BUILD
[guessed
]
1392 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1396 if test -n "$ac_init_help"; then
1401 --disable-option-checking ignore unrecognized
--enable/--with options
1402 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1403 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1404 --disable-rpath do not hardcode runtime library paths
1407 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1408 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1409 --with-x use the X Window System
1410 --with-appresdir=DIR X11 application resource files
1411 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1412 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1413 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1414 --with-alt-gs=LIST alternative names for ghostscript executable
1415 --with-gs=PROG actual [/path/]name of ghostscript executable
1416 --with-alt-awk=LIST alternative names for awk executable
1417 --with-awk=PROG actual [/path/]name of awk executable
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CXX C++ compiler command
1428 CXXFLAGS C++ compiler flags
1429 XMKMF Path to xmkmf, Makefile generator for X Window System
1432 Use these variables to override the choices made by `configure' or to
help
1433 it to
find libraries and programs with nonstandard names
/locations.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1448 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1450 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1455 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1458 ac_abs_top_builddir
=$ac_pwd
1459 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir
=$ac_top_build_prefix
1464 .
) # We are building in place.
1466 ac_top_srcdir
=$ac_top_builddir_sub
1467 ac_abs_top_srcdir
=$ac_pwd ;;
1468 [\\/]* | ?
:[\\/]* ) # Absolute name.
1469 ac_srcdir
=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir
=$srcdir
1471 ac_abs_top_srcdir
=$srcdir ;;
1473 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1477 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1498 generated by GNU Autoconf
2.63
1500 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1501 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1502 This configure
script is free software
; the Free Software Foundation
1503 gives unlimited permission to copy
, distribute and modify it.
1507 cat >config.log
<<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1511 It was created by $as_me, which was
1512 generated by GNU Autoconf 2.63. Invocation command line was
1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1531 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1533 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1534 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1536 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1537 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1538 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1539 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir
=.
1548 $as_echo "PATH: $as_dir"
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1572 ac_must_keep_next
=false
1578 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1579 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1580 |
-silent |
--silent |
--silen |
--sile |
--sil)
1583 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1586 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1588 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1589 if test $ac_must_keep_next = true
; then
1590 ac_must_keep_next
=false
# Got value, back to normal.
1593 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1594 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1595 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1596 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1597 case "$ac_configure_args0 " in
1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1601 -* ) ac_must_keep_next
=true
;;
1604 ac_configure_args
="$ac_configure_args '$ac_arg'"
1609 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1610 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log. We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618 # Save into config.log some information that might help in debugging.
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1628 # The following way of writing the cache mishandles newlines in values,
1630 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1631 eval ac_val=\$$ac_var
1635 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1636 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1639 _ | IFS | as_nl) ;; #(
1640 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1641 *) $as_unset $ac_var ;;
1646 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1666 for ac_var in $ac_subst_vars
1668 eval ac_val=\$$ac_var
1670 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 $as_echo "$ac_var='\''$ac_val'\''"
1676 if test -n "$ac_subst_files"; then
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1683 for ac_var
in $ac_subst_files
1685 eval ac_val
=\$
$ac_var
1687 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 $as_echo "$ac_var='\''$ac_val'\''"
1694 if test -s confdefs.h; then
1704 test "$ac_signal" != 0 &&
1705 $as_echo "$as_me: caught signal $ac_signal"
1706 $as_echo "$as_me: exit $exit_status"
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1712 for ac_signal
in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest
* confdefs.h
1720 # Predefined preprocessor variables.
1722 cat >>confdefs.h
<<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1727 cat >>confdefs.h
<<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1732 cat >>confdefs.h
<<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1737 cat >>confdefs.h
<<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1742 cat >>confdefs.h
<<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer an explicitly selected file to automatically selected ones.
1751 if test -n "$CONFIG_SITE"; then
1752 ac_site_file1
=$CONFIG_SITE
1753 elif test "x$prefix" != xNONE
; then
1754 ac_site_file1
=$prefix/share
/config.site
1755 ac_site_file2
=$prefix/etc
/config.site
1757 ac_site_file1
=$ac_default_prefix/share
/config.site
1758 ac_site_file2
=$ac_default_prefix/etc
/config.site
1760 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1762 test "x$ac_site_file" = xNONE
&& continue
1763 if test -r "$ac_site_file"; then
1764 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1765 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1766 sed 's/^/| /' "$ac_site_file" >&5
1771 if test -r "$cache_file"; then
1772 # Some versions of bash will fail to source /dev/null (special
1773 # files actually), so we avoid doing that.
1774 if test -f "$cache_file"; then
1775 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1776 $as_echo "$as_me: loading cache $cache_file" >&6;}
1778 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1779 *) .
"./$cache_file";;
1783 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1784 $as_echo "$as_me: creating cache $cache_file" >&6;}
1788 # Check that the precious variables saved in the cache have kept the same
1790 ac_cache_corrupted
=false
1791 for ac_var
in $ac_precious_vars; do
1792 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1793 eval ac_new_set
=\
$ac_env_${ac_var}_set
1794 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1795 eval ac_new_val
=\
$ac_env_${ac_var}_value
1796 case $ac_old_set,$ac_new_set in
1798 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1799 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1800 ac_cache_corrupted
=: ;;
1802 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1803 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1804 ac_cache_corrupted
=: ;;
1807 if test "x$ac_old_val" != "x$ac_new_val"; then
1808 # differences in whitespace do not lead to failure.
1809 ac_old_val_w
=`echo x $ac_old_val`
1810 ac_new_val_w
=`echo x $ac_new_val`
1811 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1812 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1813 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1814 ac_cache_corrupted
=:
1816 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1817 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1818 eval $ac_var=\
$ac_old_val
1820 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1821 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1822 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1823 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1826 # Pass precious variables to config.status.
1827 if test "$ac_new_set" = set; then
1829 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 *) ac_arg
=$ac_var=$ac_new_val ;;
1832 case " $ac_configure_args " in
1833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1834 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1838 if $ac_cache_corrupted; then
1839 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1841 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1842 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1843 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1844 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1845 { (exit 1); exit 1; }; }
1865 ac_cpp
='$CPP $CPPFLAGS'
1866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1873 ac_config_headers
="$ac_config_headers src/include/config.h:src/include/config.hin"
1877 # checks for programs
1879 ac_cpp
='$CPP $CPPFLAGS'
1880 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1885 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 $as_echo_n "checking for $ac_word... " >&6; }
1888 if test "${ac_cv_prog_CC+set}" = set; then
1889 $as_echo_n "(cached) " >&6
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC
="$CC" # Let the user override the test.
1894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1898 test -z "$as_dir" && as_dir
=.
1899 for ac_exec_ext
in '' $ac_executable_extensions; do
1900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1901 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$CC"; then
1913 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1914 $as_echo "$CC" >&6; }
1916 { $as_echo "$as_me:$LINENO: result: no" >&5
1917 $as_echo "no" >&6; }
1922 if test -z "$ac_cv_prog_CC"; then
1924 # Extract the first word of "gcc", so it can be a program name with args.
1925 set dummy gcc
; ac_word
=$2
1926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 $as_echo_n "checking for $ac_word... " >&6; }
1928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 $as_echo_n "(cached) " >&6
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir
=.
1939 for ac_exec_ext
in '' $ac_executable_extensions; do
1940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1941 ac_cv_prog_ac_ct_CC
="gcc"
1942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 $as_echo "$ac_ct_CC" >&6; }
1956 { $as_echo "$as_me:$LINENO: result: no" >&5
1957 $as_echo "no" >&6; }
1960 if test "x$ac_ct_CC" = x
; then
1963 case $cross_compiling:$ac_tool_warned in
1965 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1967 ac_tool_warned
=yes ;;
1975 if test -z "$CC"; then
1976 if test -n "$ac_tool_prefix"; then
1977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1978 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 $as_echo_n "checking for $ac_word... " >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 $as_echo_n "(cached) " >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC
="$CC" # Let the user override the test.
1987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir
=.
1992 for ac_exec_ext
in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2007 $as_echo "$CC" >&6; }
2009 { $as_echo "$as_me:$LINENO: result: no" >&5
2010 $as_echo "no" >&6; }
2016 if test -z "$CC"; then
2017 # Extract the first word of "cc", so it can be a program name with args.
2018 set dummy cc
; ac_word
=$2
2019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 $as_echo_n "checking for $ac_word... " >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 $as_echo_n "(cached) " >&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC
="$CC" # Let the user override the test.
2028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir
=.
2033 for ac_exec_ext
in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036 ac_prog_rejected
=yes
2040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test $ac_prog_rejected = yes; then
2048 # We found a bogon in the path, so make sure we never use it.
2049 set dummy
$ac_cv_prog_CC
2051 if test $# != 0; then
2052 # We chose a different compiler from the bogus one.
2053 # However, it has the same basename, so the bogon will be chosen
2054 # first if we set CC to just the basename; use the full file name.
2056 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2062 if test -n "$CC"; then
2063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2064 $as_echo "$CC" >&6; }
2066 { $as_echo "$as_me:$LINENO: result: no" >&5
2067 $as_echo "no" >&6; }
2072 if test -z "$CC"; then
2073 if test -n "$ac_tool_prefix"; then
2074 for ac_prog
in cl.exe
2076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2077 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 $as_echo_n "checking for $ac_word... " >&6; }
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 $as_echo_n "(cached) " >&6
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC
="$CC" # Let the user override the test.
2086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir
=.
2091 for ac_exec_ext
in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 if test -n "$CC"; then
2105 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2106 $as_echo "$CC" >&6; }
2108 { $as_echo "$as_me:$LINENO: result: no" >&5
2109 $as_echo "no" >&6; }
2113 test -n "$CC" && break
2116 if test -z "$CC"; then
2118 for ac_prog
in cl.exe
2120 # Extract the first word of "$ac_prog", so it can be a program name with args.
2121 set dummy
$ac_prog; ac_word
=$2
2122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 $as_echo_n "checking for $ac_word... " >&6; }
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 $as_echo_n "(cached) " >&6
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir
=.
2135 for ac_exec_ext
in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_ac_ct_CC
="$ac_prog"
2138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 $as_echo "$ac_ct_CC" >&6; }
2152 { $as_echo "$as_me:$LINENO: result: no" >&5
2153 $as_echo "no" >&6; }
2157 test -n "$ac_ct_CC" && break
2160 if test "x$ac_ct_CC" = x
; then
2163 case $cross_compiling:$ac_tool_warned in
2165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2167 ac_tool_warned
=yes ;;
2176 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&5
2180 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2181 See \`config.log' for more details." >&2;}
2182 { (exit 1); exit 1; }; }; }
2184 # Provide some information about the compiler.
2185 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2188 { (ac_try
="$ac_compiler --version >&5"
2190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2194 $as_echo "$ac_try_echo") >&5
2195 (eval "$ac_compiler --version >&5") 2>&5
2197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (ac_try="$ac_compiler -v >&5"
2201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2202 *) ac_try_echo
=$ac_try;;
2204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2205 $as_echo "$ac_try_echo") >&5
2206 (eval "$ac_compiler -v >&5") 2>&5
2208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2210 { (ac_try
="$ac_compiler -V >&5"
2212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2216 $as_echo "$ac_try_echo") >&5
2217 (eval "$ac_compiler -V >&5") 2>&5
2219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2237 ac_clean_files_save=$ac_clean_files
2238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2239 # Try to create an executable without -o first, disregard a.out.
2240 # It will help us diagnose broken compilers, and finding out an intuition
2242 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243 $as_echo_n "checking for C compiler default output file name... " >&6; }
2244 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2246 # The possible output files:
2247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2250 for ac_file in $ac_files
2253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2259 if { (ac_try="$ac_link_default"
2261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2262 *) ac_try_echo
=$ac_try;;
2264 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2265 $as_echo "$ac_try_echo") >&5
2266 (eval "$ac_link_default") 2>&5
2268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2273 # so that the user can short-circuit this test for compilers unknown to
2275 for ac_file
in $ac_files ''
2277 test -f "$ac_file" ||
continue
2279 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2282 # We found the default executable, but exeext='' is most
2286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2288 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290 # We set ac_cv_exeext here because the later test for it is not
2291 # safe: cross compilers may not add the suffix if given an `-o'
2292 # argument, so we may need to know it at that point already.
2293 # Even if this section looks crufty: it has the advantage of
2300 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2306 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2307 $as_echo "$ac_file" >&6; }
2308 if test -z "$ac_file"; then
2309 $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.
$ac_ext >&5
2312 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2315 See \`config.log' for more details." >&5
2316 $as_echo "$as_me: error: C compiler cannot create executables
2317 See \`config.log' for more details." >&2;}
2318 { (exit 77); exit 77; }; }; }
2321 ac_exeext
=$ac_cv_exeext
2323 # Check that the compiler produces executables we can run. If not, either
2324 # the compiler is broken, or we cross compile.
2325 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2326 $as_echo_n "checking whether the C compiler works... " >&6; }
2327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2328 # If not cross compiling, check that we can run a simple program.
2329 if test "$cross_compiling" != yes; then
2330 if { ac_try
='./$ac_file'
2331 { (case "(($ac_try" in
2332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2336 $as_echo "$ac_try_echo") >&5
2337 (eval "$ac_try") 2>&5
2339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 if test "$cross_compiling" = maybe; then
2346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
2349 If you meant to cross compile
, use \
`--host'.
2350 See \`config.log
' for more details." >&5
2351 $as_echo "$as_me: error: cannot run C compiled programs.
2352 If you meant to cross compile, use \`--host'.
2353 See \
`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }; }
2358 { $as_echo "$as_me:$LINENO: result: yes" >&5
2359 $as_echo "yes" >&6; }
2361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2362 ac_clean_files=$ac_clean_files_save
2363 # Check that the compiler produces executables we can run. If not, either
2364 # the compiler is broken, or we cross compile.
2365 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2366 $as_echo_n "checking whether we are cross compiling... " >&6; }
2367 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2368 $as_echo "$cross_compiling" >&6; }
2370 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2371 $as_echo_n "checking for suffix of executables... " >&6; }
2372 if { (ac_try="$ac_link"
2374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2375 *) ac_try_echo
=$ac_try;;
2377 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2378 $as_echo "$ac_try_echo") >&5
2379 (eval "$ac_link") 2>&5
2381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; then
2383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2384 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2385 # work properly (i.e., refer to `conftest.exe'), while it won't with
2387 for ac_file
in conftest.exe conftest conftest.
*; do
2388 test -f "$ac_file" ||
continue
2390 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2391 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2400 See \`config.log' for more details." >&5
2401 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }; }
2406 rm -f conftest
$ac_cv_exeext
2407 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408 $as_echo "$ac_cv_exeext" >&6; }
2410 rm -f conftest.
$ac_ext
2411 EXEEXT
=$ac_cv_exeext
2413 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 $as_echo_n "checking for suffix of object files... " >&6; }
2415 if test "${ac_cv_objext+set}" = set; then
2416 $as_echo_n "(cached) " >&6
2418 cat >conftest.
$ac_ext <<_ACEOF
2421 cat confdefs.h
>>conftest.
$ac_ext
2422 cat >>conftest.
$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.o conftest.obj
2434 if { (ac_try
="$ac_compile"
2436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2440 $as_echo "$ac_try_echo") >&5
2441 (eval "$ac_compile") 2>&5
2443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; then
2445 for ac_file in conftest.o conftest.obj conftest.*; do
2446 test -f "$ac_file" || continue;
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2454 $as_echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
2460 See \
`config.log' for more details." >&5
2461 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log
' for more details." >&2;}
2463 { (exit 1); exit 1; }; }; }
2466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2468 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2469 $as_echo "$ac_cv_objext" >&6; }
2470 OBJEXT=$ac_cv_objext
2472 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2475 $as_echo_n "(cached) " >&6
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2495 rm -f conftest.$ac_objext
2496 if { (ac_try="$ac_compile"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^
*+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } && {
2510 test -z "$ac_c_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest.$ac_objext; then
2515 $as_echo "$as_me: failed program was:" >&5
2516 sed 's
/^
/|
/' conftest.$ac_ext >&5
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2525 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2527 if test $ac_compiler_gnu = yes; then
2532 ac_test_CFLAGS=${CFLAGS+set}
2533 ac_save_CFLAGS=$CFLAGS
2534 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2536 if test "${ac_cv_prog_cc_g+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2539 ac_save_c_werror_flag=$ac_c_werror_flag
2540 ac_c_werror_flag=yes
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2565 $as_echo "$ac_try_echo") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2568 grep -v '^
*+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } && {
2573 test -z "$ac_c_werror_flag" ||
2574 test ! -s conftest.err
2575 } && test -s conftest.$ac_objext; then
2578 $as_echo "$as_me: failed program was:" >&5
2579 sed 's
/^
/|
/' conftest.$ac_ext >&5
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2597 rm -f conftest.$ac_objext
2598 if { (ac_try="$ac_compile"
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2604 $as_echo "$ac_try_echo") >&5
2605 (eval "$ac_compile") 2>conftest.er1
2607 grep -v '^
*+' conftest.er1 >conftest.err
2609 cat conftest.err >&5
2610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest.$ac_objext; then
2617 $as_echo "$as_me: failed program was:" >&5
2618 sed 's
/^
/|
/' conftest.$ac_ext >&5
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2644 $as_echo "$ac_try_echo") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2647 grep -v '^
*+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's
/^
/|
/' conftest.$ac_ext >&5
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_c_werror_flag=$ac_save_c_werror_flag
2672 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2673 $as_echo "$ac_cv_prog_cc_g" >&6; }
2674 if test "$ac_test_CFLAGS" = set; then
2675 CFLAGS=$ac_save_CFLAGS
2676 elif test $ac_cv_prog_cc_g = yes; then
2677 if test "$GCC" = yes; then
2683 if test "$GCC" = yes; then
2689 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2691 if test "${ac_cv_prog_cc_c89+set}" = set; then
2692 $as_echo_n "(cached) " >&6
2694 ac_cv_prog_cc_c89=no
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2704 #include <sys/types.h>
2705 #include <sys/stat.h>
2706 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
2707 struct buf
{ int x
; };
2708 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2709 static char
*e
(p
, i
)
2715 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2720 s
= g
(p
, va_arg
(v
,int
));
2725 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2726 function prototypes and stuff
, but not
'\xHH' hex character constants.
2727 These don
't provoke an error unfortunately, instead are silently treated
2728 as 'x
'. The following induces an error, until -std is added to get
2729 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
2730 array size at least. It's necessary to
write '\x00'==0 to get something
2731 that
's true only with -std. */
2732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2735 inside strings and character constants. */
2737 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
2739 int test (int i, double x);
2740 struct s1 {int (*f) (int a);};
2741 struct s2 {int (*f) (double a);};
2742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2756 CC="$ac_save_CC $ac_arg"
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2767 grep -v '^
*+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_c89=$ac_arg
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's
/^
/|
/' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext
2784 test "x$ac_cv_prog_cc_c89" != "xno" && break
2786 rm -f conftest.$ac_ext
2791 case "x$ac_cv_prog_cc_c89" in
2793 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2794 $as_echo "none needed" >&6; } ;;
2796 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2797 $as_echo "unsupported" >&6; } ;;
2799 CC="$CC $ac_cv_prog_cc_c89"
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
2808 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 ac_cpp='$CXXCPP $CPPFLAGS'
2813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
2814 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2816 if test -z "$CXX"; then
2817 if test -n "$CCC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_CXX+set}" = set; then
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$CXX"; then
2831 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test -n "$CXX"; then
2852 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2853 $as_echo "$CXX" >&6; }
2855 { $as_echo "$as_me:$LINENO: result: no" >&5
2856 $as_echo "no" >&6; }
2860 test -n "$CXX" && break
2863 if test -z "$CXX"; then
2865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$ac_ct_CXX"; then
2875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_ac_ct_CXX="$ac_prog"
2885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2895 if test -n "$ac_ct_CXX"; then
2896 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2897 $as_echo "$ac_ct_CXX" >&6; }
2899 { $as_echo "$as_me:$LINENO: result: no" >&5
2900 $as_echo "no" >&6; }
2904 test -n "$ac_ct_CXX" && break
2907 if test "x$ac_ct_CXX" = x; then
2910 case $cross_compiling:$ac_tool_warned in
2912 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2922 # Provide some information about the compiler.
2923 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926 { (ac_try="$ac_compiler --version >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_compiler --version >&5") 2>&5
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2943 $as_echo "$ac_try_echo") >&5
2944 (eval "$ac_compiler -v >&5") 2>&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2948 { (ac_try="$ac_compiler -V >&5"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_compiler -V >&5") 2>&5
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2960 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2961 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2962 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2963 $as_echo_n "(cached) " >&6
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2983 rm -f conftest.$ac_objext
2984 if { (ac_try="$ac_compile"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2990 $as_echo "$ac_try_echo") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2993 grep -v '^
*+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_cxx_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3003 $as_echo "$as_me: failed program was:" >&5
3004 sed 's
/^
/|
/' conftest.$ac_ext >&5
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3014 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3015 if test $ac_compiler_gnu = yes; then
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 $as_echo_n "(cached) " >&6
3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028 ac_cxx_werror_flag=yes
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3056 grep -v '^
*+' conftest.er1 >conftest.err
3058 cat conftest.err >&5
3059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_cxx_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.$ac_objext; then
3064 ac_cv_prog_cxx_g=yes
3066 $as_echo "$as_me: failed program was:" >&5
3067 sed 's
/^
/|
/' conftest.$ac_ext >&5
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^
*+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_cxx_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3105 $as_echo "$as_me: failed program was:" >&5
3106 sed 's
/^
/|
/' conftest.$ac_ext >&5
3108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^
*+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_cxx_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_cv_prog_cxx_g=yes
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's
/^
/|
/' conftest.$ac_ext >&5
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3160 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3161 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3162 if test "$ac_test_CXXFLAGS" = set; then
3163 CXXFLAGS=$ac_save_CXXFLAGS
3164 elif test $ac_cv_prog_cxx_g = yes; then
3165 if test "$GXX" = yes; then
3171 if test "$GXX" = yes; then
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3180 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 ac_cpp='$CXXCPP $CPPFLAGS'
3187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3188 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3191 if test "$cross_compiling" = no; then
3192 { $as_echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3193 $as_echo_n "checking that C++ compiler can compile simple program... " >&6; }
3195 if test "$cross_compiling" = yes; then
3198 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 rm -f conftest$ac_exeext
3215 if { (ac_try="$ac_link"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222 (eval "$ac_link") 2>&5
3224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3231 $as_echo "$ac_try_echo") >&5
3232 (eval "$ac_try") 2>&5
3234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; }; then
3236 { $as_echo "$as_me:$LINENO: result: yes" >&5
3237 $as_echo "yes" >&6; }
3239 $as_echo "$as_me: program exited with status $ac_status" >&5
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's
/^
/|
/' conftest.$ac_ext >&5
3244 { $as_echo "$as_me:$LINENO: result: no" >&5
3245 $as_echo "no" >&6; }
3246 { { $as_echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3247 $as_echo "$as_me: error: a working C++ compiler is required" >&2;}
3248 { (exit 1); exit 1; }; }
3250 rm -rf conftest.dSYM
3251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3256 if test "$cross_compiling" = no; then
3257 { $as_echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3258 $as_echo_n "checking that C++ static constructors and destructors are called... " >&6; }
3260 if test "$cross_compiling" = yes; then
3263 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3280 ~A() { if (i == 1) _exit(0); }
3293 rm -f conftest$ac_exeext
3294 if { (ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300 $as_echo "$ac_try_echo") >&5
3301 (eval "$ac_link") 2>&5
3303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3310 $as_echo "$ac_try_echo") >&5
3311 (eval "$ac_try") 2>&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 { $as_echo "$as_me:$LINENO: result: yes" >&5
3316 $as_echo "yes" >&6; }
3318 $as_echo "$as_me: program exited with status $ac_status" >&5
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's
/^
/|
/' conftest.$ac_ext >&5
3323 { $as_echo "$as_me:$LINENO: result: no" >&5
3324 $as_echo "no" >&6; }
3325 { { $as_echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3326 $as_echo "$as_me: error: a working C++ compiler is required" >&2;}
3327 { (exit 1); exit 1; }; }
3329 rm -rf conftest.dSYM
3330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3335 { $as_echo "$as_me:$LINENO: checking that header files support C++" >&5
3336 $as_echo_n "checking that header files support C++... " >&6; }
3337 cat >conftest.$ac_ext <<_ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (ac_try="$ac_link"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369 $as_echo "$ac_try_echo") >&5
3370 (eval "$ac_link") 2>conftest.er1
3372 grep -v '^
*+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_cxx_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest$ac_exeext && {
3380 test "$cross_compiling" = yes ||
3381 $as_test_x conftest$ac_exeext
3383 { $as_echo "$as_me:$LINENO: result: yes" >&5
3384 $as_echo "yes" >&6; }
3386 $as_echo "$as_me: failed program was:" >&5
3387 sed 's
/^
/|
/' conftest.$ac_ext >&5
3389 { $as_echo "$as_me:$LINENO: result: no" >&5
3390 $as_echo "no" >&6; }
3391 { { $as_echo "$as_me:$LINENO: error: header files do not support C++
3392 (if you are using a version of gcc/g++ earlier than 2.5,
3393 you should install libg++)" >&5
3394 $as_echo "$as_me: error: header files do not support C++
3395 (if you are using a version of gcc/g++ earlier than 2.5,
3396 you should install libg++)" >&2;}
3397 { (exit 1); exit 1; }; }
3400 rm -rf conftest.dSYM
3401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3402 conftest$ac_exeext conftest.$ac_ext
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3406 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { $as_echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3411 $as_echo_n "checking whether character set is EBCDIC... " >&6; }
3412 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3421 /* Treat any failure as ASCII for compatibility with existing art.
3422 Use compile-time rather than run-time tests for cross-compiler
3425 make an error "Character set is not EBCDIC"
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3448 grep -v '^
*+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3456 groff_cv_ebcdic="yes"
3457 TTYDEVDIRS="font/devcp1047"
3458 { $as_echo "$as_me:$LINENO: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 cat >>confdefs.h <<\_ACEOF
3462 #define IS_EBCDIC_HOST 1
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's
/^
/|
/' conftest.$ac_ext >&5
3469 groff_cv_ebcdic="no"
3470 TTYDEVDIRS="font/devascii font/devlatin1"
3471 OTHERDEVDIRS="font/devlj4 font/devlbp"
3472 { $as_echo "$as_me:$LINENO: result: no" >&5
3473 $as_echo "no" >&6; }
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 if test "$groff_cv_ebcdic" = "yes"; then
3480 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3481 $as_echo_n "checking for OS/390 Unix... " >&6; }
3484 CFLAGS="$CFLAGS -D_ALL_SOURCE"
3485 { $as_echo "$as_me:$LINENO: result: yes" >&5
3486 $as_echo "yes" >&6; } ;;
3488 { $as_echo "$as_me:$LINENO: result: no" >&5
3489 $as_echo "no" >&6; } ;;
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3495 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3498 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3499 # On Suns, sometimes $CPP names a directory.
3500 if test -n "$CPP" && test -d "$CPP"; then
3503 if test -z "$CPP"; then
3504 if test "${ac_cv_prog_CPP+set}" = set; then
3505 $as_echo_n "(cached) " >&6
3507 # Double quotes because CPP needs to be expanded
3508 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3511 for ac_c_preproc_warn_flag in '' yes
3513 # Use a header file that comes with gcc, so configuring glibc
3514 # with a fresh cross-compiler works.
3515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3516 # <limits.h> exists even on freestanding compilers.
3517 # On the NeXT, cc -E runs the code through the compiler's parser
,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.
$ac_ext <<_ACEOF
3522 cat confdefs.h
>>conftest.
$ac_ext
3523 cat >>conftest.
$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3526 # include <limits.h>
3528 # include <assert.h>
3532 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538 $as_echo "$ac_try_echo") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 # Broken: fails on valid input.
3558 rm -f conftest.err conftest.$ac_ext
3560 # OK, works on sane cases. Now check whether nonexistent headers
3561 # can be detected and how.
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 #include <ac_nonexistent.h>
3570 if { (ac_try="$ac_cpp conftest.$ac_ext"
3572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3573 *) ac_try_echo
=$ac_try;;
3575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3576 $as_echo "$ac_try_echo") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1
>conftest.err
3581 cat conftest.err
>&5
3582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev
/null
&& {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3587 # Broken: success on invalid input.
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.
$ac_ext >&5
3593 # Passes both tests.
3598 rm -f conftest.err conftest.
$ac_ext
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.
$ac_ext
3603 if $ac_preproc_ok; then
3615 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3616 $as_echo "$CPP" >&6; }
3618 for ac_c_preproc_warn_flag
in '' yes
3620 # Use a header file that comes with gcc, so configuring glibc
3621 # with a fresh cross-compiler works.
3622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3623 # <limits.h> exists even on freestanding compilers.
3624 # On the NeXT, cc -E runs the code through the compiler's parser,
3625 # not just through cpp. "Syntax error" is here to catch this case.
3626 cat >conftest.
$ac_ext <<_ACEOF
3629 cat confdefs.h
>>conftest.
$ac_ext
3630 cat >>conftest.
$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3633 # include <limits.h>
3635 # include <assert.h>
3639 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null && {
3653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 # Broken: fails on valid input.
3665 rm -f conftest.err conftest.$ac_ext
3667 # OK, works on sane cases. Now check whether nonexistent headers
3668 # can be detected and how.
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 #include <ac_nonexistent.h>
3677 if { (ac_try="$ac_cpp conftest.$ac_ext"
3679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3680 *) ac_try_echo
=$ac_try;;
3682 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3683 $as_echo "$ac_try_echo") >&5
3684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3686 grep -v '^ *+' conftest.er1
>conftest.err
3688 cat conftest.err
>&5
3689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } >/dev
/null
&& {
3691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3694 # Broken: success on invalid input.
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.
$ac_ext >&5
3700 # Passes both tests.
3705 rm -f conftest.err conftest.
$ac_ext
3708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709 rm -f conftest.err conftest.
$ac_ext
3710 if $ac_preproc_ok; then
3713 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3716 See \`config.log' for more details." >&5
3717 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3718 See \`config.log' for more details." >&2;}
3719 { (exit 1); exit 1; }; }; }
3723 ac_cpp
='$CPP $CPPFLAGS'
3724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3729 { $as_echo "$as_me:$LINENO: checking for X" >&5
3730 $as_echo_n "checking for X... " >&6; }
3733 # Check whether --with-x was given.
3734 if test "${with_x+set}" = set; then
3738 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3739 if test "x$with_x" = xno
; then
3740 # The user explicitly disabled X.
3743 case $x_includes,$x_libraries in #(
3744 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
3745 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
3746 { (exit 1); exit 1; }; };; #(
3747 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
3748 $as_echo_n "(cached) " >&6
3750 # One or both of the vars are not set, and there is no cached value.
3751 ac_x_includes
=no ac_x_libraries
=no
3752 rm -f -r conftest.dir
3753 if mkdir conftest.dir
; then
3755 cat >Imakefile
<<'_ACEOF'
3757 @echo incroot='${INCROOT}'
3759 @echo usrlibdir='${USRLIBDIR}'
3761 @echo libdir='${LIBDIR}'
3763 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3765 for ac_var
in incroot usrlibdir libdir
; do
3766 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3768 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3769 for ac_extension
in a so sl dylib la dll
; do
3770 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3771 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3772 ac_im_usrlibdir
=$ac_im_libdir; break
3775 # Screen out bogus values from the imake configuration. They are
3776 # bogus both because they are the default anyway, and because
3777 # using them would break gcc on systems where it needs fixed includes.
3778 case $ac_im_incroot in
3779 /usr
/include
) ac_x_includes
= ;;
3780 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3782 case $ac_im_usrlibdir in
3783 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
3784 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3788 rm -f -r conftest.dir
3791 # Standard set of common directories for X headers.
3792 # Check X11 before X11Rn because it is often a symlink to the current release.
3804 /usr/local/X11/include
3805 /usr/local/X11R6/include
3806 /usr/local/X11R5/include
3807 /usr/local/X11R4/include
3809 /usr/local/include/X11
3810 /usr/local/include/X11R6
3811 /usr/local/include/X11R5
3812 /usr/local/include/X11R4
3816 /usr/XFree86/include/X11
3820 /usr/unsupported/include
3822 /usr/local/x11r5/include
3823 /usr/lpp/Xamples/include
3825 /usr/openwin/include
3826 /usr/openwin/share/include'
3828 if test "$ac_x_includes" = no
; then
3829 # Guess where to find include files, by looking for Xlib.h.
3830 # First, try using that file with no special directory specified.
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <X11/Xlib.h>
3839 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845 $as_echo "$ac_try_echo") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3856 # We can compile using X headers with no special include directory.
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 for ac_dir in $ac_x_header_dirs; do
3863 if test -r "$ac_dir/X11/Xlib.h"; then
3864 ac_x_includes=$ac_dir
3870 rm -f conftest.err conftest.$ac_ext
3871 fi # $ac_x_includes = no
3873 if test "$ac_x_libraries" = no; then
3874 # Check for the libraries.
3875 # See if we find them without any special options.
3876 # Don't add to $LIBS permanently.
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 #include <X11/Xlib.h>
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (ac_try="$ac_link"
3897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3898 *) ac_try_echo
=$ac_try;;
3900 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3901 $as_echo "$ac_try_echo") >&5
3902 (eval "$ac_link") 2>conftest.er1
3904 grep -v '^ *+' conftest.er1
>conftest.err
3906 cat conftest.err
>&5
3907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest
$ac_exeext && {
3912 test "$cross_compiling" = yes ||
3913 $as_test_x conftest
$ac_exeext
3916 # We can link X programs with no special library path.
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.
$ac_ext >&5
3923 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3925 # Don't even attempt the hair of trying to link an X program!
3926 for ac_extension
in a so sl dylib la dll
; do
3927 if test -r "$ac_dir/libX11.$ac_extension"; then
3928 ac_x_libraries
=$ac_dir
3935 rm -rf conftest.dSYM
3936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3937 conftest
$ac_exeext conftest.
$ac_ext
3938 fi # $ac_x_libraries = no
3940 case $ac_x_includes,$ac_x_libraries in #(
3942 # Didn't find X, or a directory has "'" in its name.
3943 ac_cv_have_x
="have_x=no";; #(
3945 # Record where we found X for the cache.
3946 ac_cv_have_x
="have_x=yes\
3947 ac_x_includes='$ac_x_includes'\
3948 ac_x_libraries='$ac_x_libraries'"
3954 eval "$ac_cv_have_x"
3957 if test "$have_x" != yes; then
3958 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
3959 $as_echo "$have_x" >&6; }
3962 # If each of the values was on the command line, it overrides each guess.
3963 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3964 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3965 # Update the cache value to reflect the command line values.
3966 ac_cv_have_x
="have_x=yes\
3967 ac_x_includes='$x_includes'\
3968 ac_x_libraries='$x_libraries'"
3969 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3970 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3973 if test "$no_x" = yes; then
3974 # Not all programs may use this symbol, but it does not hurt to define it.
3976 cat >>confdefs.h
<<\_ACEOF
3977 #define X_DISPLAY_MISSING 1
3980 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3982 if test -n "$x_includes"; then
3983 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3986 # It would also be nice to do this for all -L options, not just this one.
3987 if test -n "$x_libraries"; then
3988 X_LIBS
="$X_LIBS -L$x_libraries"
3989 # For Solaris; some versions of Sun CC require a space after -R and
3990 # others require no space. Words are not sufficient . . . .
3991 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3992 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
3993 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3994 ac_xsave_c_werror_flag
=$ac_c_werror_flag
3995 ac_c_werror_flag
=yes
3996 cat >conftest.
$ac_ext <<_ACEOF
3999 cat confdefs.h
>>conftest.
$ac_ext
4000 cat >>conftest.
$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4011 rm -f conftest.
$ac_objext conftest
$ac_exeext
4012 if { (ac_try
="$ac_link"
4014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018 $as_echo "$ac_try_echo") >&5
4019 (eval "$ac_link") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest$ac_exeext && {
4029 test "$cross_compiling" = yes ||
4030 $as_test_x conftest$ac_exeext
4032 { $as_echo "$as_me:$LINENO: result: no" >&5
4033 $as_echo "no" >&6; }
4034 X_LIBS="$X_LIBS -R$x_libraries"
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 LIBS="$ac_xsave_LIBS -R $x_libraries"
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4055 rm -f conftest.$ac_objext conftest$ac_exeext
4056 if { (ac_try="$ac_link"
4058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4059 *) ac_try_echo
=$ac_try;;
4061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063 (eval "$ac_link") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1
>conftest.err
4067 cat conftest.err
>&5
4068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest
$ac_exeext && {
4073 test "$cross_compiling" = yes ||
4074 $as_test_x conftest
$ac_exeext
4076 { $as_echo "$as_me:$LINENO: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 X_LIBS
="$X_LIBS -R $x_libraries"
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4083 { $as_echo "$as_me:$LINENO: result: neither works" >&5
4084 $as_echo "neither works" >&6; }
4087 rm -rf conftest.dSYM
4088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4089 conftest
$ac_exeext conftest.
$ac_ext
4092 rm -rf conftest.dSYM
4093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4094 conftest
$ac_exeext conftest.
$ac_ext
4095 ac_c_werror_flag
=$ac_xsave_c_werror_flag
4099 # Check for system-dependent libraries X programs must link with.
4100 # Do this before checking for the system-independent R6 libraries
4101 # (-lICE), since we may need -lsocket or whatever for X linking.
4103 if test "$ISC" = yes; then
4104 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
4106 # Martyn Johnson says this is needed for Ultrix, if the X
4107 # libraries were built with DECnet support. And Karl Berry says
4108 # the Alpha needs dnet_stub (dnet does not exist).
4109 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
4110 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4117 /* Override any GCC internal prototype to avoid an error.
4118 Use char because int might match the return type of a GCC
4119 builtin and then its argument prototype would still apply. */
4123 char XOpenDisplay ();
4127 return XOpenDisplay ();
4132 rm -f conftest.
$ac_objext conftest
$ac_exeext
4133 if { (ac_try
="$ac_link"
4135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_link") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest$ac_exeext && {
4150 test "$cross_compiling" = yes ||
4151 $as_test_x conftest$ac_exeext
4155 $as_echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4159 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4161 $as_echo_n "(cached) " >&6
4163 ac_check_lib_save_LIBS=$LIBS
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4172 /* Override any GCC internal prototype to avoid an error.
4173 Use char because int might match the return type of a GCC
4174 builtin and then its argument prototype would still apply. */
4182 return dnet_ntoa ();
4187 rm -f conftest.$ac_objext conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4191 *) ac_try_echo
=$ac_try;;
4193 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4194 $as_echo "$ac_try_echo") >&5
4195 (eval "$ac_link") 2>conftest.er1
4197 grep -v '^ *+' conftest.er1
>conftest.err
4199 cat conftest.err
>&5
4200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && {
4202 test -z "$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 } && test -s conftest
$ac_exeext && {
4205 test "$cross_compiling" = yes ||
4206 $as_test_x conftest
$ac_exeext
4208 ac_cv_lib_dnet_dnet_ntoa
=yes
4210 $as_echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.
$ac_ext >&5
4213 ac_cv_lib_dnet_dnet_ntoa
=no
4216 rm -rf conftest.dSYM
4217 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4218 conftest
$ac_exeext conftest.
$ac_ext
4219 LIBS
=$ac_check_lib_save_LIBS
4221 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4222 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4223 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
4224 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4227 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4228 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4229 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4230 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4231 $as_echo_n "(cached) " >&6
4233 ac_check_lib_save_LIBS
=$LIBS
4234 LIBS
="-ldnet_stub $LIBS"
4235 cat >conftest.
$ac_ext <<_ACEOF
4238 cat confdefs.h
>>conftest.
$ac_ext
4239 cat >>conftest.
$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4242 /* Override any GCC internal prototype to avoid an error.
4243 Use char because int might match the return type of a GCC
4244 builtin and then its argument prototype would still apply. */
4252 return dnet_ntoa ();
4257 rm -f conftest.
$ac_objext conftest
$ac_exeext
4258 if { (ac_try
="$ac_link"
4260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265 (eval "$ac_link") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest$ac_exeext && {
4275 test "$cross_compiling" = yes ||
4276 $as_test_x conftest$ac_exeext
4278 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_cv_lib_dnet_stub_dnet_ntoa=no
4286 rm -rf conftest.dSYM
4287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4288 conftest$ac_exeext conftest.$ac_ext
4289 LIBS=$ac_check_lib_save_LIBS
4291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4292 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4293 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
4294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4300 rm -rf conftest.dSYM
4301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4302 conftest$ac_exeext conftest.$ac_ext
4303 LIBS="$ac_xsave_LIBS"
4305 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4306 # to get the SysV transport functions.
4307 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4309 # The nsl library prevents programs from opening the X display
4310 # on Irix 5.2, according to T.E. Dickey.
4311 # The functions gethostbyname, getservbyname, and inet_addr are
4312 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4313 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
4314 $as_echo_n "checking for gethostbyname... " >&6; }
4315 if test "${ac_cv_func_gethostbyname+set}" = set; then
4316 $as_echo_n "(cached) " >&6
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4326 #define gethostbyname innocuous_gethostbyname
4328 /* System header to define __stub macros and hopefully few prototypes,
4329 which can conflict with char gethostbyname (); below.
4330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331 <limits.h> exists even on freestanding compilers. */
4334 # include <limits.h>
4336 # include <assert.h>
4339 #undef gethostbyname
4341 /* Override any GCC internal prototype to avoid an error.
4342 Use char because int might match the return type of a GCC
4343 builtin and then its argument prototype would still apply. */
4347 char gethostbyname ();
4348 /* The GNU C library defines this for functions which it implements
4349 to always fail with ENOSYS. Some functions are actually named
4350 something starting with __ and the normal name is an alias. */
4351 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4358 return gethostbyname ();
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4367 *) ac_try_echo
=$ac_try;;
4369 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_link") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1
>conftest.err
4375 cat conftest.err
>&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest
$ac_exeext && {
4381 test "$cross_compiling" = yes ||
4382 $as_test_x conftest
$ac_exeext
4384 ac_cv_func_gethostbyname
=yes
4386 $as_echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.
$ac_ext >&5
4389 ac_cv_func_gethostbyname
=no
4392 rm -rf conftest.dSYM
4393 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4394 conftest
$ac_exeext conftest.
$ac_ext
4396 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4397 $as_echo "$ac_cv_func_gethostbyname" >&6; }
4399 if test $ac_cv_func_gethostbyname = no
; then
4400 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4401 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4402 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4403 $as_echo_n "(cached) " >&6
4405 ac_check_lib_save_LIBS
=$LIBS
4407 cat >conftest.
$ac_ext <<_ACEOF
4410 cat confdefs.h
>>conftest.
$ac_ext
4411 cat >>conftest.
$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4414 /* Override any GCC internal prototype to avoid an error.
4415 Use char because int might match the return type of a GCC
4416 builtin and then its argument prototype would still apply. */
4420 char gethostbyname ();
4424 return gethostbyname ();
4429 rm -f conftest.
$ac_objext conftest
$ac_exeext
4430 if { (ac_try
="$ac_link"
4432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4436 $as_echo "$ac_try_echo") >&5
4437 (eval "$ac_link") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && {
4444 test -z "$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 } && test -s conftest$ac_exeext && {
4447 test "$cross_compiling" = yes ||
4448 $as_test_x conftest$ac_exeext
4450 ac_cv_lib_nsl_gethostbyname=yes
4452 $as_echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_cv_lib_nsl_gethostbyname=no
4458 rm -rf conftest.dSYM
4459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4460 conftest$ac_exeext conftest.$ac_ext
4461 LIBS=$ac_check_lib_save_LIBS
4463 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4464 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4465 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
4466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4469 if test $ac_cv_lib_nsl_gethostbyname = no; then
4470 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4471 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4472 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4473 $as_echo_n "(cached) " >&6
4475 ac_check_lib_save_LIBS=$LIBS
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4484 /* Override any GCC internal prototype to avoid an error.
4485 Use char because int might match the return type of a GCC
4486 builtin and then its argument prototype would still apply. */
4490 char gethostbyname ();
4494 return gethostbyname ();
4499 rm -f conftest.$ac_objext conftest$ac_exeext
4500 if { (ac_try="$ac_link"
4502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4503 *) ac_try_echo
=$ac_try;;
4505 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4506 $as_echo "$ac_try_echo") >&5
4507 (eval "$ac_link") 2>conftest.er1
4509 grep -v '^ *+' conftest.er1
>conftest.err
4511 cat conftest.err
>&5
4512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } && {
4514 test -z "$ac_c_werror_flag" ||
4515 test ! -s conftest.err
4516 } && test -s conftest
$ac_exeext && {
4517 test "$cross_compiling" = yes ||
4518 $as_test_x conftest
$ac_exeext
4520 ac_cv_lib_bsd_gethostbyname
=yes
4522 $as_echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.
$ac_ext >&5
4525 ac_cv_lib_bsd_gethostbyname
=no
4528 rm -rf conftest.dSYM
4529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4530 conftest
$ac_exeext conftest.
$ac_ext
4531 LIBS
=$ac_check_lib_save_LIBS
4533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4534 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4535 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then
4536 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4543 # socket/setsockopt and other routines are undefined under SCO ODT
4544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4545 # on later versions), says Simon Leinen: it contains gethostby*
4546 # variants that don't use the name server (or something). -lsocket
4547 # must be given before -lnsl if both are needed. We assume that
4548 # if connect needs -lnsl, so does gethostbyname.
4549 { $as_echo "$as_me:$LINENO: checking for connect" >&5
4550 $as_echo_n "checking for connect... " >&6; }
4551 if test "${ac_cv_func_connect+set}" = set; then
4552 $as_echo_n "(cached) " >&6
4554 cat >conftest.
$ac_ext <<_ACEOF
4557 cat confdefs.h
>>conftest.
$ac_ext
4558 cat >>conftest.
$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4562 #define connect innocuous_connect
4564 /* System header to define __stub macros and hopefully few prototypes,
4565 which can conflict with char connect (); below.
4566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4567 <limits.h> exists even on freestanding compilers. */
4570 # include <limits.h>
4572 # include <assert.h>
4577 /* Override any GCC internal prototype to avoid an error.
4578 Use char because int might match the return type of a GCC
4579 builtin and then its argument prototype would still apply. */
4584 /* The GNU C library defines this for functions which it implements
4585 to always fail with ENOSYS. Some functions are actually named
4586 something starting with __ and the normal name is an alias. */
4587 #if defined __stub_connect || defined __stub___connect
4599 rm -f conftest.
$ac_objext conftest
$ac_exeext
4600 if { (ac_try
="$ac_link"
4602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4606 $as_echo "$ac_try_echo") >&5
4607 (eval "$ac_link") 2>conftest.er1
4609 grep -v '^ *+' conftest.er1 >conftest.err
4611 cat conftest.err >&5
4612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && {
4614 test -z "$ac_c_werror_flag" ||
4615 test ! -s conftest.err
4616 } && test -s conftest$ac_exeext && {
4617 test "$cross_compiling" = yes ||
4618 $as_test_x conftest$ac_exeext
4620 ac_cv_func_connect=yes
4622 $as_echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_func_connect=no
4628 rm -rf conftest.dSYM
4629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4630 conftest$ac_exeext conftest.$ac_ext
4632 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4633 $as_echo "$ac_cv_func_connect" >&6; }
4635 if test $ac_cv_func_connect = no; then
4636 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4637 $as_echo_n "checking for connect in -lsocket... " >&6; }
4638 if test "${ac_cv_lib_socket_connect+set}" = set; then
4639 $as_echo_n "(cached) " >&6
4641 ac_check_lib_save_LIBS=$LIBS
4642 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4650 /* Override any GCC internal prototype to avoid an error.
4651 Use char because int might match the return type of a GCC
4652 builtin and then its argument prototype would still apply. */
4665 rm -f conftest.$ac_objext conftest$ac_exeext
4666 if { (ac_try="$ac_link"
4668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4669 *) ac_try_echo
=$ac_try;;
4671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_link") 2>conftest.er1
4675 grep -v '^ *+' conftest.er1
>conftest.err
4677 cat conftest.err
>&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && {
4680 test -z "$ac_c_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest
$ac_exeext && {
4683 test "$cross_compiling" = yes ||
4684 $as_test_x conftest
$ac_exeext
4686 ac_cv_lib_socket_connect
=yes
4688 $as_echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.
$ac_ext >&5
4691 ac_cv_lib_socket_connect
=no
4694 rm -rf conftest.dSYM
4695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4696 conftest
$ac_exeext conftest.
$ac_ext
4697 LIBS
=$ac_check_lib_save_LIBS
4699 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4700 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4701 if test "x$ac_cv_lib_socket_connect" = x
""yes; then
4702 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4707 # Guillermo Gomez says -lposix is necessary on A/UX.
4708 { $as_echo "$as_me:$LINENO: checking for remove" >&5
4709 $as_echo_n "checking for remove... " >&6; }
4710 if test "${ac_cv_func_remove+set}" = set; then
4711 $as_echo_n "(cached) " >&6
4713 cat >conftest.
$ac_ext <<_ACEOF
4716 cat confdefs.h
>>conftest.
$ac_ext
4717 cat >>conftest.
$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4721 #define remove innocuous_remove
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char remove (); below.
4725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4726 <limits.h> exists even on freestanding compilers. */
4729 # include <limits.h>
4731 # include <assert.h>
4736 /* Override any GCC internal prototype to avoid an error.
4737 Use char because int might match the return type of a GCC
4738 builtin and then its argument prototype would still apply. */
4743 /* The GNU C library defines this for functions which it implements
4744 to always fail with ENOSYS. Some functions are actually named
4745 something starting with __ and the normal name is an alias. */
4746 #if defined __stub_remove || defined __stub___remove
4758 rm -f conftest.
$ac_objext conftest
$ac_exeext
4759 if { (ac_try
="$ac_link"
4761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4765 $as_echo "$ac_try_echo") >&5
4766 (eval "$ac_link") 2>conftest.er1
4768 grep -v '^ *+' conftest.er1 >conftest.err
4770 cat conftest.err >&5
4771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } && {
4773 test -z "$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4775 } && test -s conftest$ac_exeext && {
4776 test "$cross_compiling" = yes ||
4777 $as_test_x conftest$ac_exeext
4779 ac_cv_func_remove=yes
4781 $as_echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 ac_cv_func_remove=no
4787 rm -rf conftest.dSYM
4788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4789 conftest$ac_exeext conftest.$ac_ext
4791 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4792 $as_echo "$ac_cv_func_remove" >&6; }
4794 if test $ac_cv_func_remove = no; then
4795 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4796 $as_echo_n "checking for remove in -lposix... " >&6; }
4797 if test "${ac_cv_lib_posix_remove+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4800 ac_check_lib_save_LIBS=$LIBS
4801 LIBS="-lposix $LIBS"
4802 cat >conftest.$ac_ext <<_ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4809 /* Override any GCC internal prototype to avoid an error.
4810 Use char because int might match the return type of a GCC
4811 builtin and then its argument prototype would still apply. */
4824 rm -f conftest.$ac_objext conftest$ac_exeext
4825 if { (ac_try="$ac_link"
4827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4828 *) ac_try_echo
=$ac_try;;
4830 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4831 $as_echo "$ac_try_echo") >&5
4832 (eval "$ac_link") 2>conftest.er1
4834 grep -v '^ *+' conftest.er1
>conftest.err
4836 cat conftest.err
>&5
4837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest
$ac_exeext && {
4842 test "$cross_compiling" = yes ||
4843 $as_test_x conftest
$ac_exeext
4845 ac_cv_lib_posix_remove
=yes
4847 $as_echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.
$ac_ext >&5
4850 ac_cv_lib_posix_remove
=no
4853 rm -rf conftest.dSYM
4854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4855 conftest
$ac_exeext conftest.
$ac_ext
4856 LIBS
=$ac_check_lib_save_LIBS
4858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4859 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4860 if test "x$ac_cv_lib_posix_remove" = x
""yes; then
4861 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4866 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4867 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
4868 $as_echo_n "checking for shmat... " >&6; }
4869 if test "${ac_cv_func_shmat+set}" = set; then
4870 $as_echo_n "(cached) " >&6
4872 cat >conftest.
$ac_ext <<_ACEOF
4875 cat confdefs.h
>>conftest.
$ac_ext
4876 cat >>conftest.
$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4880 #define shmat innocuous_shmat
4882 /* System header to define __stub macros and hopefully few prototypes,
4883 which can conflict with char shmat (); below.
4884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 <limits.h> exists even on freestanding compilers. */
4888 # include <limits.h>
4890 # include <assert.h>
4895 /* Override any GCC internal prototype to avoid an error.
4896 Use char because int might match the return type of a GCC
4897 builtin and then its argument prototype would still apply. */
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined __stub_shmat || defined __stub___shmat
4917 rm -f conftest.
$ac_objext conftest
$ac_exeext
4918 if { (ac_try
="$ac_link"
4920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924 $as_echo "$ac_try_echo") >&5
4925 (eval "$ac_link") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest$ac_exeext && {
4935 test "$cross_compiling" = yes ||
4936 $as_test_x conftest$ac_exeext
4938 ac_cv_func_shmat=yes
4940 $as_echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4946 rm -rf conftest.dSYM
4947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4948 conftest$ac_exeext conftest.$ac_ext
4950 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4951 $as_echo "$ac_cv_func_shmat" >&6; }
4953 if test $ac_cv_func_shmat = no; then
4954 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4955 $as_echo_n "checking for shmat in -lipc... " >&6; }
4956 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4957 $as_echo_n "(cached) " >&6
4959 ac_check_lib_save_LIBS=$LIBS
4961 cat >conftest.$ac_ext <<_ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4968 /* Override any GCC internal prototype to avoid an error.
4969 Use char because int might match the return type of a GCC
4970 builtin and then its argument prototype would still apply. */
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (ac_try="$ac_link"
4986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4987 *) ac_try_echo
=$ac_try;;
4989 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_link") 2>conftest.er1
4993 grep -v '^ *+' conftest.er1
>conftest.err
4995 cat conftest.err
>&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest
$ac_exeext && {
5001 test "$cross_compiling" = yes ||
5002 $as_test_x conftest
$ac_exeext
5004 ac_cv_lib_ipc_shmat
=yes
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.
$ac_ext >&5
5009 ac_cv_lib_ipc_shmat
=no
5012 rm -rf conftest.dSYM
5013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5014 conftest
$ac_exeext conftest.
$ac_ext
5015 LIBS
=$ac_check_lib_save_LIBS
5017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5018 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5019 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then
5020 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
5026 # Check for libraries that X11R6 Xt/Xaw programs need.
5027 ac_save_LDFLAGS
=$LDFLAGS
5028 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
5029 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5030 # check for ICE first), but we must link in the order -lSM -lICE or
5031 # we get undefined symbols. So assume we have SM if we have ICE.
5032 # These have to be linked with before -lX11, unlike the other
5033 # libraries we check for below, so use a different variable.
5034 # John Interrante, Karl Berry
5035 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5036 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5037 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5040 ac_check_lib_save_LIBS
=$LIBS
5041 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
5042 cat >conftest.
$ac_ext <<_ACEOF
5045 cat confdefs.h
>>conftest.
$ac_ext
5046 cat >>conftest.
$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5049 /* Override any GCC internal prototype to avoid an error.
5050 Use char because int might match the return type of a GCC
5051 builtin and then its argument prototype would still apply. */
5055 char IceConnectionNumber ();
5059 return IceConnectionNumber ();
5064 rm -f conftest.
$ac_objext conftest
$ac_exeext
5065 if { (ac_try
="$ac_link"
5067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071 $as_echo "$ac_try_echo") >&5
5072 (eval "$ac_link") 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest$ac_exeext && {
5082 test "$cross_compiling" = yes ||
5083 $as_test_x conftest$ac_exeext
5085 ac_cv_lib_ICE_IceConnectionNumber=yes
5087 $as_echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 ac_cv_lib_ICE_IceConnectionNumber=no
5093 rm -rf conftest.dSYM
5094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5095 conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5099 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5100 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
5101 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5104 LDFLAGS=$ac_save_LDFLAGS
5110 if test -z "$groff_no_x"; then
5114 CFLAGS="$CFLAGS $X_CFLAGS"
5115 LDFLAGS="$LDFLAGS $X_LIBS"
5116 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
5119 { $as_echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
5120 $as_echo_n "checking for Xaw library and header files... " >&6; }
5121 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5130 #include <X11/Intrinsic.h>
5131 #include <X11/Xaw/Simple.h>
5143 rm -f conftest.$ac_objext conftest$ac_exeext
5144 if { (ac_try="$ac_link"
5146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5147 *) ac_try_echo
=$ac_try;;
5149 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_link") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1
>conftest.err
5155 cat conftest.err
>&5
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest
$ac_exeext && {
5161 test "$cross_compiling" = yes ||
5162 $as_test_x conftest
$ac_exeext
5164 { $as_echo "$as_me:$LINENO: result: yes" >&5
5165 $as_echo "yes" >&6; }
5167 $as_echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.
$ac_ext >&5
5170 { $as_echo "$as_me:$LINENO: result: no" >&5
5171 $as_echo "no" >&6; }
5175 rm -rf conftest.dSYM
5176 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5177 conftest
$ac_exeext conftest.
$ac_ext
5180 { $as_echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5181 $as_echo_n "checking for Xmu library and header files... " >&6; }
5182 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5191 #include <X11/Intrinsic.h>
5192 #include <X11/Xmu/Converters.h>
5204 rm -f conftest.
$ac_objext conftest
$ac_exeext
5205 if { (ac_try
="$ac_link"
5207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5211 $as_echo "$ac_try_echo") >&5
5212 (eval "$ac_link") 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest$ac_exeext && {
5222 test "$cross_compiling" = yes ||
5223 $as_test_x conftest$ac_exeext
5225 { $as_echo "$as_me:$LINENO: result: yes" >&5
5226 $as_echo "yes" >&6; }
5228 $as_echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 { $as_echo "$as_me:$LINENO: result: no" >&5
5232 $as_echo "no" >&6; }
5236 rm -rf conftest.dSYM
5237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5238 conftest$ac_exeext conftest.$ac_ext
5245 if test "x$groff_no_x" = "xyes"; then
5246 { $as_echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5247 $as_echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5249 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5250 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
5251 XLIBDIRS="src/libs/libxutil"
5258 # Check whether --with-appresdir was given.
5259 if test "${with_appresdir+set}" = set; then
5260 withval=$with_appresdir;
5263 if test -z "$groff_no_x"; then
5264 # Create an Imakefile, run `xmkmf
', then `make'.
5265 rm -f -r conftest.dir
5266 if mkdir conftest.dir
; then
5268 # Make sure to not put `make' in the Imakefile rules,
5269 # since we grep it out.
5270 cat >Imakefile
<<'EOF'
5273 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5276 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5277 # GNU make sometimes prints "make[1]: Entering...",
5278 # which would confuse us.
5279 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5281 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5282 for groff_extension
in a so sl
; do
5283 if test ! -f $groff_x_usrlibdir/libX11.
$groff_extension &&
5284 test -f $groff_x_libdir/libX11.
$groff_extension; then
5285 groff_x_usrlibdir
=$groff_x_libdir
5292 rm -f -r conftest.dir
5295 # In case the test with `xmkmf' wasn't successful, try a suite of
5296 # standard directories. Check `X11' before `X11Rn' because it is often
5297 # a symlink to the current release.
5310 /usr/local/X11R6/lib
5311 /usr/local/X11R5/lib
5312 /usr/local/X11R4/lib
5315 /usr/local/lib/X11R6
5316 /usr/local/lib/X11R5
5317 /usr/local/lib/X11R4
5321 /usr/XFree86/lib/X11
5325 /usr/unsupported/lib
5327 /usr/local/x11r5/lib
5328 /usr/lpp/Xamples/lib
5331 /usr/openwin/share/lib'
5333 if test -z "$groff_x_usrlibdir"; then
5334 # We only test whether libX11 exists.
5335 for groff_dir
in $groff_x_libdirs; do
5336 for groff_extension
in a so sl
; do
5337 if test ! -r $groff_dir/libX11.
$groff_extension; then
5338 groff_x_usrlibdir
=$groff_dir
5345 if test "x$with_appresdir" = "x"; then
5346 appresdir
=$groff_x_usrlibdir/X11
/app-defaults
5348 appresdir
=$with_appresdir
5352 if test -z "$PSPRINT"; then
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy
$ac_prog; ac_word
=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_LPR+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$LPR"; then
5363 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
5365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir
=.
5370 for ac_exec_ext
in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_LPR
="$ac_prog"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 if test -n "$LPR"; then
5384 { $as_echo "$as_me:$LINENO: result: $LPR" >&5
5385 $as_echo "$LPR" >&6; }
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5392 test -n "$LPR" && break
5397 # Extract the first word of "$ac_prog", so it can be a program name with args.
5398 set dummy
$ac_prog; ac_word
=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_LP+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$LP"; then
5405 ac_cv_prog_LP
="$LP" # Let the user override the test.
5407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir
=.
5412 for ac_exec_ext
in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_LP
="$ac_prog"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 if test -n "$LP"; then
5426 { $as_echo "$as_me:$LINENO: result: $LP" >&5
5427 $as_echo "$LP" >&6; }
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5434 test -n "$LP" && break
5437 if test -n "$LPR" && test -n "$LP"; then
5438 # HP-UX provides an lpr command that emulates lpr using lp,
5439 # but it doesn't have lpq; in this case we want to use lp
5443 # Extract the first word of "$ac_prog", so it can be a program name with args.
5444 set dummy
$ac_prog; ac_word
=$2
5445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if test "${ac_cv_prog_LPQ+set}" = set; then
5448 $as_echo_n "(cached) " >&6
5450 if test -n "$LPQ"; then
5451 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
5453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir
=.
5458 for ac_exec_ext
in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_prog_LPQ
="$ac_prog"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 if test -n "$LPQ"; then
5472 { $as_echo "$as_me:$LINENO: result: $LPQ" >&5
5473 $as_echo "$LPQ" >&6; }
5475 { $as_echo "$as_me:$LINENO: result: no" >&5
5476 $as_echo "no" >&6; }
5480 test -n "$LPQ" && break
5483 test -n "$LPQ" || LPR
=
5485 if test -n "$LPR"; then
5487 elif test -n "$LP"; then
5492 { $as_echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5493 $as_echo_n "checking for command to use for printing PostScript files... " >&6; }
5494 { $as_echo "$as_me:$LINENO: result: $PSPRINT" >&5
5495 $as_echo "$PSPRINT" >&6; }
5497 # Figure out DVIPRINT from PSPRINT.
5498 { $as_echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5499 $as_echo_n "checking for command to use for printing dvi files... " >&6; }
5500 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5501 if test "x$PSPRINT" = "xlpr"; then
5508 { $as_echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5509 $as_echo "$DVIPRINT" >&6; }
5510 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5512 if test "${ac_cv_path_GREP+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5515 if test -z "$GREP"; then
5516 ac_path_GREP_found
=false
5517 # Loop through the user's path and test for each of PROGNAME-LIST
5518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5519 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5522 test -z "$as_dir" && as_dir
=.
5523 for ac_prog
in grep ggrep
; do
5524 for ac_exec_ext
in '' $ac_executable_extensions; do
5525 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5527 # Check for GNU ac_path_GREP and select it if it is found.
5528 # Check for GNU $ac_path_GREP
5529 case `"$ac_path_GREP" --version 2>&1` in
5531 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5534 $as_echo_n 0123456789 >"conftest.in"
5537 cat "conftest.in" "conftest.in" >"conftest.tmp"
5538 mv "conftest.tmp" "conftest.in"
5539 cp "conftest.in" "conftest.nl"
5540 $as_echo 'GREP' >> "conftest.nl"
5541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5542 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5543 ac_count
=`expr $ac_count + 1`
5544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5545 # Best one so far, save it but keep looking for a better one
5546 ac_cv_path_GREP
="$ac_path_GREP"
5547 ac_path_GREP_max
=$ac_count
5549 # 10*(2^10) chars as input seems more than enough
5550 test $ac_count -gt 10 && break
5552 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5555 $ac_path_GREP_found && break 3
5560 if test -z "$ac_cv_path_GREP"; then
5561 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5562 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5563 { (exit 1); exit 1; }; }
5566 ac_cv_path_GREP
=$GREP
5570 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5571 $as_echo "$ac_cv_path_GREP" >&6; }
5572 GREP
="$ac_cv_path_GREP"
5575 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5576 $as_echo_n "checking for egrep... " >&6; }
5577 if test "${ac_cv_path_EGREP+set}" = set; then
5578 $as_echo_n "(cached) " >&6
5580 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5581 then ac_cv_path_EGREP
="$GREP -E"
5583 if test -z "$EGREP"; then
5584 ac_path_EGREP_found
=false
5585 # Loop through the user's path and test for each of PROGNAME-LIST
5586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5587 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5590 test -z "$as_dir" && as_dir
=.
5591 for ac_prog
in egrep; do
5592 for ac_exec_ext
in '' $ac_executable_extensions; do
5593 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5594 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5595 # Check for GNU ac_path_EGREP and select it if it is found.
5596 # Check for GNU $ac_path_EGREP
5597 case `"$ac_path_EGREP" --version 2>&1` in
5599 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5602 $as_echo_n 0123456789 >"conftest.in"
5605 cat "conftest.in" "conftest.in" >"conftest.tmp"
5606 mv "conftest.tmp" "conftest.in"
5607 cp "conftest.in" "conftest.nl"
5608 $as_echo 'EGREP' >> "conftest.nl"
5609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5610 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5611 ac_count
=`expr $ac_count + 1`
5612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5613 # Best one so far, save it but keep looking for a better one
5614 ac_cv_path_EGREP
="$ac_path_EGREP"
5615 ac_path_EGREP_max
=$ac_count
5617 # 10*(2^10) chars as input seems more than enough
5618 test $ac_count -gt 10 && break
5620 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5623 $ac_path_EGREP_found && break 3
5628 if test -z "$ac_cv_path_EGREP"; then
5629 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5630 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5631 { (exit 1); exit 1; }; }
5634 ac_cv_path_EGREP
=$EGREP
5639 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5640 $as_echo "$ac_cv_path_EGREP" >&6; }
5641 EGREP
="$ac_cv_path_EGREP"
5644 # Extract the first word of "perl", so it can be a program name with args.
5645 set dummy perl
; ac_word
=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_PERLPATH+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
5656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir
=.
5661 for ac_exec_ext
in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
5675 PERLPATH
=$ac_cv_path_PERLPATH
5676 if test -n "$PERLPATH"; then
5677 { $as_echo "$as_me:$LINENO: result: $PERLPATH" >&5
5678 $as_echo "$PERLPATH" >&6; }
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5685 for ac_prog
in byacc
'bison -y'
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy
$ac_prog; ac_word
=$2
5689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_prog_YACC+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5694 if test -n "$YACC"; then
5695 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir
=.
5702 for ac_exec_ext
in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_YACC
="$ac_prog"
5705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 YACC
=$ac_cv_prog_YACC
5715 if test -n "$YACC"; then
5716 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5717 $as_echo "$YACC" >&6; }
5719 { $as_echo "$as_me:$LINENO: result: no" >&5
5720 $as_echo "no" >&6; }
5724 test -n "$YACC" && break
5726 test -n "$YACC" || YACC
="yacc"
5729 # Extract the first word of "makeinfo", so it can be a program name with args.
5730 set dummy makeinfo
; ac_word
=$2
5731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5734 $as_echo_n "(cached) " >&6
5736 if test -n "$MAKEINFO"; then
5737 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5743 test -z "$as_dir" && as_dir
=.
5744 for ac_exec_ext
in '' $ac_executable_extensions; do
5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746 ac_cv_prog_MAKEINFO
="makeinfo"
5747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 MAKEINFO
=$ac_cv_prog_MAKEINFO
5757 if test -n "$MAKEINFO"; then
5758 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5759 $as_echo "$MAKEINFO" >&6; }
5761 { $as_echo "$as_me:$LINENO: result: no" >&5
5762 $as_echo "no" >&6; }
5766 if test -z "$MAKEINFO"; then
5767 missing
="\`makeinfo' is missing."
5769 { $as_echo "$as_me:$LINENO: checking for makeinfo version" >&5
5770 $as_echo_n "checking for makeinfo version... " >&6; }
5771 # We need an additional level of quoting to make sed's regexps work.
5772 makeinfo_version
=`$MAKEINFO --version 2>&1 \
5773 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
5774 { $as_echo "$as_me:$LINENO: result: $makeinfo_version" >&5
5775 $as_echo "$makeinfo_version" >&6; }
5776 # Consider only the first two numbers in version number string.
5777 makeinfo_version_major
=`IFS=.; set x $makeinfo_version; echo 0${2}`
5778 makeinfo_version_minor
=`IFS=.; set x $makeinfo_version; echo 0${3}`
5779 makeinfo_version_numeric
=`
5780 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
5781 if test $makeinfo_version_numeric -lt 4008; then
5782 missing
="\`makeinfo' is too old."
5786 if test -n "$missing"; then
5787 infofile
=doc
/groff.info
5788 test -f ${infofile} || infofile=${srcdir}/${infofile}
5789 if test ! -f ${infofile} \
5790 ||
test ${srcdir}/doc
/groff.texinfo
-nt ${infofile}; then
5791 { { $as_echo "$as_me:$LINENO: error: $missing
5792 Get the \`texinfo' package version 4.8 or newer." >&5
5793 $as_echo "$as_me: error: $missing
5794 Get the \`texinfo' package version 4.8 or newer." >&2;}
5795 { (exit 1); exit 1; }; }
5797 { $as_echo "$as_me:$LINENO: WARNING: $missing
5798 Get the \`texinfo' package version 4.8 or newer if you want to convert
5799 \`groff.texinfo' into a PDF or HTML document." >&5
5800 $as_echo "$as_me: WARNING: $missing
5801 Get the \`texinfo' package version 4.8 or newer if you want to convert
5802 \`groff.texinfo' into a PDF or HTML document." >&2;}
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5808 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_RANLIB+set}" = set; then
5812 $as_echo_n "(cached) " >&6
5814 if test -n "$RANLIB"; then
5815 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir
=.
5822 for ac_exec_ext
in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 RANLIB
=$ac_cv_prog_RANLIB
5835 if test -n "$RANLIB"; then
5836 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5837 $as_echo "$RANLIB" >&6; }
5839 { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB
=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib
; ac_word
=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir
=.
5862 for ac_exec_ext
in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5875 if test -n "$ac_ct_RANLIB"; then
5876 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5877 $as_echo "$ac_ct_RANLIB" >&6; }
5879 { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_RANLIB" = x
; then
5886 case $cross_compiling:$ac_tool_warned in
5888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned
=yes ;;
5892 RANLIB
=$ac_ct_RANLIB
5895 RANLIB
="$ac_cv_prog_RANLIB"
5899 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5900 if test -f "$ac_dir/install-sh"; then
5902 ac_install_sh
="$ac_aux_dir/install-sh -c"
5904 elif test -f "$ac_dir/install.sh"; then
5906 ac_install_sh
="$ac_aux_dir/install.sh -c"
5908 elif test -f "$ac_dir/shtool"; then
5910 ac_install_sh
="$ac_aux_dir/shtool install -c"
5914 if test -z "$ac_aux_dir"; then
5915 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5916 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5917 { (exit 1); exit 1; }; }
5920 # These three variables are undocumented and unsupported,
5921 # and are intended to be withdrawn in a future Autoconf release.
5922 # They can cause serious problems if a builder's source tree is in a directory
5923 # whose full name contains unusual characters.
5924 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5925 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5926 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5930 ac_dir
=`cd $ac_aux_dir; pwd`
5931 ac_install_sh
="$ac_dir/install-sh -c"
5932 for ac_prog
in install-info
5934 # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy
$ac_prog; ac_word
=$2
5936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5939 $as_echo_n "(cached) " >&6
5941 if test -n "$INSTALL_INFO"; then
5942 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
5944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir
=.
5949 for ac_exec_ext
in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_INSTALL_INFO
="$ac_prog"
5952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
5962 if test -n "$INSTALL_INFO"; then
5963 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5964 $as_echo "$INSTALL_INFO" >&6; }
5966 { $as_echo "$as_me:$LINENO: result: no" >&5
5967 $as_echo "no" >&6; }
5971 test -n "$INSTALL_INFO" && break
5973 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
5975 # Find a good install program. We prefer a C program (faster),
5976 # so one script is as good as another. But avoid the broken or
5977 # incompatible versions:
5978 # SysV /etc/install, /usr/sbin/install
5979 # SunOS /usr/etc/install
5980 # IRIX /sbin/install
5982 # AmigaOS /C/install, which installs bootblocks on floppy discs
5983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5986 # OS/2's system install, which has a completely different semantic
5987 # ./install, which can be erroneously created by make from ./install.sh.
5988 # Reject install programs that cannot install multiple files.
5989 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5990 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5991 if test -z "$INSTALL"; then
5992 if test "${ac_cv_path_install+set}" = set; then
5993 $as_echo_n "(cached) " >&6
5995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir
=.
6000 # Account for people who put trailing slashes in PATH elements.
6002 .
/ | .
// |
/cC
/* | \
6003 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6004 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
6007 # OSF1 and SCO ODT 3.0 have their own names for install.
6008 # Don't use installbsd from OSF since it installs stuff as root
6010 for ac_prog
in ginstall scoinst
install; do
6011 for ac_exec_ext
in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6013 if test $ac_prog = install &&
6014 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6015 # AIX install. It has an incompatible calling convention.
6017 elif test $ac_prog = install &&
6018 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6019 # program-specific install script used by HP pwplus--don't use.
6022 rm -rf conftest.one conftest.two conftest.dir
6023 echo one
> conftest.one
6024 echo two
> conftest.two
6026 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6027 test -s conftest.one
&& test -s conftest.two
&&
6028 test -s conftest.dir
/conftest.one
&&
6029 test -s conftest.dir
/conftest.two
6031 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6044 rm -rf conftest.one conftest.two conftest.dir
6047 if test "${ac_cv_path_install+set}" = set; then
6048 INSTALL
=$ac_cv_path_install
6050 # As a last resort, use the slow shell script. Don't cache a
6051 # value for INSTALL within a source directory, because that will
6052 # break other packages using the cache if that directory is
6053 # removed, or if the value is a relative name.
6054 INSTALL
=$ac_install_sh
6057 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6058 $as_echo "$INSTALL" >&6; }
6060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6061 # It thinks the first close brace ends the variable substitution.
6062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6066 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6068 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6069 $as_echo_n "checking whether ln -s works... " >&6; }
6071 if test "$LN_S" = "ln -s"; then
6072 { $as_echo "$as_me:$LINENO: result: yes" >&5
6073 $as_echo "yes" >&6; }
6075 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6076 $as_echo "no, using $LN_S" >&6; }
6080 # use a dummy substitution if no csh hack is necessary to avoid errors
6081 # with non-GNU sed programs
6082 { $as_echo "$as_me:$LINENO: checking for csh hash hack" >&5
6083 $as_echo_n "checking for csh hash hack... " >&6; }
6085 cat <<EOF >conftest.sh
6088 export PATH || exit 0
6092 chmod +x conftest.sh
6093 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
6094 { $as_echo "$as_me:$LINENO: result: yes" >&5
6095 $as_echo "yes" >&6; }
6096 SH_SCRIPT_SED_CMD
='1s/.*/:/'
6098 { $as_echo "$as_me:$LINENO: result: no" >&5
6099 $as_echo "no" >&6; }
6100 SH_SCRIPT_SED_CMD
='1s/a/a/'
6105 # checks for headers
6106 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6107 $as_echo_n "checking for ANSI C header files... " >&6; }
6108 if test "${ac_cv_header_stdc+set}" = set; then
6109 $as_echo_n "(cached) " >&6
6111 cat >conftest.
$ac_ext <<_ACEOF
6114 cat confdefs.h
>>conftest.
$ac_ext
6115 cat >>conftest.
$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6130 rm -f conftest.
$ac_objext
6131 if { (ac_try
="$ac_compile"
6133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_header_stdc=yes
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_cv_header_stdc=no
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 if test $ac_cv_header_stdc = yes; then
6159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "memchr" >/dev/null 2>&1; then
6173 ac_cv_header_stdc=no
6179 if test $ac_cv_header_stdc = yes; then
6180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "free" >/dev/null 2>&1; then
6194 ac_cv_header_stdc=no
6200 if test $ac_cv_header_stdc = yes; then
6201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6202 if test "$cross_compiling" = yes; then
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6213 #if ((' ' & 0x0FF) == 0x020)
6214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6217 # define ISLOWER(c) \
6218 (('a' <= (c) && (c) <= 'i') \
6219 || ('j' <= (c) && (c) <= 'r') \
6220 || ('s' <= (c) && (c) <= 'z'))
6221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6229 for (i = 0; i < 256; i++)
6230 if (XOR (islower (i), ISLOWER (i))
6231 || toupper (i) != TOUPPER (i))
6236 rm -f conftest$ac_exeext
6237 if { (ac_try="$ac_link"
6239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6240 *) ac_try_echo
=$ac_try;;
6242 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6243 $as_echo "$ac_try_echo") >&5
6244 (eval "$ac_link") 2>&5
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6248 { (case "(($ac_try" in
6249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6253 $as_echo "$ac_try_echo") >&5
6254 (eval "$ac_try") 2>&5
6256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 $as_echo "$as_me: program exited with status $ac_status" >&5
6261 $as_echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_cv_header_stdc=no
6267 rm -rf conftest.dSYM
6268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6274 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6275 $as_echo "$ac_cv_header_stdc" >&6; }
6276 if test $ac_cv_header_stdc = yes; then
6278 cat >>confdefs.h <<\_ACEOF
6279 #define STDC_HEADERS 1
6284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6294 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6295 inttypes.h stdint.h unistd.h
6297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6299 $as_echo_n "checking for $ac_header... " >&6; }
6300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6301 $as_echo_n "(cached) " >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 $ac_includes_default
6311 #include <$ac_header>
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6317 *) ac_try_echo
=$ac_try;;
6319 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6320 $as_echo "$ac_try_echo") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.
$ac_objext; then
6331 eval "$as_ac_Header=yes"
6333 $as_echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.
$ac_ext >&5
6336 eval "$as_ac_Header=no"
6339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6341 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6342 $as_echo "$as_val"'`
6343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6344 $as_echo "$ac_res" >&6; }
6345 as_val
=`eval 'as_val=${'$as_ac_Header'}
6346 $as_echo "$as_val"'`
6347 if test "x$as_val" = x
""yes; then
6348 cat >>confdefs.h
<<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6369 for ac_header
in stddef.h stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
6370 string.h
strings.h math.h sys
/time.h direct.h process.h
6372 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 $as_echo_n "checking for $ac_header... " >&6; }
6376 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 $as_echo_n "(cached) " >&6
6379 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6384 # Is the header compilable?
6385 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386 $as_echo_n "checking $ac_header usability... " >&6; }
6387 cat >conftest.
$ac_ext <<_ACEOF
6390 cat confdefs.h
>>conftest.
$ac_ext
6391 cat >>conftest.
$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 #include <$ac_header>
6396 rm -f conftest.
$ac_objext
6397 if { (ac_try
="$ac_compile"
6399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_header_compiler=yes
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6424 $as_echo "$ac_header_compiler" >&6; }
6426 # Is the header present?
6427 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6428 $as_echo_n "checking $ac_header presence... " >&6; }
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 #include <$ac_header>
6437 if { (ac_try="$ac_cpp conftest.$ac_ext"
6439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6440 *) ac_try_echo
=$ac_try;;
6442 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6446 grep -v '^ *+' conftest.er1
>conftest.err
6448 cat conftest.err
>&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev
/null
&& {
6451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6454 ac_header_preproc
=yes
6456 $as_echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.
$ac_ext >&5
6459 ac_header_preproc
=no
6462 rm -f conftest.err conftest.
$ac_ext
6463 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6464 $as_echo "$ac_header_preproc" >&6; }
6466 # So? What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6470 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6473 ac_header_preproc
=yes
6476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6481 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6483 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6487 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 $as_echo_n "checking for $ac_header... " >&6; }
6493 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 $as_echo_n "(cached) " >&6
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6499 $as_echo "$as_val"'`
6500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6504 as_val
=`eval 'as_val=${'$as_ac_Header'}
6505 $as_echo "$as_val"'`
6506 if test "x$as_val" = x
""yes; then
6507 cat >>confdefs.h
<<_ACEOF
6508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 { $as_echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6516 $as_echo_n "checking for ISC 3.x or 4.x... " >&6; }
6517 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
6519 { $as_echo "$as_me:$LINENO: result: yes" >&5
6520 $as_echo "yes" >&6; }
6522 cat >>confdefs.h
<<\_ACEOF
6527 { $as_echo "$as_me:$LINENO: result: no" >&5
6528 $as_echo "no" >&6; }
6530 { $as_echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6531 $as_echo_n "checking whether -D_POSIX_SOURCE is necessary... " >&6; }
6533 ac_cpp
='$CXXCPP $CPPFLAGS'
6534 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6538 cat >conftest.
$ac_ext <<_ACEOF
6542 cat confdefs.h
>>conftest.
$ac_ext
6543 cat >>conftest.
$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6548 extern "C" { void fileno(int); }
6560 rm -f conftest.
$ac_objext
6561 if { (ac_try
="$ac_compile"
6563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_cxx_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 { $as_echo "$as_me:$LINENO: result: yes" >&5
6579 $as_echo "yes" >&6; }
6581 cat >>confdefs.h <<\_ACEOF
6582 #define _POSIX_SOURCE 1
6586 $as_echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6589 { $as_echo "$as_me:$LINENO: result: no" >&5
6590 $as_echo "no" >&6; }
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601 # checks for header stuff
6603 ac_cpp='$CXXCPP $CPPFLAGS'
6604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6608 { $as_echo "$as_me:$LINENO: checking for return type of srand" >&5
6609 $as_echo_n "checking for return type of srand... " >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6620 extern "C" { void srand(unsigned int); }
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6636 *) ac_try_echo
=$ac_try;;
6638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_compile") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1
>conftest.err
6644 cat conftest.err
>&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_cxx_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest.
$ac_objext; then
6650 { $as_echo "$as_me:$LINENO: result: void" >&5
6651 $as_echo "void" >&6; }
6653 cat >>confdefs.h
<<\_ACEOF
6654 #define RET_TYPE_SRAND_IS_VOID 1
6658 $as_echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.
$ac_ext >&5
6661 { $as_echo "$as_me:$LINENO: result: int" >&5
6662 $as_echo "int" >&6; }
6665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6667 ac_cpp
='$CPP $CPPFLAGS'
6668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6672 { $as_echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6673 $as_echo_n "checking whether gettimeofday must be declared... " >&6; }
6675 ac_cpp
='$CXXCPP $CPPFLAGS'
6676 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6680 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6683 cat >conftest.
$ac_ext <<_ACEOF
6687 cat confdefs.h
>>conftest.
$ac_ext
6688 cat >>conftest.
$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6693 #ifdef HAVE_STRING_H
6696 #ifdef HAVE_STRINGS_H
6697 #include <strings.h>
6699 #ifdef HAVE_STDLIB_H
6702 #ifdef HAVE_SYS_TIME_H
6703 #include <sys/time.h>
6705 #ifdef HAVE_UNISTD_H
6718 #ifndef gettimeofday
6719 char *p = (char *) gettimeofday;
6728 rm -f conftest.
$ac_objext
6729 if { (ac_try
="$ac_compile"
6731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6732 *) ac_try_echo=$ac_try;;
6734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6735 $as_echo "$ac_try_echo") >&5
6736 (eval "$ac_compile") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && {
6743 test -z "$ac_cxx_werror_flag" ||
6744 test ! -s conftest.err
6745 } && test -s conftest.$ac_objext; then
6746 groff_cv_decl_needed_gettimeofday=no
6748 $as_echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6751 groff_cv_decl_needed_gettimeofday=yes
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6758 $as_echo "$groff_cv_decl_needed_gettimeofday" >&6; }
6759 if test $groff_cv_decl_needed_gettimeofday = yes; then
6761 cat >>confdefs.h <<\_ACEOF
6762 #define NEED_DECLARATION_GETTIMEOFDAY 1
6767 ac_cpp='$CPP $CPPFLAGS'
6768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772 { $as_echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6773 $as_echo_n "checking whether hypot must be declared... " >&6; }
6775 ac_cpp='$CXXCPP $CPPFLAGS'
6776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6780 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6781 $as_echo_n "(cached) " >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6793 #ifdef HAVE_STRING_H
6796 #ifdef HAVE_STRINGS_H
6797 #include <strings.h>
6799 #ifdef HAVE_STDLIB_H
6802 #ifdef HAVE_SYS_TIME_H
6803 #include <sys/time.h>
6805 #ifdef HAVE_UNISTD_H
6819 char *p = (char *) hypot;
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6832 *) ac_try_echo
=$ac_try;;
6834 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6838 grep -v '^ *+' conftest.er1
>conftest.err
6840 cat conftest.err
>&5
6841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_cxx_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.
$ac_objext; then
6846 groff_cv_decl_needed_hypot
=no
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.
$ac_ext >&5
6851 groff_cv_decl_needed_hypot
=yes
6854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6857 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6858 $as_echo "$groff_cv_decl_needed_hypot" >&6; }
6859 if test $groff_cv_decl_needed_hypot = yes; then
6861 cat >>confdefs.h
<<\_ACEOF
6862 #define NEED_DECLARATION_HYPOT 1
6867 ac_cpp
='$CPP $CPPFLAGS'
6868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6872 { $as_echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6873 $as_echo_n "checking whether popen must be declared... " >&6; }
6875 ac_cpp
='$CXXCPP $CPPFLAGS'
6876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6880 if test "${groff_cv_decl_needed_popen+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6883 cat >conftest.
$ac_ext <<_ACEOF
6887 cat confdefs.h
>>conftest.
$ac_ext
6888 cat >>conftest.
$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6893 #ifdef HAVE_STRING_H
6896 #ifdef HAVE_STRINGS_H
6897 #include <strings.h>
6899 #ifdef HAVE_STDLIB_H
6902 #ifdef HAVE_SYS_TIME_H
6903 #include <sys/time.h>
6905 #ifdef HAVE_UNISTD_H
6919 char *p = (char *) popen;
6928 rm -f conftest.
$ac_objext
6929 if { (ac_try
="$ac_compile"
6931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6935 $as_echo "$ac_try_echo") >&5
6936 (eval "$ac_compile") 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_cxx_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest.$ac_objext; then
6946 groff_cv_decl_needed_popen=no
6948 $as_echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 groff_cv_decl_needed_popen=yes
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6958 $as_echo "$groff_cv_decl_needed_popen" >&6; }
6959 if test $groff_cv_decl_needed_popen = yes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define NEED_DECLARATION_POPEN 1
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6973 $as_echo_n "checking whether pclose must be declared... " >&6; }
6975 ac_cpp='$CXXCPP $CPPFLAGS'
6976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6980 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6983 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6993 #ifdef HAVE_STRING_H
6996 #ifdef HAVE_STRINGS_H
6997 #include <strings.h>
6999 #ifdef HAVE_STDLIB_H
7002 #ifdef HAVE_SYS_TIME_H
7003 #include <sys/time.h>
7005 #ifdef HAVE_UNISTD_H
7019 char *p = (char *) pclose;
7028 rm -f conftest.$ac_objext
7029 if { (ac_try="$ac_compile"
7031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7032 *) ac_try_echo
=$ac_try;;
7034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7035 $as_echo "$ac_try_echo") >&5
7036 (eval "$ac_compile") 2>conftest.er1
7038 grep -v '^ *+' conftest.er1
>conftest.err
7040 cat conftest.err
>&5
7041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && {
7043 test -z "$ac_cxx_werror_flag" ||
7044 test ! -s conftest.err
7045 } && test -s conftest.
$ac_objext; then
7046 groff_cv_decl_needed_pclose
=no
7048 $as_echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.
$ac_ext >&5
7051 groff_cv_decl_needed_pclose
=yes
7054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
7058 $as_echo "$groff_cv_decl_needed_pclose" >&6; }
7059 if test $groff_cv_decl_needed_pclose = yes; then
7061 cat >>confdefs.h
<<\_ACEOF
7062 #define NEED_DECLARATION_PCLOSE 1
7067 ac_cpp
='$CPP $CPPFLAGS'
7068 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7072 { $as_echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
7073 $as_echo_n "checking whether putenv must be declared... " >&6; }
7075 ac_cpp
='$CXXCPP $CPPFLAGS'
7076 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7080 if test "${groff_cv_decl_needed_putenv+set}" = set; then
7081 $as_echo_n "(cached) " >&6
7083 cat >conftest.
$ac_ext <<_ACEOF
7087 cat confdefs.h
>>conftest.
$ac_ext
7088 cat >>conftest.
$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7093 #ifdef HAVE_STRING_H
7096 #ifdef HAVE_STRINGS_H
7097 #include <strings.h>
7099 #ifdef HAVE_STDLIB_H
7102 #ifdef HAVE_SYS_TIME_H
7103 #include <sys/time.h>
7105 #ifdef HAVE_UNISTD_H
7119 char *p = (char *) putenv;
7128 rm -f conftest.
$ac_objext
7129 if { (ac_try
="$ac_compile"
7131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7138 grep -v '^ *+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_cxx_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 groff_cv_decl_needed_putenv=no
7148 $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 groff_cv_decl_needed_putenv=yes
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7158 $as_echo "$groff_cv_decl_needed_putenv" >&6; }
7159 if test $groff_cv_decl_needed_putenv = yes; then
7161 cat >>confdefs.h <<\_ACEOF
7162 #define NEED_DECLARATION_PUTENV 1
7167 ac_cpp='$CPP $CPPFLAGS'
7168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7172 { $as_echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7173 $as_echo_n "checking whether rand must be declared... " >&6; }
7175 ac_cpp='$CXXCPP $CPPFLAGS'
7176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7180 if test "${groff_cv_decl_needed_rand+set}" = set; then
7181 $as_echo_n "(cached) " >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7193 #ifdef HAVE_STRING_H
7196 #ifdef HAVE_STRINGS_H
7197 #include <strings.h>
7199 #ifdef HAVE_STDLIB_H
7202 #ifdef HAVE_SYS_TIME_H
7203 #include <sys/time.h>
7205 #ifdef HAVE_UNISTD_H
7219 char *p = (char *) rand;
7228 rm -f conftest.$ac_objext
7229 if { (ac_try="$ac_compile"
7231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7232 *) ac_try_echo
=$ac_try;;
7234 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7235 $as_echo "$ac_try_echo") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7238 grep -v '^ *+' conftest.er1
>conftest.err
7240 cat conftest.err
>&5
7241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_cxx_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.
$ac_objext; then
7246 groff_cv_decl_needed_rand
=no
7248 $as_echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7251 groff_cv_decl_needed_rand
=yes
7254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7258 $as_echo "$groff_cv_decl_needed_rand" >&6; }
7259 if test $groff_cv_decl_needed_rand = yes; then
7261 cat >>confdefs.h
<<\_ACEOF
7262 #define NEED_DECLARATION_RAND 1
7267 ac_cpp
='$CPP $CPPFLAGS'
7268 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7272 { $as_echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7273 $as_echo_n "checking whether snprintf must be declared... " >&6; }
7275 ac_cpp
='$CXXCPP $CPPFLAGS'
7276 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7280 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7281 $as_echo_n "(cached) " >&6
7283 cat >conftest.
$ac_ext <<_ACEOF
7287 cat confdefs.h
>>conftest.
$ac_ext
7288 cat >>conftest.
$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7293 #ifdef HAVE_STRING_H
7296 #ifdef HAVE_STRINGS_H
7297 #include <strings.h>
7299 #ifdef HAVE_STDLIB_H
7302 #ifdef HAVE_SYS_TIME_H
7303 #include <sys/time.h>
7305 #ifdef HAVE_UNISTD_H
7319 char *p = (char *) snprintf;
7328 rm -f conftest.
$ac_objext
7329 if { (ac_try
="$ac_compile"
7331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335 $as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_cxx_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 groff_cv_decl_needed_snprintf=no
7348 $as_echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 groff_cv_decl_needed_snprintf=yes
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7358 $as_echo "$groff_cv_decl_needed_snprintf" >&6; }
7359 if test $groff_cv_decl_needed_snprintf = yes; then
7361 cat >>confdefs.h <<\_ACEOF
7362 #define NEED_DECLARATION_SNPRINTF 1
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372 { $as_echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7373 $as_echo_n "checking whether srand must be declared... " >&6; }
7375 ac_cpp='$CXXCPP $CPPFLAGS'
7376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7380 if test "${groff_cv_decl_needed_srand+set}" = set; then
7381 $as_echo_n "(cached) " >&6
7383 cat >conftest.$ac_ext <<_ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7393 #ifdef HAVE_STRING_H
7396 #ifdef HAVE_STRINGS_H
7397 #include <strings.h>
7399 #ifdef HAVE_STDLIB_H
7402 #ifdef HAVE_SYS_TIME_H
7403 #include <sys/time.h>
7405 #ifdef HAVE_UNISTD_H
7419 char *p = (char *) srand;
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7432 *) ac_try_echo
=$ac_try;;
7434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7435 $as_echo "$ac_try_echo") >&5
7436 (eval "$ac_compile") 2>conftest.er1
7438 grep -v '^ *+' conftest.er1
>conftest.err
7440 cat conftest.err
>&5
7441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_cxx_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.
$ac_objext; then
7446 groff_cv_decl_needed_srand
=no
7448 $as_echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.
$ac_ext >&5
7451 groff_cv_decl_needed_srand
=yes
7454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7457 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7458 $as_echo "$groff_cv_decl_needed_srand" >&6; }
7459 if test $groff_cv_decl_needed_srand = yes; then
7461 cat >>confdefs.h
<<\_ACEOF
7462 #define NEED_DECLARATION_SRAND 1
7467 ac_cpp
='$CPP $CPPFLAGS'
7468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7472 { $as_echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7473 $as_echo_n "checking whether strcasecmp must be declared... " >&6; }
7475 ac_cpp
='$CXXCPP $CPPFLAGS'
7476 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7480 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7481 $as_echo_n "(cached) " >&6
7483 cat >conftest.
$ac_ext <<_ACEOF
7487 cat confdefs.h
>>conftest.
$ac_ext
7488 cat >>conftest.
$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7493 #ifdef HAVE_STRING_H
7496 #ifdef HAVE_STRINGS_H
7497 #include <strings.h>
7499 #ifdef HAVE_STDLIB_H
7502 #ifdef HAVE_SYS_TIME_H
7503 #include <sys/time.h>
7505 #ifdef HAVE_UNISTD_H
7519 char *p = (char *) strcasecmp;
7528 rm -f conftest.
$ac_objext
7529 if { (ac_try
="$ac_compile"
7531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_cxx_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 groff_cv_decl_needed_strcasecmp=no
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 groff_cv_decl_needed_strcasecmp=yes
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7558 $as_echo "$groff_cv_decl_needed_strcasecmp" >&6; }
7559 if test $groff_cv_decl_needed_strcasecmp = yes; then
7561 cat >>confdefs.h <<\_ACEOF
7562 #define NEED_DECLARATION_STRCASECMP 1
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572 { $as_echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7573 $as_echo_n "checking whether strncasecmp must be declared... " >&6; }
7575 ac_cpp='$CXXCPP $CPPFLAGS'
7576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7580 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7583 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7593 #ifdef HAVE_STRING_H
7596 #ifdef HAVE_STRINGS_H
7597 #include <strings.h>
7599 #ifdef HAVE_STDLIB_H
7602 #ifdef HAVE_SYS_TIME_H
7603 #include <sys/time.h>
7605 #ifdef HAVE_UNISTD_H
7619 char *p = (char *) strncasecmp;
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7632 *) ac_try_echo
=$ac_try;;
7634 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7635 $as_echo "$ac_try_echo") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1
>conftest.err
7640 cat conftest.err
>&5
7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_cxx_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.
$ac_objext; then
7646 groff_cv_decl_needed_strncasecmp
=no
7648 $as_echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.
$ac_ext >&5
7651 groff_cv_decl_needed_strncasecmp
=yes
7654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7658 $as_echo "$groff_cv_decl_needed_strncasecmp" >&6; }
7659 if test $groff_cv_decl_needed_strncasecmp = yes; then
7661 cat >>confdefs.h
<<\_ACEOF
7662 #define NEED_DECLARATION_STRNCASECMP 1
7667 ac_cpp
='$CPP $CPPFLAGS'
7668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7672 { $as_echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7673 $as_echo_n "checking whether vfprintf must be declared... " >&6; }
7675 ac_cpp
='$CXXCPP $CPPFLAGS'
7676 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7680 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7683 cat >conftest.
$ac_ext <<_ACEOF
7687 cat confdefs.h
>>conftest.
$ac_ext
7688 cat >>conftest.
$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7693 #ifdef HAVE_STRING_H
7696 #ifdef HAVE_STRINGS_H
7697 #include <strings.h>
7699 #ifdef HAVE_STDLIB_H
7702 #ifdef HAVE_SYS_TIME_H
7703 #include <sys/time.h>
7705 #ifdef HAVE_UNISTD_H
7719 char *p = (char *) vfprintf;
7728 rm -f conftest.
$ac_objext
7729 if { (ac_try
="$ac_compile"
7731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_cxx_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 groff_cv_decl_needed_vfprintf=no
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 groff_cv_decl_needed_vfprintf=yes
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7758 $as_echo "$groff_cv_decl_needed_vfprintf" >&6; }
7759 if test $groff_cv_decl_needed_vfprintf = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define NEED_DECLARATION_VFPRINTF 1
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 { $as_echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7773 $as_echo_n "checking whether vsnprintf must be declared... " >&6; }
7775 ac_cpp='$CXXCPP $CPPFLAGS'
7776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7780 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7781 $as_echo_n "(cached) " >&6
7783 cat >conftest.$ac_ext <<_ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7793 #ifdef HAVE_STRING_H
7796 #ifdef HAVE_STRINGS_H
7797 #include <strings.h>
7799 #ifdef HAVE_STDLIB_H
7802 #ifdef HAVE_SYS_TIME_H
7803 #include <sys/time.h>
7805 #ifdef HAVE_UNISTD_H
7819 char *p = (char *) vsnprintf;
7828 rm -f conftest.$ac_objext
7829 if { (ac_try="$ac_compile"
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7835 $as_echo "$ac_try_echo") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1
>conftest.err
7840 cat conftest.err
>&5
7841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_cxx_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.
$ac_objext; then
7846 groff_cv_decl_needed_vsnprintf
=no
7848 $as_echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.
$ac_ext >&5
7851 groff_cv_decl_needed_vsnprintf
=yes
7854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 { $as_echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7858 $as_echo "$groff_cv_decl_needed_vsnprintf" >&6; }
7859 if test $groff_cv_decl_needed_vsnprintf = yes; then
7861 cat >>confdefs.h
<<\_ACEOF
7862 #define NEED_DECLARATION_VSNPRINTF 1
7867 ac_cpp
='$CPP $CPPFLAGS'
7868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7873 ac_cpp
='$CXXCPP $CPPFLAGS'
7874 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7878 { $as_echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7879 $as_echo_n "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7880 cat >conftest.
$ac_ext <<_ACEOF
7884 cat confdefs.h
>>conftest.
$ac_ext
7885 cat >>conftest.
$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7908 rm -f conftest.
$ac_objext
7909 if { (ac_try
="$ac_compile"
7911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_cxx_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7926 { $as_echo "$as_me:$LINENO: result: yes" >&5
7927 $as_echo "yes" >&6; }
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_SYS_NERR 1
7934 $as_echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 { $as_echo "$as_me:$LINENO: result: no" >&5
7938 $as_echo "no" >&6; }
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948 { $as_echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7949 $as_echo_n "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
7950 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7970 k = (int)sys_errlist[0];
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7982 *) ac_try_echo
=$ac_try;;
7984 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7985 $as_echo "$ac_try_echo") >&5
7986 (eval "$ac_compile") 2>conftest.er1
7988 grep -v '^ *+' conftest.er1
>conftest.err
7990 cat conftest.err
>&5
7991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && {
7993 test -z "$ac_c_werror_flag" ||
7994 test ! -s conftest.err
7995 } && test -s conftest.
$ac_objext; then
7996 { $as_echo "$as_me:$LINENO: result: yes" >&5
7997 $as_echo "yes" >&6; }
7999 cat >>confdefs.h
<<\_ACEOF
8000 #define HAVE_SYS_ERRLIST 1
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.
$ac_ext >&5
8007 { $as_echo "$as_me:$LINENO: result: no" >&5
8008 $as_echo "no" >&6; }
8011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8013 ac_cpp
='$CXXCPP $CPPFLAGS'
8014 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8018 { $as_echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
8019 $as_echo_n "checking C++ <osfcn.h>... " >&6; }
8020 cat >conftest.
$ac_ext <<_ACEOF
8024 cat confdefs.h
>>conftest.
$ac_ext
8025 cat >>conftest.
$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8046 rm -f conftest.
$ac_objext
8047 if { (ac_try
="$ac_compile"
8049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8053 $as_echo "$ac_try_echo") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_cxx_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 { $as_echo "$as_me:$LINENO: result: yes" >&5
8065 $as_echo "yes" >&6; }
8067 cat >>confdefs.h <<\_ACEOF
8068 #define HAVE_CC_OSFCN_H 1
8072 $as_echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 { $as_echo "$as_me:$LINENO: result: no" >&5
8076 $as_echo "no" >&6; }
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 ac_cpp='$CPP $CPPFLAGS'
8082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8087 ac_cpp='$CXXCPP $CPPFLAGS'
8088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8092 { $as_echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
8093 $as_echo_n "checking C++ <limits.h>... " >&6; }
8094 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8125 *) ac_try_echo
=$ac_try;;
8127 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8128 $as_echo "$ac_try_echo") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8131 grep -v '^ *+' conftest.er1
>conftest.err
8133 cat conftest.err
>&5
8134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_cxx_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.
$ac_objext; then
8139 { $as_echo "$as_me:$LINENO: result: yes" >&5
8140 $as_echo "yes" >&6; }
8142 cat >>confdefs.h
<<\_ACEOF
8143 #define HAVE_CC_LIMITS_H 1
8147 $as_echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.
$ac_ext >&5
8150 { $as_echo "$as_me:$LINENO: result: no" >&5
8151 $as_echo "no" >&6; }
8154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8156 ac_cpp
='$CPP $CPPFLAGS'
8157 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8158 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8159 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8162 ac_cpp
='$CXXCPP $CPPFLAGS'
8163 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8167 { $as_echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8168 $as_echo_n "checking C++ <inttypes.h>... " >&6; }
8169 cat >conftest.
$ac_ext <<_ACEOF
8173 cat confdefs.h
>>conftest.
$ac_ext
8174 cat >>conftest.
$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <inttypes.h>
8187 uintmax_t i = (uintmax_t)-1;
8195 rm -f conftest.
$ac_objext
8196 if { (ac_try
="$ac_compile"
8198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_cxx_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8213 groff_cv_header_inttypes_h=yes
8215 cat >>confdefs.h <<\_ACEOF
8216 #define HAVE_CC_INTTYPES_H 1
8220 $as_echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 groff_cv_header_inttypes_h=no
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 { $as_echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8228 $as_echo "$groff_cv_header_inttypes_h" >&6; }
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8236 # checks for typedefs
8238 ac_cpp='$CXXCPP $CPPFLAGS'
8239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8243 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
8244 $as_echo_n "checking for unsigned long long... " >&6; }
8245 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8254 unsigned long long ull = 1;
8256 unsigned long long ullmax = (unsigned long long)-1;
8264 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8276 *) ac_try_echo
=$ac_try;;
8278 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8279 $as_echo "$ac_try_echo") >&5
8280 (eval "$ac_link") 2>conftest.er1
8282 grep -v '^ *+' conftest.er1
>conftest.err
8284 cat conftest.err
>&5
8285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_cxx_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest
$ac_exeext && {
8290 test "$cross_compiling" = yes ||
8291 $as_test_x conftest
$ac_exeext
8293 groff_cv_type_unsigned_long_long
=yes
8295 $as_echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.
$ac_ext >&5
8298 groff_cv_type_unsigned_long_long
=no
8301 rm -rf conftest.dSYM
8302 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8303 conftest
$ac_exeext conftest.
$ac_ext
8304 { $as_echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8305 $as_echo "$groff_cv_type_unsigned_long_long" >&6; }
8307 ac_cpp
='$CPP $CPPFLAGS'
8308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8313 if test $groff_cv_header_inttypes_h = no
; then
8315 test $groff_cv_type_unsigned_long_long = yes \
8316 && ac_type
='unsigned long long' \
8317 || ac_type
='unsigned long'
8319 cat >>confdefs.h
<<_ACEOF
8320 #define uintmax_t $ac_type
8325 ac_cpp
='$CXXCPP $CPPFLAGS'
8326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8330 { $as_echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8331 $as_echo_n "checking for declaration of time_t... " >&6; }
8332 cat >conftest.
$ac_ext <<_ACEOF
8336 cat confdefs.h
>>conftest.
$ac_ext
8337 cat >>conftest.
$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8350 struct tm *p = localtime(&t);
8358 rm -f conftest.
$ac_objext
8359 if { (ac_try
="$ac_compile"
8361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8365 $as_echo "$ac_try_echo") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_cxx_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 { $as_echo "$as_me:$LINENO: result: yes" >&5
8377 $as_echo "yes" >&6; }
8379 $as_echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 { $as_echo "$as_me:$LINENO: result: no" >&5
8383 $as_echo "no" >&6; }
8385 cat >>confdefs.h <<\_ACEOF
8386 #define LONG_FOR_TIME_T 1
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 ac_cpp='$CPP $CPPFLAGS'
8394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398 { $as_echo "$as_me:$LINENO: checking for return type of signal handlers" >&5
8399 $as_echo_n "checking for return type of signal handlers... " >&6; }
8400 for groff_declaration in \
8401 'extern "C" void (*signal (int, void (*)(int)))(int);' \
8402 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
8403 'void (*signal ()) ();'
8405 cat >conftest.$ac_ext <<_ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8414 #include <sys/types.h>
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8439 *) ac_try_echo
=$ac_try;;
8441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1
>conftest.err
8447 cat conftest.err
>&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest.
$ac_objext; then
8455 $as_echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.
$ac_ext >&5
8461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 if test -n "$groff_declaration"; then
8465 { $as_echo "$as_me:$LINENO: result: void" >&5
8466 $as_echo "void" >&6; }
8468 cat >>confdefs.h
<<\_ACEOF
8469 #define RETSIGTYPE void
8473 { $as_echo "$as_me:$LINENO: result: int" >&5
8474 $as_echo "int" >&6; }
8476 cat >>confdefs.h
<<\_ACEOF
8477 #define RETSIGTYPE int
8481 { $as_echo "$as_me:$LINENO: checking struct exception" >&5
8482 $as_echo_n "checking struct exception... " >&6; }
8483 cat >conftest.
$ac_ext <<_ACEOF
8487 cat confdefs.h
>>conftest.
$ac_ext
8488 cat >>conftest.
$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8508 rm -f conftest.
$ac_objext
8509 if { (ac_try
="$ac_compile"
8511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8515 $as_echo "$ac_try_echo") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.$ac_objext; then
8526 { $as_echo "$as_me:$LINENO: result: yes" >&5
8527 $as_echo "yes" >&6; }
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_STRUCT_EXCEPTION 1
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 { $as_echo "$as_me:$LINENO: result: no" >&5
8538 $as_echo "no" >&6; }
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8546 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8547 if test "${ac_cv_c_bigendian+set}" = set; then
8548 $as_echo_n "(cached) " >&6
8550 ac_cv_c_bigendian=unknown
8551 # See if we're dealing with a universal compiler.
8552 cat >conftest.$ac_ext <<_ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 #ifndef __APPLE_CC__
8559 not a universal capable compiler
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8568 *) ac_try_echo
=$ac_try;;
8570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1
>conftest.err
8576 cat conftest.err
>&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.
$ac_objext; then
8583 # Check for potential -arch flags. It is not universal unless
8584 # there are some -arch flags. Note that *ppc* also matches
8585 # ppc64. This check is also rather less than ideal.
8586 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
8587 *-arch*ppc
*|
*-arch*i386
*|
*-arch*x86_64
*) ac_cv_c_bigendian
=universal
;;
8590 $as_echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8597 if test $ac_cv_c_bigendian = unknown
; then
8598 # See if sys/param.h defines the BYTE_ORDER macro.
8599 cat >conftest.
$ac_ext <<_ACEOF
8602 cat confdefs.h
>>conftest.
$ac_ext
8603 cat >>conftest.
$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 #include <sys/types.h>
8606 #include <sys/param.h>
8611 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8612 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8621 rm -f conftest.
$ac_objext
8622 if { (ac_try
="$ac_compile"
8624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest.$ac_objext; then
8639 # It does; now see whether it defined to BIG_ENDIAN or not.
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 #include <sys/types.h>
8647 #include <sys/param.h>
8652 #if BYTE_ORDER != BIG_ENDIAN
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8664 *) ac_try_echo
=$ac_try;;
8666 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1
>conftest.err
8672 cat conftest.err
>&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.
$ac_objext; then
8678 ac_cv_c_bigendian
=yes
8680 $as_echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 ac_cv_c_bigendian
=no
8686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 $as_echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.
$ac_ext >&5
8694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8696 if test $ac_cv_c_bigendian = unknown
; then
8697 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8698 cat >conftest.
$ac_ext <<_ACEOF
8701 cat confdefs.h
>>conftest.
$ac_ext
8702 cat >>conftest.
$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8709 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8717 rm -f conftest.
$ac_objext
8718 if { (ac_try
="$ac_compile"
8720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8724 $as_echo "$ac_try_echo") >&5
8725 (eval "$ac_compile") 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest.$ac_objext; then
8735 # It does; now see whether it defined to _BIG_ENDIAN or not.
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8759 *) ac_try_echo
=$ac_try;;
8761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8762 $as_echo "$ac_try_echo") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8765 grep -v '^ *+' conftest.er1
>conftest.err
8767 cat conftest.err
>&5
8768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.
$ac_objext; then
8773 ac_cv_c_bigendian
=yes
8775 $as_echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.
$ac_ext >&5
8778 ac_cv_c_bigendian
=no
8781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8783 $as_echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.
$ac_ext >&5
8789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 if test $ac_cv_c_bigendian = unknown
; then
8792 # Compile a test program.
8793 if test "$cross_compiling" = yes; then
8794 # Try to guess by grepping values from an object file.
8795 cat >conftest.
$ac_ext <<_ACEOF
8798 cat confdefs.h
>>conftest.
$ac_ext
8799 cat >>conftest.
$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 short int ascii_mm[] =
8802 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8803 short int ascii_ii[] =
8804 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8805 int use_ascii (int i) {
8806 return ascii_mm[i] + ascii_ii[i];
8808 short int ebcdic_ii[] =
8809 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8810 short int ebcdic_mm[] =
8811 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8812 int use_ebcdic (int i) {
8813 return ebcdic_mm[i] + ebcdic_ii[i];
8820 return use_ascii (foo) == use_ebcdic (foo);
8825 rm -f conftest.
$ac_objext
8826 if { (ac_try
="$ac_compile"
8828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8832 $as_echo "$ac_try_echo") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8835 grep -v '^ *+' conftest.er1 >conftest.err
8837 cat conftest.err >&5
8838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
8842 } && test -s conftest.$ac_objext; then
8843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8844 ac_cv_c_bigendian=yes
8846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8847 if test "$ac_cv_c_bigendian" = unknown; then
8848 ac_cv_c_bigendian=no
8850 # finding both strings is unlikely to happen, but who knows?
8851 ac_cv_c_bigendian=unknown
8855 $as_echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 $ac_includes_default
8874 /* Are we little or big endian? From Harbison&Steele. */
8878 char c[sizeof (long int)];
8881 return u.c[sizeof (long int) - 1] == 1;
8887 rm -f conftest$ac_exeext
8888 if { (ac_try="$ac_link"
8890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8891 *) ac_try_echo
=$ac_try;;
8893 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8894 $as_echo "$ac_try_echo") >&5
8895 (eval "$ac_link") 2>&5
8897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8899 { (case "(($ac_try" in
8900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8904 $as_echo "$ac_try_echo") >&5
8905 (eval "$ac_try") 2>&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_c_bigendian=no
8911 $as_echo "$as_me: program exited with status $ac_status" >&5
8912 $as_echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_c_bigendian=yes
8918 rm -rf conftest.dSYM
8919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8925 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8926 $as_echo "$ac_cv_c_bigendian" >&6; }
8927 case $ac_cv_c_bigendian in #(
8929 cat >>confdefs.h <<\_ACEOF
8930 #define WORDS_BIGENDIAN 1
8937 cat >>confdefs.h <<\_ACEOF
8938 #define AC_APPLE_UNIVERSAL_BUILD 1
8943 { { $as_echo "$as_me:$LINENO: error: unknown endianness
8944 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8945 $as_echo "$as_me: error: unknown endianness
8946 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8947 { (exit 1); exit 1; }; } ;;
8951 # checks for libraries
8952 { $as_echo "$as_me:$LINENO: checking for main in -lc" >&5
8953 $as_echo_n "checking for main in -lc... " >&6; }
8954 if test "${ac_cv_lib_c_main+set}" = set; then
8955 $as_echo_n "(cached) " >&6
8957 ac_check_lib_save_LIBS=$LIBS
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8979 *) ac_try_echo
=$ac_try;;
8981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_link") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1
>conftest.err
8987 cat conftest.err
>&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest
$ac_exeext && {
8993 test "$cross_compiling" = yes ||
8994 $as_test_x conftest
$ac_exeext
8996 ac_cv_lib_c_main
=yes
8998 $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.
$ac_ext >&5
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9006 conftest
$ac_exeext conftest.
$ac_ext
9007 LIBS
=$ac_check_lib_save_LIBS
9009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
9010 $as_echo "$ac_cv_lib_c_main" >&6; }
9011 if test "x$ac_cv_lib_c_main" = x
""yes; then
9016 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
9017 $as_echo_n "checking for sin in -lm... " >&6; }
9018 if test "${ac_cv_lib_m_sin+set}" = set; then
9019 $as_echo_n "(cached) " >&6
9021 ac_check_lib_save_LIBS
=$LIBS
9023 cat >conftest.
$ac_ext <<_ACEOF
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9045 rm -f conftest.
$ac_objext conftest
$ac_exeext
9046 if { (ac_try
="$ac_link"
9048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9052 $as_echo "$ac_try_echo") >&5
9053 (eval "$ac_link") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest$ac_exeext && {
9063 test "$cross_compiling" = yes ||
9064 $as_test_x conftest$ac_exeext
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9074 rm -rf conftest.dSYM
9075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
9080 $as_echo "$ac_cv_lib_m_sin" >&6; }
9081 if test "x$ac_cv_lib_m_sin" = x""yes; then
9086 # Make sure we can run config.sub.
9087 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
9088 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
9089 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
9090 { (exit 1); exit 1; }; }
9092 { $as_echo "$as_me:$LINENO: checking build system type" >&5
9093 $as_echo_n "checking build system type... " >&6; }
9094 if test "${ac_cv_build+set}" = set; then
9095 $as_echo_n "(cached) " >&6
9097 ac_build_alias=$build_alias
9098 test "x$ac_build_alias" = x &&
9099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
9100 test "x$ac_build_alias" = x &&
9101 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
9102 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
9103 { (exit 1); exit 1; }; }
9104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
9105 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
9106 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
9107 { (exit 1); exit 1; }; }
9110 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
9111 $as_echo "$ac_cv_build" >&6; }
9112 case $ac_cv_build in
9114 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
9115 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
9116 { (exit 1); exit 1; }; };;
9119 ac_save_IFS=$IFS; IFS='-'
9125 # Remember, the first character of IFS is used to create $*,
9126 # except with old shells:
9129 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
9132 { $as_echo "$as_me:$LINENO: checking host system type" >&5
9133 $as_echo_n "checking host system type... " >&6; }
9134 if test "${ac_cv_host+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9137 if test "x$host_alias" = x; then
9138 ac_cv_host=$ac_cv_build
9140 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
9141 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
9142 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
9143 { (exit 1); exit 1; }; }
9147 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9148 $as_echo "$ac_cv_host" >&6; }
9151 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
9152 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
9153 { (exit 1); exit 1; }; };;
9156 ac_save_IFS=$IFS; IFS='-'
9162 # Remember, the first character of IFS is used to create $*,
9163 # except with old shells:
9166 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
9170 if test "X$prefix" = "XNONE"; then
9171 acl_final_prefix="$ac_default_prefix"
9173 acl_final_prefix="$prefix"
9175 if test "X$exec_prefix" = "XNONE"; then
9176 acl_final_exec_prefix='${prefix}'
9178 acl_final_exec_prefix="$exec_prefix"
9180 acl_save_prefix="$prefix"
9181 prefix="$acl_final_prefix"
9182 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9183 prefix="$acl_save_prefix"
9186 # Check whether --with-gnu-ld was given.
9187 if test "${with_gnu_ld+set}" = set; then
9188 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9193 # Prepare PATH_SEPARATOR.
9194 # The user is always right.
9195 if test "${PATH_SEPARATOR+set}" != set; then
9196 echo "#! /bin/sh" >conf$$.sh
9197 echo "exit 0" >>conf$$.sh
9199 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9207 if test "$GCC" = yes; then
9208 # Check if gcc -print-prog-name=ld gives a path.
9209 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9210 $as_echo_n "checking for ld used by GCC... " >&6; }
9213 # gcc leaves a trailing carriage return which upsets mingw
9214 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
9216 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
9219 # Accept absolute paths.
9220 [\\/]* | [A-Za-z]:[\\/]*)
9221 re_direlt='/[^/][^/]*/\.\./'
9222 # Canonicalize the path of ld
9223 ac_prog=`echo $ac_prog|
sed 's%\\\\%/%g'`
9224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9225 ac_prog=`echo $ac_prog|
sed "s%$re_direlt%/%"`
9227 test -z "$LD" && LD="$ac_prog"
9230 # If it fails, then pretend we aren't using GCC.
9234 # If it is relative, then search for the first ld in PATH.
9238 elif test "$with_gnu_ld" = yes; then
9239 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9240 $as_echo_n "checking for GNU ld... " >&6; }
9242 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9243 $as_echo_n "checking for non-GNU ld... " >&6; }
9245 if test "${acl_cv_path_LD+set}" = set; then
9246 $as_echo_n "(cached) " >&6
9248 if test -z "$LD"; then
9249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9250 for ac_dir in $PATH; do
9251 test -z "$ac_dir" && ac_dir=.
9252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9253 acl_cv_path_LD="$ac_dir/$ac_prog"
9254 # Check to see if the program is GNU ld. I'd rather use --version,
9255 # but apparently some GNU ld's only accept -v.
9256 # Break only if it was the GNU/non-GNU ld that we prefer.
9257 case `"$acl_cv_path_LD" -v 2>&1 < /dev
/null
` in
9258 *GNU* | *'with BFD'*)
9259 test "$with_gnu_ld" != no && break ;;
9261 test "$with_gnu_ld" != yes && break ;;
9267 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9271 LD="$acl_cv_path_LD"
9272 if test -n "$LD"; then
9273 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9274 $as_echo "$LD" >&6; }
9276 { $as_echo "$as_me:$LINENO: result: no" >&5
9277 $as_echo "no" >&6; }
9279 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9280 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9281 { (exit 1); exit 1; }; }
9282 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9284 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9285 $as_echo_n "(cached) " >&6
9287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9288 case `$LD -v 2>&1 </dev
/null
` in
9289 *GNU* | *'with BFD'*)
9290 acl_cv_prog_gnu_ld=yes ;;
9292 acl_cv_prog_gnu_ld=no ;;
9295 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9296 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9297 with_gnu_ld=$acl_cv_prog_gnu_ld
9302 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9303 $as_echo_n "checking for shared library run path origin... " >&6; }
9304 if test "${acl_cv_rpath+set}" = set; then
9305 $as_echo_n "(cached) " >&6
9308 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9309 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9315 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9316 $as_echo "$acl_cv_rpath" >&6; }
9318 acl_libext="$acl_cv_libext"
9319 acl_shlibext="$acl_cv_shlibext"
9320 acl_libname_spec="$acl_cv_libname_spec"
9321 acl_library_names_spec="$acl_cv_library_names_spec"
9322 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9323 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9324 acl_hardcode_direct="$acl_cv_hardcode_direct"
9325 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9326 # Check whether --enable-rpath was given.
9327 if test "${enable_rpath+set}" = set; then
9328 enableval=$enable_rpath; :
9340 { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
9341 $as_echo_n "checking for 64-bit host... " >&6; }
9342 if test "${gl_cv_solaris_64bit+set}" = set; then
9343 $as_echo_n "(cached) " >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9358 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
9359 gl_cv_solaris_64bit=yes
9361 gl_cv_solaris_64bit=no
9367 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
9368 $as_echo "$gl_cv_solaris_64bit" >&6; }
9369 if test $gl_cv_solaris_64bit = yes; then
9370 acl_libdirstem=lib/64
9372 sparc*) acl_libdirstem2=lib/sparcv9 ;;
9373 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
9378 searchpath=`(LC_ALL
=C
$CC -print-search-dirs) 2>/dev
/null |
sed -n -e 's,^libraries: ,,p' |
sed -e 's,^=,,'`
9379 if test -n "$searchpath"; then
9380 acl_save_IFS="${IFS= }"; IFS=":"
9381 for searchdir in $searchpath; do
9382 if test -d "$searchdir"; then
9383 case "$searchdir" in
9384 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9385 *) searchdir=`cd "$searchdir" && pwd`
9386 case "$searchdir" in
9387 */lib64 ) acl_libdirstem=lib64 ;;
9396 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9411 acl_save_prefix="$prefix"
9412 prefix="$acl_final_prefix"
9413 acl_save_exec_prefix="$exec_prefix"
9414 exec_prefix="$acl_final_exec_prefix"
9416 eval additional_includedir=\"$includedir\"
9417 eval additional_libdir=\"$libdir\"
9419 exec_prefix="$acl_save_exec_prefix"
9420 prefix="$acl_save_prefix"
9423 # Check whether --with-libiconv-prefix was given.
9424 if test "${with_libiconv_prefix+set}" = set; then
9425 withval=$with_libiconv_prefix;
9426 if test "X$withval" = "Xno"; then
9429 if test "X$withval" = "X"; then
9431 acl_save_prefix="$prefix"
9432 prefix="$acl_final_prefix"
9433 acl_save_exec_prefix="$exec_prefix"
9434 exec_prefix="$acl_final_exec_prefix"
9436 eval additional_includedir=\"$includedir\"
9437 eval additional_libdir=\"$libdir\"
9439 exec_prefix="$acl_save_exec_prefix"
9440 prefix="$acl_save_prefix"
9443 additional_includedir="$withval/include"
9444 additional_libdir="$withval/$acl_libdirstem"
9445 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9446 && ! test -d "$withval/$acl_libdirstem"; then
9447 additional_libdir="$withval/$acl_libdirstem2"
9460 names_already_handled=
9461 names_next_round='iconv '
9462 while test -n "$names_next_round"; do
9463 names_this_round="$names_next_round"
9465 for name in $names_this_round; do
9467 for n in $names_already_handled; do
9468 if test "$n" = "$name"; then
9473 if test -z "$already_handled"; then
9474 names_already_handled="$names_already_handled $name"
9475 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9476 eval value=\"\$HAVE_LIB$uppername\"
9477 if test -n "$value"; then
9478 if test "$value" = yes; then
9479 eval value=\"\$LIB$uppername\"
9480 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9481 eval value=\"\$LTLIB$uppername\"
9482 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9491 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9492 if test -n "$acl_shlibext"; then
9493 shrext=".$acl_shlibext" # typically: shrext=.so
9497 if test $use_additional = yes; then
9498 dir="$additional_libdir"
9499 if test -n "$acl_shlibext"; then
9500 if test -f "$dir/$libname$shrext"; then
9502 found_so="$dir/$libname$shrext"
9504 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9505 ver=`(cd "$dir" && \
9506 for f
in "$libname$shrext".
*; do echo "$f"; done \
9507 |
sed -e "s,^$libname$shrext\\\\.,," \
9508 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9509 |
sed 1q
) 2>/dev
/null
`
9510 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9512 found_so="$dir/$libname$shrext.$ver"
9515 eval library_names=\"$acl_library_names_spec\"
9516 for f in $library_names; do
9517 if test -f "$dir/$f"; then
9526 if test "X$found_dir" = "X"; then
9527 if test -f "$dir/$libname.$acl_libext"; then
9529 found_a="$dir/$libname.$acl_libext"
9532 if test "X$found_dir" != "X"; then
9533 if test -f "$dir/$libname.la"; then
9534 found_la="$dir/$libname.la"
9538 if test "X$found_dir" = "X"; then
9539 for x in $LDFLAGS $LTLIBICONV; do
9541 acl_save_prefix="$prefix"
9542 prefix="$acl_final_prefix"
9543 acl_save_exec_prefix="$exec_prefix"
9544 exec_prefix="$acl_final_exec_prefix"
9546 exec_prefix="$acl_save_exec_prefix"
9547 prefix="$acl_save_prefix"
9551 dir=`echo "X$x" |
sed -e 's/^X-L//'`
9552 if test -n "$acl_shlibext"; then
9553 if test -f "$dir/$libname$shrext"; then
9555 found_so="$dir/$libname$shrext"
9557 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9558 ver=`(cd "$dir" && \
9559 for f
in "$libname$shrext".
*; do echo "$f"; done \
9560 |
sed -e "s,^$libname$shrext\\\\.,," \
9561 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9562 |
sed 1q
) 2>/dev
/null
`
9563 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9565 found_so="$dir/$libname$shrext.$ver"
9568 eval library_names=\"$acl_library_names_spec\"
9569 for f in $library_names; do
9570 if test -f "$dir/$f"; then
9579 if test "X$found_dir" = "X"; then
9580 if test -f "$dir/$libname.$acl_libext"; then
9582 found_a="$dir/$libname.$acl_libext"
9585 if test "X$found_dir" != "X"; then
9586 if test -f "$dir/$libname.la"; then
9587 found_la="$dir/$libname.la"
9592 if test "X$found_dir" != "X"; then
9597 if test "X$found_dir" != "X"; then
9598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9599 if test "X$found_so" != "X"; then
9600 if test "$enable_rpath" = no \
9601 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9602 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9603 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9606 for x in $ltrpathdirs; do
9607 if test "X$x" = "X$found_dir"; then
9612 if test -z "$haveit"; then
9613 ltrpathdirs="$ltrpathdirs $found_dir"
9615 if test "$acl_hardcode_direct" = yes; then
9616 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9618 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9619 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9621 for x in $rpathdirs; do
9622 if test "X$x" = "X$found_dir"; then
9627 if test -z "$haveit"; then
9628 rpathdirs="$rpathdirs $found_dir"
9632 for x in $LDFLAGS $LIBICONV; do
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9639 exec_prefix="$acl_save_exec_prefix"
9640 prefix="$acl_save_prefix"
9642 if test "X$x" = "X-L$found_dir"; then
9647 if test -z "$haveit"; then
9648 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9650 if test "$acl_hardcode_minus_L" != no; then
9651 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9653 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9659 if test "X$found_a" != "X"; then
9660 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9662 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9665 additional_includedir=
9666 case "$found_dir" in
9667 */$acl_libdirstem | */$acl_libdirstem/)
9668 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9669 if test "$name" = 'iconv'; then
9670 LIBICONV_PREFIX="$basedir"
9672 additional_includedir="$basedir/include"
9674 */$acl_libdirstem2 | */$acl_libdirstem2/)
9675 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9676 if test "$name" = 'iconv'; then
9677 LIBICONV_PREFIX="$basedir"
9679 additional_includedir="$basedir/include"
9682 if test "X$additional_includedir" != "X"; then
9683 if test "X$additional_includedir" != "X/usr/include"; then
9685 if test "X$additional_includedir" = "X/usr/local/include"; then
9686 if test -n "$GCC"; then
9688 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9692 if test -z "$haveit"; then
9693 for x in $CPPFLAGS $INCICONV; do
9695 acl_save_prefix="$prefix"
9696 prefix="$acl_final_prefix"
9697 acl_save_exec_prefix="$exec_prefix"
9698 exec_prefix="$acl_final_exec_prefix"
9700 exec_prefix="$acl_save_exec_prefix"
9701 prefix="$acl_save_prefix"
9703 if test "X$x" = "X-I$additional_includedir"; then
9708 if test -z "$haveit"; then
9709 if test -d "$additional_includedir"; then
9710 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9716 if test -n "$found_la"; then
9717 save_libdir="$libdir"
9719 */* | *\\*) . "$found_la" ;;
9720 *) . "./$found_la" ;;
9722 libdir="$save_libdir"
9723 for dep in $dependency_libs; do
9726 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
9727 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9728 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9730 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9731 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9732 if test -n "$GCC"; then
9734 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9738 if test -z "$haveit"; then
9740 for x in $LDFLAGS $LIBICONV; do
9742 acl_save_prefix="$prefix"
9743 prefix="$acl_final_prefix"
9744 acl_save_exec_prefix="$exec_prefix"
9745 exec_prefix="$acl_final_exec_prefix"
9747 exec_prefix="$acl_save_exec_prefix"
9748 prefix="$acl_save_prefix"
9750 if test "X$x" = "X-L$additional_libdir"; then
9755 if test -z "$haveit"; then
9756 if test -d "$additional_libdir"; then
9757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9761 for x in $LDFLAGS $LTLIBICONV; do
9763 acl_save_prefix="$prefix"
9764 prefix="$acl_final_prefix"
9765 acl_save_exec_prefix="$exec_prefix"
9766 exec_prefix="$acl_final_exec_prefix"
9768 exec_prefix="$acl_save_exec_prefix"
9769 prefix="$acl_save_prefix"
9771 if test "X$x" = "X-L$additional_libdir"; then
9776 if test -z "$haveit"; then
9777 if test -d "$additional_libdir"; then
9778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9785 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
9786 if test "$enable_rpath" != no; then
9788 for x in $rpathdirs; do
9789 if test "X$x" = "X$dir"; then
9794 if test -z "$haveit"; then
9795 rpathdirs="$rpathdirs $dir"
9798 for x in $ltrpathdirs; do
9799 if test "X$x" = "X$dir"; then
9804 if test -z "$haveit"; then
9805 ltrpathdirs="$ltrpathdirs $dir"
9810 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
9813 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9830 if test "X$rpathdirs" != "X"; then
9831 if test -n "$acl_hardcode_libdir_separator"; then
9833 for found_dir in $rpathdirs; do
9834 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9836 acl_save_libdir="$libdir"
9838 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9839 libdir="$acl_save_libdir"
9840 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9842 for found_dir in $rpathdirs; do
9843 acl_save_libdir="$libdir"
9845 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9846 libdir="$acl_save_libdir"
9847 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9851 if test "X$ltrpathdirs" != "X"; then
9852 for found_dir in $ltrpathdirs; do
9853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9868 am_save_CPPFLAGS="$CPPFLAGS"
9870 for element in $INCICONV; do
9872 for x in $CPPFLAGS; do
9874 acl_save_prefix="$prefix"
9875 prefix="$acl_final_prefix"
9876 acl_save_exec_prefix="$exec_prefix"
9877 exec_prefix="$acl_final_exec_prefix"
9879 exec_prefix="$acl_save_exec_prefix"
9880 prefix="$acl_save_prefix"
9882 if test "X$x" = "X$element"; then
9887 if test -z "$haveit"; then
9888 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9893 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
9894 $as_echo_n "checking for iconv... " >&6; }
9895 if test "${am_cv_func_iconv+set}" = set; then
9896 $as_echo_n "(cached) " >&6
9899 am_cv_func_iconv="no, consider installing GNU libiconv"
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9912 iconv_t cd = iconv_open("","");
9913 iconv(cd,NULL,NULL,NULL,NULL);
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9923 *) ac_try_echo
=$ac_try;;
9925 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927 (eval "$ac_link") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1
>conftest.err
9931 cat conftest.err
>&5
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest
$ac_exeext && {
9937 test "$cross_compiling" = yes ||
9938 $as_test_x conftest
$ac_exeext
9940 am_cv_func_iconv
=yes
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9948 rm -rf conftest.dSYM
9949 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9950 conftest
$ac_exeext conftest.
$ac_ext
9951 if test "$am_cv_func_iconv" != yes; then
9952 am_save_LIBS
="$LIBS"
9953 LIBS
="$LIBS $LIBICONV"
9954 cat >conftest.
$ac_ext <<_ACEOF
9957 cat confdefs.h
>>conftest.
$ac_ext
9958 cat >>conftest.
$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9965 iconv_t cd = iconv_open("","");
9966 iconv(cd,NULL,NULL,NULL,NULL);
9972 rm -f conftest.
$ac_objext conftest
$ac_exeext
9973 if { (ac_try
="$ac_link"
9975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_link") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest$ac_exeext && {
9990 test "$cross_compiling" = yes ||
9991 $as_test_x conftest$ac_exeext
9994 am_cv_func_iconv=yes
9996 $as_echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
10002 rm -rf conftest.dSYM
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS="$am_save_LIBS"
10009 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10010 $as_echo "$am_cv_func_iconv" >&6; }
10011 if test "$am_cv_func_iconv" = yes; then
10012 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
10013 $as_echo_n "checking for working iconv... " >&6; }
10014 if test "${am_cv_func_iconv_works+set}" = set; then
10015 $as_echo_n "(cached) " >&6
10018 am_save_LIBS="$LIBS"
10019 if test $am_cv_lib_iconv = yes; then
10020 LIBS="$LIBS $LIBICONV"
10022 if test "$cross_compiling" = yes; then
10024 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10025 *) am_cv_func_iconv_works="guessing yes" ;;
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10036 #include <string.h>
10039 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10042 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10043 if (cd_utf8_to_88591 != (iconv_t)(-1))
10045 static const char input[] = "\342\202\254"; /* EURO SIGN */
10047 const char *inptr = input;
10048 size_t inbytesleft = strlen (input);
10049 char *outptr = buf;
10050 size_t outbytesleft = sizeof (buf);
10051 size_t res = iconv (cd_utf8_to_88591,
10052 (char **) &inptr, &inbytesleft,
10053 &outptr, &outbytesleft);
10058 #if 0 /* This bug could be worked around by the caller. */
10059 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10061 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10062 if (cd_88591_to_utf8 != (iconv_t)(-1))
10064 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10066 const char *inptr = input;
10067 size_t inbytesleft = strlen (input);
10068 char *outptr = buf;
10069 size_t outbytesleft = sizeof (buf);
10070 size_t res = iconv (cd_88591_to_utf8,
10071 (char **) &inptr, &inbytesleft,
10072 &outptr, &outbytesleft);
10078 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10080 if (/* Try standardized names. */
10081 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10082 /* Try IRIX, OSF/1 names. */
10083 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10084 /* Try AIX names. */
10085 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10086 /* Try HP-UX names. */
10087 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10092 rm -f conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10096 *) ac_try_echo
=$ac_try;;
10098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10099 $as_echo "$ac_try_echo") >&5
10100 (eval "$ac_link") 2>&5
10102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10104 { (case "(($ac_try" in
10105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110 (eval "$ac_try") 2>&5
10112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 am_cv_func_iconv_works=yes
10116 $as_echo "$as_me: program exited with status $ac_status" >&5
10117 $as_echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ( exit $ac_status )
10121 am_cv_func_iconv_works=no
10123 rm -rf conftest.dSYM
10124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10128 LIBS="$am_save_LIBS"
10131 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
10132 $as_echo "$am_cv_func_iconv_works" >&6; }
10133 case "$am_cv_func_iconv_works" in
10134 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10135 *) am_func_iconv=yes ;;
10138 am_func_iconv=no am_cv_lib_iconv=no
10140 if test "$am_func_iconv" = yes; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_ICONV 1
10147 if test "$am_cv_lib_iconv" = yes; then
10148 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10149 $as_echo_n "checking how to link with libiconv... " >&6; }
10150 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10151 $as_echo "$LIBICONV" >&6; }
10153 CPPFLAGS="$am_save_CPPFLAGS"
10160 if test "$am_cv_func_iconv" = yes; then
10161 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10162 $as_echo_n "checking for iconv declaration... " >&6; }
10163 if test "${am_cv_proto_iconv+set}" = set; then
10164 $as_echo_n "(cached) " >&6
10167 cat >conftest.$ac_ext <<_ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10174 #include <stdlib.h>
10180 #if defined(__STDC__) || defined(__cplusplus)
10181 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10194 rm -f conftest.$ac_objext
10195 if { (ac_try="$ac_compile"
10196 case "(($ac_try" in
10197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10198 *) ac_try_echo
=$ac_try;;
10200 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10201 $as_echo "$ac_try_echo") >&5
10202 (eval "$ac_compile") 2>conftest.er1
10204 grep -v '^ *+' conftest.er1
>conftest.err
10206 cat conftest.err
>&5
10207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest.
$ac_objext; then
10212 am_cv_proto_iconv_arg1
=""
10214 $as_echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.
$ac_ext >&5
10217 am_cv_proto_iconv_arg1
="const"
10220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10221 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);"
10224 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10225 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10226 }$am_cv_proto_iconv" >&5
10228 }$am_cv_proto_iconv" >&6; }
10230 cat >>confdefs.h
<<_ACEOF
10231 #define ICONV_CONST $am_cv_proto_iconv_arg1
10237 # checks for functions
10240 for ac_header
in stdlib.h unistd.h
10242 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 $as_echo_n "checking for $ac_header... " >&6; }
10246 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10247 $as_echo_n "(cached) " >&6
10249 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10250 $as_echo "$as_val"'`
10251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10252 $as_echo "$ac_res" >&6; }
10254 # Is the header compilable?
10255 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10256 $as_echo_n "checking $ac_header usability... " >&6; }
10257 cat >conftest.
$ac_ext <<_ACEOF
10260 cat confdefs.h
>>conftest.
$ac_ext
10261 cat >>conftest.
$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 $ac_includes_default
10264 #include <$ac_header>
10266 rm -f conftest.
$ac_objext
10267 if { (ac_try
="$ac_compile"
10268 case "(($ac_try" in
10269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273 $as_echo "$ac_try_echo") >&5
10274 (eval "$ac_compile") 2>conftest.er1
10276 grep -v '^ *+' conftest.er1 >conftest.err
10278 cat conftest.err >&5
10279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && {
10281 test -z "$ac_c_werror_flag" ||
10282 test ! -s conftest.err
10283 } && test -s conftest.$ac_objext; then
10284 ac_header_compiler=yes
10286 $as_echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 ac_header_compiler=no
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 $as_echo "$ac_header_compiler" >&6; }
10296 # Is the header present?
10297 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 $as_echo_n "checking $ac_header presence... " >&6; }
10299 cat >conftest.$ac_ext <<_ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <$ac_header>
10307 if { (ac_try="$ac_cpp conftest.$ac_ext"
10308 case "(($ac_try" in
10309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10310 *) ac_try_echo
=$ac_try;;
10312 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10316 grep -v '^ *+' conftest.er1
>conftest.err
10318 cat conftest.err
>&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } >/dev
/null
&& {
10321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10324 ac_header_preproc
=yes
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.
$ac_ext >&5
10329 ac_header_preproc
=no
10332 rm -f conftest.err conftest.
$ac_ext
10333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10334 $as_echo "$ac_header_preproc" >&6; }
10336 # So? What about this header?
10337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10342 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10343 ac_header_preproc
=yes
10346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10347 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10349 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10351 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10353 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10355 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10361 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 $as_echo_n "checking for $ac_header... " >&6; }
10363 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10364 $as_echo_n "(cached) " >&6
10366 eval "$as_ac_Header=\$ac_header_preproc"
10368 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10369 $as_echo "$as_val"'`
10370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10371 $as_echo "$ac_res" >&6; }
10374 as_val
=`eval 'as_val=${'$as_ac_Header'}
10375 $as_echo "$as_val"'`
10376 if test "x$as_val" = x
""yes; then
10377 cat >>confdefs.h
<<_ACEOF
10378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386 for ac_func
in getpagesize
10388 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10390 $as_echo_n "checking for $ac_func... " >&6; }
10391 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10392 $as_echo_n "(cached) " >&6
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10402 #define $ac_func innocuous_$ac_func
10404 /* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func (); below.
10406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407 <limits.h> exists even on freestanding compilers. */
10410 # include <limits.h>
10412 # include <assert.h>
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10424 /* The GNU C library defines this for functions which it implements
10425 to always fail with ENOSYS. Some functions are actually named
10426 something starting with __ and the normal name is an alias. */
10427 #if defined __stub_$ac_func || defined __stub___$ac_func
10434 return $ac_func ();
10439 rm -f conftest.
$ac_objext conftest
$ac_exeext
10440 if { (ac_try
="$ac_link"
10441 case "(($ac_try" in
10442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10446 $as_echo "$ac_try_echo") >&5
10447 (eval "$ac_link") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext && {
10457 test "$cross_compiling" = yes ||
10458 $as_test_x conftest$ac_exeext
10460 eval "$as_ac_var=yes"
10462 $as_echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 eval "$as_ac_var=no"
10468 rm -rf conftest.dSYM
10469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470 conftest$ac_exeext conftest.$ac_ext
10472 ac_res=`eval 'as_val=${'$as_ac_var'}
10473 $as_echo "$as_val"'`
10474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10475 $as_echo "$ac_res" >&6; }
10476 as_val=`eval 'as_val=${'$as_ac_var'}
10477 $as_echo "$as_val"'`
10478 if test "x$as_val" = x""yes; then
10479 cat >>confdefs.h <<_ACEOF
10480 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10486 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10487 $as_echo_n "checking for working mmap... " >&6; }
10488 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10489 $as_echo_n "(cached) " >&6
10491 if test "$cross_compiling" = yes; then
10492 ac_cv_func_mmap_fixed_mapped=no
10494 cat >conftest.$ac_ext <<_ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10500 $ac_includes_default
10501 /* malloc might have been renamed as rpl_malloc. */
10504 /* Thanks to Mike Haertel and Jim Avera for this test.
10505 Here is a matrix of mmap possibilities:
10506 mmap private not fixed
10507 mmap private fixed at somewhere currently unmapped
10508 mmap private fixed at somewhere already mapped
10509 mmap shared not fixed
10510 mmap shared fixed at somewhere currently unmapped
10511 mmap shared fixed at somewhere already mapped
10512 For private mappings, we should verify that changes cannot be read()
10513 back from the file, nor mmap's back from the file at a different
10514 address. (There have been systems where private was not correctly
10515 implemented like the infamous i386 svr4.0, and systems where the
10516 VM page cache was not coherent with the file system buffer cache
10517 like early versions of FreeBSD and possibly contemporary NetBSD.)
10518 For shared mappings, we should conversely verify that changes get
10519 propagated back to all the places they're supposed to be.
10521 Grep wants private fixed already mapped.
10522 The main things grep needs to know about mmap are:
10523 * does it exist and is it safe to write into the mmap'd area
10524 * how to use it (BSD variants) */
10527 #include <sys/mman.h>
10529 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10533 /* This mess was copied from the GNU getpagesize.h. */
10534 #ifndef HAVE_GETPAGESIZE
10535 /* Assume that all systems that can run configure have sys/param.h. */
10536 # ifndef HAVE_SYS_PARAM_H
10537 # define HAVE_SYS_PARAM_H 1
10540 # ifdef _SC_PAGESIZE
10541 # define getpagesize() sysconf(_SC_PAGESIZE)
10542 # else /* no _SC_PAGESIZE */
10543 # ifdef HAVE_SYS_PARAM_H
10544 # include <sys/param.h>
10545 # ifdef EXEC_PAGESIZE
10546 # define getpagesize() EXEC_PAGESIZE
10547 # else /* no EXEC_PAGESIZE */
10549 # define getpagesize() NBPG * CLSIZE
10552 # endif /* no CLSIZE */
10553 # else /* no NBPG */
10555 # define getpagesize() NBPC
10556 # else /* no NBPC */
10558 # define getpagesize() PAGESIZE
10559 # endif /* PAGESIZE */
10560 # endif /* no NBPC */
10561 # endif /* no NBPG */
10562 # endif /* no EXEC_PAGESIZE */
10563 # else /* no HAVE_SYS_PARAM_H */
10564 # define getpagesize() 8192 /* punt totally */
10565 # endif /* no HAVE_SYS_PARAM_H */
10566 # endif /* no _SC_PAGESIZE */
10568 #endif /* no HAVE_GETPAGESIZE */
10573 char *data, *data2, *data3;
10577 pagesize = getpagesize ();
10579 /* First, make a file with some known garbage in it. */
10580 data = (char *) malloc (pagesize);
10583 for (i = 0; i < pagesize; ++i)
10584 *(data + i) = rand ();
10586 fd = creat ("conftest.mmap", 0600);
10589 if (write (fd, data, pagesize) != pagesize)
10593 /* Next, try to mmap the file at a fixed address which already has
10594 something else allocated at it. If we can, also make sure that
10595 we see the same garbage. */
10596 fd = open ("conftest.mmap", O_RDWR);
10599 data2 = (char *) malloc (2 * pagesize);
10602 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10606 for (i = 0; i < pagesize; ++i)
10607 if (*(data + i) != *(data2 + i))
10610 /* Finally, make sure that changes to the mapped area do not
10611 percolate back to the file as seen by read(). (This is a bug on
10612 some variants of i386 svr4.0.) */
10613 for (i = 0; i < pagesize; ++i)
10614 *(data2 + i) = *(data2 + i) + 1;
10615 data3 = (char *) malloc (pagesize);
10618 if (read (fd, data3, pagesize) != pagesize)
10620 for (i = 0; i < pagesize; ++i)
10621 if (*(data + i) != *(data3 + i))
10627 rm -f conftest$ac_exeext
10628 if { (ac_try="$ac_link"
10629 case "(($ac_try" in
10630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10631 *) ac_try_echo
=$ac_try;;
10633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10634 $as_echo "$ac_try_echo") >&5
10635 (eval "$ac_link") 2>&5
10637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10639 { (case "(($ac_try" in
10640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10644 $as_echo "$ac_try_echo") >&5
10645 (eval "$ac_try") 2>&5
10647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_func_mmap_fixed_mapped=yes
10651 $as_echo "$as_me: program exited with status $ac_status" >&5
10652 $as_echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10655 ( exit $ac_status )
10656 ac_cv_func_mmap_fixed_mapped=no
10658 rm -rf conftest.dSYM
10659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10664 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10665 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10666 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_MMAP 1
10673 rm -f conftest.mmap
10676 LIBS="$LIBS $LIBC $LIBM"
10685 for ac_func in fmod getcwd putenv snprintf strcasecmp \
10686 strerror strncasecmp strtol
10688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10690 $as_echo_n "checking for $ac_func... " >&6; }
10691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10692 $as_echo_n "(cached) " >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10702 #define $ac_func innocuous_$ac_func
10704 /* System header to define __stub macros and hopefully few prototypes,
10705 which can conflict with char $ac_func (); below.
10706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10707 <limits.h> exists even on freestanding compilers. */
10710 # include <limits.h>
10712 # include <assert.h>
10717 /* Override any GCC internal prototype to avoid an error.
10718 Use char because int might match the return type of a GCC
10719 builtin and then its argument prototype would still apply. */
10724 /* The GNU C library defines this for functions which it implements
10725 to always fail with ENOSYS. Some functions are actually named
10726 something starting with __ and the normal name is an alias. */
10727 #if defined __stub_$ac_func || defined __stub___$ac_func
10734 return $ac_func ();
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (ac_try="$ac_link"
10741 case "(($ac_try" in
10742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10743 *) ac_try_echo
=$ac_try;;
10745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10746 $as_echo "$ac_try_echo") >&5
10747 (eval "$ac_link") 2>conftest.er1
10749 grep -v '^ *+' conftest.er1
>conftest.err
10751 cat conftest.err
>&5
10752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } && {
10754 test -z "$ac_c_werror_flag" ||
10755 test ! -s conftest.err
10756 } && test -s conftest
$ac_exeext && {
10757 test "$cross_compiling" = yes ||
10758 $as_test_x conftest
$ac_exeext
10760 eval "$as_ac_var=yes"
10762 $as_echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.
$ac_ext >&5
10765 eval "$as_ac_var=no"
10768 rm -rf conftest.dSYM
10769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10770 conftest
$ac_exeext conftest.
$ac_ext
10772 ac_res
=`eval 'as_val=${'$as_ac_var'}
10773 $as_echo "$as_val"'`
10774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10775 $as_echo "$ac_res" >&6; }
10776 as_val
=`eval 'as_val=${'$as_ac_var'}
10777 $as_echo "$as_val"'`
10778 if test "x$as_val" = x
""yes; then
10779 cat >>confdefs.h
<<_ACEOF
10780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10784 case " $LIBOBJS " in
10785 *" $ac_func.$ac_objext "* ) ;;
10786 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
10794 # vsnprintf is in the same source file as snprintf
10796 for ac_func
in vsnprintf
10798 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 $as_echo_n "checking for $ac_func... " >&6; }
10801 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10802 $as_echo_n "(cached) " >&6
10804 cat >conftest.
$ac_ext <<_ACEOF
10807 cat confdefs.h
>>conftest.
$ac_ext
10808 cat >>conftest.
$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define $ac_func innocuous_$ac_func
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10820 # include <limits.h>
10822 # include <assert.h>
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined __stub_$ac_func || defined __stub___$ac_func
10844 return $ac_func ();
10849 rm -f conftest.
$ac_objext conftest
$ac_exeext
10850 if { (ac_try
="$ac_link"
10851 case "(($ac_try" in
10852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext && {
10867 test "$cross_compiling" = yes ||
10868 $as_test_x conftest$ac_exeext
10870 eval "$as_ac_var=yes"
10872 $as_echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10875 eval "$as_ac_var=no"
10878 rm -rf conftest.dSYM
10879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10880 conftest$ac_exeext conftest.$ac_ext
10882 ac_res=`eval 'as_val=${'$as_ac_var'}
10883 $as_echo "$as_val"'`
10884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10885 $as_echo "$ac_res" >&6; }
10886 as_val=`eval 'as_val=${'$as_ac_var'}
10887 $as_echo "$as_val"'`
10888 if test "x$as_val" = x""yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10894 case " $LIBOBJS " in
10895 *" snprintf.$ac_objext "* ) ;;
10896 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
10910 for ac_func in gettimeofday isatty kill rename setlocale strsep
10912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 $as_echo_n "checking for $ac_func... " >&6; }
10915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 $as_echo_n "(cached) " >&6
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10934 # include <limits.h>
10936 # include <assert.h>
10941 /* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined __stub_$ac_func || defined __stub___$ac_func
10958 return $ac_func ();
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (ac_try="$ac_link"
10965 case "(($ac_try" in
10966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10967 *) ac_try_echo
=$ac_try;;
10969 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10970 $as_echo "$ac_try_echo") >&5
10971 (eval "$ac_link") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1
>conftest.err
10975 cat conftest.err
>&5
10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest
$ac_exeext && {
10981 test "$cross_compiling" = yes ||
10982 $as_test_x conftest
$ac_exeext
10984 eval "$as_ac_var=yes"
10986 $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.
$ac_ext >&5
10989 eval "$as_ac_var=no"
10992 rm -rf conftest.dSYM
10993 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10994 conftest
$ac_exeext conftest.
$ac_ext
10996 ac_res
=`eval 'as_val=${'$as_ac_var'}
10997 $as_echo "$as_val"'`
10998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11000 as_val
=`eval 'as_val=${'$as_ac_var'}
11001 $as_echo "$as_val"'`
11002 if test "x$as_val" = x
""yes; then
11003 cat >>confdefs.h
<<_ACEOF
11004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11010 { $as_echo "$as_me:$LINENO: checking for mkstemp" >&5
11011 $as_echo_n "checking for mkstemp... " >&6; }
11013 ac_cpp
='$CXXCPP $CPPFLAGS'
11014 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11019 cat >conftest.
$ac_ext <<_ACEOF
11023 cat confdefs.h
>>conftest.
$ac_ext
11024 cat >>conftest.
$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11028 #include <stdlib.h>
11029 #include <unistd.h>
11046 rm -f conftest.
$ac_objext conftest
$ac_exeext
11047 if { (ac_try
="$ac_link"
11048 case "(($ac_try" in
11049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11053 $as_echo "$ac_try_echo") >&5
11054 (eval "$ac_link") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } && {
11061 test -z "$ac_cxx_werror_flag" ||
11062 test ! -s conftest.err
11063 } && test -s conftest$ac_exeext && {
11064 test "$cross_compiling" = yes ||
11065 $as_test_x conftest$ac_exeext
11067 { $as_echo "$as_me:$LINENO: result: yes" >&5
11068 $as_echo "yes" >&6; }
11070 cat >>confdefs.h <<\_ACEOF
11071 #define HAVE_MKSTEMP 1
11075 $as_echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 { $as_echo "$as_me:$LINENO: result: no" >&5
11079 $as_echo "no" >&6; }
11080 case " $LIBOBJS " in
11081 *" mkstemp.$ac_objext "* ) ;;
11082 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
11088 rm -rf conftest.dSYM
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11098 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
11099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11100 $as_echo_n "(cached) " >&6
11102 cat >conftest.$ac_ext <<_ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 $ac_includes_default
11112 #ifndef sys_siglist
11113 (void) sys_siglist;
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11124 *) ac_try_echo
=$ac_try;;
11126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1
>conftest.err
11132 cat conftest.err
>&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.
$ac_objext; then
11138 ac_cv_have_decl_sys_siglist
=yes
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.
$ac_ext >&5
11143 ac_cv_have_decl_sys_siglist
=no
11146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11148 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11149 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
11150 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then
11152 cat >>confdefs.h
<<_ACEOF
11153 #define HAVE_DECL_SYS_SIGLIST 1
11158 cat >>confdefs.h
<<_ACEOF
11159 #define HAVE_DECL_SYS_SIGLIST 0
11164 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11165 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11166 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11167 $as_echo_n "(cached) " >&6
11169 cat >conftest.
$ac_ext <<_ACEOF
11172 cat confdefs.h
>>conftest.
$ac_ext
11173 cat >>conftest.
$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 $ac_includes_default
11179 #ifndef getc_unlocked
11180 (void) getc_unlocked;
11187 rm -f conftest.
$ac_objext
11188 if { (ac_try
="$ac_compile"
11189 case "(($ac_try" in
11190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11194 $as_echo "$ac_try_echo") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11197 grep -v '^ *+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205 ac_cv_have_decl_getc_unlocked=yes
11207 $as_echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 ac_cv_have_decl_getc_unlocked=no
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11216 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11217 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_DECL_GETC_UNLOCKED 1
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_DECL_GETC_UNLOCKED 0
11234 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11235 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11236 if test "${am_cv_langinfo_codeset+set}" = set; then
11237 $as_echo_n "(cached) " >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include <langinfo.h>
11249 char* cs = nl_langinfo(CODESET); return !cs;
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11258 *) ac_try_echo
=$ac_try;;
11260 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11261 $as_echo "$ac_try_echo") >&5
11262 (eval "$ac_link") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest
$ac_exeext && {
11272 test "$cross_compiling" = yes ||
11273 $as_test_x conftest
$ac_exeext
11275 am_cv_langinfo_codeset
=yes
11277 $as_echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.
$ac_ext >&5
11280 am_cv_langinfo_codeset
=no
11283 rm -rf conftest.dSYM
11284 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11285 conftest
$ac_exeext conftest.
$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11289 $as_echo "$am_cv_langinfo_codeset" >&6; }
11290 if test $am_cv_langinfo_codeset = yes; then
11292 cat >>confdefs.h
<<\_ACEOF
11293 #define HAVE_LANGINFO_CODESET 1
11299 # checks for compiler characteristics
11301 ac_cpp
='$CXXCPP $CPPFLAGS'
11302 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11306 { $as_echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
11307 $as_echo_n "checking whether ANSI array delete syntax is supported... " >&6; }
11308 cat >conftest.
$ac_ext <<_ACEOF
11312 cat confdefs.h
>>conftest.
$ac_ext
11313 cat >>conftest.
$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11321 char *p = new char[5];
11330 rm -f conftest.
$ac_objext
11331 if { (ac_try
="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11337 $as_echo "$ac_try_echo") >&5
11338 (eval "$ac_compile") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_cxx_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest.$ac_objext; then
11348 { $as_echo "$as_me:$LINENO: result: yes" >&5
11349 $as_echo "yes" >&6; }
11351 $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 { $as_echo "$as_me:$LINENO: result: no" >&5
11355 $as_echo "no" >&6; }
11357 cat >>confdefs.h <<\_ACEOF
11358 #define ARRAY_DELETE_NEEDS_SIZE 1
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 ac_cpp='$CPP $CPPFLAGS'
11366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371 ac_cpp='$CXXCPP $CPPFLAGS'
11372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11376 { $as_echo "$as_me:$LINENO: checking traditional preprocessor" >&5
11377 $as_echo_n "checking traditional preprocessor... " >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11387 #define name2(a, b) a/**/b
11395 int name2(foo, bar);
11403 rm -f conftest.$ac_objext
11404 if { (ac_try="$ac_compile"
11405 case "(($ac_try" in
11406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11407 *) ac_try_echo
=$ac_try;;
11409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11410 $as_echo "$ac_try_echo") >&5
11411 (eval "$ac_compile") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1
>conftest.err
11415 cat conftest.err
>&5
11416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_cxx_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.
$ac_objext; then
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5
11422 $as_echo "yes" >&6; }
11424 cat >>confdefs.h
<<\_ACEOF
11425 #define TRADITIONAL_CPP 1
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 { $as_echo "$as_me:$LINENO: result: no" >&5
11433 $as_echo "no" >&6; }
11436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11438 ac_cpp
='$CPP $CPPFLAGS'
11439 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11444 # checks for operating system services
11445 { $as_echo "$as_me:$LINENO: checking w_coredump" >&5
11446 $as_echo_n "checking w_coredump... " >&6; }
11447 if test "$cross_compiling" = yes; then
11448 { $as_echo "$as_me:$LINENO: result: no" >&5
11449 $as_echo "no" >&6; }
11451 cat >conftest.
$ac_ext <<_ACEOF
11455 cat confdefs.h
>>conftest.
$ac_ext
11456 cat >>conftest.
$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11460 #include <sys/types.h>
11461 #include <sys/wait.h>
11475 ((union wait *)&i)->w_coredump = 1;
11486 rm -f conftest
$ac_exeext
11487 if { (ac_try
="$ac_link"
11488 case "(($ac_try" in
11489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493 $as_echo "$ac_try_echo") >&5
11494 (eval "$ac_link") 2>&5
11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11500 *) ac_try_echo
=$ac_try;;
11502 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504 (eval "$ac_try") 2>&5
11506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 { $as_echo "$as_me:$LINENO: result: yes" >&5
11509 $as_echo "yes" >&6; }
11511 cat >>confdefs.h
<<\_ACEOF
11512 #define WCOREFLAG 0200
11516 $as_echo "$as_me: program exited with status $ac_status" >&5
11517 $as_echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.
$ac_ext >&5
11520 ( exit $ac_status )
11521 { $as_echo "$as_me:$LINENO: result: no" >&5
11522 $as_echo "no" >&6; }
11524 rm -rf conftest.dSYM
11525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11530 # other random stuff
11531 { $as_echo "$as_me:$LINENO: checking default value for grops -b option" >&5
11532 $as_echo_n "checking default value for grops -b option... " >&6; }
11533 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
11534 { $as_echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
11535 $as_echo "$BROKEN_SPOOLER_FLAGS" >&6; }
11537 { $as_echo "$as_me:$LINENO: checking default paper size" >&5
11538 $as_echo_n "checking default paper size... " >&6; }
11539 groff_prefix
=$prefix
11540 test "x$prefix" = "xNONE" && groff_prefix
=$ac_default_prefix
11541 if test -z "$PAGE"; then
11543 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
11544 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
11545 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
11546 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
11548 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
11549 if test -r $f; then
11556 if test -n "$descfile"; then
11557 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
11559 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
11565 if test -z "$PAGE"; then
11566 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
11567 /etc/resolv.conf 2>/dev/null`
11568 if test -z "$dom"; then
11569 dom
=`(domainname) 2>/dev/null | tr -d '+'`
11570 if test -z "$dom" \
11571 ||
test "$dom" = '(none)'; then
11572 dom
=`(hostname) 2>/dev/null | grep '\.'`
11575 # If the top-level domain is two letters and it's not `us' or `ca'
11576 # then they probably use A4 paper.
11578 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
11580 *.
[A-Za-z
][A-Za-z
])
11585 test -n "$PAGE" || PAGE
=letter
11586 if test "x$PAGE" = "xA4"; then
11588 cat >>confdefs.h
<<\_ACEOF
11593 { $as_echo "$as_me:$LINENO: result: $PAGE" >&5
11594 $as_echo "$PAGE" >&6; }
11596 { $as_echo "$as_me:$LINENO: checking for existing troff installation" >&5
11597 $as_echo_n "checking for existing troff installation... " >&6; }
11598 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
11599 { $as_echo "$as_me:$LINENO: result: yes" >&5
11600 $as_echo "yes" >&6; }
11603 { $as_echo "$as_me:$LINENO: result: no" >&5
11604 $as_echo "no" >&6; }
11608 { $as_echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
11609 $as_echo_n "checking for prefix of system macro packages... " >&6; }
11611 sys_tmac_file_prefix
=
11612 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
11613 for t
in "" tmac.
; do
11614 for m
in an s m
; do
11616 if test -z "$sys_tmac_prefix" \
11618 && grep '^\.if' $f >/dev
/null
2>&1; then
11619 sys_tmac_prefix
=$d/$t
11620 sys_tmac_file_prefix
=$t
11625 { $as_echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
11626 $as_echo "$sys_tmac_prefix" >&6; }
11629 { $as_echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
11630 $as_echo_n "checking which system macro packages should be made available... " >&6; }
11632 if test "x$sys_tmac_file_prefix" = "xtmac."; then
11633 for f
in $sys_tmac_prefix*; do
11634 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11639 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
11640 || tmac_wrap
="$tmac_wrap $suff" ;;
11643 elif test -n "$sys_tmac_prefix"; then
11644 files
=`echo $sys_tmac_prefix*`
11645 grep "\\.so" $files >conftest.sol
11646 for f
in $files; do
11648 ${sys_tmac_prefix}e
)
11656 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
11657 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
11660 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
11665 tmac_wrap
="$tmac_wrap $suff" ;;
11672 { $as_echo "$as_me:$LINENO: result: $tmac_wrap" >&5
11673 $as_echo "$tmac_wrap" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
11676 $as_echo_n "checking separator character to use in groff search paths... " >&6; }
11677 cp ${srcdir}/src
/include
/nonposix.h conftest.h
11678 cat >conftest.
$ac_ext <<_ACEOF
11682 cat confdefs.h
>>conftest.
$ac_ext
11683 cat >>conftest.
$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11688 #include "conftest.h"
11696 #if PATH_SEP_CHAR == ';'
11697 make an error "Path separator is ';'"
11706 rm -f conftest.
$ac_objext
11707 if { (ac_try
="$ac_compile"
11708 case "(($ac_try" in
11709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714 (eval "$ac_compile") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest.$ac_objext; then
11724 GROFF_PATH_SEPARATOR=":"
11726 $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 GROFF_PATH_SEPARATOR=";"
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 { $as_echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
11734 $as_echo "$GROFF_PATH_SEPARATOR" >&6; }
11737 # Check whether --with-alt-gs was given.
11738 if test "${with_alt_gs+set}" = set; then
11739 withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
11741 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
11747 # Check whether --with-gs was given.
11748 if test "${with_gs+set}" = set; then
11749 withval=$with_gs; GHOSTSCRIPT=$withval
11751 if test -n "$ac_tool_prefix"; then
11752 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
11759 $as_echo_n "(cached) " >&6
11761 if test -n "$GHOSTSCRIPT"; then
11762 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11771 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
11772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
11782 if test -n "$GHOSTSCRIPT"; then
11783 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
11784 $as_echo "$GHOSTSCRIPT" >&6; }
11786 { $as_echo "$as_me:$LINENO: result: no" >&5
11787 $as_echo "no" >&6; }
11791 test -n "$GHOSTSCRIPT" && break
11794 if test -z "$GHOSTSCRIPT"; then
11795 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
11796 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
11798 # Extract the first word of "$ac_prog", so it can be a program name with args.
11799 set dummy $ac_prog; ac_word=$2
11800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11801 $as_echo_n "checking for $ac_word... " >&6; }
11802 if test "${ac_cv_prog_ac_ct_GHOSTSCRIPT+set}" = set; then
11803 $as_echo_n "(cached) " >&6
11805 if test -n "$ac_ct_GHOSTSCRIPT"; then
11806 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11815 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
11816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
11826 if test -n "$ac_ct_GHOSTSCRIPT"; then
11827 { $as_echo "$as_me:$LINENO: result: $ac_ct_GHOSTSCRIPT" >&5
11828 $as_echo "$ac_ct_GHOSTSCRIPT" >&6; }
11830 { $as_echo "$as_me:$LINENO: result: no" >&5
11831 $as_echo "no" >&6; }
11835 test -n "$ac_ct_GHOSTSCRIPT" && break
11838 if test "x$ac_ct_GHOSTSCRIPT" = x; then
11839 GHOSTSCRIPT="missing"
11841 case $cross_compiling:$ac_tool_warned in
11843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11845 ac_tool_warned=yes ;;
11847 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
11853 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
11856 make_install_html=install_html
11859 # Extract the first word of "pnmcut", so it can be a program name with args.
11860 set dummy pnmcut; ac_word=$2
11861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11862 $as_echo_n "checking for $ac_word... " >&6; }
11863 if test "${ac_cv_prog_pnmcut+set}" = set; then
11864 $as_echo_n "(cached) " >&6
11866 if test -n "$pnmcut"; then
11867 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in $PATH
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_prog_pnmcut="found"
11877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
11887 pnmcut=$ac_cv_prog_pnmcut
11888 if test -n "$pnmcut"; then
11889 { $as_echo "$as_me:$LINENO: result: $pnmcut" >&5
11890 $as_echo "$pnmcut" >&6; }
11892 { $as_echo "$as_me:$LINENO: result: no" >&5
11893 $as_echo "no" >&6; }
11897 if test $pnmcut = missing; then
11898 missing="$missing \`pnmcut
'"
11899 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
11900 set dummy pnmcrop; ac_word=$2
11901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if test "${ac_cv_prog_pnmcrop+set}" = set; then
11904 $as_echo_n "(cached) " >&6
11906 if test -n "$pnmcrop"; then
11907 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_pnmcrop="found"
11917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
11927 pnmcrop=$ac_cv_prog_pnmcrop
11928 if test -n "$pnmcrop"; then
11929 { $as_echo "$as_me:$LINENO: result: $pnmcrop" >&5
11930 $as_echo "$pnmcrop" >&6; }
11932 { $as_echo "$as_me:$LINENO: result: no" >&5
11933 $as_echo "no" >&6; }
11937 if test $pnmcrop = missing; then
11938 missing="$missing \`pnmcrop'"
11939 fi;# Extract the first word of "pnmtopng
", so it can be a program name with args.
11940 set dummy pnmtopng; ac_word=$2
11941 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11942 $as_echo_n "checking
for $ac_word...
" >&6; }
11943 if test "${ac_cv_prog_pnmtopng+set}" = set; then
11944 $as_echo_n "(cached
) " >&6
11946 if test -n "$pnmtopng"; then
11947 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_pnmtopng="found
"
11957 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11964 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing
"
11967 pnmtopng=$ac_cv_prog_pnmtopng
11968 if test -n "$pnmtopng"; then
11969 { $as_echo "$as_me:$LINENO: result
: $pnmtopng" >&5
11970 $as_echo "$pnmtopng" >&6; }
11972 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11973 $as_echo "no
" >&6; }
11977 if test $pnmtopng = missing; then
11978 missing="$missing \
`pnmtopng'"
11979 fi;# Extract the first word of "psselect", so it can be a program name with args.
11980 set dummy psselect; ac_word=$2
11981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11982 $as_echo_n "checking for $ac_word... " >&6; }
11983 if test "${ac_cv_prog_psselect+set}" = set; then
11984 $as_echo_n "(cached) " >&6
11986 if test -n "$psselect"; then
11987 ac_cv_prog_psselect="$psselect" # Let the user override the test.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11996 ac_cv_prog_psselect="found"
11997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
12007 psselect=$ac_cv_prog_psselect
12008 if test -n "$psselect"; then
12009 { $as_echo "$as_me:$LINENO: result: $psselect" >&5
12010 $as_echo "$psselect" >&6; }
12012 { $as_echo "$as_me:$LINENO: result: no" >&5
12013 $as_echo "no" >&6; }
12017 if test $psselect = missing; then
12018 missing="$missing \`psselect
'"
12019 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
12020 set dummy pnmtops; ac_word=$2
12021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_prog_pnmtops+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12026 if test -n "$pnmtops"; then
12027 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12036 ac_cv_prog_pnmtops="found"
12037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
12047 pnmtops=$ac_cv_prog_pnmtops
12048 if test -n "$pnmtops"; then
12049 { $as_echo "$as_me:$LINENO: result: $pnmtops" >&5
12050 $as_echo "$pnmtops" >&6; }
12052 { $as_echo "$as_me:$LINENO: result: no" >&5
12053 $as_echo "no" >&6; }
12057 if test $pnmtops = missing; then
12058 missing="$missing \`pnmtops'"
12061 test "$GHOSTSCRIPT" = "missing
" && missing="$missing \
`gs'"
12063 if test -n "$missing"; then
12064 plural=`set $missing; test $# -gt 1 && echo s
`
12065 missing=`set $missing
12067 while test $# -gt 0
12070 1) missing
="$missing$1" ;;
12071 2) missing
="$missing$1 and " ;;
12072 *) missing
="$missing$1, " ;;
12081 { $as_echo "$as_me:$LINENO: WARNING: missing program$plural:
12085 cannot be found in the PATH.
12086 Consequently, groff's HTML backend (grohtml) will not work properly;
12087 therefore, it will neither be possible to prepare, nor to install,
12088 documentation in HTML format.
12090 $as_echo "$as_me: WARNING: missing program$plural:
12094 cannot be found in the PATH.
12095 Consequently, groff's HTML backend (grohtml) will not work properly;
12096 therefore, it will neither be possible to prepare, nor to install,
12097 documentation in HTML format.
12104 # Check whether --with-alt-awk was given.
12105 if test "${with_alt_awk+set}" = set; then
12106 withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
12108 ALT_AWK_PROGS="gawk mawk nawk awk"
12114 # Check whether --with-awk was given.
12115 if test "${with_awk+set}" = set; then
12116 withval=$with_awk; AWK=$withval
12118 if test -n "$ac_tool_prefix"; then
12119 for ac_prog in $ALT_AWK_PROGS
12121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 $as_echo_n "checking for $ac_word... " >&6; }
12125 if test "${ac_cv_prog_AWK+set}" = set; then
12126 $as_echo_n "(cached) " >&6
12128 if test -n "$AWK"; then
12129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
12139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 AWK=$ac_cv_prog_AWK
12149 if test -n "$AWK"; then
12150 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
12151 $as_echo "$AWK" >&6; }
12153 { $as_echo "$as_me:$LINENO: result: no" >&5
12154 $as_echo "no" >&6; }
12158 test -n "$AWK" && break
12161 if test -z "$AWK"; then
12163 for ac_prog in $ALT_AWK_PROGS
12165 # Extract the first word of "$ac_prog", so it can be a program name with args.
12166 set dummy $ac_prog; ac_word=$2
12167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_prog_ac_ct_AWK+set}" = set; then
12170 $as_echo_n "(cached) " >&6
12172 if test -n "$ac_ct_AWK"; then
12173 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182 ac_cv_prog_ac_ct_AWK="$ac_prog"
12183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
12193 if test -n "$ac_ct_AWK"; then
12194 { $as_echo "$as_me:$LINENO: result: $ac_ct_AWK" >&5
12195 $as_echo "$ac_ct_AWK" >&6; }
12197 { $as_echo "$as_me:$LINENO: result: no" >&5
12198 $as_echo "no" >&6; }
12202 test -n "$ac_ct_AWK" && break
12205 if test "x$ac_ct_AWK" = x; then
12208 case $cross_compiling:$ac_tool_warned in
12210 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12212 ac_tool_warned=yes ;;
12220 test "$AWK" = "no" && AWK=missing
12225 make_install_pdfdoc=install_pdfdoc
12228 test "$AWK" = missing && missing="\`awk'"
12229 test "$GHOSTSCRIPT" = missing && missing="$missing \`gs'"
12230 if test -n "$missing"; then
12231 plural=`set $missing; test $# -eq 2 && echo s`
12232 test x$plural = xs \
12233 && missing=`set $missing; echo "$1 and
$2"` \
12234 || missing=`echo $missing`
12237 make_install_pdfdoc=
12239 { $as_echo "$as_me:$LINENO: WARNING
: missing program
$plural:
12241 The program
$plural $missing cannot be found
in the PATH.
12242 Consequently
, groff's PDF formatter (pdfroff) will not work properly;
12243 therefore, it will neither be possible to prepare, nor to install,
12244 documentation in PDF format.
12246 $as_echo "$as_me: WARNING: missing program$plural:
12248 The program$plural $missing cannot be found in the PATH.
12249 Consequently, groff's PDF formatter
(pdfroff
) will not work properly
;
12250 therefore
, it will neither be possible to prepare
, nor to
install,
12251 documentation
in PDF format.
12257 { $as_echo "$as_me:$LINENO: checking whether pnmtops can handle the
-nosetpage option
" >&5
12258 $as_echo_n "checking whether pnmtops can handle the
-nosetpage option...
" >&6; }
12259 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
12260 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12261 $as_echo "yes" >&6; }
12262 pnmtops_nosetpage="pnmtops
-nosetpage"
12264 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12265 $as_echo "no
" >&6; }
12266 pnmtops_nosetpage="pnmtops
"
12270 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library
2.1 or newer
" >&5
12271 $as_echo_n "checking whether we are using the GNU C Library
2.1 or newer...
" >&6; }
12272 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12273 $as_echo_n "(cached
) " >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12282 #include <features.h>
12283 #ifdef __GNU_LIBRARY__
12284 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12290 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
12291 $EGREP "Lucky GNU user
" >/dev/null 2>&1; then
12292 ac_cv_gnu_library_2_1=yes
12294 ac_cv_gnu_library_2_1=no
12301 { $as_echo "$as_me:$LINENO: result
: $ac_cv_gnu_library_2_1" >&5
12302 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12304 GLIBC21="$ac_cv_gnu_library_2_1"
12308 ac_config_files="$ac_config_files stamp-h
"
12310 ac_config_files="$ac_config_files Makefile
doc
/Makefile src
/utils
/xtotroff
/Makefile
"
12312 ac_config_files="$ac_config_files contrib
/gdiffmk
/tests
/runtests
"
12314 ac_config_files="$ac_config_files test-groff
"
12316 cat >confcache <<\_ACEOF
12317 # This file is a shell script that caches the results of configure
12318 # tests run on this system so they can be shared between configure
12319 # scripts and configure runs, see configure's option --config-cache.
12320 # It is not useful on other systems. If it contains results you don't
12321 # want to keep, you may remove or edit it.
12323 # config.status only pays attention to the cache file if you give it
12324 # the --recheck option to rerun configure.
12326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12328 # following values.
12332 # The following way of writing the cache mishandles newlines in values,
12333 # but we know of no workaround that is simple, portable, and efficient.
12334 # So, we kill variables containing newlines.
12335 # Ultrix sh set writes to stderr and can't be redirected directly,
12336 # and sets the high bit in the cache file unless we assign to the vars.
12338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12339 eval ac_val=\$$ac_var
12343 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: cache variable
$ac_var contains a newline
" >&5
12344 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
12347 _ | IFS | as_nl) ;; #(
12348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12349 *) $as_unset $ac_var ;;
12355 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12356 *${as_nl}ac_space=\ *)
12357 # `set' does not quote correctly, so add quotes (double-quote
12358 # substitution turns \\\\ into \\, and sed turns \\ into \).
12361 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
12364 # `set' quotes correctly as required by POSIX, so do not add quotes.
12365 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
12374 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12376 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12378 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12379 if test -w "$cache_file"; then
12380 test "x
$cache_file" != "x
/dev
/null
" &&
12381 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
12382 $as_echo "$as_me: updating cache
$cache_file" >&6;}
12383 cat confcache >$cache_file
12385 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
12386 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
12391 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
12392 # Let make expand exec_prefix.
12393 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
12395 DEFS=-DHAVE_CONFIG_H
12399 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
12400 # 1. Remove the extension, and $U if already installed.
12401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12402 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12404 # will be set to the directory where LIBOBJS objects are built.
12405 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
12406 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
12408 LIBOBJS=$ac_libobjs
12410 LTLIBOBJS=$ac_ltlibobjs
12415 : ${CONFIG_STATUS=./config.status}
12417 ac_clean_files_save=$ac_clean_files
12418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12419 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
12420 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
12421 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12423 # Generated by $as_me.
12424 # Run this file to recreate the current configuration.
12425 # Compiler output produced by configure, useful for debugging
12426 # configure, is in config.log if it exists.
12429 ac_cs_recheck=false
12431 SHELL=\${CONFIG_SHELL-$SHELL}
12434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12435 ## --------------------- ##
12436 ## M4sh Initialization. ##
12437 ## --------------------- ##
12439 # Be more Bourne compatible
12440 DUALCASE=1; export DUALCASE # for MKS sh
12441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12445 # is contrary to our usage. Disable this feature.
12446 alias -g '${1+"$@"}'='"$@
"'
12447 setopt NO_GLOB_SUBST
12449 case `(set -o) 2>/dev/null` in
12450 *posix*) set -o posix ;;
12459 # Avoid depending upon Character Ranges.
12460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12463 as_cr_digits='0123456789'
12464 as_cr_alnum=$as_cr_Letters$as_cr_digits
12469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12473 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
12474 as_echo='printf %s\n'
12475 as_echo_n='printf %s'
12477 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
12478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12479 as_echo_n='/usr/ucb/echo -n'
12481 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
12482 as_echo_n_body='eval
12486 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
12487 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
12489 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
12491 export as_echo_n_body
12492 as_echo_n='sh -c $as_echo_n_body as_echo'
12494 export as_echo_body
12495 as_echo='sh -c $as_echo_body as_echo'
12498 # The user is always right.
12499 if test "${PATH_SEPARATOR+set}" != set; then
12501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12507 # Support unset when possible.
12508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12516 # We need space, tab and new line, in precisely that order. Quoting is
12517 # there to prevent editors from complaining about space-tab.
12518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12519 # splitting by setting IFS to empty value.)
12522 # Find who we are. Look in the path if we contain no directory separator.
12524 *[\\/]* ) as_myself=$0 ;;
12525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12529 test -z "$as_dir" && as_dir=.
12530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12536 # We did not find ourselves, most probably we were run as `sh COMMAND'
12537 # in which case we are not to be found in the path.
12538 if test "x
$as_myself" = x; then
12541 if test ! -f "$as_myself"; then
12542 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
12543 { (exit 1); exit 1; }
12546 # Work around bugs in pre-3.0 UWIN ksh.
12547 for as_var in ENV MAIL MAILPATH
12548 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12560 # Required to use basename.
12561 if expr a : '\(a\)' >/dev/null 2>&1 &&
12562 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
12568 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
12569 as_basename=basename
12575 # Name of the executable.
12576 as_me=`$as_basename -- "$0" ||
12577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12578 X"$0" : 'X\(//\)$' \| \
12579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12581 sed '/^.*\/\([^/][^/]*\)\/*$/{
12600 as_lineno_1=$LINENO
12601 as_lineno_2=$LINENO
12602 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
12603 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
12605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12606 # uniformly replaced by the line number. The first 'sed' inserts a
12607 # line-number line after each line using $LINENO; the second 'sed'
12608 # does the real work. The second script uses 'N' to pair each
12609 # line-number line with the line containing $LINENO, and appends
12610 # trailing '-' during substitution so that $LINENO is not a special
12611 # case at line end.
12612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12613 # scripts with optimization help from Paolo Bonzini. Blame Lee
12614 # E. McMahon (1931-1989) for sed's syntax. :-)
12626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12629 ' >$as_me.lineno &&
12630 chmod +x "$as_me.lineno
" ||
12631 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
12632 { (exit 1); exit 1; }; }
12634 # Don't try to exec as it changes $[0], causing all sort of problems
12635 # (the dirname of $[0] is not the place where we might find the
12636 # original and so on. Autoconf is especially sensitive to this).
12637 . ".
/$as_me.lineno
"
12638 # Exit status is that of the last command.
12643 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
12649 ECHO_C= ECHO_N= ECHO_T=
12650 case `echo -n x` in
12652 case `echo 'x\c'` in
12653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12659 if expr a : '\(a\)' >/dev/null 2>&1 &&
12660 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
12666 rm -f conf$$ conf$$.exe conf$$.file
12667 if test -d conf$$.dir; then
12668 rm -f conf$$.dir/conf$$.file
12671 mkdir conf$$.dir 2>/dev/null
12673 if (echo >conf$$.file) 2>/dev/null; then
12674 if ln -s conf$$.file conf$$ 2>/dev/null; then
12676 # ... but there are two gotchas:
12677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12679 # In both cases, we have to default to `cp -p'.
12680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12682 elif ln conf$$.file conf$$ 2>/dev/null; then
12690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12691 rmdir conf$$.dir 2>/dev/null
12693 if mkdir -p . 2>/dev/null; then
12696 test -d ./-p && rmdir ./-p
12700 if test -x / >/dev/null 2>&1; then
12701 as_test_x='test -x'
12703 if ls -dL / >/dev/null 2>&1; then
12710 if test -d "$1"; then
12716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12717 ???[sx]*):;;*)false;;esac;fi
12721 as_executable_p=$as_test_x
12723 # Sed expression to map a string onto a valid CPP name.
12724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12726 # Sed expression to map a string onto a valid variable name.
12727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12732 # Save the log message, to keep $[0] and so on meaningful, and to
12733 # report actual input values of CONFIG_FILES etc. instead of their
12734 # values after options handling.
12736 This
file was extended by
$as_me, which was
12737 generated by GNU Autoconf
2.63. Invocation
command line was
12739 CONFIG_FILES
= $CONFIG_FILES
12740 CONFIG_HEADERS
= $CONFIG_HEADERS
12741 CONFIG_LINKS
= $CONFIG_LINKS
12742 CONFIG_COMMANDS
= $CONFIG_COMMANDS
12745 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
12750 case $ac_config_files in *"
12751 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12754 case $ac_config_headers in *"
12755 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12760 # Files that config.status was made for.
12761 config_files="$ac_config_files"
12762 config_headers="$ac_config_headers"
12766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12768 \
`$as_me' instantiates files from templates according to the
12769 current configuration.
12771 Usage: $0 [OPTION]... [FILE]...
12773 -h, --help print this help, then exit
12774 -V, --version print version number and configuration settings, then exit
12775 -q, --quiet, --silent
12776 do not print progress messages
12777 -d, --debug don't remove temporary files
12778 --recheck update $as_me by reconfiguring in the same conditions
12779 --file=FILE[:TEMPLATE]
12780 instantiate the configuration file FILE
12781 --header=FILE[:TEMPLATE]
12782 instantiate the configuration header FILE
12784 Configuration files:
12787 Configuration headers:
12790 Report bugs to <bug-autoconf@gnu.org>."
12793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12796 configured by $0, generated by GNU Autoconf 2.63,
12797 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12799 Copyright (C) 2008 Free Software Foundation, Inc.
12800 This config.status script is free software; the Free Software Foundation
12801 gives unlimited permission to copy, distribute and modify it."
12806 test -n "\$AWK" || AWK=awk
12809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12810 # The default lists apply if the user does not specify any file.
12816 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12817 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12828 # Handling of the options.
12829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12831 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12832 $as_echo "$ac_cs_version"; exit ;;
12833 --debug | --debu | --deb | --de | --d | -d )
12835 --file | --fil | --fi | --f )
12838 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
12840 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12841 ac_need_defaults=false;;
12842 --header | --heade | --head | --hea )
12845 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
12847 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12848 ac_need_defaults=false;;
12850 # Conflict between --help and --header
12851 { $as_echo "$as_me: error: ambiguous option: $1
12852 Try \`$0 --help' for more information." >&2
12853 { (exit 1); exit 1; }; };;
12854 --help | --hel | -h )
12855 $as_echo "$ac_cs_usage"; exit ;;
12856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12860 # This is an error.
12861 -*) { $as_echo "$as_me: error: unrecognized option: $1
12862 Try \`$0 --help' for more information.
" >&2
12863 { (exit 1); exit 1; }; } ;;
12865 *) ac_config_targets="$ac_config_targets $1"
12866 ac_need_defaults=false ;;
12872 ac_configure_extra_args=
12874 if $ac_cs_silent; then
12876 ac_configure_extra_args="$ac_configure_extra_args --silent"
12880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12881 if \$ac_cs_recheck; then
12882 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12884 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
12885 CONFIG_SHELL='$SHELL'
12886 export CONFIG_SHELL
12891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12896 ## Running $as_me. ##
12902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907 # Handling of arguments.
12908 for ac_config_target in $ac_config_targets
12910 case $ac_config_target in
12911 "src
/include
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/include
/config.h
:src
/include
/config.hin
" ;;
12912 "stamp-h
") CONFIG_FILES="$CONFIG_FILES stamp-h
" ;;
12913 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
12914 "doc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/Makefile
" ;;
12915 "src
/utils
/xtotroff
/Makefile
") CONFIG_FILES="$CONFIG_FILES src
/utils
/xtotroff
/Makefile
" ;;
12916 "contrib
/gdiffmk
/tests
/runtests
") CONFIG_FILES="$CONFIG_FILES contrib
/gdiffmk
/tests
/runtests
" ;;
12917 "test-groff
") CONFIG_FILES="$CONFIG_FILES test-groff
" ;;
12919 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
12920 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
12921 { (exit 1); exit 1; }; };;
12926 # If the user did not use the arguments to specify the items to instantiate,
12927 # then the envvar interface is used. Set only those that are not.
12928 # We use the long form for the default assignment because of an extremely
12929 # bizarre bug on SunOS 4.1.3.
12930 if $ac_need_defaults; then
12931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12935 # Have a temporary directory for convenience. Make it in the build tree
12936 # simply because there is no reason against having it here, and in addition,
12937 # creating and moving files from /tmp can sometimes cause problems.
12938 # Hook for its removal unless debugging.
12939 # Note that there is a small window in which the directory will not be cleaned:
12940 # after its creation but before its name has been assigned to `$tmp'.
12944 trap 'exit_status=$?
12945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12947 trap '{ (exit 1); exit 1; }' 1 2 13 15
12949 # Create a (secure) tmp directory for tmp files.
12952 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
12953 test -n "$tmp" && test -d "$tmp"
12956 tmp=./conf$$-$RANDOM
12957 (umask 077 && mkdir "$tmp")
12960 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
12961 { (exit 1); exit 1; }
12964 # Set up the scripts for CONFIG_FILES section.
12965 # No need to generate them if there are no CONFIG_FILES.
12966 # This happens for instance with `./config.status config.h'.
12967 if test -n "$CONFIG_FILES"; then
12971 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
12972 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
12975 ac_cs_awk_cr=$ac_cr
12978 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
12983 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
12984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12986 } >conf$$subs.sh ||
12987 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
12988 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
12989 { (exit 1); exit 1; }; }
12990 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12992 for ac_last_try in false false false false false :; do
12993 . ./conf$$subs.sh ||
12994 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
12995 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
12996 { (exit 1); exit 1; }; }
12998 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12999 if test $ac_delim_n = $ac_delim_num; then
13001 elif $ac_last_try; then
13002 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13003 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13004 { (exit 1); exit 1; }; }
13006 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13009 rm -f conf$$subs.sh
13011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13012 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13016 s/^/S["/; s
/!.
*/"]=/
13026 s/\(.\{148\}\).*/\1/
13028 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13033 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13040 s/\(.\{148\}\).*/\1/
13042 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13046 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13051 ' <conf$$subs.awk | sed '
13056 ' >>$CONFIG_STATUS || ac_write_fail=1
13057 rm -f conf$$subs.awk
13058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13060 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13061 for (key in S) S_is_set[key] = 1
13067 nfields = split(line, field, "@
")
13069 len = length(field[1])
13070 for (i = 2; i < nfields; i++) {
13072 keylen = length(key)
13073 if (S_is_set[key]) {
13075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13076 len += length(value) + length(field[++i])
13087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13089 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13092 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13093 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
13094 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
13095 { (exit 1); exit 1; }; }
13098 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13099 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13100 # trailing colons and then remove the whole line if VPATH becomes empty
13101 # (actually we leave an empty line to preserve line numbers).
13102 if test "x
$srcdir" = x.; then
13103 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13104 s/:*\$(srcdir):*/:/
13105 s/:*\${srcdir}:*/:/
13107 s/^\([^=]*=[ ]*\):*/\1/
13113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13114 fi # test -n "$CONFIG_FILES"
13116 # Set up the scripts for CONFIG_HEADERS section.
13117 # No need to generate them if there are no CONFIG_HEADERS.
13118 # This happens for instance with `./config.status Makefile'.
13119 if test -n "$CONFIG_HEADERS"; then
13120 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13124 # Transform confdefs.h into an awk script `defines.awk', embedded as
13125 # here-document in config.status, that substitutes the proper values into
13126 # config.h.in to produce config.h.
13128 # Create a delimiter string that does not exist in confdefs.h, to ease
13129 # handling of long lines.
13131 for ac_last_try in false false :; do
13132 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13133 if test -z "$ac_t"; then
13135 elif $ac_last_try; then
13136 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
13137 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
13138 { (exit 1); exit 1; }; }
13140 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13144 # For the awk script, D is an array of macro values keyed by name,
13145 # likewise P contains macro parameters if any. Preserve backslash
13146 # newline sequences.
13148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13150 s/.\{148\}/&'"$ac_delim"'/g
13153 s/^[ ]*#[ ]*define[ ][ ]*/ /
13160 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13162 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13167 D["\
1"]=" \
3\\\\\\n
"\\/p
13169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13174 s/.\{148\}/&'"$ac_delim"'/g
13179 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13182 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13184 ' <confdefs.h | sed '
13185 s/'"$ac_delim"'/"\\\
13186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13189 for (key in D) D_is_set[key] = 1
13192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13194 split(line, arg, " ")
13195 if (arg[1] == "#") {
13199 defundef
= substr
(arg
[1], 2)
13202 split(mac1
, mac2
, "(") #)
13204 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13205 if (D_is_set
[macro
]) {
13206 # Preserve the white space surrounding the "#".
13207 print prefix
"define", macro P
[macro
] D
[macro
]
13210 # Replace #undef with comments. This is necessary, for example,
13211 # in the case of _POSIX_SOURCE, which is predefined and required
13212 # on some systems where configure will not decide to define it.
13213 if (defundef
== "undef") {
13214 print
"/*", prefix defundef
, macro
, "*/"
13222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13223 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13224 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13225 { (exit 1); exit 1; }; }
13226 fi # test -n "$CONFIG_HEADERS"
13229 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
13234 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13236 case $ac_mode$ac_tag in
13238 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13239 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13240 { (exit 1); exit 1; }; };;
13241 :[FH
]-) ac_tag
=-:-;;
13242 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13259 -) ac_f
="$tmp/stdin";;
13260 *) # Look for the file first in the build tree, then in the source tree
13261 # (if the path is not absolute). The absolute path cannot be DOS-style,
13262 # because $ac_f cannot contain `:'.
13266 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13268 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13269 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13270 { (exit 1); exit 1; }; };;
13272 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13273 ac_file_inputs
="$ac_file_inputs '$ac_f'"
13276 # Let's still pretend it is `configure' which instantiates (i.e., don't
13277 # use $as_me), people would be surprised to read:
13278 # /* config.h. Generated by config.status. */
13279 configure_input
='Generated from '`
13280 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13282 if test x
"$ac_file" != x-
; then
13283 configure_input
="$ac_file. $configure_input"
13284 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13285 $as_echo "$as_me: creating $ac_file" >&6;}
13287 # Neutralize special characters interpreted by sed in replacement strings.
13288 case $configure_input in #(
13289 *\
&* |
*\|
* |
*\\* )
13290 ac_sed_conf_input
=`$as_echo "$configure_input" |
13291 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13292 *) ac_sed_conf_input
=$configure_input;;
13296 *:-:* |
*:-) cat >"$tmp/stdin" \
13297 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13299 { (exit 1); exit 1; }; } ;;
13304 ac_dir
=`$as_dirname -- "$ac_file" ||
13305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13306 X"$ac_file" : 'X\(//\)[^/]' \| \
13307 X"$ac_file" : 'X\(//\)$' \| \
13308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13309 $as_echo X"$ac_file" |
13310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13314 /^X\(\/\/\)[^/].*/{
13329 -*) as_dir
=.
/$as_dir;;
13331 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13335 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13336 *) as_qdir
=$as_dir;;
13338 as_dirs
="'$as_qdir' $as_dirs"
13339 as_dir
=`$as_dirname -- "$as_dir" ||
13340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13341 X"$as_dir" : 'X\(//\)[^/]' \| \
13342 X"$as_dir" : 'X\(//\)$' \| \
13343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13344 $as_echo X"$as_dir" |
13345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13349 /^X\(\/\/\)[^/].*/{
13362 test -d "$as_dir" && break
13364 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13365 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13366 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13367 { (exit 1); exit 1; }; }; }
13371 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13373 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13374 # A ".." for each directory in $ac_dir_suffix.
13375 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13376 case $ac_top_builddir_sub in
13377 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13378 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13381 ac_abs_top_builddir
=$ac_pwd
13382 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13383 # for backward compatibility:
13384 ac_top_builddir
=$ac_top_build_prefix
13387 .
) # We are building in place.
13389 ac_top_srcdir
=$ac_top_builddir_sub
13390 ac_abs_top_srcdir
=$ac_pwd ;;
13391 [\\/]* | ?
:[\\/]* ) # Absolute name.
13392 ac_srcdir
=$srcdir$ac_dir_suffix;
13393 ac_top_srcdir
=$srcdir
13394 ac_abs_top_srcdir
=$srcdir ;;
13395 *) # Relative name.
13396 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13397 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13398 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13400 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13410 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13411 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13416 # If the template does not know about datarootdir, expand it.
13417 # FIXME: This hack should be removed a few years after 2.60.
13418 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13431 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13432 *datarootdir
*) ac_datarootdir_seen
=yes;;
13433 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13434 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13435 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13438 ac_datarootdir_hack='
13439 s&@datadir@&$datadir&g
13440 s&@docdir@&$docdir&g
13441 s&@infodir@&$infodir&g
13442 s&@localedir@&$localedir&g
13443 s&@mandir@&$mandir&g
13444 s&\\\${datarootdir}&$datarootdir&g' ;;
13448 # Neutralize VPATH when `$srcdir' = `.'.
13449 # Shell code in configure.ac might set extrasub.
13450 # FIXME: do we really want to maintain this feature?
13451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13452 ac_sed_extra="$ac_vpsub
13455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13457 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13458 s|@configure_input@|
$ac_sed_conf_input|
;t t
13459 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13460 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13461 s
&@srcdir@
&$ac_srcdir&;t t
13462 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13463 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13464 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13465 s
&@builddir@
&$ac_builddir&;t t
13466 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13467 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13468 s
&@INSTALL@
&$ac_INSTALL&;t t
13469 $ac_datarootdir_hack
13471 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13472 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
13473 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
13474 { (exit 1); exit 1; }; }
13476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13479 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13480 which seems to be undefined. Please make sure it is defined." >&5
13481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13482 which seems to be undefined. Please make sure it is defined." >&2;}
13486 -) cat "$tmp/out" && rm -f "$tmp/out";;
13487 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13489 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13490 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13491 { (exit 1); exit 1; }; }
13497 if test x"$ac_file" != x-; then
13499 $as_echo "/* $configure_input */" \
13500 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13501 } >"$tmp/config.h" \
13502 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13503 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13504 { (exit 1); exit 1; }; }
13505 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13506 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13507 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13510 mv "$tmp/config.h" "$ac_file" \
13511 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13513 { (exit 1); exit 1; }; }
13516 $as_echo "/* $configure_input */" \
13517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13518 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13519 $as_echo "$as_me: error: could not create -" >&2;}
13520 { (exit 1); exit 1; }; }
13528 case $ac_file$ac_mode in
13529 "stamp-h":F) echo timestamp > stamp-h ;;
13530 "contrib/gdiffmk/tests/runtests":F) chmod +x contrib/gdiffmk/tests/runtests ;;
13531 "test-groff":F) chmod +x test-groff ;;
13537 { (exit 0); exit 0; }
13539 chmod +x $CONFIG_STATUS
13540 ac_clean_files=$ac_clean_files_save
13542 test $ac_write_fail = 0 ||
13543 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13544 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13545 { (exit 1); exit 1; }; }
13548 # configure is writing to config.log, and then calls config.status.
13549 # config.status does its own redirection, appending to config.log.
13550 # Unfortunately, on DOS this fails, as config.log is still kept open
13551 # by configure, so config.status won't be able to
write to it
; its
13552 # output is simply discarded. So we exec the FD to /dev/null,
13553 # effectively closing config.log, so it can be properly (re)opened and
13554 # appended to by config.status. When coming back to configure, we
13555 # need to make the FD available again.
13556 if test "$no_create" != yes; then
13558 ac_config_status_args
=
13559 test "$silent" = yes &&
13560 ac_config_status_args
="$ac_config_status_args --quiet"
13562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13565 # would make configure fail if this is the last instruction.
13566 $ac_cs_success ||
{ (exit 1); exit 1; }
13568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13569 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13570 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13574 if test -z "$groff_no_x"; then
13575 if test "x$with_appresdir" = "x"; then
13576 { $as_echo "$as_me:$LINENO:
13578 The application resource files for gxditview will be installed as
13580 $appresdir/GXditview
13584 $appresdir/GXditview-color
13586 (existing files will be saved by appending \`.old' to the file
13589 To install them into a different directory, say, \`/etc/gxditview',
13590 add \`--with-appresdir=/etc/gxditview' to the configure script
13591 command line options and rerun it. The environment variable
13592 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13593 omitting the \`gxditview' part which is automatically appended by
13594 the X11 searching routines for resource files. More details can be
13595 found in the X(7) manual page.
13599 The application resource files for gxditview will be installed as
13601 $appresdir/GXditview
13605 $appresdir/GXditview-color
13607 (existing files will be saved by appending \`.old' to the file
13610 To install them into a different directory, say, \`/etc/gxditview',
13611 add \`--with-appresdir=/etc/gxditview' to the configure script
13612 command line options and rerun it. The environment variable
13613 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
13614 omitting the \`gxditview' part which is automatically appended by
13615 the X11 searching routines for resource files. More details can be
13616 found in the X(7) manual page.