2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
709 x_default_search_path
726 ac_precious_vars
='build_alias
738 # Initialize some variables set by options.
740 ac_init_version
=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
750 program_transform_name
=s
,x
,x
,
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir
='${exec_prefix}/bin'
765 sbindir
='${exec_prefix}/sbin'
766 libexecdir
='${exec_prefix}/libexec'
767 datarootdir
='${prefix}/share'
768 datadir
='${datarootdir}'
769 sysconfdir
='${prefix}/etc'
770 sharedstatedir
='${prefix}/com'
771 localstatedir
='${prefix}/var'
772 includedir
='${prefix}/include'
773 oldincludedir
='/usr/include'
774 docdir
='${datarootdir}/doc/${PACKAGE}'
775 infodir
='${datarootdir}/info'
780 libdir
='${exec_prefix}/lib'
781 localedir
='${datarootdir}/locale'
782 mandir
='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\
$ac_option
796 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=no
;;
847 -docdir |
--docdir |
--docdi |
--doc |
--do)
849 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
852 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
854 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
857 -enable-* |
--enable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_
$ac_package=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val
=\$
$ac_var
1129 [\\/$
]* | ?
:[\\/]* ) continue;;
1130 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target
=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x
; then
1145 if test "x$build_alias" = x
; then
1146 cross_compiling
=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1157 test "$silent" = yes && exec 6>/dev
/null
1160 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di
=`ls -di .` &&
1162 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1222 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 for ac_var
in $ac_precious_vars; do
1225 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1227 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1301 --x-includes=DIR X include files are
in DIR
1302 --x-libraries=DIR X library files are
in DIR
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1318 specify
install directory
for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing
) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search
for lisp files
1324 specific to this site
1325 --disable-largefile omit support
for large files
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc don
't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP
mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version
5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server
host
1335 --without-sound don
't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1857 cat >>confdefs.h <<\_ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1902 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1903 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1905 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1906 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It
's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2030 srcdir
="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2059 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2062 ac_install_sh
="$ac_aux_dir/install-sh -c"
2064 elif test -f "$ac_dir/install.sh"; then
2066 ac_install_sh
="$ac_aux_dir/install.sh -c"
2068 elif test -f "$ac_dir/shtool"; then
2070 ac_install_sh
="$ac_aux_dir/shtool install -c"
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_build_alias
=$build_alias
2101 test "x$ac_build_alias" = x
&&
2102 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x
&&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS
=$IFS; IFS
='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test "x$host_alias" = x
; then
2141 ac_cv_host
=$ac_cv_build
2143 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS
=$IFS; IFS
='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173 configuration
=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine
='' opsys
='' unported
=no
2201 case "${canonical}" in
2206 case "${canonical}" in
2207 alpha
*-*-freebsd*) machine
=alpha
;;
2208 ia64-
*-freebsd*) machine
=ia64
;;
2209 sparc64-
*-freebsd*) machine
=sparc
;;
2210 powerpc-
*-freebsd*) machine
=macppc
;;
2211 i
[3456]86-*-freebsd*) machine
=intel386
;;
2212 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2219 if test -f /usr
/lib
/crti.o
; then
2221 cat >>confdefs.h
<<\_ACEOF
2227 case "${canonical}" in
2228 alpha
*-*-netbsd*) machine
=alpha
;;
2229 i
[3456]86-*-netbsd*) machine
=intel386
;;
2231 # This is somewhat bogus.
2232 machine
=hp9000s300
;;
2233 mips-
*-netbsd*) machine
=pmax
;;
2234 mipsel-
*-netbsd*) machine
=pmax
;;
2235 mipseb-
*-netbsd*) machine
=pmax
;;
2236 ns32k-
*-netbsd*) machine
=ns32000
;;
2237 powerpc-
*-netbsd*) machine
=macppc
;;
2238 sparc
*-*-netbsd*) machine
=sparc
;;
2239 vax-
*-netbsd*) machine
=vax
;;
2240 arm-
*-netbsd*) machine
=arm
;;
2241 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2242 hppa-
*-netbsd*) machine
=hp800
;;
2243 shle-
*-netbsd*) machine
=sh3el
;;
2250 case "${canonical}" in
2251 alpha
*-*-openbsd*) machine
=alpha
;;
2252 arm-
*-openbsd*) machine
=arm
;;
2253 hppa-
*-openbsd*) machine
=hp9000s300
;;
2254 i386-
*-openbsd*) machine
=intel386
;;
2255 m68k-
*-openbsd*) machine
=hp9000s300
;;
2256 m88k-
*-openbsd*) machine
=aviion
;;
2257 mips64-
*-openbsd*) machine
=mips64
;;
2258 powerpc-
*-openbsd*) machine
=macppc
;;
2259 sh-
*-openbsd*) machine
=sh3el
;;
2260 sparc
*-*-openbsd*) machine
=sparc
;;
2261 vax-
*-openbsd*) machine
=vax
;;
2262 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2269 case "${canonical}" in
2270 i
[3456]86-*-lynxos*) machine
=intel386
;;
2271 powerpc-
*-lynxos*) machine
=powerpc
;;
2276 arm-acorn-riscix1.1
* )
2277 machine
=acorn opsys
=riscix1-1
2279 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine
=acorn opsys
=riscix12
2288 case "${canonical}" in
2289 i
[345]86-*-bsdi*) machine
=intel386
;;
2290 sparc-
*-bsdi*) machine
=sparc
;;
2291 powerpc-
*-bsdi*) machine
=macppc
;;
2293 case "${canonical}" in
2294 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2295 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2296 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2297 *-*-bsdi3* ) opsys
=bsdos3
;;
2298 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2309 machine
=alliant4 opsys
=bsd4-2
2312 machine
=alliant-2800 opsys
=bsd4-3
2315 ## Alpha (DEC) machines.
2317 machine
=alpha opsys
=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2320 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP
=/usr
/bin
/cpp
2326 case "${canonical}" in
2327 alpha
*-dec-osf[5-9]*)
2332 alpha
*-*-linux-gnu* )
2333 machine
=alpha opsys
=gnu-linux
2337 machine
=arm opsys
=gnu-linux
2342 machine
=altos opsys
=usg5-2
2347 machine
=amdahl opsys
=usg5-2-2
2350 ## Apollo, Domain/OS
2352 machine
=apollo opsys
=bsd4-3
2355 ## Apple Darwin / Mac OS X
2357 case "${canonical}" in
2358 i
[3456]86-* ) machine
=intel386
;;
2359 powerpc-
* ) machine
=powermac
;;
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP
="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw
/include
&& test -d /sw
/lib
; then
2367 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2368 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2375 machine
=att3b opsys
=usg5-2-2
2378 ## AT&T 3b1 - The Mighty Unix PC!
2380 machine
=7300 opsys
=usg5-2-2
2385 machine
=ibmrs6000 opsys
=aix3-2
2390 machine
=dpx2 opsys
=usg5-3
2395 machine
=sps7 opsys
=usg5-2
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd
* )
2405 machine
=celerity opsys
=bsd4-2
2409 ## What operating systems does this chip run that Emacs has been
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2418 mips-compaq-nonstopux
* )
2419 machine
=nonstopux opsys
=nonstopux
2423 *-convex-bsd* |
*-convex-convexos* )
2424 machine
=convex opsys
=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP
="cc -E -P"
2430 i
[3456]86-cubix-sysv* )
2431 machine
=intel386 opsys
=usg5-3
2435 cydra
*-cydrome-sysv* )
2436 machine
=cydra5 opsys
=usg5-3
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2446 machine
=aviion opsys
=dgux4
2448 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine
=aviion opsys
=dgux5-4-3
2453 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2454 machine
=aviion opsys
=dgux5-4r2
2457 machine
=aviion opsys
=dgux
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i
[345]86-dg-dguxR4* )
2464 machine
=aviion-intel opsys
=dgux4
2468 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2469 machine
=pmax opsys
=bsd4-2
2471 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2472 machine
=pmax opsys
=bsd4-3
2475 machine
=pmax opsys
=ultrix4-3
2478 machine
=pmax opsys
=osf1
2480 mips-dec-mach_bsd4.3
* )
2481 machine
=pmax opsys
=mach-bsd4-3
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2486 machine
=delta opsys
=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2489 if test -s /etc
/167config
2490 then CC
="gnucc -m68040"
2491 else CC
="gnucc -m68881"
2494 if test -z "`type gcc | grep 'not found'`"
2500 m88k-motorola-sysv4
* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine
=delta88k opsys
=usg5-4-2
2507 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2508 machine
=delta88k opsys
=usg5-3
2513 machine
=dual opsys
=usg5-2
2515 m68
*-dual-uniplus* )
2516 machine
=dual opsys
=unipl5-2
2521 machine
=elxsi opsys
=usg5-2
2526 machine
=ns16000 opsys
=umax
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2532 ## Gould Power Node and NP1
2534 machine
=gould opsys
=bsd4-2
2537 machine
=gould opsys
=bsd4-3
2540 machine
=gould-np1 opsys
=bsd4-3
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2549 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2551 NON_GNU_CPP
="/lib/cpp"
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2555 machine
=nh3000 opsys
=cxux
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix
)
2559 machine
=nh6000 opsys
=powerunix
2560 NON_GNU_CPP
="cc -Xo -E -P"
2562 ## SR2001/SR2201 running HI-UX/MPP
2563 hppa1.1
-hitachi-hiuxmpp* )
2564 machine
=sr2k opsys
=hiuxmpp
2566 hppa1.1
-hitachi-hiuxwe2* )
2567 machine
=sr2k opsys
=hiuxwe2
2570 xps
*-honeywell-sysv* )
2571 machine
=xps100 opsys
=usg5-2
2574 ## HP 9000 series 200 or 300
2576 machine
=hp9000s300 opsys
=bsd4-3
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2584 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2585 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2586 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2587 *) machine
=hp9000s300 opsys
=hpux
;;
2591 ## HP 9000 series 700 and 800, running HP/UX
2593 machine
=hp800 opsys
=hpux
2596 machine
=hp800 opsys
=hpux8
2598 hppa
*-hp-hpux9shr* )
2599 machine
=hp800 opsys
=hpux9shr
2602 machine
=hp800 opsys
=hpux9
2604 hppa
*-hp-hpux10.2
* )
2605 machine
=hp800 opsys
=hpux10-20
2608 machine
=hp800 opsys
=hpux10
2610 hppa
*-hp-hpux1[1-9]* )
2611 machine
=hp800 opsys
=hpux11
2612 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2615 hppa
*-*-linux-gnu* )
2616 machine
=hp800 opsys
=gnu-linux
2619 ## HP 9000 series 700 and 800, running HP/UX
2621 ## Cross-compilation? Nah!
2622 case "`uname -r`" in
2623 ## Someone's system reports A.B8.05 for this.
2624 ## I wonder what other possibilities there are.
2625 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2626 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2627 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2628 *) machine
=hp800 opsys
=hpux10
;;
2632 machine
=hp800 opsys
=nextstep
2637 machine
=orion opsys
=bsd4-2
2639 clipper-orion-bsd
* )
2640 machine
=orion105 opsys
=bsd4-2
2644 i
[3456]86-ibm-aix1.1
* )
2645 machine
=ibmps2-aix opsys
=usg5-2-2
2647 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2648 machine
=ibmps2-aix opsys
=usg5-3
2651 machine
=ibm370aix opsys
=usg5-3
2654 machine
=ibms390 opsys
=gnu-linux
2656 s390x-
*-linux-gnu* )
2657 machine
=ibms390x opsys
=gnu-linux
2659 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2660 machine
=ibmrs6000 opsys
=aix3-1
2662 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2663 machine
=ibmrs6000 opsys
=aix3-2-5
2665 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2666 machine
=ibmrs6000 opsys
=aix4-1
2668 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2669 machine
=ibmrs6000 opsys
=aix4-2
2671 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2672 machine
=ibmrs6000 opsys
=aix4-2
2674 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2675 machine
=ibmrs6000 opsys
=aix4-2
2677 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2678 machine
=ibmrs6000 opsys
=aix4
2680 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2681 machine
=ibmrs6000 opsys
=aix4-1
2683 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2684 machine
=ibmrs6000 opsys
=aix3-2
2687 machine
=ibmrt opsys
=bsd4-3
2690 machine
=ibmrt opsys
=bsd4-2
2693 machine
=ibmrt opsys
=bsd4-3
2696 machine
=ibmrt opsys
=bsd4-2
2699 machine
=ibmrt opsys
=bsd4-3
2702 machine
=ibmrt opsys
=bsd4-3
2705 machine
=ibmrt-aix opsys
=usg5-2-2
2708 ## Integrated Solutions `Optimum V'
2710 machine
=isi-ov opsys
=bsd4-2
2713 machine
=isi-ov opsys
=bsd4-3
2716 ## Intel 386 machines where we do care about the manufacturer
2717 i
[3456]86-intsys-sysv* )
2718 machine
=is386 opsys
=usg5-2-2
2722 i
[3456]86-prime-sysv* )
2723 machine
=i386 opsys
=usg5-3
2726 ## Sequent Symmetry running Dynix
2727 i
[3456]86-sequent-bsd* )
2728 machine
=symmetry opsys
=bsd4-3
2731 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2732 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2733 machine
=sequent-ptx opsys
=ptx4
2734 NON_GNU_CPP
=/lib
/cpp
2737 ## Sequent Symmetry running DYNIX/ptx
2738 ## Use the old cpp rather than the newer ANSI one.
2739 i
[3456]86-sequent-ptx* )
2740 machine
=sequent-ptx opsys
=ptx
2741 NON_GNU_CPP
="/lib/cpp"
2744 ## ncr machine running svr4.3.
2745 i
[3456]86-ncr-sysv4.3
)
2746 machine
=ncr386 opsys
=usg5-4-3
2749 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2750 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2751 i
[3456]86-ncr-sysv* )
2752 machine
=ncr386 opsys
=usg5-4-2
2755 ## Intel Paragon OSF/1
2757 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2762 machine
=i860 opsys
=usg5-4
2763 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2764 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2767 ## Macintosh PowerPC
2768 powerpc
*-*-linux-gnu* )
2769 machine
=macppc opsys
=gnu-linux
2772 ## Masscomp machines
2773 m68
*-masscomp-rtu* )
2774 machine
=masscomp opsys
=rtu
2777 ## Megatest machines
2778 m68
*-megatest-bsd* )
2779 machine
=mega68 opsys
=bsd4-2
2782 ## Workstations sold by MIPS
2783 ## This is not necessarily all workstations using the MIPS processor -
2784 ## Irises are produced by SGI, and DECstations by DEC.
2786 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2787 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2788 ## it gives for choosing between the alternatives seems to be "Use
2789 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2790 ## the BSD world." I'll assume that these are instructions for
2791 ## handling two odd situations, and that every other situation
2792 ## should use mips.h and usg5-2-2, they being listed first.
2795 ## Fall through to the general code at the bottom to decide on the OS.
2797 mips-mips-riscos4
* )
2798 machine
=mips4 opsys
=bsd4-3
2799 NON_GNU_CC
="cc -systype bsd43"
2800 NON_GNU_CPP
="cc -systype bsd43 -E"
2802 mips-mips-riscos5
* )
2803 machine
=mips4 opsys
=riscos5
2804 NON_GNU_CC
="cc -systype bsd43"
2805 NON_GNU_CPP
="cc -systype bsd43 -E"
2808 machine
=mips opsys
=bsd4-3
2811 machine
=mips opsys
=usg5-2-2
2815 m68
*-next-* | m68k-
*-nextstep* )
2816 machine
=m68k opsys
=nextstep
2819 ## The complete machine from National Semiconductor
2821 machine
=ns32000 opsys
=usg5-2
2825 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2826 machine
=tower32 opsys
=usg5-2-2
2828 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2829 machine
=tower32v3 opsys
=usg5-3
2834 machine
=ews4800 opsys
=ux4800
2837 ## Nixdorf Targon 31
2838 m68
*-nixdorf-sysv* )
2839 machine
=targon31 opsys
=usg5-2-2
2844 machine
=nu opsys
=usg5-2
2849 machine
=plexus opsys
=usg5-2
2853 ## I don't really have any idea what sort of processor the Pyramid has,
2854 ## so I'm assuming it is its own architecture.
2855 pyramid-pyramid-bsd
* )
2856 machine
=pyramid opsys
=bsd4-2
2860 ns32k-sequent-bsd4.2
* )
2861 machine
=sequent opsys
=bsd4-2
2863 ns32k-sequent-bsd4.3
* )
2864 machine
=sequent opsys
=bsd4-3
2868 mips-siemens-sysv
* | mips-sni-sysv
*)
2869 machine
=mips-siemens opsys
=usg5-4
2870 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2871 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2874 ## Silicon Graphics machines
2875 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2877 machine
=irist opsys
=iris3-5
2879 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2880 machine
=irist opsys
=iris3-6
2884 machine
=iris4d opsys
=irix3-3
2887 machine
=iris4d opsys
=irix4-0
2890 machine
=iris4d opsys
=irix6-5
2891 # Without defining _LANGUAGE_C, things get masked out in the headers
2892 # so that, for instance, grepping for `free' in stdlib.h fails and
2893 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2894 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2895 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2898 machine
=iris4d opsys
=irix6-0
2899 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2900 # but presumably it does no harm.
2901 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2902 # -32 probably isn't necessary in later v.6s -- anyone know which?
2903 NON_GCC_TEST_OPTIONS
=-32
2905 mips-sgi-irix5.
[01]* )
2906 machine
=iris4d opsys
=irix5-0
2908 mips-sgi-irix5
* | mips-sgi-irix
* )
2909 machine
=iris4d opsys
=irix5-2
2914 machine
=news opsys
=bsd4-2
2917 machine
=news opsys
=bsd4-3
2919 m68
*-sony-newsos3* | m68
*-sony-news3*)
2920 machine
=news opsys
=bsd4-3
2922 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2923 machine
=news-risc opsys
=bsd4-3
2925 mips-sony-newsos6
* )
2926 machine
=news-r6 opsys
=newsos6
2929 machine
=news-risc opsys
=newsos5
2934 machine
=stride opsys
=usg5-2
2938 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2939 machine
=sparc opsys
=gnu-linux
2942 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2943 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2944 | rs6000-
*-solaris2*)
2945 case "${canonical}" in
2946 m68
*-sunos1* ) machine
=sun1
;;
2947 m68
*-sunos2* ) machine
=sun2
;;
2948 m68
* ) machine
=sun3
;;
2949 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2950 i
[3456]86-*-* ) machine
=intel386
;;
2951 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2952 powerpcle
* ) machine
=powerpcle
;;
2953 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2954 sparc
* ) machine
=sparc
;;
2957 case "${canonical}" in
2958 ## The Sun386 didn't get past 4.0.
2959 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2960 *-sunos4.0
* ) opsys
=sunos4-0
;;
2961 *-sunos4.1.
[3-9]*noshare
)
2962 ## This name is sunos413 instead of sunos4-1-3
2963 ## to avoid a file name conflict on MSDOS.
2965 NON_GNU_CPP
=/usr
/lib
/cpp
2966 NON_GCC_TEST_OPTIONS
=-Bstatic
2967 GCC_TEST_OPTIONS
=-static
2969 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2971 NON_GNU_CPP
=/usr
/lib
/cpp
2973 *-sunos4* |
*-sunos )
2975 NON_GCC_TEST_OPTIONS
=-Bstatic
2976 GCC_TEST_OPTIONS
=-static
2978 *-sunos5.3
* |
*-solaris2.3
* )
2980 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2982 *-sunos5.4
* |
*-solaris2.4
* )
2984 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2987 *-sunos5.5
* |
*-solaris2.5
* )
2989 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2992 *-sunos5.6
* |
*-solaris2.6
* )
2994 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2997 *-sunos5* |
*-solaris* )
2999 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3003 ## Watch out for a compiler that we know will not work.
3004 case "${canonical}" in
3005 *-solaris* |
*-sunos5* )
3006 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3007 ## /usr/ucb/cc doesn't work;
3008 ## we should find some other compiler that does work.
3016 machine
=sparc opsys
=nextstep
3020 m68
*-tadpole-sysv* )
3021 machine
=tad68k opsys
=usg5-3
3025 tahoe-tahoe-bsd4.2
* )
3026 machine
=tahoe opsys
=bsd4-2
3028 tahoe-tahoe-bsd4.3
* )
3029 machine
=tahoe opsys
=bsd4-3
3032 ## Tandem Integrity S2
3034 machine
=tandem-s2 opsys
=usg5-3
3038 m88k-tektronix-sysv3
* )
3039 machine
=tekxd88 opsys
=usg5-3
3042 ## Tektronix 16000 box (6130?)
3043 ns16k-tektronix-bsd
* )
3044 machine
=ns16000 opsys
=bsd4-2
3047 ## src/m/tek4300.h hints that this is a m68k machine.
3048 m68
*-tektronix-bsd* )
3049 machine
=tek4300 opsys
=bsd4-3
3053 ## We seem to have lost the machine-description file titan.h!
3055 machine
=titan opsys
=usg5-3
3058 ## Ustation E30 (SS5E)
3059 m68
*-unisys-uniplus* )
3060 machine
=ustation opsystem
=unipl5-2
3066 case "${canonical}" in
3067 *-bsd4.1
* ) opsys
=bsd4-1
;;
3068 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3069 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3070 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3071 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3072 *-vms* ) opsys
=vms
;;
3078 ns16k-whitechapel-
* )
3080 ## We don't know what sort of OS runs on these; we'll let the
3081 ## operating system guessing code below try.
3086 machine
=wicat opsys
=usg5-2
3091 machine
=ia64 opsys
=gnu-linux
3094 ## Intel 386 machines where we don't care about the manufacturer
3097 case "${canonical}" in
3098 *-cygwin ) opsys
=cygwin
;;
3099 *-darwin* ) opsys
=darwin
3100 CPP
="${CC-cc} -E -no-cpp-precomp"
3102 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3103 *-isc2.2
* ) opsys
=isc2-2
;;
3104 *-isc4.0
* ) opsys
=isc4-0
;;
3105 *-isc4.
* ) opsys
=isc4-1
3106 GCC_TEST_OPTIONS
=-posix
3107 NON_GCC_TEST_OPTIONS
=-Xp
3109 *-isc* ) opsys
=isc3-0
;;
3110 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3111 *-esix* ) opsys
=esix
;;
3112 *-xenix* ) opsys
=xenix
;;
3113 *-linux-gnu* ) opsys
=gnu-linux
;;
3114 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3115 *-sco3.2v5
* ) opsys
=sco5
3116 NON_GNU_CPP
=/lib
/cpp
3117 # Prevent -belf from being passed to $CPP.
3118 # /lib/cpp does not accept it.
3119 OVERRIDE_CPPFLAGS
=" "
3121 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3122 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3123 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3124 *-386bsd* ) opsys
=386bsd
;;
3125 *-nextstep* ) opsys
=nextstep
;;
3126 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3130 ## m68k Linux-based GNU system
3132 machine
=m68k opsys
=gnu-linux
3135 ## Mips Linux-based GNU system
3136 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3137 machine
=mips opsys
=gnu-linux
3141 sparc-fujitsu-sysv4
* )
3142 machine
=sparc opsys
=uxpds
3143 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3148 f301-fujitsu-uxpv4.1
)
3149 machine
=f301 opsys
=uxpv
3152 ## AMD x86-64 Linux-based GNU system
3153 x86_64-
*-linux-gnu* )
3154 machine
=amdx86-64 opsys
=gnu-linux
3157 ## Tensilica Xtensa Linux-based GNU system
3158 xtensa-
*-linux-gnu* )
3159 machine
=xtensa opsys
=gnu-linux
3167 ### If the code above didn't choose an operating system, just choose
3168 ### an operating system based on the configuration name. You really
3169 ### only want to use this when you have no idea what the right
3170 ### operating system is; if you know what operating systems a machine
3171 ### runs, it's cleaner to make it explicit in the case statement
3173 if test x
"${opsys}" = x
; then
3174 case "${canonical}" in
3175 *-gnu* ) opsys
=gnu
;;
3176 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3177 *-bsd4.2
) opsys
=bsd4-2
;;
3178 *-bsd4.3
) opsys
=bsd4-3
;;
3179 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3180 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3181 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3182 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3183 *-sysv4.2uw
* ) opsys
=unixware
;;
3184 *-sysv5uw* ) opsys
=unixware
;;
3185 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3186 *-sysv4.1
* |
*-sysvr4.1
* )
3187 NON_GNU_CPP
=/usr
/lib
/cpp
3189 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3190 if [ x
$NON_GNU_CPP = x
]; then
3191 if [ -f /usr
/ccs
/lib
/cpp
]; then
3192 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3194 NON_GNU_CPP
=/lib
/cpp
3198 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3207 if test $unported = yes; then
3208 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3209 Check \`etc/MACHINES' for recognized configuration names." >&5
3210 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3211 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3212 { (exit 1); exit 1; }; }
3215 machfile
="m/${machine}.h"
3216 opsysfile
="s/${opsys}.h"
3219 #### Choose a compiler.
3220 test -n "$CC" && cc_specified
=yes
3222 # Save the value of CFLAGS that the user specified.
3223 SPECIFIED_CFLAGS
="$CFLAGS"
3226 "yes" ) CC
="gcc" GCC
=yes ;;
3227 "no" ) : ${CC=cc} ;;
3231 ac_cpp
='$CPP $CPPFLAGS'
3232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { echo "$as_me:$LINENO: result: $CC" >&5
3266 echo "${ECHO_T}$CC" >&6; }
3268 { echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6; }
3274 if test -z "$ac_cv_prog_CC"; then
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc
; ac_word
=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_ac_ct_CC
="gcc"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3306 echo "${ECHO_T}$ac_ct_CC" >&6; }
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3312 if test "x$ac_ct_CC" = x
; then
3315 case $cross_compiling:$ac_tool_warned in
3317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3318 whose name does not start with the host triplet. If you think this
3319 configuration is useful to you, please write to autoconf@gnu.org." >&5
3320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3321 whose name does not start with the host triplet. If you think this
3322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3323 ac_tool_warned
=yes ;;
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_CC+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC
="$CC" # Let the user override the test.
3343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir
=.
3348 for ac_exec_ext
in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { echo "$as_me:$LINENO: result: $CC" >&5
3363 echo "${ECHO_T}$CC" >&6; }
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3372 if test -z "$CC"; then
3373 # Extract the first word of "cc", so it can be a program name with args.
3374 set dummy cc
; ac_word
=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC
="$CC" # Let the user override the test.
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_exec_ext
in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392 ac_prog_rejected
=yes
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test $ac_prog_rejected = yes; then
3404 # We found a bogon in the path, so make sure we never use it.
3405 set dummy
$ac_cv_prog_CC
3407 if test $# != 0; then
3408 # We chose a different compiler from the bogus one.
3409 # However, it has the same basename, so the bogon will be chosen
3410 # first if we set CC to just the basename; use the full file name.
3412 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3418 if test -n "$CC"; then
3419 { echo "$as_me:$LINENO: result: $CC" >&5
3420 echo "${ECHO_T}$CC" >&6; }
3422 { echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6; }
3428 if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 for ac_prog
in cl.exe
3432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC
="$CC" # Let the user override the test.
3442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir
=.
3447 for ac_exec_ext
in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test -n "$CC"; then
3461 { echo "$as_me:$LINENO: result: $CC" >&5
3462 echo "${ECHO_T}$CC" >&6; }
3464 { echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6; }
3469 test -n "$CC" && break
3472 if test -z "$CC"; then
3474 for ac_prog
in cl.exe
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy
$ac_prog; ac_word
=$2
3478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 if test -n "$ac_ct_CC"; then
3484 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir
=.
3491 for ac_exec_ext
in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_ac_ct_CC
="$ac_prog"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3504 if test -n "$ac_ct_CC"; then
3505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3506 echo "${ECHO_T}$ac_ct_CC" >&6; }
3508 { echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6; }
3513 test -n "$ac_ct_CC" && break
3516 if test "x$ac_ct_CC" = x
; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3522 whose name does not start with the host triplet. If you think this
3523 configuration is useful to you, please write to autoconf@gnu.org." >&5
3524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3525 whose name does not start with the host triplet. If you think this
3526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3527 ac_tool_warned
=yes ;;
3536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details." >&5
3538 echo "$as_me: error: no acceptable C compiler found in \$PATH
3539 See \`config.log' for more details." >&2;}
3540 { (exit 1); exit 1; }; }
3542 # Provide some information about the compiler.
3543 echo "$as_me:$LINENO: checking for C compiler version" >&5
3544 ac_compiler
=`set X $ac_compile; echo $2`
3545 { (ac_try
="$ac_compiler --version >&5"
3547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compiler --version >&5") 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }
3555 { (ac_try="$ac_compiler -v >&5"
3557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3558 *) ac_try_echo
=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compiler -v >&5") 2>&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }
3565 { (ac_try
="$ac_compiler -V >&5"
3567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compiler -V >&5") 2>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3596 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3597 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3598 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3600 # List of possible output files, starting from the most likely.
3601 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3602 # only as a last resort. b.out is created by i960 compilers.
3603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3605 # The IRIX 6 linker writes into existing files which may not be
3606 # executable, retaining their permissions. Remove them first so a
3607 # subsequent execution test works.
3609 for ac_file in $ac_files
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3618 if { (ac_try="$ac_link_default"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_link_default") 2>&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; then
3628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3631 # so that the user can short-circuit this test for compilers unknown to
3633 for ac_file
in $ac_files ''
3635 test -f "$ac_file" ||
continue
3637 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3640 # We found the default executable, but exeext='' is most
3644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3646 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648 # We set ac_cv_exeext here because the later test for it is not
3649 # safe: cross compilers may not add the suffix if given an `-o'
3650 # argument, so we may need to know it at that point already.
3651 # Even if this section looks crufty: it has the advantage of
3658 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3664 { echo "$as_me:$LINENO: result: $ac_file" >&5
3665 echo "${ECHO_T}$ac_file" >&6; }
3666 if test -z "$ac_file"; then
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.
$ac_ext >&5
3670 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3671 See \`config.log' for more details." >&5
3672 echo "$as_me: error: C compiler cannot create executables
3673 See \`config.log' for more details." >&2;}
3674 { (exit 77); exit 77; }; }
3677 ac_exeext
=$ac_cv_exeext
3679 # Check that the compiler produces executables we can run. If not, either
3680 # the compiler is broken, or we cross compile.
3681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3684 # If not cross compiling, check that we can run a simple program.
3685 if test "$cross_compiling" != yes; then
3686 if { ac_try
='./$ac_file'
3687 { (case "(($ac_try" in
3688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_try") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3698 if test "$cross_compiling" = maybe; then
3701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3702 If you meant to cross compile, use \`--host'.
3703 See \`config.log' for more details.
" >&5
3704 echo "$as_me: error
: cannot run C compiled programs.
3705 If you meant to cross compile
, use \
`--host'.
3706 See \`config.log
' for more details." >&2;}
3707 { (exit 1); exit 1; }; }
3711 { echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6; }
3714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3715 ac_clean_files=$ac_clean_files_save
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3719 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3720 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3721 echo "${ECHO_T}$cross_compiling" >&6; }
3723 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3724 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3725 if { (ac_try="$ac_link"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_link") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3739 for ac_file
in conftest.exe conftest conftest.
*; do
3740 test -f "$ac_file" ||
continue
3742 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3743 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; }
3756 rm -f conftest
$ac_cv_exeext
3757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3760 rm -f conftest.
$ac_ext
3761 EXEEXT
=$ac_cv_exeext
3763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3765 if test "${ac_cv_objext+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 cat >conftest.
$ac_ext <<_ACEOF
3771 cat confdefs.h
>>conftest.
$ac_ext
3772 cat >>conftest.
$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3783 rm -f conftest.o conftest.obj
3784 if { (ac_try
="$ac_compile"
3786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; then
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3807 See \`config.log
' for more details." >&5
3808 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3809 See \`config.log' for more details.
" >&2;}
3810 { (exit 1); exit 1; }; }
3813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3815 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3816 echo "${ECHO_T}$ac_cv_objext" >&6; }
3817 OBJEXT=$ac_cv_objext
3819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3820 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3822 echo $ECHO_N "(cached
) $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3861 echo "$as_me: failed program was
:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3873 GCC=`test $ac_compiler_gnu = yes && echo yes`
3874 ac_test_CFLAGS=${CFLAGS+set}
3875 ac_save_CFLAGS=$CFLAGS
3876 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3877 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3878 if test "${ac_cv_prog_cc_g+set}" = set; then
3879 echo $ECHO_N "(cached
) $ECHO_C" >&6
3881 ac_save_c_werror_flag=$ac_c_werror_flag
3882 ac_c_werror_flag=yes
3885 cat >conftest.$ac_ext <<_ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_compile") 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3913 (exit $ac_status); } && {
3914 test -z "$ac_c_werror_flag" ||
3915 test ! -s conftest.err
3916 } && test -s conftest.$ac_objext; then
3919 echo "$as_me: failed program was
:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3947 grep -v '^ *+' conftest.er1 >conftest.err
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3957 echo "$as_me: failed program was
:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3960 ac_c_werror_flag=$ac_save_c_werror_flag
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest.$ac_objext; then
3996 echo "$as_me: failed program was
:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 ac_c_werror_flag=$ac_save_c_werror_flag
4011 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4013 if test "$ac_test_CFLAGS" = set; then
4014 CFLAGS=$ac_save_CFLAGS
4015 elif test $ac_cv_prog_cc_g = yes; then
4016 if test "$GCC" = yes; then
4022 if test "$GCC" = yes; then
4028 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4029 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4030 if test "${ac_cv_prog_cc_c89+set}" = set; then
4031 echo $ECHO_N "(cached
) $ECHO_C" >&6
4033 ac_cv_prog_cc_c89=no
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4043 #include <sys/types.h>
4044 #include <sys/stat.h>
4045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4046 struct buf { int x; };
4047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4048 static char *e (p, i)
4054 static char *f (char * (*g) (char **, int), char **p, ...)
4059 s = g (p, va_arg (v,int));
4064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4065 function prototypes and stuff, but not '\xHH' hex character constants.
4066 These don't provoke an error unfortunately, instead are silently treated
4067 as 'x'. The following induces an error, until -std is added to get
4068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4069 array size at least. It's necessary to write '\x00'==0 to get something
4070 that's true only with -std. */
4071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4074 inside strings and character constants. */
4076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4078 int test (int i, double x);
4079 struct s1 {int (*f) (int a);};
4080 struct s2 {int (*f) (double a);};
4081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4095 CC="$ac_save_CC $ac_arg"
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_compile") 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4109 (exit $ac_status); } && {
4110 test -z "$ac_c_werror_flag" ||
4111 test ! -s conftest.err
4112 } && test -s conftest.$ac_objext; then
4113 ac_cv_prog_cc_c89=$ac_arg
4115 echo "$as_me: failed program was
:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4121 rm -f core conftest.err conftest.$ac_objext
4122 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4124 rm -f conftest.$ac_ext
4129 case "x
$ac_cv_prog_cc_c89" in
4131 { echo "$as_me:$LINENO: result
: none needed
" >&5
4132 echo "${ECHO_T}none needed
" >&6; } ;;
4134 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4135 echo "${ECHO_T}unsupported
" >&6; } ;;
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 # On Suns, sometimes $CPP names a directory.
4151 if test -n "$CPP" && test -d "$CPP"; then
4155 #### Some systems specify a CPP to use unless we are using GCC.
4156 #### Now that we know whether we are using GCC, we can decide whether
4157 #### to use that one.
4158 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4163 #### Some systems specify a CC to use unless we are using GCC.
4164 #### Now that we know whether we are using GCC, we can decide whether
4165 #### to use that one.
4166 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4167 test x$cc_specified != xyes
4172 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4174 CC="$CC $GCC_TEST_OPTIONS"
4177 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4179 CC="$CC $NON_GCC_TEST_OPTIONS"
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4189 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4190 # On Suns, sometimes $CPP names a directory.
4191 if test -n "$CPP" && test -d "$CPP"; then
4194 if test -z "$CPP"; then
4195 if test "${ac_cv_prog_CPP+set}" = set; then
4196 echo $ECHO_N "(cached
) $ECHO_C" >&6
4198 # Double quotes because CPP needs to be expanded
4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4202 for ac_c_preproc_warn_flag in '' yes
4204 # Use a header file that comes with gcc, so configuring glibc
4205 # with a fresh cross-compiler works.
4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207 # <limits.h> exists even on freestanding compilers.
4208 # On the NeXT, cc -E runs the code through the compiler's parser,
4209 # not just through cpp. "Syntax error
" is here to catch this case.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4217 # include <limits.h>
4219 # include <assert.h>
4223 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4235 (exit $ac_status); } >/dev/null && {
4236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4241 echo "$as_me: failed program was
:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 # Broken: fails on valid input.
4248 rm -f conftest.err conftest.$ac_ext
4250 # OK, works on sane cases. Now check whether nonexistent headers
4251 # can be detected and how.
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <ac_nonexistent.h>
4260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4276 # Broken: success on invalid input.
4279 echo "$as_me: failed program was
:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 # Passes both tests.
4287 rm -f conftest.err conftest.$ac_ext
4290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4291 rm -f conftest.err conftest.$ac_ext
4292 if $ac_preproc_ok; then
4304 { echo "$as_me:$LINENO: result
: $CPP" >&5
4305 echo "${ECHO_T}$CPP" >&6; }
4307 for ac_c_preproc_warn_flag in '' yes
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error
" is here to catch this case.
4315 cat >conftest.$ac_ext <<_ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4322 # include <limits.h>
4324 # include <assert.h>
4328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4340 (exit $ac_status); } >/dev/null && {
4341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4346 echo "$as_me: failed program was
:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 # Broken: fails on valid input.
4353 rm -f conftest.err conftest.$ac_ext
4355 # OK, works on sane cases. Now check whether nonexistent headers
4356 # can be detected and how.
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ac_nonexistent.h>
4365 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4381 # Broken: success on invalid input.
4384 echo "$as_me: failed program was
:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4387 # Passes both tests.
4392 rm -f conftest.err conftest.$ac_ext
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then
4400 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4401 See \
`config.log' for more details." >&5
4402 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4403 See \`config.log
' for more details." >&2;}
4404 { (exit 1); exit 1; }; }
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4410 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4415 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4416 if test "${ac_cv_path_GREP+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 # Extract the first word of "grep ggrep" to use in msg output
4420 if test -z "$GREP"; then
4421 set dummy grep ggrep; ac_prog_name=$2
4422 if test "${ac_cv_path_GREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 ac_path_GREP_found=false
4426 # Loop through the user's path and
test for each of PROGNAME-LIST
4427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4428 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4431 test -z "$as_dir" && as_dir
=.
4432 for ac_prog
in grep ggrep
; do
4433 for ac_exec_ext
in '' $ac_executable_extensions; do
4434 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4435 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4436 # Check for GNU ac_path_GREP and select it if it is found.
4437 # Check for GNU $ac_path_GREP
4438 case `"$ac_path_GREP" --version 2>&1` in
4440 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4443 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4446 cat "conftest.in" "conftest.in" >"conftest.tmp"
4447 mv "conftest.tmp" "conftest.in"
4448 cp "conftest.in" "conftest.nl"
4449 echo 'GREP' >> "conftest.nl"
4450 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4451 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4452 ac_count
=`expr $ac_count + 1`
4453 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4454 # Best one so far, save it but keep looking for a better one
4455 ac_cv_path_GREP
="$ac_path_GREP"
4456 ac_path_GREP_max
=$ac_count
4458 # 10*(2^10) chars as input seems more than enough
4459 test $ac_count -gt 10 && break
4461 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4465 $ac_path_GREP_found && break 3
4475 GREP
="$ac_cv_path_GREP"
4476 if test -z "$GREP"; then
4477 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4478 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4479 { (exit 1); exit 1; }; }
4483 ac_cv_path_GREP
=$GREP
4488 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4489 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4490 GREP
="$ac_cv_path_GREP"
4493 { echo "$as_me:$LINENO: checking for egrep" >&5
4494 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_EGREP+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4499 then ac_cv_path_EGREP
="$GREP -E"
4501 # Extract the first word of "egrep" to use in msg output
4502 if test -z "$EGREP"; then
4503 set dummy
egrep; ac_prog_name
=$2
4504 if test "${ac_cv_path_EGREP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 ac_path_EGREP_found
=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4513 test -z "$as_dir" && as_dir
=.
4514 for ac_prog
in egrep; do
4515 for ac_exec_ext
in '' $ac_executable_extensions; do
4516 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4522 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4525 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4533 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4534 ac_count
=`expr $ac_count + 1`
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP
="$ac_path_EGREP"
4538 ac_path_EGREP_max
=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4543 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4547 $ac_path_EGREP_found && break 3
4557 EGREP
="$ac_cv_path_EGREP"
4558 if test -z "$EGREP"; then
4559 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4560 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4561 { (exit 1); exit 1; }; }
4565 ac_cv_path_EGREP
=$EGREP
4571 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4572 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4573 EGREP
="$ac_cv_path_EGREP"
4577 { echo "$as_me:$LINENO: checking for AIX" >&5
4578 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4579 cat >conftest.
$ac_ext <<_ACEOF
4582 cat confdefs.h
>>conftest.
$ac_ext
4583 cat >>conftest.
$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 $EGREP "yes" >/dev
/null
2>&1; then
4592 { echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6; }
4594 cat >>confdefs.h
<<\_ACEOF
4595 #define _ALL_SOURCE 1
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4606 cat >>confdefs.h
<<\_ACEOF
4607 #define _GNU_SOURCE 1
4612 ### Use -Wno-pointer-sign if the compiler supports it
4613 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4614 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4615 SAVE_CFLAGS
="$CFLAGS"
4616 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4617 cat >conftest.
$ac_ext <<_ACEOF
4620 cat confdefs.h
>>conftest.
$ac_ext
4621 cat >>conftest.
$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4632 rm -f conftest.
$ac_objext
4633 if { (ac_try
="$ac_compile"
4635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.$ac_objext; then
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 if test $has_option = yes; then
4659 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4661 { echo "$as_me:$LINENO: result: $has_option" >&5
4662 echo "${ECHO_T}$has_option" >&6; }
4663 CFLAGS="$SAVE_CFLAGS"
4667 #### Some other nice autoconf tests.
4669 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4670 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4672 if test "$LN_S" = "ln -s"; then
4673 { echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6; }
4676 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4677 echo "${ECHO_T}no, using $LN_S" >&6; }
4681 ac_cpp='$CPP $CPPFLAGS'
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4686 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4687 # On Suns, sometimes $CPP names a directory.
4688 if test -n "$CPP" && test -d "$CPP"; then
4691 if test -z "$CPP"; then
4692 if test "${ac_cv_prog_CPP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 # Double quotes because CPP needs to be expanded
4696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4699 for ac_c_preproc_warn_flag in '' yes
4701 # Use a header file that comes with gcc, so configuring glibc
4702 # with a fresh cross-compiler works.
4703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704 # <limits.h> exists even on freestanding compilers.
4705 # On the NeXT, cc -E runs the code through the compiler's parser,
4706 # not just through cpp. "Syntax error" is here to catch this case.
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4714 # include <limits.h>
4716 # include <assert.h>
4720 if { (ac_try="$ac_cpp conftest.$ac_ext"
4722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4723 *) ac_try_echo
=$ac_try;;
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1
>conftest.err
4730 cat conftest.err
>&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev
/null
&& {
4733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.
$ac_ext >&5
4741 # Broken: fails on valid input.
4745 rm -f conftest.err conftest.
$ac_ext
4747 # OK, works on sane cases. Now check whether nonexistent headers
4748 # can be detected and how.
4749 cat >conftest.
$ac_ext <<_ACEOF
4752 cat confdefs.h
>>conftest.
$ac_ext
4753 cat >>conftest.
$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 #include <ac_nonexistent.h>
4757 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4773 # Broken: success on invalid input.
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 # Passes both tests.
4784 rm -f conftest.err conftest.$ac_ext
4787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4788 rm -f conftest.err conftest.
$ac_ext
4789 if $ac_preproc_ok; then
4801 { echo "$as_me:$LINENO: result: $CPP" >&5
4802 echo "${ECHO_T}$CPP" >&6; }
4804 for ac_c_preproc_warn_flag
in '' yes
4806 # Use a header file that comes with gcc, so configuring glibc
4807 # with a fresh cross-compiler works.
4808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4809 # <limits.h> exists even on freestanding compilers.
4810 # On the NeXT, cc -E runs the code through the compiler's parser,
4811 # not just through cpp. "Syntax error" is here to catch this case.
4812 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 # include <limits.h>
4821 # include <assert.h>
4825 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4833 grep -v '^ *+' conftest.er1 >conftest.err
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null && {
4838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 # Broken: fails on valid input.
4850 rm -f conftest.err conftest.$ac_ext
4852 # OK, works on sane cases. Now check whether nonexistent headers
4853 # can be detected and how.
4854 cat >conftest.$ac_ext <<_ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <ac_nonexistent.h>
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4865 *) ac_try_echo
=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1
>conftest.err
4872 cat conftest.err
>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev
/null
&& {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4878 # Broken: success on invalid input.
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.
$ac_ext >&5
4884 # Passes both tests.
4889 rm -f conftest.err conftest.
$ac_ext
4892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893 rm -f conftest.err conftest.
$ac_ext
4894 if $ac_preproc_ok; then
4897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4898 See \`config.log' for more details." >&5
4899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4900 See \`config.log' for more details." >&2;}
4901 { (exit 1); exit 1; }; }
4905 ac_cpp
='$CPP $CPPFLAGS'
4906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4910 # Find a good install program. We prefer a C program (faster),
4911 # so one script is as good as another. But avoid the broken or
4912 # incompatible versions:
4913 # SysV /etc/install, /usr/sbin/install
4914 # SunOS /usr/etc/install
4915 # IRIX /sbin/install
4917 # AmigaOS /C/install, which installs bootblocks on floppy discs
4918 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4919 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4920 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4921 # OS/2's system install, which has a completely different semantic
4922 # ./install, which can be erroneously created by make from ./install.sh.
4923 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4924 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4925 if test -z "$INSTALL"; then
4926 if test "${ac_cv_path_install+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir
=.
4934 # Account for people who put trailing slashes in PATH elements.
4936 .
/ | .
// |
/cC
/* | \
4937 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4938 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4941 # OSF1 and SCO ODT 3.0 have their own names for install.
4942 # Don't use installbsd from OSF since it installs stuff as root
4944 for ac_prog
in ginstall scoinst
install; do
4945 for ac_exec_ext
in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4947 if test $ac_prog = install &&
4948 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4949 # AIX install. It has an incompatible calling convention.
4951 elif test $ac_prog = install &&
4952 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4953 # program-specific install script used by HP pwplus--don't use.
4956 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4969 if test "${ac_cv_path_install+set}" = set; then
4970 INSTALL
=$ac_cv_path_install
4972 # As a last resort, use the slow shell script. Don't cache a
4973 # value for INSTALL within a source directory, because that will
4974 # break other packages using the cache if that directory is
4975 # removed, or if the value is a relative name.
4976 INSTALL
=$ac_install_sh
4979 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4980 echo "${ECHO_T}$INSTALL" >&6; }
4982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4983 # It thinks the first close brace ends the variable substitution.
4984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4988 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4990 if test "x$RANLIB" = x
; then
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4993 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_RANLIB+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 if test -n "$RANLIB"; then
5000 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir
=.
5007 for ac_exec_ext
in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 RANLIB
=$ac_cv_prog_RANLIB
5020 if test -n "$RANLIB"; then
5021 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5022 echo "${ECHO_T}$RANLIB" >&6; }
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5030 if test -z "$ac_cv_prog_RANLIB"; then
5031 ac_ct_RANLIB
=$RANLIB
5032 # Extract the first word of "ranlib", so it can be a program name with args.
5033 set dummy ranlib
; ac_word
=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test -n "$ac_ct_RANLIB"; then
5040 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir
=.
5047 for ac_exec_ext
in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5060 if test -n "$ac_ct_RANLIB"; then
5061 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5062 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5068 if test "x$ac_ct_RANLIB" = x
; then
5071 case $cross_compiling:$ac_tool_warned in
5073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5074 whose name does not start with the host triplet. If you think this
5075 configuration is useful to you, please write to autoconf@gnu.org." >&5
5076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5077 whose name does not start with the host triplet. If you think this
5078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5079 ac_tool_warned
=yes ;;
5081 RANLIB
=$ac_ct_RANLIB
5084 RANLIB
="$ac_cv_prog_RANLIB"
5088 # Extract the first word of "install-info", so it can be a program name with args.
5089 set dummy install-info
; ac_word
=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 case $INSTALL_INFO in
5097 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir
=.
5105 for ac_exec_ext
in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5119 if test -n "$INSTALL_INFO"; then
5120 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5121 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5128 # Extract the first word of "install-info", so it can be a program name with args.
5129 set dummy install-info
; ac_word
=$2
5130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 case $INSTALL_INFO in
5137 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 for as_dir
in /usr
/sbin
5144 test -z "$as_dir" && as_dir
=.
5145 for ac_exec_ext
in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5159 if test -n "$INSTALL_INFO"; then
5160 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5161 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5168 # Extract the first word of "install-info", so it can be a program name with args.
5169 set dummy install-info
; ac_word
=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 case $INSTALL_INFO in
5177 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_exec_ext
in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5199 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5200 if test -n "$INSTALL_INFO"; then
5201 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5202 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5204 { echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6; }
5209 # Extract the first word of "gzip", so it can be a program name with args.
5210 set dummy
gzip; ac_word
=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir
=.
5226 for ac_exec_ext
in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5240 if test -n "$GZIP_PROG"; then
5241 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5242 echo "${ECHO_T}$GZIP_PROG" >&6; }
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5251 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5253 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5256 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5258 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5262 late_LDFLAGS
=$LDFLAGS
5263 if test "$GCC" = yes; then
5264 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5266 LDFLAGS
="$LDFLAGS -znocombreloc"
5269 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5270 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5271 cat >conftest.
$ac_ext <<_ACEOF
5274 rm -f conftest.
$ac_objext conftest
$ac_exeext
5275 if { (ac_try
="$ac_link"
5277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest$ac_exeext &&
5291 $as_test_x conftest$ac_exeext; then
5292 { echo "$as_me:$LINENO: result: yes" >&5
5293 echo "${ECHO_T}yes" >&6; }
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 LDFLAGS=$late_LDFLAGS
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5304 conftest$ac_exeext conftest.$ac_ext
5306 #### Extract some information from the operating system and machine files.
5308 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5309 - which libraries the lib-src programs will want, and
5310 - whether the GNU malloc routines are usable..." >&5
5311 echo "$as_me: checking the machine- and system-dependent files to find out
5312 - which libraries the lib-src programs will want, and
5313 - whether the GNU malloc routines are usable..." >&6;}
5315 ### First figure out CFLAGS (which we use for running the compiler here)
5316 ### and REAL_CFLAGS (which we use for real compilation).
5317 ### The two are the same except on a few systems, where they are made
5318 ### different to work around various lossages. For example,
5319 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5320 ### as implying static linking.
5322 ### If the CFLAGS env var is specified, we use that value
5323 ### instead of the default.
5325 ### It's not important that this name contain the PID; you can't run
5326 ### two configures in the same directory and have anything work
5328 tempcname="conftest.c"
5331 #include "'${srcdir}'/src/'${opsysfile}'"
5332 #include "'${srcdir}'/src/'${machfile}'"
5333 #ifndef LIBS_MACHINE
5334 #define LIBS_MACHINE
5339 #ifndef C_SWITCH_SYSTEM
5340 #define C_SWITCH_SYSTEM
5342 #ifndef C_SWITCH_MACHINE
5343 #define C_SWITCH_MACHINE
5345 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5346 configure___ c_switch_system=C_SWITCH_SYSTEM
5347 configure___ c_switch_machine=C_SWITCH_MACHINE
5350 #define LIB_X11_LIB -lX11
5353 #ifndef LIBX11_MACHINE
5354 #define LIBX11_MACHINE
5357 #ifndef LIBX11_SYSTEM
5358 #define LIBX11_SYSTEM
5360 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5363 configure___ unexec=UNEXEC
5365 configure___ unexec=unexec.o
5368 #ifdef SYSTEM_MALLOC
5369 configure___ system_malloc=yes
5371 configure___ system_malloc=no
5374 #ifdef USE_MMAP_FOR_BUFFERS
5375 configure___ use_mmap_for_buffers=yes
5377 configure___ use_mmap_for_buffers=no
5380 #ifndef C_DEBUG_SWITCH
5381 #define C_DEBUG_SWITCH -g
5384 #ifndef C_OPTIMIZE_SWITCH
5386 #define C_OPTIMIZE_SWITCH -O2
5388 #define C_OPTIMIZE_SWITCH -O
5392 #ifndef C_WARNINGS_SWITCH
5393 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5396 #ifndef LD_SWITCH_MACHINE
5397 #define LD_SWITCH_MACHINE
5400 #ifndef LD_SWITCH_SYSTEM
5401 #define LD_SWITCH_SYSTEM
5404 #ifndef LD_SWITCH_X_SITE_AUX
5405 #define LD_SWITCH_X_SITE_AUX
5408 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5409 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5411 #ifdef THIS_IS_CONFIGURE
5413 /* Get the CFLAGS for tests in configure. */
5415 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5417 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5420 #else /* not THIS_IS_CONFIGURE */
5422 /* Get the CFLAGS for real compilation. */
5424 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5426 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5429 #endif /* not THIS_IS_CONFIGURE */
5432 # The value of CPP is a quoted variable reference, so we need to do this
5433 # to get its actual value...
5434 CPP=`eval "echo $CPP"`
5435 eval `${CPP} -Isrc ${tempcname} \
5436 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5437 if test "x$SPECIFIED_CFLAGS" = x; then
5438 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5439 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5441 REAL_CFLAGS="$CFLAGS"
5445 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5447 ### Make sure subsequent tests use flags consistent with the build flags.
5449 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5450 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5452 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5457 # Check whether --enable-largefile was given.
5458 if test "${enable_largefile+set}" = set; then
5459 enableval=$enable_largefile;
5462 if test "$enable_largefile" != no; then
5464 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5465 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5466 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 ac_cv_sys_largefile_CC=no
5470 if test "$GCC" != yes; then
5473 # IRIX 6.2 and later do not support large files by default,
5474 # so use the C compiler's -n32 option if that helps.
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 #include <sys/types.h>
5482 /* Check that off_t can represent 2**63 - 1 correctly.
5483 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5484 since some C++ compilers masquerading as C compilers
5485 incorrectly reject 9223372036854775807. */
5486 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5487 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5488 && LARGE_OFF_T % 2147483647 == 1)
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5502 *) ac_try_echo
=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1
>conftest.err
5509 cat conftest.err
>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.
$ac_objext; then
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.
$ac_ext >&5
5523 rm -f core conftest.err conftest.
$ac_objext
5525 rm -f conftest.
$ac_objext
5526 if { (ac_try
="$ac_compile"
5528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_sys_largefile_CC=' -n32'; break
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f core conftest.err conftest.$ac_objext
5554 rm -f conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5558 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5559 if test "$ac_cv_sys_largefile_CC" != no; then
5560 CC=$CC$ac_cv_sys_largefile_CC
5563 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5564 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5565 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5596 *) ac_try_echo
=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1
>conftest.err
5603 cat conftest.err
>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.
$ac_objext; then
5609 ac_cv_sys_file_offset_bits
=no
; break
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5618 cat >conftest.
$ac_ext <<_ACEOF
5621 cat confdefs.h
>>conftest.
$ac_ext
5622 cat >>conftest.
$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #define _FILE_OFFSET_BITS 64
5625 #include <sys/types.h>
5626 /* Check that off_t can represent 2**63 - 1 correctly.
5627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5628 since some C++ compilers masquerading as C compilers
5629 incorrectly reject 9223372036854775807. */
5630 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5632 && LARGE_OFF_T % 2147483647 == 1)
5642 rm -f conftest.
$ac_objext
5643 if { (ac_try
="$ac_compile"
5645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5651 grep -v '^ *+' conftest.er1 >conftest.err
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.$ac_objext; then
5659 ac_cv_sys_file_offset_bits=64; break
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 ac_cv_sys_file_offset_bits=unknown
5672 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5674 case $ac_cv_sys_file_offset_bits in #(
5677 cat >>confdefs.h <<_ACEOF
5678 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5683 if test $ac_cv_sys_file_offset_bits = unknown; then
5684 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5685 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5686 if test "${ac_cv_sys_large_files+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5717 *) ac_try_echo
=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5722 grep -v '^ *+' conftest.er1
>conftest.err
5724 cat conftest.err
>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_c_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.
$ac_objext; then
5730 ac_cv_sys_large_files
=no
; break
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.
$ac_ext >&5
5738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5739 cat >conftest.
$ac_ext <<_ACEOF
5742 cat confdefs.h
>>conftest.
$ac_ext
5743 cat >>conftest.
$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #define _LARGE_FILES 1
5746 #include <sys/types.h>
5747 /* Check that off_t can represent 2**63 - 1 correctly.
5748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5749 since some C++ compilers masquerading as C compilers
5750 incorrectly reject 9223372036854775807. */
5751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5753 && LARGE_OFF_T % 2147483647 == 1)
5763 rm -f conftest.
$ac_objext
5764 if { (ac_try
="$ac_compile"
5766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compile") 2>conftest.er1
5772 grep -v '^ *+' conftest.er1 >conftest.err
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_c_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest.$ac_objext; then
5780 ac_cv_sys_large_files=1; break
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cv_sys_large_files=unknown
5793 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5809 ### The standard library on x86-64 GNU/Linux distributions can
5810 ### be located in either /usr/lib64 or /usr/lib.
5811 case "${canonical}" in
5812 x86_64-*-linux-gnu* )
5813 if test -d /usr/lib64; then
5815 cat >>confdefs.h <<\_ACEOF
5816 #define HAVE_X86_64_LIB64_DIR 1
5825 if test "${with_sound}" != "no"; then
5826 # Sound support for GNU/Linux and the free BSDs.
5827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5829 if test "${ac_cv_header_stdc+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5855 *) ac_try_echo
=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1
>conftest.err
5862 cat conftest.err
>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest.
$ac_objext; then
5868 ac_cv_header_stdc
=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.
$ac_ext >&5
5873 ac_cv_header_stdc
=no
5876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5878 if test $ac_cv_header_stdc = yes; then
5879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890 $EGREP "memchr" >/dev
/null
2>&1; then
5893 ac_cv_header_stdc
=no
5899 if test $ac_cv_header_stdc = yes; then
5900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5901 cat >conftest.
$ac_ext <<_ACEOF
5904 cat confdefs.h
>>conftest.
$ac_ext
5905 cat >>conftest.
$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911 $EGREP "free" >/dev
/null
2>&1; then
5914 ac_cv_header_stdc
=no
5920 if test $ac_cv_header_stdc = yes; then
5921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5922 if test "$cross_compiling" = yes; then
5925 cat >conftest.
$ac_ext <<_ACEOF
5928 cat confdefs.h
>>conftest.
$ac_ext
5929 cat >>conftest.
$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5933 #if ((' ' & 0x0FF) == 0x020)
5934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5937 # define ISLOWER(c) \
5938 (('a' <= (c) && (c) <= 'i') \
5939 || ('j' <= (c) && (c) <= 'r') \
5940 || ('s' <= (c) && (c) <= 'z'))
5941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5949 for (i = 0; i < 256; i++)
5950 if (XOR (islower (i), ISLOWER (i))
5951 || toupper (i) != TOUPPER (i))
5956 rm -f conftest
$ac_exeext
5957 if { (ac_try
="$ac_link"
5959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_link") 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5969 *) ac_try_echo
=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.
$ac_ext >&5
5983 ac_cv_header_stdc
=no
5985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5992 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5993 if test $ac_cv_header_stdc = yes; then
5995 cat >>confdefs.h
<<\_ACEOF
5996 #define STDC_HEADERS 1
6001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6011 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6012 inttypes.h stdint.h unistd.h
6014 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6017 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 cat >conftest.
$ac_ext <<_ACEOF
6023 cat confdefs.h
>>conftest.
$ac_ext
6024 cat >>conftest.
$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 $ac_includes_default
6028 #include <$ac_header>
6030 rm -f conftest.
$ac_objext
6031 if { (ac_try
="$ac_compile"
6033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_objext; then
6047 eval "$as_ac_Header=yes"
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6052 eval "$as_ac_Header=no"
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_res=`eval echo '${'$as_ac_Header'}'`
6058 { echo "$as_me:$LINENO: result: $ac_res" >&5
6059 echo "${ECHO_T}$ac_res" >&6; }
6060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6061 cat >>confdefs.h <<_ACEOF
6062 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6073 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6075 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 ac_res=`eval echo '${'$as_ac_Header'}'`
6083 { echo "$as_me:$LINENO: result: $ac_res" >&5
6084 echo "${ECHO_T}$ac_res" >&6; }
6086 # Is the header compilable?
6087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6096 #include <$ac_header>
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6102 *) ac_try_echo
=$ac_try;;
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1
>conftest.err
6109 cat conftest.err
>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.
$ac_objext; then
6115 ac_header_compiler
=yes
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.
$ac_ext >&5
6120 ac_header_compiler
=no
6123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6125 echo "${ECHO_T}$ac_header_compiler" >&6; }
6127 # Is the header present?
6128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6130 cat >conftest.
$ac_ext <<_ACEOF
6133 cat confdefs.h
>>conftest.
$ac_ext
6134 cat >>conftest.
$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <$ac_header>
6138 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } >/dev/null && {
6151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6154 ac_header_preproc=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_header_preproc=no
6162 rm -f conftest.err conftest.$ac_ext
6163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6164 echo "${ECHO_T}$ac_header_preproc" >&6; }
6166 # So? What about this header?
6167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6173 ac_header_preproc=yes
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 eval "$as_ac_Header=\$ac_header_preproc"
6198 ac_res=`eval echo '${'$as_ac_Header'}'`
6199 { echo "$as_me:$LINENO: result: $ac_res" >&5
6200 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6212 # Emulation library used on NetBSD.
6213 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6214 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6215 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_check_lib_save_LIBS=$LIBS
6219 LIBS="-lossaudio $LIBS"
6220 cat >conftest.$ac_ext <<_ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6227 /* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6237 return _oss_ioctl ();
6242 rm -f conftest.$ac_objext conftest$ac_exeext
6243 if { (ac_try="$ac_link"
6245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6246 *) ac_try_echo
=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1
>conftest.err
6253 cat conftest.err
>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest
$ac_exeext &&
6259 $as_test_x conftest
$ac_exeext; then
6260 ac_cv_lib_ossaudio__oss_ioctl
=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.
$ac_ext >&5
6265 ac_cv_lib_ossaudio__oss_ioctl
=no
6268 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6269 conftest
$ac_exeext conftest.
$ac_ext
6270 LIBS
=$ac_check_lib_save_LIBS
6272 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6273 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6274 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6283 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6284 if test "X${with_pkg_config_prog}" != X
; then
6285 PKG_CONFIG
="${with_pkg_config_prog}"
6290 if test -z "$PKG_CONFIG"; then
6291 # Extract the first word of "pkg-config", so it can be a program name with args.
6292 set dummy pkg-config
; ac_word
=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir
=.
6308 for ac_exec_ext
in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6322 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6323 if test -n "$PKG_CONFIG"; then
6324 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6325 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6327 { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6334 if test "$PKG_CONFIG" = "no" ; then
6337 PKG_CONFIG_MIN_VERSION
=0.9.0
6338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6339 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6340 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6342 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6347 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6348 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6349 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6350 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6351 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6353 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6354 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6355 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6357 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6359 { echo "$as_me:$LINENO: result: no" >&5
6360 echo "${ECHO_T}no" >&6; }
6363 ## If we have a custom action on failure, don't print errors, but
6364 ## do set a variable so people can do so.
6365 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6377 if test $succeeded = yes; then
6383 if test $HAVE_ALSA = yes; then
6384 SAVE_CFLAGS
="$CFLAGS"
6385 SAVE_LDFLAGS
="$LDFLAGS"
6386 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6387 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6388 cat >conftest.
$ac_ext <<_ACEOF
6391 cat confdefs.h
>>conftest.
$ac_ext
6392 cat >>conftest.
$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <asoundlib.h>
6398 snd_lib_error_set_handler (0);
6403 rm -f conftest.
$ac_objext
6404 if { (ac_try
="$ac_compile"
6406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 emacs_alsa_normal=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 emacs_alsa_normal=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 if test "$emacs_alsa_normal" != yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <alsa/asoundlib.h>
6440 snd_lib_error_set_handler (0);
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6449 *) ac_try_echo
=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1
>conftest.err
6456 cat conftest.err
>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.
$ac_objext; then
6462 emacs_alsa_subdir
=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.
$ac_ext >&5
6467 emacs_alsa_subdir
=no
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6471 if test "$emacs_alsa_subdir" != yes; then
6472 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6473 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6474 { (exit 1); exit 1; }; }
6476 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6479 CFLAGS
="$SAVE_CFLAGS"
6480 LDFLAGS
="$SAVE_LDFLAGS"
6481 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6482 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6484 cat >>confdefs.h
<<\_ACEOF
6518 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6519 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6520 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6521 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6524 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6525 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6528 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_res
=`eval echo '${'$as_ac_Header'}'`
6532 { echo "$as_me:$LINENO: result: $ac_res" >&5
6533 echo "${ECHO_T}$ac_res" >&6; }
6535 # Is the header compilable?
6536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6538 cat >conftest.
$ac_ext <<_ACEOF
6541 cat confdefs.h
>>conftest.
$ac_ext
6542 cat >>conftest.
$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 $ac_includes_default
6545 #include <$ac_header>
6547 rm -f conftest.
$ac_objext
6548 if { (ac_try
="$ac_compile"
6550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_compile") 2>conftest.er1
6556 grep -v '^ *+' conftest.er1 >conftest.err
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest.$ac_objext; then
6564 ac_header_compiler=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_header_compiler=no
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6574 echo "${ECHO_T}$ac_header_compiler" >&6; }
6576 # Is the header present?
6577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6579 cat >conftest.$ac_ext <<_ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 #include <$ac_header>
6587 if { (ac_try="$ac_cpp conftest.$ac_ext"
6589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6590 *) ac_try_echo
=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6595 grep -v '^ *+' conftest.er1
>conftest.err
6597 cat conftest.err
>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev
/null
&& {
6600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6603 ac_header_preproc
=yes
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.
$ac_ext >&5
6608 ac_header_preproc
=no
6611 rm -f conftest.err conftest.
$ac_ext
6612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6613 echo "${ECHO_T}$ac_header_preproc" >&6; }
6615 # So? What about this header?
6616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6622 ac_header_preproc
=yes
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6632 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6642 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 eval "$as_ac_Header=\$ac_header_preproc"
6647 ac_res
=`eval echo '${'$as_ac_Header'}'`
6648 { echo "$as_me:$LINENO: result: $ac_res" >&5
6649 echo "${ECHO_T}$ac_res" >&6; }
6652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6653 cat >>confdefs.h
<<_ACEOF
6654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6662 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6663 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6664 cat >conftest.
$ac_ext <<_ACEOF
6667 cat confdefs.h
>>conftest.
$ac_ext
6668 cat >>conftest.
$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <sys/personality.h>
6674 personality (PER_LINUX32)
6679 rm -f conftest.
$ac_objext
6680 if { (ac_try
="$ac_compile"
6682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_compile") 2>conftest.er1
6688 grep -v '^ *+' conftest.er1 >conftest.err
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && {
6693 test -z "$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 } && test -s conftest.$ac_objext; then
6696 emacs_cv_personality_linux32=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 emacs_cv_personality_linux32=no
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6706 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6708 if test $emacs_cv_personality_linux32 = yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_PERSONALITY_LINUX32 1
6717 for ac_header in term.h
6719 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.$ac_ext <<_ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <$ac_header>
6733 if { (ac_try="$ac_cpp conftest.$ac_ext"
6735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6736 *) ac_try_echo
=$ac_try;;
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6741 grep -v '^ *+' conftest.er1
>conftest.err
6743 cat conftest.err
>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } >/dev
/null
&& {
6746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6749 eval "$as_ac_Header=yes"
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.
$ac_ext >&5
6754 eval "$as_ac_Header=no"
6757 rm -f conftest.err conftest.
$ac_ext
6759 ac_res
=`eval echo '${'$as_ac_Header'}'`
6760 { echo "$as_me:$LINENO: result: $ac_res" >&5
6761 echo "${ECHO_T}$ac_res" >&6; }
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763 cat >>confdefs.h
<<_ACEOF
6764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6771 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6772 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_stdc+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.
$ac_ext <<_ACEOF
6779 cat confdefs.h
>>conftest.
$ac_ext
6780 cat >>conftest.
$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6795 rm -f conftest.
$ac_objext
6796 if { (ac_try
="$ac_compile"
6798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_header_stdc=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_header_stdc=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 if test $ac_cv_header_stdc = yes; then
6823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6824 cat >conftest.$ac_ext <<_ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6834 $EGREP "memchr" >/dev/null 2>&1; then
6837 ac_cv_header_stdc=no
6843 if test $ac_cv_header_stdc = yes; then
6844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855 $EGREP "free" >/dev/null 2>&1; then
6858 ac_cv_header_stdc=no
6864 if test $ac_cv_header_stdc = yes; then
6865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6866 if test "$cross_compiling" = yes; then
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6877 #if ((' ' & 0x0FF) == 0x020)
6878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6881 # define ISLOWER(c) \
6882 (('a' <= (c) && (c) <= 'i') \
6883 || ('j' <= (c) && (c) <= 'r') \
6884 || ('s' <= (c) && (c) <= 'z'))
6885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6893 for (i = 0; i < 256; i++)
6894 if (XOR (islower (i), ISLOWER (i))
6895 || toupper (i) != TOUPPER (i))
6900 rm -f conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6904 *) ac_try_echo
=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_link") 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6911 { (case "(($ac_try" in
6912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_try") 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6922 echo "$as_me: program exited with status $ac_status" >&5
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_cv_header_stdc=no
6929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6936 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6937 if test $ac_cv_header_stdc = yes; then
6939 cat >>confdefs.h <<\_ACEOF
6940 #define STDC_HEADERS 1
6945 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6947 if test "${ac_cv_header_time+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <sys/types.h>
6957 #include <sys/time.h>
6963 if ((struct tm *) 0)
6969 rm -f conftest.$ac_objext
6970 if { (ac_try="$ac_compile"
6972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6973 *) ac_try_echo
=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_compile") 2>conftest.er1
6978 grep -v '^ *+' conftest.er1
>conftest.err
6980 cat conftest.err
>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && {
6983 test -z "$ac_c_werror_flag" ||
6984 test ! -s conftest.err
6985 } && test -s conftest.
$ac_objext; then
6986 ac_cv_header_time
=yes
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.
$ac_ext >&5
6991 ac_cv_header_time
=no
6994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6996 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6997 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6998 if test $ac_cv_header_time = yes; then
7000 cat >>confdefs.h
<<\_ACEOF
7001 #define TIME_WITH_SYS_TIME 1
7006 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7007 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7008 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 cat >conftest.
$ac_ext <<_ACEOF
7014 cat confdefs.h
>>conftest.
$ac_ext
7015 cat >>conftest.
$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7029 rm -f conftest.
$ac_objext
7030 if { (ac_try
="$ac_compile"
7032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036 (eval "$ac_compile") 2>conftest.er1
7038 grep -v '^ *+' conftest.er1 >conftest.err
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && {
7043 test -z "$ac_c_werror_flag" ||
7044 test ! -s conftest.err
7045 } && test -s conftest.$ac_objext; then
7046 ac_cv_have_decl_sys_siglist=yes
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 ac_cv_have_decl_sys_siglist=no
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7057 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7058 if test $ac_cv_have_decl_sys_siglist = yes; then
7060 cat >>confdefs.h <<_ACEOF
7061 #define HAVE_DECL_SYS_SIGLIST 1
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_DECL_SYS_SIGLIST 0
7074 if test $ac_cv_have_decl_sys_siglist != yes; then
7075 # For Tru64, at least:
7076 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7077 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7078 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 cat >conftest.$ac_ext <<_ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7091 #ifndef __sys_siglist
7092 (void) __sys_siglist;
7099 rm -f conftest.$ac_objext
7100 if { (ac_try="$ac_compile"
7102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7103 *) ac_try_echo
=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1
>conftest.err
7110 cat conftest.err
>&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.
$ac_objext; then
7116 ac_cv_have_decl___sys_siglist
=yes
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.
$ac_ext >&5
7121 ac_cv_have_decl___sys_siglist
=no
7124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7126 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7127 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7128 if test $ac_cv_have_decl___sys_siglist = yes; then
7130 cat >>confdefs.h
<<_ACEOF
7131 #define HAVE_DECL___SYS_SIGLIST 1
7136 cat >>confdefs.h
<<_ACEOF
7137 #define HAVE_DECL___SYS_SIGLIST 0
7144 if test $ac_cv_have_decl___sys_siglist = yes; then
7146 cat >>confdefs.h
<<\_ACEOF
7147 #define sys_siglist __sys_siglist
7152 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7153 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7154 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 cat >conftest.
$ac_ext <<_ACEOF
7160 cat confdefs.h
>>conftest.
$ac_ext
7161 cat >>conftest.
$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <sys/types.h>
7164 #include <sys/wait.h>
7166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7182 rm -f conftest.
$ac_objext
7183 if { (ac_try
="$ac_compile"
7185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1 >conftest.err
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 ac_cv_header_sys_wait_h=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_header_sys_wait_h=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7210 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7211 if test $ac_cv_header_sys_wait_h = yes; then
7213 cat >>confdefs.h <<\_ACEOF
7214 #define HAVE_SYS_WAIT_H 1
7220 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7221 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7222 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #ifdef TIME_WITH_SYS_TIME
7232 #include <sys/time.h>
7235 #ifdef HAVE_SYS_TIME_H
7236 #include <sys/time.h>
7247 static struct utimbuf x; x.actime = x.modtime;
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7256 *) ac_try_echo
=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1
>conftest.err
7263 cat conftest.err
>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.
$ac_objext; then
7269 emacs_cv_struct_utimbuf
=yes
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.
$ac_ext >&5
7274 emacs_cv_struct_utimbuf
=no
7277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7279 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7280 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7281 if test $emacs_cv_struct_utimbuf = yes; then
7283 cat >>confdefs.h
<<\_ACEOF
7284 #define HAVE_STRUCT_UTIMBUF 1
7289 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7290 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7291 if test "${ac_cv_type_signal+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 cat >conftest.
$ac_ext <<_ACEOF
7297 cat confdefs.h
>>conftest.
$ac_ext
7298 cat >>conftest.
$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <sys/types.h>
7306 return *(signal (0, 0)) (0) == 1;
7311 rm -f conftest.
$ac_objext
7312 if { (ac_try
="$ac_compile"
7314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_cv_type_signal=int
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_type_signal=void
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7339 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7341 cat >>confdefs.h <<_ACEOF
7342 #define RETSIGTYPE $ac_cv_type_signal
7347 { echo "$as_me:$LINENO: checking for speed_t" >&5
7348 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7349 if test "${emacs_cv_speed_t+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <termios.h>
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7371 *) ac_try_echo
=$ac_try;;
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1
>conftest.err
7378 cat conftest.err
>&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.
$ac_objext; then
7384 emacs_cv_speed_t
=yes
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.
$ac_ext >&5
7392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7394 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7395 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7396 if test $emacs_cv_speed_t = yes; then
7398 cat >>confdefs.h
<<\_ACEOF
7399 #define HAVE_SPEED_T 1
7404 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7405 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7406 if test "${emacs_cv_struct_timeval+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 cat >conftest.
$ac_ext <<_ACEOF
7412 cat confdefs.h
>>conftest.
$ac_ext
7413 cat >>conftest.
$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #ifdef TIME_WITH_SYS_TIME
7416 #include <sys/time.h>
7419 #ifdef HAVE_SYS_TIME_H
7420 #include <sys/time.h>
7428 static struct timeval x; x.tv_sec = x.tv_usec;
7433 rm -f conftest.
$ac_objext
7434 if { (ac_try
="$ac_compile"
7436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_compile") 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest.$ac_objext; then
7450 emacs_cv_struct_timeval=yes
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7455 emacs_cv_struct_timeval=no
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7461 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7462 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7463 if test $emacs_cv_struct_timeval = yes; then
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_TIMEVAL 1
7471 { echo "$as_me:$LINENO: checking for struct exception" >&5
7472 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7473 if test "${emacs_cv_struct_exception+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7486 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7495 *) ac_try_echo
=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1
>conftest.err
7502 cat conftest.err
>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.
$ac_objext; then
7508 emacs_cv_struct_exception
=yes
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.
$ac_ext >&5
7513 emacs_cv_struct_exception
=no
7516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7518 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7519 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7520 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7521 if test $emacs_cv_struct_exception != yes; then
7523 cat >>confdefs.h
<<\_ACEOF
7524 #define NO_MATHERR 1
7530 for ac_header
in sys
/socket.h
7532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7536 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 ac_res
=`eval echo '${'$as_ac_Header'}'`
7540 { echo "$as_me:$LINENO: result: $ac_res" >&5
7541 echo "${ECHO_T}$ac_res" >&6; }
7543 # Is the header compilable?
7544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7546 cat >conftest.
$ac_ext <<_ACEOF
7549 cat confdefs.h
>>conftest.
$ac_ext
7550 cat >>conftest.
$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 $ac_includes_default
7553 #include <$ac_header>
7555 rm -f conftest.
$ac_objext
7556 if { (ac_try
="$ac_compile"
7558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7564 grep -v '^ *+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7572 ac_header_compiler=yes
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 ac_header_compiler=no
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7582 echo "${ECHO_T}$ac_header_compiler" >&6; }
7584 # Is the header present?
7585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7587 cat >conftest.$ac_ext <<_ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 #include <$ac_header>
7595 if { (ac_try="$ac_cpp conftest.$ac_ext"
7597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7598 *) ac_try_echo
=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1
>conftest.err
7605 cat conftest.err
>&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } >/dev
/null
&& {
7608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7611 ac_header_preproc
=yes
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.
$ac_ext >&5
7616 ac_header_preproc
=no
7619 rm -f conftest.err conftest.
$ac_ext
7620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7621 echo "${ECHO_T}$ac_header_preproc" >&6; }
7623 # So? What about this header?
7624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7630 ac_header_preproc
=yes
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7650 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 eval "$as_ac_Header=\$ac_header_preproc"
7655 ac_res
=`eval echo '${'$as_ac_Header'}'`
7656 { echo "$as_me:$LINENO: result: $ac_res" >&5
7657 echo "${ECHO_T}$ac_res" >&6; }
7660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h
<<_ACEOF
7662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7670 for ac_header
in net
/if.h
7672 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7675 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 cat >conftest.
$ac_ext <<_ACEOF
7681 cat confdefs.h
>>conftest.
$ac_ext
7682 cat >>conftest.
$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 #if HAVE_SYS_SOCKET_H
7686 #include <sys/socket.h>
7689 #include <$ac_header>
7691 rm -f conftest.
$ac_objext
7692 if { (ac_try
="$ac_compile"
7694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 eval "$as_ac_Header=yes"
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 eval "$as_ac_Header=no"
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 ac_res=`eval echo '${'$as_ac_Header'}'`
7719 { echo "$as_me:$LINENO: result: $ac_res" >&5
7720 echo "${ECHO_T}$ac_res" >&6; }
7721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7722 cat >>confdefs.h <<_ACEOF
7723 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7731 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7732 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7733 if test "${ac_cv_struct_tm+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 #include <sys/types.h>
7749 int *p = &tm.tm_sec;
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7759 *) ac_try_echo
=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1
>conftest.err
7766 cat conftest.err
>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.
$ac_objext; then
7772 ac_cv_struct_tm
=time.h
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.
$ac_ext >&5
7777 ac_cv_struct_tm
=sys
/time.h
7780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7782 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7783 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7784 if test $ac_cv_struct_tm = sys
/time.h
; then
7786 cat >>confdefs.h
<<\_ACEOF
7787 #define TM_IN_SYS_TIME 1
7792 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7793 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7794 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 cat >conftest.
$ac_ext <<_ACEOF
7800 cat confdefs.h
>>conftest.
$ac_ext
7801 cat >>conftest.
$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <sys/types.h>
7804 #include <$ac_cv_struct_tm>
7810 static struct tm ac_aggr;
7811 if (ac_aggr.tm_zone)
7817 rm -f conftest.
$ac_objext
7818 if { (ac_try
="$ac_compile"
7820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_cv_member_struct_tm_tm_zone=yes
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <$ac_cv_struct_tm>
7852 static struct tm ac_aggr;
7853 if (sizeof ac_aggr.tm_zone)
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7863 *) ac_try_echo
=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.
$ac_objext; then
7876 ac_cv_member_struct_tm_tm_zone
=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.
$ac_ext >&5
7881 ac_cv_member_struct_tm_tm_zone
=no
7884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7891 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7893 cat >>confdefs.h
<<_ACEOF
7894 #define HAVE_STRUCT_TM_TM_ZONE 1
7900 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7902 cat >>confdefs.h
<<\_ACEOF
7903 #define HAVE_TM_ZONE 1
7907 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7908 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7909 if test "${ac_cv_have_decl_tzname+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 cat >conftest.
$ac_ext <<_ACEOF
7915 cat confdefs.h
>>conftest.
$ac_ext
7916 cat >>conftest.
$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7931 rm -f conftest.
$ac_objext
7932 if { (ac_try
="$ac_compile"
7934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_have_decl_tzname=yes
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_have_decl_tzname=no
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7959 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7960 if test $ac_cv_have_decl_tzname = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_DECL_TZNAME 1
7968 cat >>confdefs.h <<_ACEOF
7969 #define HAVE_DECL_TZNAME 0
7976 { echo "$as_me:$LINENO: checking for tzname" >&5
7977 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7978 if test "${ac_cv_var_tzname+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7988 #if !HAVE_DECL_TZNAME
7989 extern char *tzname[];
7995 return tzname[0][0];
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8004 *) ac_try_echo
=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1
>conftest.err
8011 cat conftest.err
>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest
$ac_exeext &&
8017 $as_test_x conftest
$ac_exeext; then
8018 ac_cv_var_tzname
=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.
$ac_ext >&5
8026 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8027 conftest
$ac_exeext conftest.
$ac_ext
8029 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8030 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8031 if test $ac_cv_var_tzname = yes; then
8033 cat >>confdefs.h
<<\_ACEOF
8034 #define HAVE_TZNAME 1
8040 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8041 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8042 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cat >conftest.
$ac_ext <<_ACEOF
8048 cat confdefs.h
>>conftest.
$ac_ext
8049 cat >>conftest.
$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8056 static struct tm ac_aggr;
8057 if (ac_aggr.tm_gmtoff)
8063 rm -f conftest.
$ac_objext
8064 if { (ac_try
="$ac_compile"
8066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_tm_tm_gmtoff=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8096 static struct tm ac_aggr;
8097 if (sizeof ac_aggr.tm_gmtoff)
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8107 *) ac_try_echo
=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1
>conftest.err
8114 cat conftest.err
>&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.
$ac_objext; then
8120 ac_cv_member_struct_tm_tm_gmtoff
=yes
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.
$ac_ext >&5
8125 ac_cv_member_struct_tm_tm_gmtoff
=no
8128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8133 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8134 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8135 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8137 cat >>confdefs.h
<<\_ACEOF
8138 #define HAVE_TM_GMTOFF 1
8143 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8144 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8145 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 cat >conftest.
$ac_ext <<_ACEOF
8151 cat confdefs.h
>>conftest.
$ac_ext
8152 cat >>conftest.
$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 #if HAVE_SYS_SOCKET_H
8156 #include <sys/socket.h>
8165 static struct ifreq ac_aggr;
8166 if (ac_aggr.ifr_flags)
8172 rm -f conftest.
$ac_objext
8173 if { (ac_try
="$ac_compile"
8175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8189 ac_cv_member_struct_ifreq_ifr_flags=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 #if HAVE_SYS_SOCKET_H
8202 #include <sys/socket.h>
8211 static struct ifreq ac_aggr;
8212 if (sizeof ac_aggr.ifr_flags)
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8222 *) ac_try_echo
=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8227 grep -v '^ *+' conftest.er1
>conftest.err
8229 cat conftest.err
>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.
$ac_objext; then
8235 ac_cv_member_struct_ifreq_ifr_flags
=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.
$ac_ext >&5
8240 ac_cv_member_struct_ifreq_ifr_flags
=no
8243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8248 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8249 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8250 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8252 cat >>confdefs.h
<<_ACEOF
8253 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8258 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8259 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8260 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 cat >conftest.
$ac_ext <<_ACEOF
8266 cat confdefs.h
>>conftest.
$ac_ext
8267 cat >>conftest.
$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 $ac_includes_default
8270 #if HAVE_SYS_SOCKET_H
8271 #include <sys/socket.h>
8280 static struct ifreq ac_aggr;
8281 if (ac_aggr.ifr_hwaddr)
8287 rm -f conftest.
$ac_objext
8288 if { (ac_try
="$ac_compile"
8290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.$ac_objext; then
8304 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 cat >conftest.$ac_ext <<_ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 $ac_includes_default
8316 #if HAVE_SYS_SOCKET_H
8317 #include <sys/socket.h>
8326 static struct ifreq ac_aggr;
8327 if (sizeof ac_aggr.ifr_hwaddr)
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8337 *) ac_try_echo
=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1
>conftest.err
8344 cat conftest.err
>&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.
$ac_objext; then
8350 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.
$ac_ext >&5
8355 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8364 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8365 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8367 cat >>confdefs.h
<<_ACEOF
8368 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8373 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8374 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8375 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.
$ac_ext <<_ACEOF
8381 cat confdefs.h
>>conftest.
$ac_ext
8382 cat >>conftest.
$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 #if HAVE_SYS_SOCKET_H
8386 #include <sys/socket.h>
8395 static struct ifreq ac_aggr;
8396 if (ac_aggr.ifr_netmask)
8402 rm -f conftest.
$ac_objext
8403 if { (ac_try
="$ac_compile"
8405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1 >conftest.err
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_member_struct_ifreq_ifr_netmask=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 #if HAVE_SYS_SOCKET_H
8432 #include <sys/socket.h>
8441 static struct ifreq ac_aggr;
8442 if (sizeof ac_aggr.ifr_netmask)
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8452 *) ac_try_echo
=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1
>conftest.err
8459 cat conftest.err
>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.
$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.
$ac_ext >&5
8470 ac_cv_member_struct_ifreq_ifr_netmask
=no
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8479 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8480 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8482 cat >>confdefs.h
<<_ACEOF
8483 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8488 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8489 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8490 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8510 static struct ifreq ac_aggr;
8511 if (ac_aggr.ifr_broadaddr)
8517 rm -f conftest.
$ac_objext
8518 if { (ac_try
="$ac_compile"
8520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8534 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h>
8556 static struct ifreq ac_aggr;
8557 if (sizeof ac_aggr.ifr_broadaddr)
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8567 *) ac_try_echo
=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1
>conftest.err
8574 cat conftest.err
>&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.
$ac_objext; then
8580 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8585 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8594 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8595 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8597 cat >>confdefs.h
<<_ACEOF
8598 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8603 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8604 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8605 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #if HAVE_SYS_SOCKET_H
8616 #include <sys/socket.h>
8625 static struct ifreq ac_aggr;
8626 if (ac_aggr.ifr_addr)
8632 rm -f conftest.
$ac_objext
8633 if { (ac_try
="$ac_compile"
8635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1 >conftest.err
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_addr=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 #if HAVE_SYS_SOCKET_H
8662 #include <sys/socket.h>
8671 static struct ifreq ac_aggr;
8672 if (sizeof ac_aggr.ifr_addr)
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8682 *) ac_try_echo
=$ac_try;;
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8687 grep -v '^ *+' conftest.er1
>conftest.err
8689 cat conftest.err
>&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.
$ac_objext; then
8695 ac_cv_member_struct_ifreq_ifr_addr
=yes
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.
$ac_ext >&5
8700 ac_cv_member_struct_ifreq_ifr_addr
=no
8703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8709 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8710 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8712 cat >>confdefs.h
<<_ACEOF
8713 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8721 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8722 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8723 if test "$ac_cv_prog_cc_c89" != no
; then
8724 { echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6; }
8727 cat >>confdefs.h
<<\_ACEOF
8728 #define PROTOTYPES 1
8732 cat >>confdefs.h
<<\_ACEOF
8733 #define __PROTOTYPES 1
8737 { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8741 { echo "$as_me:$LINENO: checking for working volatile" >&5
8742 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8743 if test "${ac_cv_c_volatile+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 cat >conftest.
$ac_ext <<_ACEOF
8749 cat confdefs.h
>>conftest.
$ac_ext
8750 cat >>conftest.
$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8758 int * volatile y = (int *) 0;
8764 rm -f conftest.
$ac_objext
8765 if { (ac_try
="$ac_compile"
8767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_compile") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest.$ac_objext; then
8781 ac_cv_c_volatile=yes
8783 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 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8792 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8793 if test $ac_cv_c_volatile = no; then
8795 cat >>confdefs.h <<\_ACEOF
8801 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8802 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8803 if test "${ac_cv_c_const+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8816 /* FIXME: Include the comments suggested by Paul. */
8818 /* Ultrix mips cc rejects this. */
8819 typedef int charset[2];
8821 /* SunOS 4.1.1 cc rejects this. */
8822 char const *const *pcpcc;
8824 /* NEC SVR4.0.2 mips cc rejects this. */
8825 struct point {int x, y;};
8826 static struct point const zero = {0,0};
8827 /* AIX XL C 1.02.0.0 rejects this.
8828 It does not let you subtract one const X* pointer from another in
8829 an arm of an if-expression whose if-part is not a constant
8831 const char *g = "string";
8832 pcpcc = &g + (g ? g-g : 0);
8833 /* HPUX 7.0 cc rejects these. */
8835 ppc = (char**) pcpcc;
8836 pcpcc = (char const *const *) ppc;
8837 { /* SCO 3.2v4 cc rejects this. */
8839 char const *s = 0 ? (char *) 0 : (char const *) 0;
8844 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8846 const int *foo = &x[0];
8849 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8850 typedef const int *iptr;
8854 { /* AIX XL C 1.02.0.0 rejects this saying
8855 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8856 struct s { int j; const int *ap[3]; };
8857 struct s *b; b->j = 5;
8859 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8863 return !cs[0] && !zero.x;
8870 rm -f conftest.$ac_objext
8871 if { (ac_try="$ac_compile"
8873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8874 *) ac_try_echo
=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_compile") 2>conftest.er1
8879 grep -v '^ *+' conftest.er1
>conftest.err
8881 cat conftest.err
>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.
$ac_objext; then
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.
$ac_ext >&5
8895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8898 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8899 if test $ac_cv_c_const = no
; then
8901 cat >>confdefs.h
<<\_ACEOF
8907 { echo "$as_me:$LINENO: checking for void * support" >&5
8908 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8909 if test "${emacs_cv_void_star+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 cat >conftest.
$ac_ext <<_ACEOF
8915 cat confdefs.h
>>conftest.
$ac_ext
8916 cat >>conftest.
$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8927 rm -f conftest.
$ac_objext
8928 if { (ac_try
="$ac_compile"
8930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_compile") 2>conftest.er1
8936 grep -v '^ *+' conftest.er1 >conftest.err
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } && {
8941 test -z "$ac_c_werror_flag" ||
8942 test ! -s conftest.err
8943 } && test -s conftest.$ac_objext; then
8944 emacs_cv_void_star=yes
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 emacs_cv_void_star=no
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8955 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8956 if test $emacs_cv_void_star = yes; then
8957 cat >>confdefs.h <<\_ACEOF
8958 #define POINTER_TYPE void
8962 cat >>confdefs.h <<\_ACEOF
8963 #define POINTER_TYPE char
8972 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8973 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8974 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8975 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 cat >conftest.make <<\_ACEOF
8981 @echo '@@@%%%=$(MAKE)=@@@%%%'
8983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8984 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8986 eval ac_cv_prog_make_${ac_make}_set=yes;;
8988 eval ac_cv_prog_make_${ac_make}_set=no;;
8992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8993 { echo "$as_me:$LINENO: result: yes" >&5
8994 echo "${ECHO_T}yes" >&6; }
8997 { echo "$as_me:$LINENO: result: no" >&5
8998 echo "${ECHO_T}no" >&6; }
8999 SET_MAKE="MAKE=${MAKE-make}"
9003 { echo "$as_me:$LINENO: checking for long file names" >&5
9004 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9005 if test "${ac_cv_sys_long_file_names+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9008 ac_cv_sys_long_file_names=yes
9009 # Test for long file names in all the places we know might matter:
9010 # . the current directory, where building will happen
9011 # $prefix/lib where we will be installing things
9012 # $exec_prefix/lib likewise
9013 # $TMPDIR if set, where it might want to write temporary files
9014 # /tmp where it might want to write temporary files
9017 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9018 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9019 # in the usual case where exec_prefix is '${prefix}'.
9021 . | /* | ?:[\\/]*) ;; #(
9024 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9025 ac_xdir=$ac_dir/cf$$
9026 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9027 ac_tf1=$ac_xdir/conftest9012345
9028 ac_tf2=$ac_xdir/conftest9012346
9029 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9030 ac_cv_sys_long_file_names=no
9031 rm -f -r "$ac_xdir" 2>/dev/null
9032 test $ac_cv_sys_long_file_names = no && break
9035 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9036 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9037 if test $ac_cv_sys_long_file_names = yes; then
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_LONG_FILE_NAMES 1
9046 #### Choose a window system.
9048 { echo "$as_me:$LINENO: checking for X" >&5
9049 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9052 # Check whether --with-x was given.
9053 if test "${with_x+set}" = set; then
9057 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9058 if test "x$with_x" = xno; then
9059 # The user explicitly disabled X.
9062 case $x_includes,$x_libraries in #(
9063 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9064 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9065 { (exit 1); exit 1; }; };; #(
9066 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 # One or both of the vars are not set, and there is no cached value.
9070 ac_x_includes=no ac_x_libraries=no
9071 rm -f -r conftest.dir
9072 if mkdir conftest.dir; then
9074 cat >Imakefile <<'_ACEOF'
9076 @echo incroot='${INCROOT}'
9078 @echo usrlibdir='${USRLIBDIR}'
9080 @echo libdir='${LIBDIR}'
9082 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9083 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9084 for ac_var in incroot usrlibdir libdir; do
9085 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9087 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9088 for ac_extension in a so sl; do
9089 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9090 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9091 ac_im_usrlibdir=$ac_im_libdir; break
9094 # Screen out bogus values from the imake configuration. They are
9095 # bogus both because they are the default anyway, and because
9096 # using them would break gcc on systems where it needs fixed includes.
9097 case $ac_im_incroot in
9098 /usr/include) ac_x_includes= ;;
9099 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9101 case $ac_im_usrlibdir in
9103 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9107 rm -f -r conftest.dir
9110 # Standard set of common directories for X headers.
9111 # Check X11 before X11Rn because it is often a symlink to the current release.
9123 /usr/local/X11/include
9124 /usr/local/X11R6/include
9125 /usr/local/X11R5/include
9126 /usr/local/X11R4/include
9128 /usr/local/include/X11
9129 /usr/local/include/X11R6
9130 /usr/local/include/X11R5
9131 /usr/local/include/X11R4
9135 /usr/XFree86/include/X11
9139 /usr/unsupported/include
9141 /usr/local/x11r5/include
9142 /usr/lpp/Xamples/include
9144 /usr/openwin/include
9145 /usr/openwin/share/include'
9147 if test "$ac_x_includes" = no; then
9148 # Guess where to find include files, by looking for Xlib.h.
9149 # First, try using that file with no special directory specified.
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 #include <X11/Xlib.h>
9158 if { (ac_try="$ac_cpp conftest.$ac_ext"
9160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9161 *) ac_try_echo
=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9166 grep -v '^ *+' conftest.er1
>conftest.err
9168 cat conftest.err
>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } >/dev
/null
&& {
9171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9174 # We can compile using X headers with no special include directory.
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.
$ac_ext >&5
9180 for ac_dir
in $ac_x_header_dirs; do
9181 if test -r "$ac_dir/X11/Xlib.h"; then
9182 ac_x_includes
=$ac_dir
9188 rm -f conftest.err conftest.
$ac_ext
9189 fi # $ac_x_includes = no
9191 if test "$ac_x_libraries" = no
; then
9192 # Check for the libraries.
9193 # See if we find them without any special options.
9194 # Don't add to $LIBS permanently.
9197 cat >conftest.
$ac_ext <<_ACEOF
9200 cat confdefs.h
>>conftest.
$ac_ext
9201 cat >>conftest.
$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 #include <X11/Xlib.h>
9212 rm -f conftest.
$ac_objext conftest
$ac_exeext
9213 if { (ac_try
="$ac_link"
9215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9219 (eval "$ac_link") 2>conftest.er1
9221 grep -v '^ *+' conftest.er1 >conftest.err
9223 cat conftest.err >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } && {
9226 test -z "$ac_c_werror_flag" ||
9227 test ! -s conftest.err
9228 } && test -s conftest$ac_exeext &&
9229 $as_test_x conftest$ac_exeext; then
9231 # We can link X programs with no special library path.
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9238 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9240 # Don't even attempt the hair of trying to link an X program!
9241 for ac_extension in a so sl; do
9242 if test -r "$ac_dir/libX11.$ac_extension"; then
9243 ac_x_libraries=$ac_dir
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251 conftest$ac_exeext conftest.$ac_ext
9252 fi # $ac_x_libraries = no
9254 case $ac_x_includes,$ac_x_libraries in #(
9256 # Didn't find X, or a directory has "'" in its name.
9257 ac_cv_have_x="have_x=no";; #(
9259 # Record where we found X for the cache.
9260 ac_cv_have_x="have_x=yes\
9261 ac_x_includes='$ac_x_includes'\
9262 ac_x_libraries='$ac_x_libraries'"
9268 eval "$ac_cv_have_x"
9271 if test "$have_x" != yes; then
9272 { echo "$as_me:$LINENO: result: $have_x" >&5
9273 echo "${ECHO_T}$have_x" >&6; }
9276 # If each of the values was on the command line, it overrides each guess.
9277 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9278 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9279 # Update the cache value to reflect the command line values.
9280 ac_cv_have_x="have_x=yes\
9281 ac_x_includes='$x_includes'\
9282 ac_x_libraries='$x_libraries'"
9283 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9284 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9287 if test "$no_x" = yes; then
9293 if test "${x_libraries}" != NONE; then
9294 if test -n "${x_libraries}"; then
9295 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9296 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9298 x_default_search_path=""
9299 x_search_path=${x_libraries}
9300 if test -z "${x_search_path}"; then
9301 x_search_path=/usr/lib
9303 for x_library in `echo ${x_search_path}: | \
9304 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9306 ${x_library}/X11/%L/%T/%N%C%S:\
9307 ${x_library}/X11/%l/%T/%N%C%S:\
9308 ${x_library}/X11/%T/%N%C%S:\
9309 ${x_library}/X11/%L/%T/%N%S:\
9310 ${x_library}/X11/%l/%T/%N%S:\
9311 ${x_library}/X11/%T/%N%S"
9312 if test x"${x_default_search_path}" = x; then
9313 x_default_search_path=${x_search_path}
9315 x_default_search_path="${x_search_path}:${x_default_search_path}"
9319 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9320 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9323 if test x"${x_includes}" = x; then
9324 bitmapdir=/usr/include/X11/bitmaps
9326 # accumulate include directories that have X11 bitmap subdirectories
9328 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9329 if test -d "${bmd}/X11/bitmaps"; then
9330 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9332 if test -d "${bmd}/bitmaps"; then
9333 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9336 if test ${bmd_acc} != "dummyval"; then
9337 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9342 if test "${with_carbon}" != no; then
9343 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9344 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9345 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9346 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9350 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9352 # Is the header compilable?
9353 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9354 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9355 cat >conftest.$ac_ext <<_ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9362 #include <Carbon/Carbon.h>
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9368 *) ac_try_echo
=$ac_try;;
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9373 grep -v '^ *+' conftest.er1
>conftest.err
9375 cat conftest.err
>&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.
$ac_objext; then
9381 ac_header_compiler
=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.
$ac_ext >&5
9386 ac_header_compiler
=no
9389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9391 echo "${ECHO_T}$ac_header_compiler" >&6; }
9393 # Is the header present?
9394 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9395 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9396 cat >conftest.
$ac_ext <<_ACEOF
9399 cat confdefs.h
>>conftest.
$ac_ext
9400 cat >>conftest.
$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 #include <Carbon/Carbon.h>
9404 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9412 grep -v '^ *+' conftest.er1 >conftest.err
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } >/dev/null && {
9417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9420 ac_header_preproc=yes
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_header_preproc=no
9428 rm -f conftest.err conftest.$ac_ext
9429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9430 echo "${ECHO_T}$ac_header_preproc" >&6; }
9432 # So? What about this header?
9433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9435 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9436 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9438 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9439 ac_header_preproc=yes
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9447 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9449 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9451 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9453 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9457 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9458 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9459 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9464 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9465 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9468 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9474 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9475 if test "${with_carbon+set}" != set \
9476 && test "${carbon_appdir_x+set}" != set; then
9477 for var in with_x with_x_toolkit with_gtk with_xim \
9478 with_xpm with_jpeg with_tiff with_gif with_png; do
9479 if eval test \"\${$var+set}\" = set; then
9486 if test "${HAVE_CARBON}" = yes; then
9490 case "${window_system}" in
9494 case "${with_x_toolkit}" in
9495 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9496 motif ) USE_X_TOOLKIT=MOTIF ;;
9498 USE_X_TOOLKIT=none ;;
9499 no ) USE_X_TOOLKIT=none ;;
9500 * ) USE_X_TOOLKIT=maybe ;;
9510 ### If we're using X11, we should use the X menu package.
9513 yes ) HAVE_MENUS=yes ;;
9516 if test "${opsys}" = "hpux9"; then
9517 case "${x_libraries}" in
9519 opsysfile="s/hpux9-x11r4.h"
9524 if test "${opsys}" = "hpux9shr"; then
9525 case "${x_libraries}" in
9527 opsysfile="s/hpux9shxr4.h"
9532 ### Compute the unexec source name from the object name.
9533 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9535 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9536 # Assume not, until told otherwise.
9539 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9540 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9541 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 cat >conftest.$ac_ext <<_ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9552 #define malloc_get_state innocuous_malloc_get_state
9554 /* System header to define __stub macros and hopefully few prototypes,
9555 which can conflict with char malloc_get_state (); below.
9556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557 <limits.h> exists even on freestanding compilers. */
9560 # include <limits.h>
9562 # include <assert.h>
9565 #undef malloc_get_state
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9573 char malloc_get_state ();
9574 /* The GNU C library defines this for functions which it implements
9575 to always fail with ENOSYS. Some functions are actually named
9576 something starting with __ and the normal name is an alias. */
9577 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9584 return malloc_get_state ();
9589 rm -f conftest.$ac_objext conftest$ac_exeext
9590 if { (ac_try="$ac_link"
9592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9593 *) ac_try_echo
=$ac_try;;
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_link") 2>conftest.er1
9598 grep -v '^ *+' conftest.er1
>conftest.err
9600 cat conftest.err
>&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest
$ac_exeext &&
9606 $as_test_x conftest
$ac_exeext; then
9607 ac_cv_func_malloc_get_state
=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.
$ac_ext >&5
9612 ac_cv_func_malloc_get_state
=no
9615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9616 conftest
$ac_exeext conftest.
$ac_ext
9618 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9619 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9620 if test $ac_cv_func_malloc_get_state = yes; then
9626 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9627 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9628 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9639 #define malloc_set_state innocuous_malloc_set_state
9641 /* System header to define __stub macros and hopefully few prototypes,
9642 which can conflict with char malloc_set_state (); below.
9643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9644 <limits.h> exists even on freestanding compilers. */
9647 # include <limits.h>
9649 # include <assert.h>
9652 #undef malloc_set_state
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9660 char malloc_set_state ();
9661 /* The GNU C library defines this for functions which it implements
9662 to always fail with ENOSYS. Some functions are actually named
9663 something starting with __ and the normal name is an alias. */
9664 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9671 return malloc_set_state ();
9676 rm -f conftest.
$ac_objext conftest
$ac_exeext
9677 if { (ac_try
="$ac_link"
9679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_link") 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && {
9690 test -z "$ac_c_werror_flag" ||
9691 test ! -s conftest.err
9692 } && test -s conftest$ac_exeext &&
9693 $as_test_x conftest$ac_exeext; then
9694 ac_cv_func_malloc_set_state=yes
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_cv_func_malloc_set_state=no
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703 conftest$ac_exeext conftest.$ac_ext
9705 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9706 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9707 if test $ac_cv_func_malloc_set_state = yes; then
9713 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9714 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9715 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 extern void (* __after_morecore_hook)();
9728 __after_morecore_hook = 0
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9737 *) ac_try_echo
=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1
>conftest.err
9744 cat conftest.err
>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest
$ac_exeext &&
9750 $as_test_x conftest
$ac_exeext; then
9751 emacs_cv_var___after_morecore_hook
=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.
$ac_ext >&5
9756 emacs_cv_var___after_morecore_hook
=no
9759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9760 conftest
$ac_exeext conftest.
$ac_ext
9762 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9763 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9764 if test $emacs_cv_var___after_morecore_hook = no
; then
9767 if test "${system_malloc}" = "yes"; then
9770 (The GNU allocators don't work with this system configuration.)"
9772 if test "$doug_lea_malloc" = "yes" ; then
9773 if test "$GNU_MALLOC" = yes ; then
9775 (Using Doug Lea's new malloc from the GNU C Library.)"
9778 cat >>confdefs.h
<<\_ACEOF
9779 #define DOUG_LEA_MALLOC 1
9784 if test x
"${REL_ALLOC}" = x
; then
9785 REL_ALLOC
=${GNU_MALLOC}
9791 for ac_header
in stdlib.h unistd.h
9793 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9797 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_res
=`eval echo '${'$as_ac_Header'}'`
9801 { echo "$as_me:$LINENO: result: $ac_res" >&5
9802 echo "${ECHO_T}$ac_res" >&6; }
9804 # Is the header compilable?
9805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9807 cat >conftest.
$ac_ext <<_ACEOF
9810 cat confdefs.h
>>conftest.
$ac_ext
9811 cat >>conftest.
$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 $ac_includes_default
9814 #include <$ac_header>
9816 rm -f conftest.
$ac_objext
9817 if { (ac_try
="$ac_compile"
9819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_compile") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.$ac_objext; then
9833 ac_header_compiler=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_header_compiler=no
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9843 echo "${ECHO_T}$ac_header_compiler" >&6; }
9845 # Is the header present?
9846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9848 cat >conftest.$ac_ext <<_ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <$ac_header>
9856 if { (ac_try="$ac_cpp conftest.$ac_ext"
9858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9859 *) ac_try_echo
=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1
>conftest.err
9866 cat conftest.err
>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } >/dev
/null
&& {
9869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9872 ac_header_preproc
=yes
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.
$ac_ext >&5
9877 ac_header_preproc
=no
9880 rm -f conftest.err conftest.
$ac_ext
9881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9882 echo "${ECHO_T}$ac_header_preproc" >&6; }
9884 # So? What about this header?
9885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9891 ac_header_preproc
=yes
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9911 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 eval "$as_ac_Header=\$ac_header_preproc"
9916 ac_res
=`eval echo '${'$as_ac_Header'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918 echo "${ECHO_T}$ac_res" >&6; }
9921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9922 cat >>confdefs.h
<<_ACEOF
9923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9931 for ac_func
in getpagesize
9933 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9936 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 cat >conftest.
$ac_ext <<_ACEOF
9942 cat confdefs.h
>>conftest.
$ac_ext
9943 cat >>conftest.
$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9947 #define $ac_func innocuous_$ac_func
9949 /* System header to define __stub macros and hopefully few prototypes,
9950 which can conflict with char $ac_func (); below.
9951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9952 <limits.h> exists even on freestanding compilers. */
9955 # include <limits.h>
9957 # include <assert.h>
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined __stub_$ac_func || defined __stub___$ac_func
9984 rm -f conftest.
$ac_objext conftest
$ac_exeext
9985 if { (ac_try
="$ac_link"
9987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 eval "$as_ac_var=yes"
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 eval "$as_ac_var=no"
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10013 ac_res=`eval echo '${'$as_ac_var'}'`
10014 { echo "$as_me:$LINENO: result: $ac_res" >&5
10015 echo "${ECHO_T}$ac_res" >&6; }
10016 if test `eval echo '${'$as_ac_var'}'` = yes; then
10017 cat >>confdefs.h <<_ACEOF
10018 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10024 { echo "$as_me:$LINENO: checking for working mmap" >&5
10025 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10026 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 if test "$cross_compiling" = yes; then
10030 ac_cv_func_mmap_fixed_mapped=no
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 $ac_includes_default
10039 /* malloc might have been renamed as rpl_malloc. */
10042 /* Thanks to Mike Haertel and Jim Avera for this test.
10043 Here is a matrix of mmap possibilities:
10044 mmap private not fixed
10045 mmap private fixed at somewhere currently unmapped
10046 mmap private fixed at somewhere already mapped
10047 mmap shared not fixed
10048 mmap shared fixed at somewhere currently unmapped
10049 mmap shared fixed at somewhere already mapped
10050 For private mappings, we should verify that changes cannot be read()
10051 back from the file, nor mmap's back from the file at a different
10052 address. (There have been systems where private was not correctly
10053 implemented like the infamous i386 svr4.0, and systems where the
10054 VM page cache was not coherent with the file system buffer cache
10055 like early versions of FreeBSD and possibly contemporary NetBSD.)
10056 For shared mappings, we should conversely verify that changes get
10057 propagated back to all the places they're supposed to be.
10059 Grep wants private fixed already mapped.
10060 The main things grep needs to know about mmap are:
10061 * does it exist and is it safe to write into the mmap'd area
10062 * how to use it (BSD variants) */
10065 #include <sys/mman.h>
10067 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10071 /* This mess was copied from the GNU getpagesize.h. */
10072 #ifndef HAVE_GETPAGESIZE
10073 /* Assume that all systems that can run configure have sys/param.h. */
10074 # ifndef HAVE_SYS_PARAM_H
10075 # define HAVE_SYS_PARAM_H 1
10078 # ifdef _SC_PAGESIZE
10079 # define getpagesize() sysconf(_SC_PAGESIZE)
10080 # else /* no _SC_PAGESIZE */
10081 # ifdef HAVE_SYS_PARAM_H
10082 # include <sys/param.h>
10083 # ifdef EXEC_PAGESIZE
10084 # define getpagesize() EXEC_PAGESIZE
10085 # else /* no EXEC_PAGESIZE */
10087 # define getpagesize() NBPG * CLSIZE
10090 # endif /* no CLSIZE */
10091 # else /* no NBPG */
10093 # define getpagesize() NBPC
10094 # else /* no NBPC */
10096 # define getpagesize() PAGESIZE
10097 # endif /* PAGESIZE */
10098 # endif /* no NBPC */
10099 # endif /* no NBPG */
10100 # endif /* no EXEC_PAGESIZE */
10101 # else /* no HAVE_SYS_PARAM_H */
10102 # define getpagesize() 8192 /* punt totally */
10103 # endif /* no HAVE_SYS_PARAM_H */
10104 # endif /* no _SC_PAGESIZE */
10106 #endif /* no HAVE_GETPAGESIZE */
10111 char *data, *data2, *data3;
10115 pagesize = getpagesize ();
10117 /* First, make a file with some known garbage in it. */
10118 data = (char *) malloc (pagesize);
10121 for (i = 0; i < pagesize; ++i)
10122 *(data + i) = rand ();
10124 fd = creat ("conftest.mmap", 0600);
10127 if (write (fd, data, pagesize) != pagesize)
10131 /* Next, try to mmap the file at a fixed address which already has
10132 something else allocated at it. If we can, also make sure that
10133 we see the same garbage. */
10134 fd = open ("conftest.mmap", O_RDWR);
10137 data2 = (char *) malloc (2 * pagesize);
10140 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10141 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10142 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10144 for (i = 0; i < pagesize; ++i)
10145 if (*(data + i) != *(data2 + i))
10148 /* Finally, make sure that changes to the mapped area do not
10149 percolate back to the file as seen by read(). (This is a bug on
10150 some variants of i386 svr4.0.) */
10151 for (i = 0; i < pagesize; ++i)
10152 *(data2 + i) = *(data2 + i) + 1;
10153 data3 = (char *) malloc (pagesize);
10156 if (read (fd, data3, pagesize) != pagesize)
10158 for (i = 0; i < pagesize; ++i)
10159 if (*(data + i) != *(data3 + i))
10165 rm -f conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10169 *) ac_try_echo
=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10176 { (case "(($ac_try" in
10177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_try") 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
10185 ac_cv_func_mmap_fixed_mapped=yes
10187 echo "$as_me: program exited with status $ac_status" >&5
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ( exit $ac_status )
10192 ac_cv_func_mmap_fixed_mapped=no
10194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10199 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10200 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10201 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_MMAP 1
10208 rm -f conftest.mmap
10210 if test $use_mmap_for_buffers = yes; then
10214 LIBS="$libsrc_libs $LIBS"
10217 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10218 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10219 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 ac_check_lib_save_LIBS=$LIBS
10223 LIBS="-ldnet $LIBS"
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10241 return dnet_ntoa ();
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (ac_try="$ac_link"
10248 case "(($ac_try" in
10249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10250 *) ac_try_echo
=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_link") 2>conftest.er1
10255 grep -v '^ *+' conftest.er1
>conftest.err
10257 cat conftest.err
>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest
$ac_exeext &&
10263 $as_test_x conftest
$ac_exeext; then
10264 ac_cv_lib_dnet_dnet_ntoa
=yes
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.
$ac_ext >&5
10269 ac_cv_lib_dnet_dnet_ntoa
=no
10272 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10273 conftest
$ac_exeext conftest.
$ac_ext
10274 LIBS
=$ac_check_lib_save_LIBS
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10277 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10278 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10279 cat >>confdefs.h
<<_ACEOF
10280 #define HAVE_LIBDNET 1
10283 LIBS
="-ldnet $LIBS"
10288 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10289 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10290 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 ac_check_lib_save_LIBS
=$LIBS
10294 LIBS
="-lXbsd $LIBS"
10295 cat >conftest.
$ac_ext <<_ACEOF
10298 cat confdefs.h
>>conftest.
$ac_ext
10299 cat >>conftest.
$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10311 rm -f conftest.
$ac_objext conftest
$ac_exeext
10312 if { (ac_try
="$ac_link"
10313 case "(($ac_try" in
10314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_link") 2>conftest.er1
10320 grep -v '^ *+' conftest.er1 >conftest.err
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && {
10325 test -z "$ac_c_werror_flag" ||
10326 test ! -s conftest.err
10327 } && test -s conftest$ac_exeext &&
10328 $as_test_x conftest$ac_exeext; then
10329 ac_cv_lib_Xbsd_main=yes
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_Xbsd_main=no
10337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10338 conftest$ac_exeext conftest.$ac_ext
10339 LIBS=$ac_check_lib_save_LIBS
10341 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10342 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10343 if test $ac_cv_lib_Xbsd_main = yes; then
10344 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10349 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10350 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10351 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lpthreads $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10373 return cma_open ();
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (ac_try="$ac_link"
10380 case "(($ac_try" in
10381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10382 *) ac_try_echo
=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_link") 2>conftest.er1
10387 grep -v '^ *+' conftest.er1
>conftest.err
10389 cat conftest.err
>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest
$ac_exeext &&
10395 $as_test_x conftest
$ac_exeext; then
10396 ac_cv_lib_pthreads_cma_open
=yes
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.
$ac_ext >&5
10401 ac_cv_lib_pthreads_cma_open
=no
10404 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10405 conftest
$ac_exeext conftest.
$ac_ext
10406 LIBS
=$ac_check_lib_save_LIBS
10408 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10409 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10410 if test $ac_cv_lib_pthreads_cma_open = yes; then
10411 cat >>confdefs.h
<<_ACEOF
10412 #define HAVE_LIBPTHREADS 1
10415 LIBS
="-lpthreads $LIBS"
10420 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10421 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10422 if test -d /usr
/X386
/include
; then
10424 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10428 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10429 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10434 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10435 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10436 if test "${gdb_cv_bigtoc+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10442 *) gdb_cv_bigtoc
=-bbigtoc ;;
10445 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10446 cat >conftest.
$ac_ext <<_ACEOF
10449 cat confdefs.h
>>conftest.
$ac_ext
10450 cat >>conftest.
$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10461 rm -f conftest.
$ac_objext conftest
$ac_exeext
10462 if { (ac_try
="$ac_link"
10463 case "(($ac_try" in
10464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_link") 2>conftest.er1
10470 grep -v '^ *+' conftest.er1 >conftest.err
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && {
10475 test -z "$ac_c_werror_flag" ||
10476 test ! -s conftest.err
10477 } && test -s conftest$ac_exeext &&
10478 $as_test_x conftest$ac_exeext; then
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488 conftest$ac_exeext conftest.$ac_ext
10491 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10492 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10496 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10497 # used for the tests that follow. We set them back to REAL_CFLAGS and
10498 # REAL_CPPFLAGS later on.
10500 REAL_CPPFLAGS="$CPPFLAGS"
10502 if test "${HAVE_X11}" = "yes"; then
10503 DEFS="$C_SWITCH_X_SITE $DEFS"
10504 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10506 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10507 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10509 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10510 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10511 # but it's more convenient here to set LD_RUN_PATH
10512 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10513 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10514 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10518 if test "${opsys}" = "gnu-linux"; then
10519 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10520 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10531 XOpenDisplay ("foo");
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10540 *) ac_try_echo
=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1
>conftest.err
10547 cat conftest.err
>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest
$ac_exeext &&
10553 $as_test_x conftest
$ac_exeext; then
10554 xlinux_first_failure
=no
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.
$ac_ext >&5
10559 xlinux_first_failure
=yes
10562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10563 conftest
$ac_exeext conftest.
$ac_ext
10564 if test "${xlinux_first_failure}" = "yes"; then
10565 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10566 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10567 OLD_CPPFLAGS
="$CPPFLAGS"
10569 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10570 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10571 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10572 LIBS
="$LIBS -b i486-linuxaout"
10573 cat >conftest.
$ac_ext <<_ACEOF
10576 cat confdefs.h
>>conftest.
$ac_ext
10577 cat >>conftest.
$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10583 XOpenDisplay ("foo");
10588 rm -f conftest.
$ac_objext conftest
$ac_exeext
10589 if { (ac_try
="$ac_link"
10590 case "(($ac_try" in
10591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_link") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest$ac_exeext &&
10605 $as_test_x conftest$ac_exeext; then
10606 xlinux_second_failure=no
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 xlinux_second_failure=yes
10614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10615 conftest$ac_exeext conftest.$ac_ext
10616 if test "${xlinux_second_failure}" = "yes"; then
10617 # If we get the same failure with -b, there is no use adding -b.
10618 # So take it out. This plays safe.
10619 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10620 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10621 CPPFLAGS="$OLD_CPPFLAGS"
10623 { echo "$as_me:$LINENO: result: no" >&5
10624 echo "${ECHO_T}no" >&6; }
10626 { echo "$as_me:$LINENO: result: yes" >&5
10627 echo "${ECHO_T}yes" >&6; }
10630 { echo "$as_me:$LINENO: result: no" >&5
10631 echo "${ECHO_T}no" >&6; }
10635 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10636 # header files included from there.
10637 { echo "$as_me:$LINENO: checking for Xkb" >&5
10638 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10639 cat >conftest.$ac_ext <<_ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 #include <X11/Xlib.h>
10646 #include <X11/XKBlib.h>
10650 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10659 *) ac_try_echo
=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_link") 2>conftest.er1
10664 grep -v '^ *+' conftest.er1
>conftest.err
10666 cat conftest.err
>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && {
10669 test -z "$ac_c_werror_flag" ||
10670 test ! -s conftest.err
10671 } && test -s conftest
$ac_exeext &&
10672 $as_test_x conftest
$ac_exeext; then
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.
$ac_ext >&5
10681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10682 conftest
$ac_exeext conftest.
$ac_ext
10683 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10684 echo "${ECHO_T}$emacs_xkb" >&6; }
10685 if test $emacs_xkb = yes; then
10687 cat >>confdefs.h
<<\_ACEOF
10688 #define HAVE_XKBGETKEYBOARD 1
10697 for ac_func
in XrmSetDatabase XScreenResourceString \
10698 XScreenNumberOfScreen XSetWMProtocols
10700 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10703 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 cat >conftest.
$ac_ext <<_ACEOF
10709 cat confdefs.h
>>conftest.
$ac_ext
10710 cat >>conftest.
$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10714 #define $ac_func innocuous_$ac_func
10716 /* System header to define __stub macros and hopefully few prototypes,
10717 which can conflict with char $ac_func (); below.
10718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10719 <limits.h> exists even on freestanding compilers. */
10722 # include <limits.h>
10724 # include <assert.h>
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10736 /* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
10739 #if defined __stub_$ac_func || defined __stub___$ac_func
10746 return $ac_func ();
10751 rm -f conftest.
$ac_objext conftest
$ac_exeext
10752 if { (ac_try
="$ac_link"
10753 case "(($ac_try" in
10754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_link") 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext &&
10768 $as_test_x conftest$ac_exeext; then
10769 eval "$as_ac_var=yes"
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 eval "$as_ac_var=no"
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10780 ac_res=`eval echo '${'$as_ac_var'}'`
10781 { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 if test `eval echo '${'$as_ac_var'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10793 if test "${window_system}" = "x11"; then
10794 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10795 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10796 if test "${emacs_cv_x11_version_6+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 cat >conftest.$ac_ext <<_ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <X11/Xlib.h>
10809 #if XlibSpecificationRelease < 6
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (ac_try="$ac_link"
10819 case "(($ac_try" in
10820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10821 *) ac_try_echo
=$ac_try;;
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_link") 2>conftest.er1
10826 grep -v '^ *+' conftest.er1
>conftest.err
10828 cat conftest.err
>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && {
10831 test -z "$ac_c_werror_flag" ||
10832 test ! -s conftest.err
10833 } && test -s conftest
$ac_exeext &&
10834 $as_test_x conftest
$ac_exeext; then
10835 emacs_cv_x11_version_6
=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.
$ac_ext >&5
10840 emacs_cv_x11_version_6
=no
10843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10844 conftest
$ac_exeext conftest.
$ac_ext
10847 if test $emacs_cv_x11_version_6 = yes; then
10848 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10849 echo "${ECHO_T}6 or newer" >&6; }
10851 cat >>confdefs.h
<<\_ACEOF
10852 #define HAVE_X11R6 1
10856 { echo "$as_me:$LINENO: result: before 6" >&5
10857 echo "${ECHO_T}before 6" >&6; }
10861 if test "${window_system}" = "x11"; then
10862 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10863 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10864 if test "${emacs_cv_x11_version_5+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 cat >conftest.
$ac_ext <<_ACEOF
10870 cat confdefs.h
>>conftest.
$ac_ext
10871 cat >>conftest.
$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 #include <X11/Xlib.h>
10877 #if XlibSpecificationRelease < 5
10885 rm -f conftest.
$ac_objext conftest
$ac_exeext
10886 if { (ac_try
="$ac_link"
10887 case "(($ac_try" in
10888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_link") 2>conftest.er1
10894 grep -v '^ *+' conftest.er1 >conftest.err
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } && {
10899 test -z "$ac_c_werror_flag" ||
10900 test ! -s conftest.err
10901 } && test -s conftest$ac_exeext &&
10902 $as_test_x conftest$ac_exeext; then
10903 emacs_cv_x11_version_5=yes
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 emacs_cv_x11_version_5=no
10911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10912 conftest$ac_exeext conftest.$ac_ext
10915 if test $emacs_cv_x11_version_5 = yes; then
10916 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10917 echo "${ECHO_T}5 or newer" >&6; }
10920 cat >>confdefs.h <<\_ACEOF
10921 #define HAVE_X11R5 1
10926 { echo "$as_me:$LINENO: result: before 5" >&5
10927 echo "${ECHO_T}before 5" >&6; }
10932 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10935 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10936 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10937 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10938 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10939 { (exit 1); exit 1; }; };
10943 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10945 if test "X${with_pkg_config_prog}" != X; then
10946 PKG_CONFIG="${with_pkg_config_prog}"
10951 if test -z "$PKG_CONFIG"; then
10952 # Extract the first word of "pkg-config", so it can be a program name with args.
10953 set dummy pkg-config; ac_word=$2
10954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 case $PKG_CONFIG in
10961 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10983 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10984 if test -n "$PKG_CONFIG"; then
10985 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10986 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10988 { echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6; }
10995 if test "$PKG_CONFIG" = "no" ; then
10996 { { echo "$as_me:$LINENO: error:
10997 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10998 echo "$as_me: error:
10999 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11000 { (exit 1); exit 1; }; }
11002 PKG_CONFIG_MIN_VERSION=0.9.0
11003 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11004 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11005 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11007 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11008 { echo "$as_me:$LINENO: result: yes" >&5
11009 echo "${ECHO_T}yes" >&6; }
11012 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11013 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11014 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11015 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11016 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11018 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11019 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11020 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11021 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11022 echo "${ECHO_T}$GTK_LIBS" >&6; }
11024 { echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6; }
11028 ## If we have a custom action on failure, don't print errors, but
11029 ## do set a variable so people can do so.
11030 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11031 echo $GTK_PKG_ERRORS
11037 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11038 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11042 if test $succeeded = yes; then
11045 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11046 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11047 { (exit 1); exit 1; }; }
11052 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11053 CFLAGS="$CFLAGS $GTK_CFLAGS"
11054 LIBS="$GTK_LIBS $LIBS"
11057 for ac_func in gtk_main
11059 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11073 #define $ac_func innocuous_$ac_func
11075 /* System header to define __stub macros and hopefully few prototypes,
11076 which can conflict with char $ac_func (); below.
11077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11078 <limits.h> exists even on freestanding compilers. */
11081 # include <limits.h>
11083 # include <assert.h>
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined __stub_$ac_func || defined __stub___$ac_func
11105 return $ac_func ();
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11114 *) ac_try_echo
=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1
>conftest.err
11121 cat conftest.err
>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest
$ac_exeext &&
11127 $as_test_x conftest
$ac_exeext; then
11128 eval "$as_ac_var=yes"
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.
$ac_ext >&5
11133 eval "$as_ac_var=no"
11136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11137 conftest
$ac_exeext conftest.
$ac_ext
11139 ac_res
=`eval echo '${'$as_ac_var'}'`
11140 { echo "$as_me:$LINENO: result: $ac_res" >&5
11141 echo "${ECHO_T}$ac_res" >&6; }
11142 if test `eval echo '${'$as_ac_var'}'` = yes; then
11143 cat >>confdefs.h
<<_ACEOF
11144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11150 if test "${GTK_COMPILES}" != "yes"; then
11151 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11152 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11153 { (exit 1); exit 1; }; };
11158 cat >>confdefs.h
<<\_ACEOF
11164 if test "$with_toolkit_scroll_bars" != no
; then
11165 with_toolkit_scroll_bars
=yes
11168 HAVE_GTK_MULTIDISPLAY
=no
11170 for ac_func
in gdk_display_open
11172 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11175 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 cat >conftest.
$ac_ext <<_ACEOF
11181 cat confdefs.h
>>conftest.
$ac_ext
11182 cat >>conftest.
$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11186 #define $ac_func innocuous_$ac_func
11188 /* System header to define __stub macros and hopefully few prototypes,
11189 which can conflict with char $ac_func (); below.
11190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191 <limits.h> exists even on freestanding compilers. */
11194 # include <limits.h>
11196 # include <assert.h>
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined __stub_$ac_func || defined __stub___$ac_func
11218 return $ac_func ();
11223 rm -f conftest.
$ac_objext conftest
$ac_exeext
11224 if { (ac_try
="$ac_link"
11225 case "(($ac_try" in
11226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 eval "$as_ac_var=yes"
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 eval "$as_ac_var=no"
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11252 ac_res=`eval echo '${'$as_ac_var'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11259 HAVE_GTK_MULTIDISPLAY=yes
11263 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define HAVE_GTK_MULTIDISPLAY 1
11270 HAVE_GTK_FILE_SELECTION=no
11272 for ac_func in gtk_file_selection_new
11274 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define $ac_func innocuous_$ac_func
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11296 # include <limits.h>
11298 # include <assert.h>
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11310 /* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11320 return $ac_func ();
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11329 *) ac_try_echo
=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1
>conftest.err
11336 cat conftest.err
>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest
$ac_exeext &&
11342 $as_test_x conftest
$ac_exeext; then
11343 eval "$as_ac_var=yes"
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.
$ac_ext >&5
11348 eval "$as_ac_var=no"
11351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11352 conftest
$ac_exeext conftest.
$ac_ext
11354 ac_res
=`eval echo '${'$as_ac_var'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11357 if test `eval echo '${'$as_ac_var'}'` = yes; then
11358 cat >>confdefs.h
<<_ACEOF
11359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11361 HAVE_GTK_FILE_SELECTION
=yes
11366 HAVE_GTK_FILE_CHOOSER
=no
11368 for ac_func
in gtk_file_chooser_dialog_new
11370 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11373 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.
$ac_ext <<_ACEOF
11379 cat confdefs.h
>>conftest.
$ac_ext
11380 cat >>conftest.
$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11384 #define $ac_func innocuous_$ac_func
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below.
11388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11389 <limits.h> exists even on freestanding compilers. */
11392 # include <limits.h>
11394 # include <assert.h>
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined __stub_$ac_func || defined __stub___$ac_func
11416 return $ac_func ();
11421 rm -f conftest.
$ac_objext conftest
$ac_exeext
11422 if { (ac_try
="$ac_link"
11423 case "(($ac_try" in
11424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_link") 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } && {
11435 test -z "$ac_c_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest$ac_exeext &&
11438 $as_test_x conftest$ac_exeext; then
11439 eval "$as_ac_var=yes"
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 eval "$as_ac_var=no"
11447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11448 conftest$ac_exeext conftest.$ac_ext
11450 ac_res=`eval echo '${'$as_ac_var'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11457 HAVE_GTK_FILE_CHOOSER=yes
11462 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11463 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11465 cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_GTK_FILE_BOTH 1
11471 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11472 HAVE_GTK_AND_PTHREAD=no
11474 for ac_header in pthread.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11503 *) ac_try_echo
=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1
>conftest.err
11510 cat conftest.err
>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.
$ac_objext; then
11516 ac_header_compiler
=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.
$ac_ext >&5
11521 ac_header_compiler
=no
11524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.
$ac_ext <<_ACEOF
11534 cat confdefs.h
>>conftest.
$ac_ext
11535 cat >>conftest.
$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11539 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11547 grep -v '^ *+' conftest.er1 >conftest.err
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11555 ac_header_preproc=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_preproc=no
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 eval "$as_ac_Header=\$ac_header_preproc"
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11613 if test "$ac_cv_header_pthread_h"; then
11614 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11615 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11616 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-lpthread $LIBS"
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11634 char pthread_self ();
11638 return pthread_self ();
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11647 *) ac_try_echo
=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11652 grep -v '^ *+' conftest.er1
>conftest.err
11654 cat conftest.err
>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest
$ac_exeext &&
11660 $as_test_x conftest
$ac_exeext; then
11661 ac_cv_lib_pthread_pthread_self
=yes
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.
$ac_ext >&5
11666 ac_cv_lib_pthread_pthread_self
=no
11669 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11670 conftest
$ac_exeext conftest.
$ac_ext
11671 LIBS
=$ac_check_lib_save_LIBS
11673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11675 if test $ac_cv_lib_pthread_pthread_self = yes; then
11676 HAVE_GTK_AND_PTHREAD
=yes
11680 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11681 GTK_LIBS
="$GTK_LIBS -lpthread"
11683 cat >>confdefs.h
<<\_ACEOF
11684 #define HAVE_GTK_AND_PTHREAD 1
11691 ### Link with -lXft if available to work around a bug.
11693 if test "${HAVE_GTK}" = "yes"; then
11694 if test "X${with_pkg_config_prog}" != X
; then
11695 PKG_CONFIG
="${with_pkg_config_prog}"
11701 if test -z "$PKG_CONFIG"; then
11702 # Extract the first word of "pkg-config", so it can be a program name with args.
11703 set dummy pkg-config
; ac_word
=$2
11704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11706 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 case $PKG_CONFIG in
11711 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11715 for as_dir
in $PATH
11718 test -z "$as_dir" && as_dir
=.
11719 for ac_exec_ext
in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11733 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11734 if test -n "$PKG_CONFIG"; then
11735 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11736 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11738 { echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6; }
11745 if test "$PKG_CONFIG" = "no" ; then
11748 PKG_CONFIG_MIN_VERSION
=0.9.0
11749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11750 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11751 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11753 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11754 { echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6; }
11758 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11759 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11760 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11762 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11764 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11765 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11766 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11767 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11768 echo "${ECHO_T}$XFT_LIBS" >&6; }
11770 { echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6; }
11774 ## If we have a custom action on failure, don't print errors, but
11775 ## do set a variable so people can do so.
11776 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11788 if test $succeeded = yes; then
11794 if test "$HAVE_XFT" != no
; then
11795 OLD_CFLAGS
="$CPPFLAGS"
11796 OLD_CPPFLAGS
="$CFLAGS"
11798 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11799 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11800 LIBS
="$XFT_LIBS $LIBS"
11801 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11802 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11803 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11804 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11808 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11810 # Is the header compilable?
11811 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11812 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11813 cat >conftest.
$ac_ext <<_ACEOF
11816 cat confdefs.h
>>conftest.
$ac_ext
11817 cat >>conftest.
$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 $ac_includes_default
11820 #include <X11/Xft/Xft.h>
11822 rm -f conftest.
$ac_objext
11823 if { (ac_try
="$ac_compile"
11824 case "(($ac_try" in
11825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_compile") 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } && {
11836 test -z "$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11838 } && test -s conftest.$ac_objext; then
11839 ac_header_compiler=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_header_compiler=no
11847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849 echo "${ECHO_T}$ac_header_compiler" >&6; }
11851 # Is the header present?
11852 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11853 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 #include <X11/Xft/Xft.h>
11862 if { (ac_try="$ac_cpp conftest.$ac_ext"
11863 case "(($ac_try" in
11864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11865 *) ac_try_echo
=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11870 grep -v '^ *+' conftest.er1
>conftest.err
11872 cat conftest.err
>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } >/dev
/null
&& {
11875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11878 ac_header_preproc
=yes
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.
$ac_ext >&5
11883 ac_header_preproc
=no
11886 rm -f conftest.err conftest.
$ac_ext
11887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11888 echo "${ECHO_T}$ac_header_preproc" >&6; }
11890 # So? What about this header?
11891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11894 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11896 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11897 ac_header_preproc
=yes
11900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11901 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11903 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11905 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11907 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11909 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11911 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11915 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11916 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11917 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11922 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11923 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11926 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11927 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11928 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11929 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 ac_check_lib_save_LIBS
=$LIBS
11933 LIBS
="-lXft $XFT_LIBS $LIBS"
11934 cat >conftest.
$ac_ext <<_ACEOF
11937 cat confdefs.h
>>conftest.
$ac_ext
11938 cat >>conftest.
$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11947 char XftFontOpen ();
11951 return XftFontOpen ();
11956 rm -f conftest.
$ac_objext conftest
$ac_exeext
11957 if { (ac_try
="$ac_link"
11958 case "(($ac_try" in
11959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11965 grep -v '^ *+' conftest.er1 >conftest.err
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest$ac_exeext &&
11973 $as_test_x conftest$ac_exeext; then
11974 ac_cv_lib_Xft_XftFontOpen=yes
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 ac_cv_lib_Xft_XftFontOpen=no
11982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11986 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11987 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11988 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11996 if test "${HAVE_XFT}" = "yes"; then
11998 cat >>confdefs.h <<\_ACEOF
12003 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12005 CFLAGS="$OLD_CPPFLAGS"
12006 CFLAGS="$OLD_CFLAGS"
12012 if test x"${USE_X_TOOLKIT}" = xmaybe; then
12013 if test x"${HAVE_X11R5}" = xyes; then
12014 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12015 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12016 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12026 #include <X11/Intrinsic.h>
12027 #include <X11/Xaw/Simple.h>
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (ac_try="$ac_link"
12038 case "(($ac_try" in
12039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12040 *) ac_try_echo
=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_link") 2>conftest.er1
12045 grep -v '^ *+' conftest.er1
>conftest.err
12047 cat conftest.err
>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest
$ac_exeext &&
12053 $as_test_x conftest
$ac_exeext; then
12054 emacs_cv_x11_version_5_with_xaw
=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.
$ac_ext >&5
12059 emacs_cv_x11_version_5_with_xaw
=no
12062 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12063 conftest
$ac_exeext conftest.
$ac_ext
12066 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12067 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12068 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12069 USE_X_TOOLKIT
=LUCID
12071 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12072 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12080 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12082 if test "${USE_X_TOOLKIT}" != "none"; then
12083 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12084 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12085 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 cat >conftest.
$ac_ext <<_ACEOF
12091 cat confdefs.h
>>conftest.
$ac_ext
12092 cat >>conftest.
$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <X11/Intrinsic.h>
12098 #if XtSpecificationRelease < 6
12106 rm -f conftest.
$ac_objext conftest
$ac_exeext
12107 if { (ac_try
="$ac_link"
12108 case "(($ac_try" in
12109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest$ac_exeext &&
12123 $as_test_x conftest$ac_exeext; then
12124 emacs_cv_x11_toolkit_version_6=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 emacs_cv_x11_toolkit_version_6=no
12132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133 conftest$ac_exeext conftest.$ac_ext
12136 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12137 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12138 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12139 echo "${ECHO_T}6 or newer" >&6; }
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_X11XTR6 1
12146 { echo "$as_me:$LINENO: result: before 6" >&5
12147 echo "${ECHO_T}before 6" >&6; }
12151 if test x$HAVE_X11XTR6 = xyes; then
12152 LIBS="-lXt -lSM -lICE $LIBS"
12157 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12158 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12159 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 ac_check_lib_save_LIBS=$LIBS
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12177 char XmuConvertStandardSelection ();
12181 return XmuConvertStandardSelection ();
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12190 *) ac_try_echo
=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_link") 2>conftest.er1
12195 grep -v '^ *+' conftest.er1
>conftest.err
12197 cat conftest.err
>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } && {
12200 test -z "$ac_c_werror_flag" ||
12201 test ! -s conftest.err
12202 } && test -s conftest
$ac_exeext &&
12203 $as_test_x conftest
$ac_exeext; then
12204 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.
$ac_ext >&5
12209 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12213 conftest
$ac_exeext conftest.
$ac_ext
12214 LIBS
=$ac_check_lib_save_LIBS
12216 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12217 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12218 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12219 cat >>confdefs.h
<<_ACEOF
12220 #define HAVE_LIBXMU 1
12227 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12230 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12231 if test "${HAVE_X11}" = "yes"; then
12232 if test "${USE_X_TOOLKIT}" != "none"; then
12234 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12235 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12236 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 ac_check_lib_save_LIBS
=$LIBS
12240 LIBS
="-lXext $LIBS"
12241 cat >conftest.
$ac_ext <<_ACEOF
12244 cat confdefs.h
>>conftest.
$ac_ext
12245 cat >>conftest.
$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12254 char XShapeQueryExtension ();
12258 return XShapeQueryExtension ();
12263 rm -f conftest.
$ac_objext conftest
$ac_exeext
12264 if { (ac_try
="$ac_link"
12265 case "(($ac_try" in
12266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_link") 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest$ac_exeext &&
12280 $as_test_x conftest$ac_exeext; then
12281 ac_cv_lib_Xext_XShapeQueryExtension=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_cv_lib_Xext_XShapeQueryExtension=no
12289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12293 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12294 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12295 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define HAVE_LIBXEXT 1
12300 LIBS="-lXext $LIBS"
12307 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12308 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12309 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12310 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12323 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12326 Motif version prior to 2.1.
12332 rm -f conftest.$ac_objext
12333 if { (ac_try="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12336 *) ac_try_echo
=$ac_try;;
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_compile") 2>conftest.er1
12341 grep -v '^ *+' conftest.er1
>conftest.err
12343 cat conftest.err
>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest.
$ac_objext; then
12349 emacs_cv_motif_version_2_1
=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.
$ac_ext >&5
12354 emacs_cv_motif_version_2_1
=no
12357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12359 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12360 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12361 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12362 if test $emacs_cv_motif_version_2_1 = yes; then
12365 cat >>confdefs.h
<<\_ACEOF
12366 #define HAVE_MOTIF_2_1 1
12369 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12370 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12371 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 ac_check_lib_save_LIBS
=$LIBS
12376 cat >conftest.
$ac_ext <<_ACEOF
12379 cat confdefs.h
>>conftest.
$ac_ext
12380 cat >>conftest.
$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12389 char XpCreateContext ();
12393 return XpCreateContext ();
12398 rm -f conftest.
$ac_objext conftest
$ac_exeext
12399 if { (ac_try
="$ac_link"
12400 case "(($ac_try" in
12401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest$ac_exeext &&
12415 $as_test_x conftest$ac_exeext; then
12416 ac_cv_lib_Xp_XpCreateContext=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 ac_cv_lib_Xp_XpCreateContext=no
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425 conftest$ac_exeext conftest.$ac_ext
12426 LIBS=$ac_check_lib_save_LIBS
12428 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12429 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12430 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12434 if test ${HAVE_LIBXP} = yes; then
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_LIBXP 1
12442 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12443 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12444 if test "${emacs_cv_lesstif+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 # We put this in CFLAGS temporarily to precede other -I options
12448 # that might be in CFLAGS temporarily.
12449 # We put this in CPPFLAGS where it precedes the other -I options.
12450 OLD_CPPFLAGS=$CPPFLAGS
12452 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12453 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12469 rm -f conftest.$ac_objext
12470 if { (ac_try="$ac_compile"
12471 case "(($ac_try" in
12472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12473 *) ac_try_echo
=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_compile") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1
>conftest.err
12480 cat conftest.err
>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest.
$ac_objext; then
12486 emacs_cv_lesstif
=yes
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.
$ac_ext >&5
12491 emacs_cv_lesstif
=no
12494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12496 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12497 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12498 if test $emacs_cv_lesstif = yes; then
12499 # Make sure this -I option remains in CPPFLAGS after it is set
12500 # back to REAL_CPPFLAGS.
12501 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12502 # have those other -I options anyway. Ultimately, having this
12503 # directory ultimately in CPPFLAGS will be enough.
12504 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12505 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12508 CPPFLAGS
=$OLD_CPPFLAGS
12513 ### Is -lXaw3d available?
12515 if test "${HAVE_X11}" = "yes"; then
12516 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12517 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12518 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12519 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 cat >conftest.
$ac_ext <<_ACEOF
12525 cat confdefs.h
>>conftest.
$ac_ext
12526 cat >>conftest.
$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 #include <X11/Xaw3d/Scrollbar.h>
12530 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12531 case "(($ac_try" in
12532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } >/dev/null && {
12543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12546 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12554 rm -f conftest.err conftest.$ac_ext
12556 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12557 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12558 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12559 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12560 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12561 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lXaw3d $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12579 char XawScrollbarSetThumb ();
12583 return XawScrollbarSetThumb ();
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12592 *) ac_try_echo
=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1
>conftest.err
12599 cat conftest.err
>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest
$ac_exeext &&
12605 $as_test_x conftest
$ac_exeext; then
12606 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.
$ac_ext >&5
12611 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12614 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12615 conftest
$ac_exeext conftest.
$ac_ext
12616 LIBS
=$ac_check_lib_save_LIBS
12618 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12619 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12620 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12627 if test "${HAVE_XAW3D}" = "yes"; then
12629 cat >>confdefs.h
<<\_ACEOF
12630 #define HAVE_XAW3D 1
12639 USE_TOOLKIT_SCROLL_BARS
=no
12640 if test "${with_toolkit_scroll_bars}" != "no"; then
12641 if test "${USE_X_TOOLKIT}" != "none"; then
12642 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12643 cat >>confdefs.h
<<\_ACEOF
12644 #define USE_TOOLKIT_SCROLL_BARS 1
12648 USE_TOOLKIT_SCROLL_BARS
=yes
12649 elif test "${HAVE_XAW3D}" = "yes"; then
12650 cat >>confdefs.h
<<\_ACEOF
12651 #define USE_TOOLKIT_SCROLL_BARS 1
12654 USE_TOOLKIT_SCROLL_BARS
=yes
12656 elif test "${HAVE_GTK}" = "yes"; then
12657 cat >>confdefs.h
<<\_ACEOF
12658 #define USE_TOOLKIT_SCROLL_BARS 1
12661 USE_TOOLKIT_SCROLL_BARS
=yes
12662 elif test "${HAVE_CARBON}" = "yes"; then
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define USE_TOOLKIT_SCROLL_BARS 1
12667 USE_TOOLKIT_SCROLL_BARS
=yes
12671 cat >conftest.
$ac_ext <<_ACEOF
12674 cat confdefs.h
>>conftest.
$ac_ext
12675 cat >>conftest.
$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12678 #include <X11/Xlib.h>
12679 #include <X11/Xresource.h>
12688 rm -f conftest.
$ac_objext
12689 if { (ac_try
="$ac_compile"
12690 case "(($ac_try" in
12691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_compile") 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest.$ac_objext; then
12707 cat >>confdefs.h <<\_ACEOF
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 if test "${with_xim}" != "no"; then
12723 cat >>confdefs.h <<\_ACEOF
12730 if test "${HAVE_XIM}" != "no"; then
12731 late_CFLAGS=$CFLAGS
12732 if test "$GCC" = yes; then
12733 CFLAGS="$CFLAGS --pedantic-errors"
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12742 #include <X11/Xlib.h>
12743 #include <X11/Xresource.h>
12752 XPointer *client_data;
12754 /* If we're not using GCC, it's probably not XFree86, and this is
12755 probably right, but we can't use something like --pedantic-errors. */
12756 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12757 char*, XIMProc, XPointer*);
12759 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12765 rm -f conftest.$ac_objext
12766 if { (ac_try="$ac_compile"
12767 case "(($ac_try" in
12768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12769 *) ac_try_echo
=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_compile") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1
>conftest.err
12776 cat conftest.err
>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && {
12779 test -z "$ac_c_werror_flag" ||
12780 test ! -s conftest.err
12781 } && test -s conftest.
$ac_objext; then
12782 emacs_cv_arg6_star
=yes
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.
$ac_ext >&5
12790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12792 if test "$emacs_cv_arg6_star" = yes; then
12793 cat >>confdefs.h
<<\_ACEOF
12794 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12798 cat >>confdefs.h
<<\_ACEOF
12799 #define XRegisterIMInstantiateCallback_arg6 XPointer
12803 CFLAGS
=$late_CFLAGS
12806 ### Use -lXpm if available, unless `--with-xpm=no'.
12808 if test "${HAVE_X11}" = "yes"; then
12809 if test "${with_xpm}" != "no"; then
12810 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12811 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12812 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12813 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12817 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12819 # Is the header compilable?
12820 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12821 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12822 cat >conftest.
$ac_ext <<_ACEOF
12825 cat confdefs.h
>>conftest.
$ac_ext
12826 cat >>conftest.
$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12829 #include <X11/xpm.h>
12831 rm -f conftest.
$ac_objext
12832 if { (ac_try
="$ac_compile"
12833 case "(($ac_try" in
12834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_compile") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest.$ac_objext; then
12848 ac_header_compiler=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_header_compiler=no
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12858 echo "${ECHO_T}$ac_header_compiler" >&6; }
12860 # Is the header present?
12861 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12862 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12863 cat >conftest.$ac_ext <<_ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12869 #include <X11/xpm.h>
12871 if { (ac_try="$ac_cpp conftest.$ac_ext"
12872 case "(($ac_try" in
12873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12874 *) ac_try_echo
=$ac_try;;
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12879 grep -v '^ *+' conftest.er1
>conftest.err
12881 cat conftest.err
>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } >/dev
/null
&& {
12884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12885 test ! -s conftest.err
12887 ac_header_preproc
=yes
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.
$ac_ext >&5
12892 ac_header_preproc
=no
12895 rm -f conftest.err conftest.
$ac_ext
12896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12897 echo "${ECHO_T}$ac_header_preproc" >&6; }
12899 # So? What about this header?
12900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12902 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12903 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12905 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12906 ac_header_preproc
=yes
12909 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12910 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12911 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12912 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12914 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12916 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12918 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12920 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12924 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12925 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12926 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12931 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12932 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12935 if test $ac_cv_header_X11_xpm_h = yes; then
12936 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12937 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12938 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 ac_check_lib_save_LIBS
=$LIBS
12942 LIBS
="-lXpm -lX11 $LIBS"
12943 cat >conftest.
$ac_ext <<_ACEOF
12946 cat confdefs.h
>>conftest.
$ac_ext
12947 cat >>conftest.
$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12950 /* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
12956 char XpmReadFileToPixmap ();
12960 return XpmReadFileToPixmap ();
12965 rm -f conftest.
$ac_objext conftest
$ac_exeext
12966 if { (ac_try
="$ac_link"
12967 case "(($ac_try" in
12968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } && {
12979 test -z "$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12981 } && test -s conftest$ac_exeext &&
12982 $as_test_x conftest$ac_exeext; then
12983 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12992 conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12995 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12996 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12997 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13004 if test "${HAVE_XPM}" = "yes"; then
13005 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13006 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 #include "X11/xpm.h"
13014 #ifndef XpmReturnAllocPixels
13015 no_return_alloc_pixels
13019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13028 if test "${HAVE_XPM}" = "yes"; then
13029 { echo "$as_me:$LINENO: result: yes" >&5
13030 echo "${ECHO_T}yes" >&6; }
13032 { echo "$as_me:$LINENO: result: no" >&5
13033 echo "${ECHO_T}no" >&6; }
13038 if test "${HAVE_XPM}" = "yes"; then
13040 cat >>confdefs.h <<\_ACEOF
13047 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13049 if test "${HAVE_X11}" = "yes"; then
13050 if test "${with_jpeg}" != "no"; then
13051 if test "${ac_cv_header_jerror_h+set}" = set; then
13052 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13053 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13054 if test "${ac_cv_header_jerror_h+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13058 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13060 # Is the header compilable?
13061 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13062 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13063 cat >conftest.$ac_ext <<_ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 $ac_includes_default
13070 #include <jerror.h>
13072 rm -f conftest.$ac_objext
13073 if { (ac_try="$ac_compile"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13081 grep -v '^
*+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.$ac_objext; then
13089 ac_header_compiler=yes
13091 echo "$as_me: failed program was:" >&5
13092 sed 's
/^
/|
/' conftest.$ac_ext >&5
13094 ac_header_compiler=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13099 echo "${ECHO_T}$ac_header_compiler" >&6; }
13101 # Is the header present?
13102 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13103 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <jerror.h>
13112 if { (ac_try="$ac_cpp conftest.$ac_ext"
13113 case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13120 grep -v '^
*+' conftest.er1 >conftest.err
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } >/dev/null && {
13125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13126 test ! -s conftest.err
13128 ac_header_preproc=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's
/^
/|
/' conftest.$ac_ext >&5
13133 ac_header_preproc=no
13136 rm -f conftest.err conftest.$ac_ext
13137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13138 echo "${ECHO_T}$ac_header_preproc" >&6; }
13140 # So? What about this header?
13141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13143 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13144 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13146 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13147 ac_header_preproc=yes
13150 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13151 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13153 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13155 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13157 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13159 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13161 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13165 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13166 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13167 if test "${ac_cv_header_jerror_h+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 ac_cv_header_jerror_h=$ac_header_preproc
13172 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13173 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13176 if test $ac_cv_header_jerror_h = yes; then
13177 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13178 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13179 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 ac_check_lib_save_LIBS=$LIBS
13183 LIBS="-ljpeg $LIBS"
13184 cat >conftest.$ac_ext <<_ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13191 /* Override any GCC internal prototype to avoid an error.
13192 Use char because int might match the return type of a GCC
13193 builtin and then its argument prototype would still apply. */
13197 char jpeg_destroy_compress ();
13201 return jpeg_destroy_compress ();
13206 rm -f conftest.$ac_objext conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_link") 2>conftest.er1
13215 grep -v '^
*+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest$ac_exeext &&
13223 $as_test_x conftest$ac_exeext; then
13224 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13226 echo "$as_me: failed program was:" >&5
13227 sed 's
/^
/|
/' conftest.$ac_ext >&5
13229 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13236 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13237 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13238 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13248 if test "${HAVE_JPEG}" = "yes"; then
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_JPEG 1
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <jpeglib.h>
13260 version=JPEG_LIB_VERSION
13263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13264 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13265 cat >>confdefs.h <<\_ACEOF
13266 #define HAVE_JPEG 1
13270 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13271 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13279 ### Use -lpng if available, unless `--with-png=no'.
13281 if test "${HAVE_X11}" = "yes"; then
13282 if test "${with_png}" != "no"; then
13283 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13284 # in /usr/include/libpng.
13287 for ac_header
in png.h libpng
/png.h
13289 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13290 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13293 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 ac_res
=`eval echo '${'$as_ac_Header'}'`
13297 { echo "$as_me:$LINENO: result: $ac_res" >&5
13298 echo "${ECHO_T}$ac_res" >&6; }
13300 # Is the header compilable?
13301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13303 cat >conftest.
$ac_ext <<_ACEOF
13306 cat confdefs.h
>>conftest.
$ac_ext
13307 cat >>conftest.
$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 $ac_includes_default
13310 #include <$ac_header>
13312 rm -f conftest.
$ac_objext
13313 if { (ac_try
="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_compile") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest.$ac_objext; then
13329 ac_header_compiler=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 ac_header_compiler=no
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13339 echo "${ECHO_T}$ac_header_compiler" >&6; }
13341 # Is the header present?
13342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 #include <$ac_header>
13352 if { (ac_try="$ac_cpp conftest.$ac_ext"
13353 case "(($ac_try" in
13354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13355 *) ac_try_echo
=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13360 grep -v '^ *+' conftest.er1
>conftest.err
13362 cat conftest.err
>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } >/dev
/null
&& {
13365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13366 test ! -s conftest.err
13368 ac_header_preproc
=yes
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.
$ac_ext >&5
13373 ac_header_preproc
=no
13376 rm -f conftest.err conftest.
$ac_ext
13377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13378 echo "${ECHO_T}$ac_header_preproc" >&6; }
13380 # So? What about this header?
13381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13387 ac_header_preproc
=yes
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13407 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 eval "$as_ac_Header=\$ac_header_preproc"
13412 ac_res
=`eval echo '${'$as_ac_Header'}'`
13413 { echo "$as_me:$LINENO: result: $ac_res" >&5
13414 echo "${ECHO_T}$ac_res" >&6; }
13417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13418 cat >>confdefs.h
<<_ACEOF
13419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13426 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13427 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13428 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13429 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 ac_check_lib_save_LIBS
=$LIBS
13433 LIBS
="-lpng -lz -lm $LIBS"
13434 cat >conftest.
$ac_ext <<_ACEOF
13437 cat confdefs.h
>>conftest.
$ac_ext
13438 cat >>conftest.
$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13447 char png_get_channels ();
13451 return png_get_channels ();
13456 rm -f conftest.
$ac_objext conftest
$ac_exeext
13457 if { (ac_try
="$ac_link"
13458 case "(($ac_try" in
13459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13474 ac_cv_lib_png_png_get_channels=yes
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_png_png_get_channels=no
13482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13487 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13488 if test $ac_cv_lib_png_png_get_channels = yes; then
13495 if test "${HAVE_PNG}" = "yes"; then
13497 cat >>confdefs.h <<\_ACEOF
13504 ### Use -ltiff if available, unless `--with-tiff=no
'.
13506 if test "${HAVE_X11}" = "yes"; then
13507 if test "${with_tiff}" != "no"; then
13508 if test "${ac_cv_header_tiffio_h+set}" = set; then
13509 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13510 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13511 if test "${ac_cv_header_tiffio_h+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13515 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13517 # Is the header compilable?
13518 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13519 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13520 cat >conftest.$ac_ext <<_ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 $ac_includes_default
13527 #include <tiffio.h>
13529 rm -f conftest.$ac_objext
13530 if { (ac_try="$ac_compile"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_compile") 2>conftest.er1
13538 grep -v '^
*+' conftest.er1 >conftest.err
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } && {
13543 test -z "$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13545 } && test -s conftest.$ac_objext; then
13546 ac_header_compiler=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's
/^
/|
/' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556 echo "${ECHO_T}$ac_header_compiler" >&6; }
13558 # Is the header present?
13559 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13560 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13561 cat >conftest.$ac_ext <<_ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13567 #include <tiffio.h>
13569 if { (ac_try="$ac_cpp conftest.$ac_ext"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13577 grep -v '^
*+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev/null && {
13582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13585 ac_header_preproc=yes
13587 echo "$as_me: failed program was:" >&5
13588 sed 's
/^
/|
/' conftest.$ac_ext >&5
13590 ac_header_preproc=no
13593 rm -f conftest.err conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6; }
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13600 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13603 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13604 ac_header_preproc=yes
13607 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13616 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13622 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13623 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13624 if test "${ac_cv_header_tiffio_h+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 ac_cv_header_tiffio_h=$ac_header_preproc
13629 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13630 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13633 if test $ac_cv_header_tiffio_h = yes; then
13635 # At least one tiff package requires the jpeg library.
13636 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13637 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13638 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13639 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-ltiff $tifflibs $LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13657 char TIFFGetVersion ();
13661 return TIFFGetVersion ();
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13675 grep -v '^
*+' conftest.er1 >conftest.err
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } && {
13680 test -z "$ac_c_werror_flag" ||
13681 test ! -s conftest.err
13682 } && test -s conftest$ac_exeext &&
13683 $as_test_x conftest$ac_exeext; then
13684 ac_cv_lib_tiff_TIFFGetVersion=yes
13686 echo "$as_me: failed program was:" >&5
13687 sed 's
/^
/|
/' conftest.$ac_ext >&5
13689 ac_cv_lib_tiff_TIFFGetVersion=no
13692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13693 conftest$ac_exeext conftest.$ac_ext
13694 LIBS=$ac_check_lib_save_LIBS
13696 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13697 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13698 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13707 if test "${HAVE_TIFF}" = "yes"; then
13709 cat >>confdefs.h <<\_ACEOF
13710 #define HAVE_TIFF 1
13716 ### Use -lgif if available, unless `--with-gif=no'.
13718 if test "${HAVE_X11}" = "yes"; then
13719 if test "${with_gif}" != "no"; then
13720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13721 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13722 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13727 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13729 # Is the header compilable?
13730 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13731 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13732 cat >conftest.
$ac_ext <<_ACEOF
13735 cat confdefs.h
>>conftest.
$ac_ext
13736 cat >>conftest.
$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13738 $ac_includes_default
13739 #include <gif_lib.h>
13741 rm -f conftest.
$ac_objext
13742 if { (ac_try
="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && {
13755 test -z "$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13757 } && test -s conftest.$ac_objext; then
13758 ac_header_compiler=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_header_compiler=no
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 echo "${ECHO_T}$ac_header_compiler" >&6; }
13770 # Is the header present?
13771 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13772 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13773 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <gif_lib.h>
13781 if { (ac_try="$ac_cpp conftest.$ac_ext"
13782 case "(($ac_try" in
13783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13784 *) ac_try_echo
=$ac_try;;
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13789 grep -v '^ *+' conftest.er1
>conftest.err
13791 cat conftest.err
>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } >/dev
/null
&& {
13794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13795 test ! -s conftest.err
13797 ac_header_preproc
=yes
13799 echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.
$ac_ext >&5
13802 ac_header_preproc
=no
13805 rm -f conftest.err conftest.
$ac_ext
13806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13807 echo "${ECHO_T}$ac_header_preproc" >&6; }
13809 # So? What about this header?
13810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13812 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13813 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13815 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13816 ac_header_preproc
=yes
13819 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13820 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13822 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13824 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13826 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13828 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13830 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13834 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13835 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13836 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 ac_cv_header_gif_lib_h
=$ac_header_preproc
13841 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13842 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13845 if test $ac_cv_header_gif_lib_h = yes; then
13846 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13847 # Earlier versions can crash Emacs.
13848 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13849 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13850 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 ac_check_lib_save_LIBS
=$LIBS
13854 LIBS
="-lungif $LIBS"
13855 cat >conftest.
$ac_ext <<_ACEOF
13858 cat confdefs.h
>>conftest.
$ac_ext
13859 cat >>conftest.
$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13868 char EGifPutExtensionLast ();
13872 return EGifPutExtensionLast ();
13877 rm -f conftest.
$ac_objext conftest
$ac_exeext
13878 if { (ac_try
="$ac_link"
13879 case "(($ac_try" in
13880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest$ac_exeext &&
13894 $as_test_x conftest$ac_exeext; then
13895 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_cv_lib_ungif_EGifPutExtensionLast=no
13903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13904 conftest$ac_exeext conftest.$ac_ext
13905 LIBS=$ac_check_lib_save_LIBS
13907 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13908 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13909 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13918 if test "${HAVE_GIF}" = "yes"; then
13920 cat >>confdefs.h <<\_ACEOF
13927 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13928 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13929 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13930 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13934 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13936 # Is the header compilable?
13937 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13938 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 #include <malloc/malloc.h>
13948 rm -f conftest.$ac_objext
13949 if { (ac_try="$ac_compile"
13950 case "(($ac_try" in
13951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13952 *) ac_try_echo
=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_compile") 2>conftest.er1
13957 grep -v '^ *+' conftest.er1
>conftest.err
13959 cat conftest.err
>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } && {
13962 test -z "$ac_c_werror_flag" ||
13963 test ! -s conftest.err
13964 } && test -s conftest.
$ac_objext; then
13965 ac_header_compiler
=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.
$ac_ext >&5
13970 ac_header_compiler
=no
13973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13975 echo "${ECHO_T}$ac_header_compiler" >&6; }
13977 # Is the header present?
13978 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13979 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13980 cat >conftest.
$ac_ext <<_ACEOF
13983 cat confdefs.h
>>conftest.
$ac_ext
13984 cat >>conftest.
$ac_ext <<_ACEOF
13985 /* end confdefs.h. */
13986 #include <malloc/malloc.h>
13988 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13989 case "(($ac_try" in
13990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null && {
14001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14004 ac_header_preproc=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_header_preproc=no
14012 rm -f conftest.err conftest.$ac_ext
14013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014 echo "${ECHO_T}$ac_header_preproc" >&6; }
14016 # So? What about this header?
14017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14019 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14020 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14022 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14023 ac_header_preproc=yes
14026 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14027 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14029 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14031 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14033 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14035 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14037 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14041 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14042 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14048 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14049 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14052 if test $ac_cv_header_malloc_malloc_h = yes; then
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_MALLOC_MALLOC_H 1
14062 ### Use Mac OS X Carbon API to implement GUI.
14063 if test "${HAVE_CARBON}" = "yes"; then
14065 cat >>confdefs.h <<\_ACEOF
14066 #define HAVE_CARBON 1
14069 ## Specify the install directory
14071 if test "${carbon_appdir_x}" != ""; then
14072 case ${carbon_appdir_x} in
14073 y | ye | yes) carbon_appdir=/Applications ;;
14074 * ) carbon_appdir=${carbon_appdir_x} ;;
14077 # We also have mouse menus.
14081 ### Use session management (-lSM -lICE) if available
14083 if test "${HAVE_X11}" = "yes"; then
14084 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14085 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14086 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14091 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14093 # Is the header compilable?
14094 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14095 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14096 cat >conftest.$ac_ext <<_ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14102 $ac_includes_default
14103 #include <X11/SM/SMlib.h>
14105 rm -f conftest.$ac_objext
14106 if { (ac_try="$ac_compile"
14107 case "(($ac_try" in
14108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14109 *) ac_try_echo
=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_compile") 2>conftest.er1
14114 grep -v '^ *+' conftest.er1
>conftest.err
14116 cat conftest.err
>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest.
$ac_objext; then
14122 ac_header_compiler
=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.
$ac_ext >&5
14127 ac_header_compiler
=no
14130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14132 echo "${ECHO_T}$ac_header_compiler" >&6; }
14134 # Is the header present?
14135 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14136 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14137 cat >conftest.
$ac_ext <<_ACEOF
14140 cat confdefs.h
>>conftest.
$ac_ext
14141 cat >>conftest.
$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <X11/SM/SMlib.h>
14145 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14146 case "(($ac_try" in
14147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14153 grep -v '^ *+' conftest.er1 >conftest.err
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } >/dev/null && {
14158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14159 test ! -s conftest.err
14161 ac_header_preproc=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_header_preproc=no
14169 rm -f conftest.err conftest.$ac_ext
14170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14171 echo "${ECHO_T}$ac_header_preproc" >&6; }
14173 # So? What about this header?
14174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14177 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14179 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14180 ac_header_preproc=yes
14183 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14184 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14186 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14188 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14190 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14192 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14194 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14198 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14199 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14200 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14205 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14206 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14209 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14210 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14211 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14212 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-lSM -lICE $LIBS"
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14230 char SmcOpenConnection ();
14234 return SmcOpenConnection ();
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14243 *) ac_try_echo
=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1
>conftest.err
14250 cat conftest.err
>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest
$ac_exeext &&
14256 $as_test_x conftest
$ac_exeext; then
14257 ac_cv_lib_SM_SmcOpenConnection
=yes
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.
$ac_ext >&5
14262 ac_cv_lib_SM_SmcOpenConnection
=no
14265 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14266 conftest
$ac_exeext conftest.
$ac_ext
14267 LIBS
=$ac_check_lib_save_LIBS
14269 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14270 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14271 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14279 if test "${HAVE_X_SM}" = "yes"; then
14281 cat >>confdefs.h
<<\_ACEOF
14282 #define HAVE_X_SM 1
14287 *) LIBS
="-lSM -lICE $LIBS" ;;
14292 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14293 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14294 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14295 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 cat >conftest.
$ac_ext <<_ACEOF
14301 cat confdefs.h
>>conftest.
$ac_ext
14302 cat >>conftest.
$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14313 rm -f conftest.
$ac_objext conftest
$ac_exeext
14314 if { (ac_try
="$ac_link"
14315 case "(($ac_try" in
14316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_link") 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest$ac_exeext &&
14330 $as_test_x conftest$ac_exeext; then
14331 emacs_cv_netdb_declares_h_errno=yes
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 emacs_cv_netdb_declares_h_errno=no
14339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14340 conftest$ac_exeext conftest.$ac_ext
14342 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14343 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14344 if test $emacs_cv_netdb_declares_h_errno = yes; then
14346 cat >>confdefs.h <<\_ACEOF
14347 #define HAVE_H_ERRNO 1
14352 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14353 # for constant arguments. Useless!
14354 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14355 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14356 if test "${ac_cv_working_alloca_h+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 #include <alloca.h>
14369 char *p = (char *) alloca (2 * sizeof (int));
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (ac_try="$ac_link"
14377 case "(($ac_try" in
14378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14379 *) ac_try_echo
=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_link") 2>conftest.er1
14384 grep -v '^ *+' conftest.er1
>conftest.err
14386 cat conftest.err
>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest
$ac_exeext &&
14392 $as_test_x conftest
$ac_exeext; then
14393 ac_cv_working_alloca_h
=yes
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.
$ac_ext >&5
14398 ac_cv_working_alloca_h
=no
14401 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14402 conftest
$ac_exeext conftest.
$ac_ext
14404 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14405 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14406 if test $ac_cv_working_alloca_h = yes; then
14408 cat >>confdefs.h
<<\_ACEOF
14409 #define HAVE_ALLOCA_H 1
14414 { echo "$as_me:$LINENO: checking for alloca" >&5
14415 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14416 if test "${ac_cv_func_alloca_works+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 cat >conftest.
$ac_ext <<_ACEOF
14422 cat confdefs.h
>>conftest.
$ac_ext
14423 cat >>conftest.
$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14426 # define alloca __builtin_alloca
14429 # include <malloc.h>
14430 # define alloca _alloca
14432 # ifdef HAVE_ALLOCA_H
14433 # include <alloca.h>
14438 # ifndef alloca /* predefined by HP cc +Olibcalls */
14449 char *p = (char *) alloca (1);
14455 rm -f conftest.
$ac_objext conftest
$ac_exeext
14456 if { (ac_try
="$ac_link"
14457 case "(($ac_try" in
14458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest$ac_exeext &&
14472 $as_test_x conftest$ac_exeext; then
14473 ac_cv_func_alloca_works=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_func_alloca_works=no
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14485 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14487 if test $ac_cv_func_alloca_works = yes; then
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_ALLOCA 1
14494 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14495 # that cause trouble. Some versions do not even contain alloca or
14496 # contain a buggy version. If you still want to use their alloca,
14497 # use ar to extract alloca.o from them instead of compiling alloca.c.
14499 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14501 cat >>confdefs.h <<\_ACEOF
14506 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14507 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14508 if test "${ac_cv_os_cray+set}" = set; then
14509 echo $ECHO_N "(cached
) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #if defined CRAY && ! defined CRAY2
14524 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14525 $EGREP "webecray
" >/dev/null 2>&1; then
14533 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14534 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14535 if test $ac_cv_os_cray = yes; then
14536 for ac_func in _getb67 GETB67 getb67; do
14537 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14538 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14539 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14540 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14541 echo $ECHO_N "(cached
) $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14551 #define $ac_func innocuous_$ac_func
14553 /* System header to define __stub macros and hopefully few prototypes,
14554 which can conflict with char $ac_func (); below.
14555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14556 <limits.h> exists even on freestanding compilers. */
14559 # include <limits.h>
14561 # include <assert.h>
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14573 /* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576 #if defined __stub_$ac_func || defined __stub___$ac_func
14583 return $ac_func ();
14588 rm -f conftest.$ac_objext conftest$ac_exeext
14589 if { (ac_try="$ac_link"
14590 case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_link") 2>conftest.er1
14597 grep -v '^ *+' conftest.er1 >conftest.err
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest$ac_exeext &&
14605 $as_test_x conftest$ac_exeext; then
14606 eval "$as_ac_var=yes"
14608 echo "$as_me: failed program was
:" >&5
14609 sed 's/^/| /' conftest.$ac_ext >&5
14611 eval "$as_ac_var=no
"
14614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14615 conftest$ac_exeext conftest.$ac_ext
14617 ac_res=`eval echo '${'$as_ac_var'}'`
14618 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14619 echo "${ECHO_T}$ac_res" >&6; }
14620 if test `eval echo '${'$as_ac_var'}'` = yes; then
14622 cat >>confdefs.h <<_ACEOF
14623 #define CRAY_STACKSEG_END $ac_func
14632 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14633 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14634 if test "${ac_cv_c_stack_direction+set}" = set; then
14635 echo $ECHO_N "(cached
) $ECHO_C" >&6
14637 if test "$cross_compiling" = yes; then
14638 ac_cv_c_stack_direction=0
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 $ac_includes_default
14648 find_stack_direction ()
14650 static char *addr = 0;
14655 return find_stack_direction ();
14658 return (&dummy > addr) ? 1 : -1;
14664 return find_stack_direction () < 0;
14667 rm -f conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>&5
14676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14678 { (case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14683 (eval "$ac_try") 2>&5
14685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_c_stack_direction=1
14689 echo "$as_me: program exited with status
$ac_status" >&5
14690 echo "$as_me: failed program was
:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ( exit $ac_status )
14694 ac_cv_c_stack_direction=-1
14696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14702 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14704 cat >>confdefs.h <<_ACEOF
14705 #define STACK_DIRECTION $ac_cv_c_stack_direction
14712 # fmod, logb, and frexp are found in -lm on most systems.
14713 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14715 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14716 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14717 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14718 echo $ECHO_N "(cached
) $ECHO_C" >&6
14720 ac_check_lib_save_LIBS=$LIBS
14722 cat >conftest.$ac_ext <<_ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14729 /* Override any GCC internal prototype to avoid an error.
14730 Use char because int might match the return type of a GCC
14731 builtin and then its argument prototype would still apply. */
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (ac_try="$ac_link"
14746 case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_link") 2>conftest.er1
14753 grep -v '^ *+' conftest.er1 >conftest.err
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14757 (exit $ac_status); } && {
14758 test -z "$ac_c_werror_flag" ||
14759 test ! -s conftest.err
14760 } && test -s conftest$ac_exeext &&
14761 $as_test_x conftest$ac_exeext; then
14762 ac_cv_lib_m_sqrt=yes
14764 echo "$as_me: failed program was
:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 ac_cv_lib_m_sqrt=no
14770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14771 conftest$ac_exeext conftest.$ac_ext
14772 LIBS=$ac_check_lib_save_LIBS
14774 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14775 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14776 if test $ac_cv_lib_m_sqrt = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define HAVE_LIBM 1
14786 # Check for mail-locking functions in a "mail" library. Probably this should
14787 # have the same check as for liblockfile below.
14789 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14790 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14791 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14792 echo $ECHO_N "(cached
) $ECHO_C" >&6
14794 ac_check_lib_save_LIBS=$LIBS
14795 LIBS="-lmail $LIBS"
14796 cat >conftest.$ac_ext <<_ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14803 /* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14813 return maillock ();
14818 rm -f conftest.$ac_objext conftest$ac_exeext
14819 if { (ac_try="$ac_link"
14820 case "(($ac_try" in
14821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822 *) ac_try_echo=$ac_try;;
14824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14825 (eval "$ac_link") 2>conftest.er1
14827 grep -v '^ *+' conftest.er1 >conftest.err
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14831 (exit $ac_status); } && {
14832 test -z "$ac_c_werror_flag" ||
14833 test ! -s conftest.err
14834 } && test -s conftest$ac_exeext &&
14835 $as_test_x conftest$ac_exeext; then
14836 ac_cv_lib_mail_maillock=yes
14838 echo "$as_me: failed program was
:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_cv_lib_mail_maillock=no
14844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS
14848 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14849 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14850 if test $ac_cv_lib_mail_maillock = yes; then
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_LIBMAIL 1
14855 LIBS="-lmail $LIBS"
14860 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14861 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14862 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14863 echo $ECHO_N "(cached
) $ECHO_C" >&6
14865 ac_check_lib_save_LIBS=$LIBS
14866 LIBS="-llockfile $LIBS"
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14874 /* Override any GCC internal prototype to avoid an error.
14875 Use char because int might match the return type of a GCC
14876 builtin and then its argument prototype would still apply. */
14884 return maillock ();
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14902 (exit $ac_status); } && {
14903 test -z "$ac_c_werror_flag" ||
14904 test ! -s conftest.err
14905 } && test -s conftest$ac_exeext &&
14906 $as_test_x conftest$ac_exeext; then
14907 ac_cv_lib_lockfile_maillock=yes
14909 echo "$as_me: failed program was
:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_lib_lockfile_maillock=no
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14919 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14920 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14921 if test $ac_cv_lib_lockfile_maillock = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_LIBLOCKFILE 1
14926 LIBS="-llockfile $LIBS"
14930 # If we have the shared liblockfile, assume we must use it for mail
14931 # locking (e.g. Debian). If we couldn't link against liblockfile
14932 # (no liblockfile.a installed), ensure that we don't need to.
14933 if test "$ac_cv_lib_lockfile_maillock" = no; then
14934 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14935 set dummy liblockfile.so; ac_word=$2
14936 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14937 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14938 if test "${ac_cv_prog_liblockfile+set}" = set; then
14939 echo $ECHO_N "(cached
) $ECHO_C" >&6
14941 if test -n "$liblockfile"; then
14942 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14945 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14946 for as_dir in $as_dummy
14949 test -z "$as_dir" && as_dir=.
14950 for ac_exec_ext in '' $ac_executable_extensions; do
14951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14952 ac_cv_prog_liblockfile="yes"
14953 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14960 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14963 liblockfile=$ac_cv_prog_liblockfile
14964 if test -n "$liblockfile"; then
14965 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14966 echo "${ECHO_T}$liblockfile" >&6; }
14968 { echo "$as_me:$LINENO: result
: no
" >&5
14969 echo "${ECHO_T}no
" >&6; }
14973 if test $ac_cv_prog_liblockfile = yes; then
14974 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14975 This probably means that movemail could lose mail.
14976 There may be a \`development' package to
install containing liblockfile.
" >&5
14977 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14978 This probably means that movemail could lose mail.
14979 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14980 { (exit 1); exit 1; }; }
14985 for ac_func in touchlock
14987 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14988 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14989 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14990 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14991 echo $ECHO_N "(cached
) $ECHO_C" >&6
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15001 #define $ac_func innocuous_$ac_func
15003 /* System header to define __stub macros and hopefully few prototypes,
15004 which can conflict with char $ac_func (); below.
15005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15006 <limits.h> exists even on freestanding compilers. */
15009 # include <limits.h>
15011 # include <assert.h>
15016 /* Override any GCC internal prototype to avoid an error.
15017 Use char because int might match the return type of a GCC
15018 builtin and then its argument prototype would still apply. */
15023 /* The GNU C library defines this for functions which it implements
15024 to always fail with ENOSYS. Some functions are actually named
15025 something starting with __ and the normal name is an alias. */
15026 #if defined __stub_$ac_func || defined __stub___$ac_func
15033 return $ac_func ();
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15047 grep -v '^ *+' conftest.er1 >conftest.err
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest$ac_exeext &&
15055 $as_test_x conftest$ac_exeext; then
15056 eval "$as_ac_var=yes"
15058 echo "$as_me: failed program was
:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 eval "$as_ac_var=no
"
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15067 ac_res=`eval echo '${'$as_ac_var'}'`
15068 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15069 echo "${ECHO_T}$ac_res" >&6; }
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15079 for ac_header in maillock.h
15081 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15083 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15084 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15086 echo $ECHO_N "(cached
) $ECHO_C" >&6
15088 ac_res=`eval echo '${'$as_ac_Header'}'`
15089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15090 echo "${ECHO_T}$ac_res" >&6; }
15092 # Is the header compilable?
15093 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15094 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 $ac_includes_default
15102 #include <$ac_header>
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest.$ac_objext; then
15121 ac_header_compiler=yes
15123 echo "$as_me: failed program was
:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_header_compiler=no
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15131 echo "${ECHO_T}$ac_header_compiler" >&6; }
15133 # Is the header present?
15134 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15135 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 #include <$ac_header>
15144 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15156 (exit $ac_status); } >/dev/null && {
15157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15160 ac_header_preproc=yes
15162 echo "$as_me: failed program was
:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_header_preproc=no
15168 rm -f conftest.err conftest.$ac_ext
15169 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15170 echo "${ECHO_T}$ac_header_preproc" >&6; }
15172 # So? What about this header?
15173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15175 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15176 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15177 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15179 ac_header_preproc=yes
15182 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15183 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15184 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15185 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15186 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15187 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15188 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15189 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15190 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15192 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15193 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15197 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15198 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached
) $ECHO_C" >&6
15202 eval "$as_ac_Header=\
$ac_header_preproc"
15204 ac_res=`eval echo '${'$as_ac_Header'}'`
15205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15206 echo "${ECHO_T}$ac_res" >&6; }
15209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15210 cat >>confdefs.h <<_ACEOF
15211 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15288 for ac_func in gethostname getdomainname dup2 \
15289 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15290 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15291 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15292 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15293 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15294 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15295 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15296 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15298 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15299 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15300 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15301 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15302 echo $ECHO_N "(cached
) $ECHO_C" >&6
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15312 #define $ac_func innocuous_$ac_func
15314 /* System header to define __stub macros and hopefully few prototypes,
15315 which can conflict with char $ac_func (); below.
15316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15317 <limits.h> exists even on freestanding compilers. */
15320 # include <limits.h>
15322 # include <assert.h>
15327 /* Override any GCC internal prototype to avoid an error.
15328 Use char because int might match the return type of a GCC
15329 builtin and then its argument prototype would still apply. */
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined __stub_$ac_func || defined __stub___$ac_func
15344 return $ac_func ();
15349 rm -f conftest.$ac_objext conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext &&
15366 $as_test_x conftest$ac_exeext; then
15367 eval "$as_ac_var=yes"
15369 echo "$as_me: failed program was
:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15372 eval "$as_ac_var=no
"
15375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15376 conftest$ac_exeext conftest.$ac_ext
15378 ac_res=`eval echo '${'$as_ac_var'}'`
15379 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15380 echo "${ECHO_T}$ac_res" >&6; }
15381 if test `eval echo '${'$as_ac_var'}'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15391 for ac_header in sys/un.h
15393 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15394 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15395 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15396 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15398 echo $ECHO_N "(cached
) $ECHO_C" >&6
15400 ac_res=`eval echo '${'$as_ac_Header'}'`
15401 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15402 echo "${ECHO_T}$ac_res" >&6; }
15404 # Is the header compilable?
15405 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15406 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15407 cat >conftest.$ac_ext <<_ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 #include <$ac_header>
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_header_compiler=yes
15435 echo "$as_me: failed program was
:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_header_compiler=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15443 echo "${ECHO_T}$ac_header_compiler" >&6; }
15445 # Is the header present?
15446 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15447 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <$ac_header>
15456 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15462 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15464 grep -v '^ *+' conftest.er1 >conftest.err
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15468 (exit $ac_status); } >/dev/null && {
15469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15470 test ! -s conftest.err
15472 ac_header_preproc=yes
15474 echo "$as_me: failed program was
:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_header_preproc=no
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15488 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15491 ac_header_preproc=yes
15494 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15495 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15496 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15497 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15498 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15499 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15500 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15501 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15504 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15505 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15509 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15510 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15511 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15512 echo $ECHO_N "(cached
) $ECHO_C" >&6
15514 eval "$as_ac_Header=\
$ac_header_preproc"
15516 ac_res=`eval echo '${'$as_ac_Header'}'`
15517 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15518 echo "${ECHO_T}$ac_res" >&6; }
15521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15522 cat >>confdefs.h <<_ACEOF
15523 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15535 for ac_header in $ac_header_list
15537 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15539 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15540 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15541 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached
) $ECHO_C" >&6
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15548 # Is the header compilable?
15549 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15550 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15558 #include <$ac_header>
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_compile") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15573 (exit $ac_status); } && {
15574 test -z "$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 } && test -s conftest.$ac_objext; then
15577 ac_header_compiler=yes
15579 echo "$as_me: failed program was
:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15591 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15600 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15612 (exit $ac_status); } >/dev/null && {
15613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15614 test ! -s conftest.err
15616 ac_header_preproc=yes
15618 echo "$as_me: failed program was
:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_header_preproc=no
15624 rm -f conftest.err conftest.$ac_ext
15625 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6; }
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15631 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15632 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15635 ac_header_preproc=yes
15638 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15639 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15640 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15641 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15642 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15643 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15644 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15645 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15648 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15649 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15656 echo $ECHO_N "(cached
) $ECHO_C" >&6
15658 eval "$as_ac_Header=\
$ac_header_preproc"
15660 ac_res=`eval echo '${'$as_ac_Header'}'`
15661 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15662 echo "${ECHO_T}$ac_res" >&6; }
15665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15666 cat >>confdefs.h <<_ACEOF
15667 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15682 for ac_func in $ac_func_list
15684 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15685 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15686 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15687 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15688 echo $ECHO_N "(cached
) $ECHO_C" >&6
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15698 #define $ac_func innocuous_$ac_func
15700 /* System header to define __stub macros and hopefully few prototypes,
15701 which can conflict with char $ac_func (); below.
15702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15703 <limits.h> exists even on freestanding compilers. */
15706 # include <limits.h>
15708 # include <assert.h>
15713 /* Override any GCC internal prototype to avoid an error.
15714 Use char because int might match the return type of a GCC
15715 builtin and then its argument prototype would still apply. */
15720 /* The GNU C library defines this for functions which it implements
15721 to always fail with ENOSYS. Some functions are actually named
15722 something starting with __ and the normal name is an alias. */
15723 #if defined __stub_$ac_func || defined __stub___$ac_func
15730 return $ac_func ();
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (ac_try="$ac_link"
15737 case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_link") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest$ac_exeext &&
15752 $as_test_x conftest$ac_exeext; then
15753 eval "$as_ac_var=yes"
15755 echo "$as_me: failed program was
:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 eval "$as_ac_var=no
"
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762 conftest$ac_exeext conftest.$ac_ext
15764 ac_res=`eval echo '${'$as_ac_var'}'`
15765 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15767 if test `eval echo '${'$as_ac_var'}'` = yes; then
15768 cat >>confdefs.h <<_ACEOF
15769 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15791 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15792 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15793 if test "${ac_cv_func_working_mktime+set}" = set; then
15794 echo $ECHO_N "(cached
) $ECHO_C" >&6
15796 if test "$cross_compiling" = yes; then
15797 ac_cv_func_working_mktime=no
15799 cat >conftest.$ac_ext <<_ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 /* Test program from Paul Eggert and Tony Leneis. */
15806 #ifdef TIME_WITH_SYS_TIME
15807 # include <sys/time.h>
15810 # ifdef HAVE_SYS_TIME_H
15811 # include <sys/time.h>
15817 #include <stdlib.h>
15819 #ifdef HAVE_UNISTD_H
15820 # include <unistd.h>
15824 # define alarm(X) /* empty */
15827 /* Work around redefinition to rpl_putenv by other config tests. */
15830 static time_t time_t_max;
15831 static time_t time_t_min;
15833 /* Values we'll use to set the TZ environment variable. */
15834 static char *tz_strings[] = {
15835 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15836 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15838 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15840 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15841 Based on a problem report from Andreas Jaeger. */
15843 spring_forward_gap ()
15845 /* glibc (up to about 1998-10-07) failed this test. */
15848 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15849 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15850 on systems that don't support the Olson extension, or don't have the
15851 full zoneinfo tables installed. */
15852 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15861 return mktime (&tm) != (time_t) -1;
15869 return ! (lt = localtime (&now)) || mktime (lt) == now;
15876 return (mktime_test1 (now)
15877 && mktime_test1 ((time_t) (time_t_max - now))
15878 && mktime_test1 ((time_t) (time_t_min + now)));
15884 /* Based on code from Ariel Faigon. */
15894 return tm.tm_mon == 2 && tm.tm_mday == 31;
15903 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15904 now = mktime (&tm);
15905 if (now != (time_t) -1)
15907 struct tm *lt = localtime (&now);
15909 && lt->tm_year == tm.tm_year
15910 && lt->tm_mon == tm.tm_mon
15911 && lt->tm_mday == tm.tm_mday
15912 && lt->tm_hour == tm.tm_hour
15913 && lt->tm_min == tm.tm_min
15914 && lt->tm_sec == tm.tm_sec
15915 && lt->tm_yday == tm.tm_yday
15916 && lt->tm_wday == tm.tm_wday
15917 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15918 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15927 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15928 ignoring leap seconds. */
15929 unsigned long int answer = 2527315200UL;
15933 tm.tm_year = 2050 - 1900;
15936 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15939 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15940 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15941 on systems that don't support the Olson extension, or don't have the
15942 full zoneinfo tables installed. */
15943 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15947 /* Check that the result is either a failure, or close enough
15948 to the correct answer that we can assume the discrepancy is
15949 due to leap seconds. */
15950 return (t == (time_t) -1
15951 || (0 < t && answer - 120 <= t && t <= answer + 120));
15960 /* This test makes some buggy mktime implementations loop.
15961 Give up after 60 seconds; a mktime slower than that
15962 isn't worth using anyway. */
15965 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15968 if ((time_t) -1 < 0)
15969 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15971 delta = time_t_max / 997; /* a suitable prime number */
15972 for (i = 0; i < N_STRINGS; i++)
15975 putenv (tz_strings[i]);
15977 for (t = 0; t <= time_t_max - delta; t += delta)
15978 if (! mktime_test (t))
15980 if (! (mktime_test ((time_t) 1)
15981 && mktime_test ((time_t) (60 * 60))
15982 && mktime_test ((time_t) (60 * 60 * 24))))
15985 for (j = 1; 0 < j; j *= 2)
15986 if (! bigtime_test (j))
15988 if (! bigtime_test (j - 1))
15991 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15994 rm -f conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>&5
16003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_func_working_mktime=yes
16016 echo "$as_me: program exited with status
$ac_status" >&5
16017 echo "$as_me: failed program was
:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ( exit $ac_status )
16021 ac_cv_func_working_mktime=no
16023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16029 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16030 if test $ac_cv_func_working_mktime = no; then
16031 case " $LIBOBJS " in
16032 *" mktime.
$ac_objext "* ) ;;
16033 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16039 if test "$ac_cv_func_working_mktime" = no; then
16041 cat >>confdefs.h <<\_ACEOF
16042 #define BROKEN_MKTIME 1
16047 ac_have_func=no # yes means we've found a way to get the load average.
16049 # Make sure getloadavg.c is where it belongs, at configure-time.
16050 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16051 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16052 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16053 { (exit 1); exit 1; }; }
16057 # Check for getloadavg, but be sure not to touch the cache variable.
16058 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16059 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16060 if test "${ac_cv_func_getloadavg+set}" = set; then
16061 echo $ECHO_N "(cached
) $ECHO_C" >&6
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16071 #define getloadavg innocuous_getloadavg
16073 /* System header to define __stub macros and hopefully few prototypes,
16074 which can conflict with char getloadavg (); below.
16075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16076 <limits.h> exists even on freestanding compilers. */
16079 # include <limits.h>
16081 # include <assert.h>
16086 /* Override any GCC internal prototype to avoid an error.
16087 Use char because int might match the return type of a GCC
16088 builtin and then its argument prototype would still apply. */
16092 char getloadavg ();
16093 /* The GNU C library defines this for functions which it implements
16094 to always fail with ENOSYS. Some functions are actually named
16095 something starting with __ and the normal name is an alias. */
16096 #if defined __stub_getloadavg || defined __stub___getloadavg
16103 return getloadavg ();
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (ac_try="$ac_link"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_link") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest$ac_exeext &&
16125 $as_test_x conftest$ac_exeext; then
16126 ac_cv_func_getloadavg=yes
16128 echo "$as_me: failed program was
:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_cv_func_getloadavg=no
16134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16135 conftest$ac_exeext conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16138 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16139 if test $ac_cv_func_getloadavg = yes; then
16144 ) && ac_have_func=yes
16146 # On HPUX9, an unprivileged user can get load averages through this function.
16148 for ac_func in pstat_getdynamic
16150 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16151 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16152 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16153 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16154 echo $ECHO_N "(cached
) $ECHO_C" >&6
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16164 #define $ac_func innocuous_$ac_func
16166 /* System header to define __stub macros and hopefully few prototypes,
16167 which can conflict with char $ac_func (); below.
16168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16169 <limits.h> exists even on freestanding compilers. */
16172 # include <limits.h>
16174 # include <assert.h>
16179 /* Override any GCC internal prototype to avoid an error.
16180 Use char because int might match the return type of a GCC
16181 builtin and then its argument prototype would still apply. */
16186 /* The GNU C library defines this for functions which it implements
16187 to always fail with ENOSYS. Some functions are actually named
16188 something starting with __ and the normal name is an alias. */
16189 #if defined __stub_$ac_func || defined __stub___$ac_func
16196 return $ac_func ();
16201 rm -f conftest.$ac_objext conftest$ac_exeext
16202 if { (ac_try="$ac_link"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_link") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest$ac_exeext &&
16218 $as_test_x conftest$ac_exeext; then
16219 eval "$as_ac_var=yes"
16221 echo "$as_me: failed program was
:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 eval "$as_ac_var=no
"
16227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16228 conftest$ac_exeext conftest.$ac_ext
16230 ac_res=`eval echo '${'$as_ac_var'}'`
16231 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16233 if test `eval echo '${'$as_ac_var'}'` = yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16242 # Solaris has libkstat which does not require root.
16244 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16245 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16246 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16247 echo $ECHO_N "(cached
) $ECHO_C" >&6
16249 ac_check_lib_save_LIBS=$LIBS
16250 LIBS="-lkstat $LIBS"
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16258 /* Override any GCC internal prototype to avoid an error.
16259 Use char because int might match the return type of a GCC
16260 builtin and then its argument prototype would still apply. */
16264 char kstat_open ();
16268 return kstat_open ();
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (ac_try="$ac_link"
16275 case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16280 (eval "$ac_link") 2>conftest.er1
16282 grep -v '^ *+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16286 (exit $ac_status); } && {
16287 test -z "$ac_c_werror_flag" ||
16288 test ! -s conftest.err
16289 } && test -s conftest$ac_exeext &&
16290 $as_test_x conftest$ac_exeext; then
16291 ac_cv_lib_kstat_kstat_open=yes
16293 echo "$as_me: failed program was
:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_cv_lib_kstat_kstat_open=no
16299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16300 conftest$ac_exeext conftest.$ac_ext
16301 LIBS=$ac_check_lib_save_LIBS
16303 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16304 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16305 if test $ac_cv_lib_kstat_kstat_open = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_LIBKSTAT 1
16310 LIBS="-lkstat $LIBS"
16314 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16316 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16317 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16318 # to get the right answer into the cache.
16319 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16320 if test $ac_have_func = no; then
16321 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16322 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16323 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16324 echo $ECHO_N "(cached
) $ECHO_C" >&6
16326 ac_check_lib_save_LIBS=$LIBS
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16345 return elf_begin ();
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest$ac_exeext &&
16367 $as_test_x conftest$ac_exeext; then
16368 ac_cv_lib_elf_elf_begin=yes
16370 echo "$as_me: failed program was
:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_lib_elf_elf_begin=no
16376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378 LIBS=$ac_check_lib_save_LIBS
16380 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16381 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16382 if test $ac_cv_lib_elf_elf_begin = yes; then
16387 if test $ac_have_func = no; then
16388 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16389 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16390 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16391 echo $ECHO_N "(cached
) $ECHO_C" >&6
16393 ac_check_lib_save_LIBS=$LIBS
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16412 return kvm_open ();
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (ac_try="$ac_link"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_link") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16430 (exit $ac_status); } && {
16431 test -z "$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16433 } && test -s conftest$ac_exeext &&
16434 $as_test_x conftest$ac_exeext; then
16435 ac_cv_lib_kvm_kvm_open=yes
16437 echo "$as_me: failed program was
:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_cv_lib_kvm_kvm_open=no
16443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16444 conftest$ac_exeext conftest.$ac_ext
16445 LIBS=$ac_check_lib_save_LIBS
16447 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16448 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16449 if test $ac_cv_lib_kvm_kvm_open = yes; then
16453 # Check for the 4.4BSD definition of getloadavg.
16454 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16455 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16456 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16457 echo $ECHO_N "(cached
) $ECHO_C" >&6
16459 ac_check_lib_save_LIBS=$LIBS
16460 LIBS="-lutil $LIBS"
16461 cat >conftest.$ac_ext <<_ACEOF
16464 cat confdefs.h >>conftest.$ac_ext
16465 cat >>conftest.$ac_ext <<_ACEOF
16466 /* end confdefs.h. */
16468 /* Override any GCC internal prototype to avoid an error.
16469 Use char because int might match the return type of a GCC
16470 builtin and then its argument prototype would still apply. */
16474 char getloadavg ();
16478 return getloadavg ();
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (ac_try="$ac_link"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_link") 2>conftest.er1
16492 grep -v '^ *+' conftest.er1 >conftest.err
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16496 (exit $ac_status); } && {
16497 test -z "$ac_c_werror_flag" ||
16498 test ! -s conftest.err
16499 } && test -s conftest$ac_exeext &&
16500 $as_test_x conftest$ac_exeext; then
16501 ac_cv_lib_util_getloadavg=yes
16503 echo "$as_me: failed program was
:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_cv_lib_util_getloadavg=no
16509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16510 conftest$ac_exeext conftest.$ac_ext
16511 LIBS=$ac_check_lib_save_LIBS
16513 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16514 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16515 if test $ac_cv_lib_util_getloadavg = yes; then
16516 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16521 if test $ac_have_func = no; then
16522 # There is a commonly available library for RS/6000 AIX.
16523 # Since it is not a standard part of AIX, it might be installed locally.
16524 ac_getloadavg_LIBS=$LIBS
16525 LIBS="-L/usr
/local
/lib
$LIBS"
16526 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16527 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16528 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16529 echo $ECHO_N "(cached
) $ECHO_C" >&6
16531 ac_check_lib_save_LIBS=$LIBS
16532 LIBS="-lgetloadavg $LIBS"
16533 cat >conftest.$ac_ext <<_ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16540 /* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16546 char getloadavg ();
16550 return getloadavg ();
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (ac_try="$ac_link"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16564 grep -v '^ *+' conftest.er1 >conftest.err
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16568 (exit $ac_status); } && {
16569 test -z "$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 } && test -s conftest$ac_exeext &&
16572 $as_test_x conftest$ac_exeext; then
16573 ac_cv_lib_getloadavg_getloadavg=yes
16575 echo "$as_me: failed program was
:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_getloadavg_getloadavg=no
16581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16582 conftest$ac_exeext conftest.$ac_ext
16583 LIBS=$ac_check_lib_save_LIBS
16585 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16586 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16587 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16588 LIBS="-lgetloadavg $LIBS"
16590 LIBS=$ac_getloadavg_LIBS
16595 # Make sure it is really in the library, if we think we found it,
16596 # otherwise set up the replacement function.
16598 for ac_func in getloadavg
16600 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16601 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16602 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16603 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16604 echo $ECHO_N "(cached
) $ECHO_C" >&6
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16614 #define $ac_func innocuous_$ac_func
16616 /* System header to define __stub macros and hopefully few prototypes,
16617 which can conflict with char $ac_func (); below.
16618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16619 <limits.h> exists even on freestanding compilers. */
16622 # include <limits.h>
16624 # include <assert.h>
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16636 /* The GNU C library defines this for functions which it implements
16637 to always fail with ENOSYS. Some functions are actually named
16638 something starting with __ and the normal name is an alias. */
16639 #if defined __stub_$ac_func || defined __stub___$ac_func
16646 return $ac_func ();
16651 rm -f conftest.$ac_objext conftest$ac_exeext
16652 if { (ac_try="$ac_link"
16653 case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_link") 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest$ac_exeext &&
16668 $as_test_x conftest$ac_exeext; then
16669 eval "$as_ac_var=yes"
16671 echo "$as_me: failed program was
:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 eval "$as_ac_var=no
"
16677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16678 conftest$ac_exeext conftest.$ac_ext
16680 ac_res=`eval echo '${'$as_ac_var'}'`
16681 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16682 echo "${ECHO_T}$ac_res" >&6; }
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16689 case " $LIBOBJS " in
16690 *" getloadavg.
$ac_objext "* ) ;;
16691 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16696 cat >>confdefs.h <<\_ACEOF
16697 #define C_GETLOADAVG 1
16700 # Figure out what our getloadavg.c needs.
16702 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16703 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16704 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16705 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16706 echo $ECHO_N "(cached
) $ECHO_C" >&6
16708 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16709 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16711 # Is the header compilable?
16712 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16713 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16714 cat >conftest.$ac_ext <<_ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16721 #include <sys/dg_sys_info.h>
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.$ac_objext; then
16740 ac_header_compiler=yes
16742 echo "$as_me: failed program was
:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_header_compiler=no
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6; }
16752 # Is the header present?
16753 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16754 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <sys/dg_sys_info.h>
16763 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16764 case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16771 grep -v '^ *+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16775 (exit $ac_status); } >/dev/null && {
16776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16779 ac_header_preproc=yes
16781 echo "$as_me: failed program was
:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_header_preproc=no
16787 rm -f conftest.err conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6; }
16791 # So? What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16794 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16795 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16796 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16797 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16798 ac_header_preproc=yes
16801 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16802 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16803 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16804 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16805 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16806 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16807 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16808 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16809 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16810 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16811 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16812 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16816 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16817 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16818 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16819 echo $ECHO_N "(cached
) $ECHO_C" >&6
16821 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16823 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16824 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16827 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16830 cat >>confdefs.h <<\_ACEOF
16835 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16836 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16837 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16838 echo $ECHO_N "(cached
) $ECHO_C" >&6
16840 ac_check_lib_save_LIBS=$LIBS
16842 cat >conftest.$ac_ext <<_ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16849 /* Override any GCC internal prototype to avoid an error.
16850 Use char because int might match the return type of a GCC
16851 builtin and then its argument prototype would still apply. */
16855 char dg_sys_info ();
16859 return dg_sys_info ();
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_link") 2>conftest.er1
16873 grep -v '^ *+' conftest.er1 >conftest.err
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16877 (exit $ac_status); } && {
16878 test -z "$ac_c_werror_flag" ||
16879 test ! -s conftest.err
16880 } && test -s conftest$ac_exeext &&
16881 $as_test_x conftest$ac_exeext; then
16882 ac_cv_lib_dgc_dg_sys_info=yes
16884 echo "$as_me: failed program was
:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_cv_lib_dgc_dg_sys_info=no
16890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16891 conftest$ac_exeext conftest.$ac_ext
16892 LIBS=$ac_check_lib_save_LIBS
16894 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16895 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16896 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_LIBDGC 1
16909 if test "${ac_cv_header_locale_h+set}" = set; then
16910 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16911 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16912 if test "${ac_cv_header_locale_h+set}" = set; then
16913 echo $ECHO_N "(cached
) $ECHO_C" >&6
16915 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16916 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16918 # Is the header compilable?
16919 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16920 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 $ac_includes_default
16928 #include <locale.h>
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_compile") 2>conftest.er1
16939 grep -v '^ *+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16943 (exit $ac_status); } && {
16944 test -z "$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 } && test -s conftest.$ac_objext; then
16947 ac_header_compiler=yes
16949 echo "$as_me: failed program was
:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 ac_header_compiler=no
16955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16957 echo "${ECHO_T}$ac_header_compiler" >&6; }
16959 # Is the header present?
16960 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16961 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16962 cat >conftest.$ac_ext <<_ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16968 #include <locale.h>
16970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16982 (exit $ac_status); } >/dev/null && {
16983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16986 ac_header_preproc=yes
16988 echo "$as_me: failed program was
:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_header_preproc=no
16994 rm -f conftest.err conftest.$ac_ext
16995 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16996 echo "${ECHO_T}$ac_header_preproc" >&6; }
16998 # So? What about this header?
16999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17001 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17002 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17003 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17004 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17005 ac_header_preproc=yes
17008 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17009 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17010 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17011 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17012 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17013 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17014 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17015 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17016 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17017 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17018 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17019 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17023 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17024 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17025 if test "${ac_cv_header_locale_h+set}" = set; then
17026 echo $ECHO_N "(cached
) $ECHO_C" >&6
17028 ac_cv_header_locale_h=$ac_header_preproc
17030 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17031 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17037 for ac_func in setlocale
17039 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17040 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17041 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17042 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17043 echo $ECHO_N "(cached
) $ECHO_C" >&6
17045 cat >conftest.$ac_ext <<_ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h. */
17051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17053 #define $ac_func innocuous_$ac_func
17055 /* System header to define __stub macros and hopefully few prototypes,
17056 which can conflict with char $ac_func (); below.
17057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17058 <limits.h> exists even on freestanding compilers. */
17061 # include <limits.h>
17063 # include <assert.h>
17068 /* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
17075 /* The GNU C library defines this for functions which it implements
17076 to always fail with ENOSYS. Some functions are actually named
17077 something starting with __ and the normal name is an alias. */
17078 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 return $ac_func ();
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (ac_try="$ac_link"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_link") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest$ac_exeext &&
17107 $as_test_x conftest$ac_exeext; then
17108 eval "$as_ac_var=yes"
17110 echo "$as_me: failed program was
:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 eval "$as_ac_var=no
"
17116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17117 conftest$ac_exeext conftest.$ac_ext
17119 ac_res=`eval echo '${'$as_ac_var'}'`
17120 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17121 echo "${ECHO_T}$ac_res" >&6; }
17122 if test `eval echo '${'$as_ac_var'}'` = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17131 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17132 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17133 # Irix 4.0.5F has the header but not the library.
17134 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17137 cat >>confdefs.h <<\_ACEOF
17143 if test $ac_have_func = no; then
17144 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17145 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17146 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17147 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17148 echo $ECHO_N "(cached
) $ECHO_C" >&6
17150 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17153 # Is the header compilable?
17154 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17155 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17156 cat >conftest.$ac_ext <<_ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 $ac_includes_default
17163 #include <inq_stats/cpustats.h>
17165 rm -f conftest.$ac_objext
17166 if { (ac_try="$ac_compile"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17182 ac_header_compiler=yes
17184 echo "$as_me: failed program was
:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_compiler=no
17190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17192 echo "${ECHO_T}$ac_header_compiler" >&6; }
17194 # Is the header present?
17195 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17196 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17197 cat >conftest.$ac_ext <<_ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17203 #include <inq_stats/cpustats.h>
17205 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17217 (exit $ac_status); } >/dev/null && {
17218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17219 test ! -s conftest.err
17221 ac_header_preproc=yes
17223 echo "$as_me: failed program was
:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17226 ac_header_preproc=no
17229 rm -f conftest.err conftest.$ac_ext
17230 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17231 echo "${ECHO_T}$ac_header_preproc" >&6; }
17233 # So? What about this header?
17234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17236 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17237 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17238 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17239 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17240 ac_header_preproc=yes
17243 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17244 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17245 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17246 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17247 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17248 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17249 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17250 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17251 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17252 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17253 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17254 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17258 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17259 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17260 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17261 echo $ECHO_N "(cached
) $ECHO_C" >&6
17263 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17265 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17266 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17269 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17272 cat >>confdefs.h <<\_ACEOF
17277 cat >>confdefs.h <<\_ACEOF
17286 if test $ac_have_func = no; then
17287 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17288 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17289 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17290 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17291 echo $ECHO_N "(cached
) $ECHO_C" >&6
17293 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17294 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17296 # Is the header compilable?
17297 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17298 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 $ac_includes_default
17306 #include <sys/cpustats.h>
17308 rm -f conftest.$ac_objext
17309 if { (ac_try="$ac_compile"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_compile") 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17321 (exit $ac_status); } && {
17322 test -z "$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17324 } && test -s conftest.$ac_objext; then
17325 ac_header_compiler=yes
17327 echo "$as_me: failed program was
:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_header_compiler=no
17333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6; }
17337 # Is the header present?
17338 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17339 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 #include <sys/cpustats.h>
17348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17360 (exit $ac_status); } >/dev/null && {
17361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17364 ac_header_preproc=yes
17366 echo "$as_me: failed program was
:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 ac_header_preproc=no
17372 rm -f conftest.err conftest.$ac_ext
17373 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17374 echo "${ECHO_T}$ac_header_preproc" >&6; }
17376 # So? What about this header?
17377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17379 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17380 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17381 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17382 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17383 ac_header_preproc=yes
17386 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17387 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17388 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17389 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17390 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17391 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17392 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17393 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17394 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17395 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17396 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17397 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17401 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17402 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17403 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17404 echo $ECHO_N "(cached
) $ECHO_C" >&6
17406 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17408 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17409 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17412 if test $ac_cv_header_sys_cpustats_h = yes; then
17413 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17422 if test $ac_have_func = no; then
17424 for ac_header in mach/mach.h
17426 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17427 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17428 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17429 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17430 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17431 echo $ECHO_N "(cached
) $ECHO_C" >&6
17433 ac_res=`eval echo '${'$as_ac_Header'}'`
17434 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17437 # Is the header compilable?
17438 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17439 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17440 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17446 $ac_includes_default
17447 #include <$ac_header>
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_compile") 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17462 (exit $ac_status); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest.$ac_objext; then
17466 ac_header_compiler=yes
17468 echo "$as_me: failed program was
:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_compiler=no
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17476 echo "${ECHO_T}$ac_header_compiler" >&6; }
17478 # Is the header present?
17479 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17480 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17481 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 #include <$ac_header>
17489 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17501 (exit $ac_status); } >/dev/null && {
17502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17505 ac_header_preproc=yes
17507 echo "$as_me: failed program was
:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17510 ac_header_preproc=no
17513 rm -f conftest.err conftest.$ac_ext
17514 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17515 echo "${ECHO_T}$ac_header_preproc" >&6; }
17517 # So? What about this header?
17518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17520 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17521 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17522 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17524 ac_header_preproc=yes
17527 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17528 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17529 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17530 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17531 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17532 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17533 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17534 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17535 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17537 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17538 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17542 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17543 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17544 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17545 echo $ECHO_N "(cached
) $ECHO_C" >&6
17547 eval "$as_ac_Header=\
$ac_header_preproc"
17549 ac_res=`eval echo '${'$as_ac_Header'}'`
17550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17551 echo "${ECHO_T}$ac_res" >&6; }
17554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17555 cat >>confdefs.h <<_ACEOF
17556 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17566 for ac_header in nlist.h
17568 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17570 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17571 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17573 echo $ECHO_N "(cached
) $ECHO_C" >&6
17575 ac_res=`eval echo '${'$as_ac_Header'}'`
17576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17577 echo "${ECHO_T}$ac_res" >&6; }
17579 # Is the header compilable?
17580 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17581 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 $ac_includes_default
17589 #include <$ac_header>
17591 rm -f conftest.$ac_objext
17592 if { (ac_try="$ac_compile"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_compile") 2>conftest.er1
17600 grep -v '^ *+' conftest.er1 >conftest.err
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17604 (exit $ac_status); } && {
17605 test -z "$ac_c_werror_flag" ||
17606 test ! -s conftest.err
17607 } && test -s conftest.$ac_objext; then
17608 ac_header_compiler=yes
17610 echo "$as_me: failed program was
:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_header_compiler=no
17616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17617 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17618 echo "${ECHO_T}$ac_header_compiler" >&6; }
17620 # Is the header present?
17621 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17622 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 #include <$ac_header>
17631 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17643 (exit $ac_status); } >/dev/null && {
17644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17647 ac_header_preproc=yes
17649 echo "$as_me: failed program was
:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_header_preproc=no
17655 rm -f conftest.err conftest.$ac_ext
17656 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17657 echo "${ECHO_T}$ac_header_preproc" >&6; }
17659 # So? What about this header?
17660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17662 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17663 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17664 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17666 ac_header_preproc=yes
17669 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17670 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17671 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17672 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17673 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17674 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17675 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17676 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17677 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17679 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17680 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17684 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17685 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17687 echo $ECHO_N "(cached
) $ECHO_C" >&6
17689 eval "$as_ac_Header=\
$ac_header_preproc"
17691 ac_res=`eval echo '${'$as_ac_Header'}'`
17692 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17693 echo "${ECHO_T}$ac_res" >&6; }
17696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17697 cat >>confdefs.h <<_ACEOF
17698 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17700 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17701 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17702 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17703 echo $ECHO_N "(cached
) $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17716 static struct nlist ac_aggr;
17717 if (ac_aggr.n_un.n_name)
17723 rm -f conftest.$ac_objext
17724 if { (ac_try="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest.$ac_objext; then
17740 ac_cv_member_struct_nlist_n_un_n_name=yes
17742 echo "$as_me: failed program was
:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 cat >conftest.$ac_ext <<_ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17756 static struct nlist ac_aggr;
17757 if (sizeof ac_aggr.n_un.n_name)
17763 rm -f conftest.$ac_objext
17764 if { (ac_try="$ac_compile"
17765 case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.$ac_objext; then
17780 ac_cv_member_struct_nlist_n_un_n_name=yes
17782 echo "$as_me: failed program was
:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_member_struct_nlist_n_un_n_name=no
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17794 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17795 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17802 cat >>confdefs.h <<\_ACEOF
17803 #define NLIST_NAME_UNION 1
17817 # Some definitions of getloadavg require that the program be installed setgid.
17818 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17819 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17820 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17821 echo $ECHO_N "(cached
) $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17830 #ifdef LDAV_PRIVILEGED
17831 Yowza Am I SETGID yet
17834 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17835 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17836 ac_cv_func_getloadavg_setgid=yes
17838 ac_cv_func_getloadavg_setgid=no
17843 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17844 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17845 if test $ac_cv_func_getloadavg_setgid = yes; then
17848 cat >>confdefs.h <<\_ACEOF
17849 #define GETLOADAVG_PRIVILEGED 1
17856 if test $ac_cv_func_getloadavg_setgid = yes; then
17857 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17858 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17859 if test "${ac_cv_group_kmem+set}" = set; then
17860 echo $ECHO_N "(cached
) $ECHO_C" >&6
17862 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17863 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17864 # If we got an error (system does not support symlinks), try without -L.
17865 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17866 ac_cv_group_kmem=`echo $ac_ls_output \
17867 | sed -ne 's/[ ][ ]*/ /g;
17868 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17872 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17873 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17874 KMEM_GROUP=$ac_cv_group_kmem
17876 if test "x
$ac_save_LIBS" = x; then
17877 GETLOADAVG_LIBS=$LIBS
17879 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17885 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17886 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17887 if test "${ac_cv_sys_largefile_source+set}" = set; then
17888 echo $ECHO_N "(cached
) $ECHO_C" >&6
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17901 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17906 rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_link") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17919 (exit $ac_status); } && {
17920 test -z "$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 } && test -s conftest$ac_exeext &&
17923 $as_test_x conftest$ac_exeext; then
17924 ac_cv_sys_largefile_source=no; break
17926 echo "$as_me: failed program was
:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17933 conftest$ac_exeext conftest.$ac_ext
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 #define _LARGEFILE_SOURCE 1
17945 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_link") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest$ac_exeext &&
17967 $as_test_x conftest$ac_exeext; then
17968 ac_cv_sys_largefile_source=1; break
17970 echo "$as_me: failed program was
:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977 conftest$ac_exeext conftest.$ac_ext
17978 ac_cv_sys_largefile_source=unknown
17982 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17983 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17984 case $ac_cv_sys_largefile_source in #(
17987 cat >>confdefs.h <<_ACEOF
17988 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17994 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17995 # in glibc 2.1.3, but that breaks too many other things.
17996 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17997 if test $ac_cv_sys_largefile_source != unknown; then
17999 cat >>confdefs.h <<\_ACEOF
18000 #define HAVE_FSEEKO 1
18006 # Configure getopt.
18007 # getopt.m4 serial 10
18009 # The getopt module assume you want GNU getopt, with getopt_long etc,
18010 # rather than vanilla POSIX getopt. This means your your code should
18011 # always include <getopt.h> for the getopt prototypes.
18023 # Prerequisites of lib/getopt*.
18030 for ac_header in getopt.h
18032 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18033 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18034 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18035 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18036 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18037 echo $ECHO_N "(cached
) $ECHO_C" >&6
18039 ac_res=`eval echo '${'$as_ac_Header'}'`
18040 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18041 echo "${ECHO_T}$ac_res" >&6; }
18043 # Is the header compilable?
18044 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18045 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 $ac_includes_default
18053 #include <$ac_header>
18055 rm -f conftest.$ac_objext
18056 if { (ac_try="$ac_compile"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest.$ac_objext; then
18072 ac_header_compiler=yes
18074 echo "$as_me: failed program was
:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_header_compiler=no
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18082 echo "${ECHO_T}$ac_header_compiler" >&6; }
18084 # Is the header present?
18085 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18086 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18087 cat >conftest.$ac_ext <<_ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 #include <$ac_header>
18095 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18107 (exit $ac_status); } >/dev/null && {
18108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18111 ac_header_preproc=yes
18113 echo "$as_me: failed program was
:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_header_preproc=no
18119 rm -f conftest.err conftest.$ac_ext
18120 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18121 echo "${ECHO_T}$ac_header_preproc" >&6; }
18123 # So? What about this header?
18124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18126 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18127 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18128 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18130 ac_header_preproc=yes
18133 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18134 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18135 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18136 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18137 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18138 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18139 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18140 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18141 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18143 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18144 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18148 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18149 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18150 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached
) $ECHO_C" >&6
18153 eval "$as_ac_Header=\
$ac_header_preproc"
18155 ac_res=`eval echo '${'$as_ac_Header'}'`
18156 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18157 echo "${ECHO_T}$ac_res" >&6; }
18160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18171 if test -z "$GETOPT_H"; then
18173 for ac_func in getopt_long_only
18175 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18176 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18177 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18178 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached
) $ECHO_C" >&6
18181 cat >conftest.$ac_ext <<_ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18189 #define $ac_func innocuous_$ac_func
18191 /* System header to define __stub macros and hopefully few prototypes,
18192 which can conflict with char $ac_func (); below.
18193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18194 <limits.h> exists even on freestanding compilers. */
18197 # include <limits.h>
18199 # include <assert.h>
18204 /* Override any GCC internal prototype to avoid an error.
18205 Use char because int might match the return type of a GCC
18206 builtin and then its argument prototype would still apply. */
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined __stub_$ac_func || defined __stub___$ac_func
18221 return $ac_func ();
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18239 (exit $ac_status); } && {
18240 test -z "$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18242 } && test -s conftest$ac_exeext &&
18243 $as_test_x conftest$ac_exeext; then
18244 eval "$as_ac_var=yes"
18246 echo "$as_me: failed program was
:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 eval "$as_ac_var=no
"
18252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18253 conftest$ac_exeext conftest.$ac_ext
18255 ac_res=`eval echo '${'$as_ac_var'}'`
18256 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18257 echo "${ECHO_T}$ac_res" >&6; }
18258 if test `eval echo '${'$as_ac_var'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18270 if test -z "$GETOPT_H"; then
18271 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18272 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18273 if test "${ac_cv_have_decl_optreset+set}" = set; then
18274 echo $ECHO_N "(cached
) $ECHO_C" >&6
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 #include <getopt.h>
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_compile") 2>conftest.er1
18304 grep -v '^ *+' conftest.er1 >conftest.err
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_c_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest.$ac_objext; then
18312 ac_cv_have_decl_optreset=yes
18314 echo "$as_me: failed program was
:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_cv_have_decl_optreset=no
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18322 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18323 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18324 if test $ac_cv_have_decl_optreset = yes; then
18330 if test -z "$GETOPT_H"; then
18331 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18332 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18333 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18334 echo $ECHO_N "(cached
) $ECHO_C" >&6
18336 if test "$cross_compiling" = yes; then
18337 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18338 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18339 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18340 echo $ECHO_N "(cached
) $ECHO_C" >&6
18342 cat >conftest.$ac_ext <<_ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18348 #include <getopt.h>
18353 #ifndef getopt_clip
18354 (void) getopt_clip;
18361 rm -f conftest.$ac_objext
18362 if { (ac_try="$ac_compile"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_compile") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest.$ac_objext; then
18378 ac_cv_have_decl_getopt_clip=yes
18380 echo "$as_me: failed program was
:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 ac_cv_have_decl_getopt_clip=no
18386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18388 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18389 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18390 if test $ac_cv_have_decl_getopt_clip = yes; then
18391 gl_cv_func_gnu_getopt=no
18393 gl_cv_func_gnu_getopt=yes
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 #include <getopt.h>
18409 myargv[0] = "conftest
";
18412 return getopt (2, myargv, "+a
") != '?';
18418 rm -f conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>&5
18427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 gl_cv_func_gnu_getopt=yes
18440 echo "$as_me: program exited with status
$ac_status" >&5
18441 echo "$as_me: failed program was
:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ( exit $ac_status )
18445 gl_cv_func_gnu_getopt=no
18447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18452 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18453 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18454 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18461 if test -n "$GETOPT_H"; then
18466 cat >>confdefs.h <<\_ACEOF
18467 #define __GETOPT_PREFIX rpl_
18473 GETOPTOBJS='getopt.o getopt1.o'
18480 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18481 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18482 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18483 echo $ECHO_N "(cached
) $ECHO_C" >&6
18485 # Use it with a single arg.
18486 cat >conftest.$ac_ext <<_ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18492 $ac_includes_default
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_cv_func_getpgrp_void=no
18520 echo "$as_me: failed program was
:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_func_getpgrp_void=yes
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18530 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18531 if test $ac_cv_func_getpgrp_void = yes; then
18533 cat >>confdefs.h <<\_ACEOF
18534 #define GETPGRP_VOID 1
18541 for ac_func in strftime
18543 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18544 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18545 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18546 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18547 echo $ECHO_N "(cached
) $ECHO_C" >&6
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18557 #define $ac_func innocuous_$ac_func
18559 /* System header to define __stub macros and hopefully few prototypes,
18560 which can conflict with char $ac_func (); below.
18561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562 <limits.h> exists even on freestanding compilers. */
18565 # include <limits.h>
18567 # include <assert.h>
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18579 /* The GNU C library defines this for functions which it implements
18580 to always fail with ENOSYS. Some functions are actually named
18581 something starting with __ and the normal name is an alias. */
18582 #if defined __stub_$ac_func || defined __stub___$ac_func
18589 return $ac_func ();
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest$ac_exeext &&
18611 $as_test_x conftest$ac_exeext; then
18612 eval "$as_ac_var=yes"
18614 echo "$as_me: failed program was
:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 eval "$as_ac_var=no
"
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18623 ac_res=`eval echo '${'$as_ac_var'}'`
18624 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18625 echo "${ECHO_T}$ac_res" >&6; }
18626 if test `eval echo '${'$as_ac_var'}'` = yes; then
18627 cat >>confdefs.h <<_ACEOF
18628 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18632 # strftime is in -lintl on SCO UNIX.
18633 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18634 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18635 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18636 echo $ECHO_N "(cached
) $ECHO_C" >&6
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lintl $LIBS"
18640 cat >conftest.$ac_ext <<_ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 /* Override any GCC internal prototype to avoid an error.
18648 Use char because int might match the return type of a GCC
18649 builtin and then its argument prototype would still apply. */
18657 return strftime ();
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (ac_try="$ac_link"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_link") 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest$ac_exeext &&
18679 $as_test_x conftest$ac_exeext; then
18680 ac_cv_lib_intl_strftime=yes
18682 echo "$as_me: failed program was
:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18685 ac_cv_lib_intl_strftime=no
18688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18689 conftest$ac_exeext conftest.$ac_ext
18690 LIBS=$ac_check_lib_save_LIBS
18692 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18693 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18694 if test $ac_cv_lib_intl_strftime = yes; then
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_STRFTIME 1
18699 LIBS="-lintl $LIBS"
18708 for ac_func in grantpt
18710 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18711 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18712 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18713 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18714 echo $ECHO_N "(cached
) $ECHO_C" >&6
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18724 #define $ac_func innocuous_$ac_func
18726 /* System header to define __stub macros and hopefully few prototypes,
18727 which can conflict with char $ac_func (); below.
18728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18729 <limits.h> exists even on freestanding compilers. */
18732 # include <limits.h>
18734 # include <assert.h>
18739 /* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18746 /* The GNU C library defines this for functions which it implements
18747 to always fail with ENOSYS. Some functions are actually named
18748 something starting with __ and the normal name is an alias. */
18749 #if defined __stub_$ac_func || defined __stub___$ac_func
18756 return $ac_func ();
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_link") 2>conftest.er1
18770 grep -v '^ *+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18774 (exit $ac_status); } && {
18775 test -z "$ac_c_werror_flag" ||
18776 test ! -s conftest.err
18777 } && test -s conftest$ac_exeext &&
18778 $as_test_x conftest$ac_exeext; then
18779 eval "$as_ac_var=yes"
18781 echo "$as_me: failed program was
:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 eval "$as_ac_var=no
"
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18788 conftest$ac_exeext conftest.$ac_ext
18790 ac_res=`eval echo '${'$as_ac_var'}'`
18791 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18792 echo "${ECHO_T}$ac_res" >&6; }
18793 if test `eval echo '${'$as_ac_var'}'` = yes; then
18794 cat >>confdefs.h <<_ACEOF
18795 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18802 # PTY-related GNU extensions.
18804 for ac_func in getpt
18806 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18807 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18808 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18809 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18810 echo $ECHO_N "(cached
) $ECHO_C" >&6
18812 cat >conftest.$ac_ext <<_ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18820 #define $ac_func innocuous_$ac_func
18822 /* System header to define __stub macros and hopefully few prototypes,
18823 which can conflict with char $ac_func (); below.
18824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825 <limits.h> exists even on freestanding compilers. */
18828 # include <limits.h>
18830 # include <assert.h>
18835 /* Override any GCC internal prototype to avoid an error.
18836 Use char because int might match the return type of a GCC
18837 builtin and then its argument prototype would still apply. */
18842 /* The GNU C library defines this for functions which it implements
18843 to always fail with ENOSYS. Some functions are actually named
18844 something starting with __ and the normal name is an alias. */
18845 #if defined __stub_$ac_func || defined __stub___$ac_func
18852 return $ac_func ();
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18866 grep -v '^ *+' conftest.er1 >conftest.err
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18870 (exit $ac_status); } && {
18871 test -z "$ac_c_werror_flag" ||
18872 test ! -s conftest.err
18873 } && test -s conftest$ac_exeext &&
18874 $as_test_x conftest$ac_exeext; then
18875 eval "$as_ac_var=yes"
18877 echo "$as_me: failed program was
:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18880 eval "$as_ac_var=no
"
18883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18884 conftest$ac_exeext conftest.$ac_ext
18886 ac_res=`eval echo '${'$as_ac_var'}'`
18887 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18888 echo "${ECHO_T}$ac_res" >&6; }
18889 if test `eval echo '${'$as_ac_var'}'` = yes; then
18890 cat >>confdefs.h <<_ACEOF
18891 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18898 # Check this now, so that we will NOT find the above functions in ncurses.
18899 # That is because we have not set up to link ncurses in lib-src.
18900 # It's better to believe a function is not available
18901 # than to expect to find it in ncurses.
18903 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18904 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18905 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18906 echo $ECHO_N "(cached
) $ECHO_C" >&6
18908 ac_check_lib_save_LIBS=$LIBS
18909 LIBS="-lncurses $LIBS"
18910 cat >conftest.$ac_ext <<_ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18917 /* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_link") 2>conftest.er1
18941 grep -v '^ *+' conftest.er1 >conftest.err
18943 cat conftest.err >&5
18944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18945 (exit $ac_status); } && {
18946 test -z "$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18948 } && test -s conftest$ac_exeext &&
18949 $as_test_x conftest$ac_exeext; then
18950 ac_cv_lib_ncurses_tparm=yes
18952 echo "$as_me: failed program was
:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_cv_lib_ncurses_tparm=no
18958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18959 conftest$ac_exeext conftest.$ac_ext
18960 LIBS=$ac_check_lib_save_LIBS
18962 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18963 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18964 if test $ac_cv_lib_ncurses_tparm = yes; then
18965 cat >>confdefs.h <<_ACEOF
18966 #define HAVE_LIBNCURSES 1
18969 LIBS="-lncurses $LIBS"
18974 # Do we need the Hesiod library to provide the support routines?
18975 if test "$with_hesiod" = yes ; then
18976 # Don't set $LIBS here -- see comments above.
18978 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18979 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18980 if test "${ac_cv_func_res_send+set}" = set; then
18981 echo $ECHO_N "(cached
) $ECHO_C" >&6
18983 cat >conftest.$ac_ext <<_ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18991 #define res_send innocuous_res_send
18993 /* System header to define __stub macros and hopefully few prototypes,
18994 which can conflict with char res_send (); below.
18995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996 <limits.h> exists even on freestanding compilers. */
18999 # include <limits.h>
19001 # include <assert.h>
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19013 /* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016 #if defined __stub_res_send || defined __stub___res_send
19023 return res_send ();
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19041 (exit $ac_status); } && {
19042 test -z "$ac_c_werror_flag" ||
19043 test ! -s conftest.err
19044 } && test -s conftest$ac_exeext &&
19045 $as_test_x conftest$ac_exeext; then
19046 ac_cv_func_res_send=yes
19048 echo "$as_me: failed program was
:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 ac_cv_func_res_send=no
19054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19055 conftest$ac_exeext conftest.$ac_ext
19057 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19058 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19059 if test $ac_cv_func_res_send = yes; then
19062 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19063 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19064 if test "${ac_cv_func___res_send+set}" = set; then
19065 echo $ECHO_N "(cached
) $ECHO_C" >&6
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19075 #define __res_send innocuous___res_send
19077 /* System header to define __stub macros and hopefully few prototypes,
19078 which can conflict with char __res_send (); below.
19079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19080 <limits.h> exists even on freestanding compilers. */
19083 # include <limits.h>
19085 # include <assert.h>
19090 /* Override any GCC internal prototype to avoid an error.
19091 Use char because int might match the return type of a GCC
19092 builtin and then its argument prototype would still apply. */
19096 char __res_send ();
19097 /* The GNU C library defines this for functions which it implements
19098 to always fail with ENOSYS. Some functions are actually named
19099 something starting with __ and the normal name is an alias. */
19100 #if defined __stub___res_send || defined __stub_____res_send
19107 return __res_send ();
19112 rm -f conftest.$ac_objext conftest$ac_exeext
19113 if { (ac_try="$ac_link"
19114 case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_link") 2>conftest.er1
19121 grep -v '^ *+' conftest.er1 >conftest.err
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19125 (exit $ac_status); } && {
19126 test -z "$ac_c_werror_flag" ||
19127 test ! -s conftest.err
19128 } && test -s conftest$ac_exeext &&
19129 $as_test_x conftest$ac_exeext; then
19130 ac_cv_func___res_send=yes
19132 echo "$as_me: failed program was
:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19135 ac_cv_func___res_send=no
19138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19139 conftest$ac_exeext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19142 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19143 if test $ac_cv_func___res_send = yes; then
19146 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19147 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19148 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19149 echo $ECHO_N "(cached
) $ECHO_C" >&6
19151 ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lresolv $LIBS"
19153 cat >conftest.$ac_ext <<_ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19170 return res_send ();
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_link") 2>conftest.er1
19184 grep -v '^ *+' conftest.er1 >conftest.err
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19188 (exit $ac_status); } && {
19189 test -z "$ac_c_werror_flag" ||
19190 test ! -s conftest.err
19191 } && test -s conftest$ac_exeext &&
19192 $as_test_x conftest$ac_exeext; then
19193 ac_cv_lib_resolv_res_send=yes
19195 echo "$as_me: failed program was
:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_cv_lib_resolv_res_send=no
19201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19202 conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19205 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19206 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19207 if test $ac_cv_lib_resolv_res_send = yes; then
19210 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19211 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19212 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19213 echo $ECHO_N "(cached
) $ECHO_C" >&6
19215 ac_check_lib_save_LIBS=$LIBS
19216 LIBS="-lresolv $LIBS"
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19224 /* Override any GCC internal prototype to avoid an error.
19225 Use char because int might match the return type of a GCC
19226 builtin and then its argument prototype would still apply. */
19230 char __res_send ();
19234 return __res_send ();
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_link") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext &&
19256 $as_test_x conftest$ac_exeext; then
19257 ac_cv_lib_resolv___res_send=yes
19259 echo "$as_me: failed program was
:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 ac_cv_lib_resolv___res_send=no
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19269 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19270 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19271 if test $ac_cv_lib_resolv___res_send = yes; then
19281 if test "$resolv" = yes ; then
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_LIBRESOLV 1
19291 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19292 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19293 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19294 echo $ECHO_N "(cached
) $ECHO_C" >&6
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19304 #define hes_getmailhost innocuous_hes_getmailhost
19306 /* System header to define __stub macros and hopefully few prototypes,
19307 which can conflict with char hes_getmailhost (); below.
19308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 <limits.h> exists even on freestanding compilers. */
19312 # include <limits.h>
19314 # include <assert.h>
19317 #undef hes_getmailhost
19319 /* Override any GCC internal prototype to avoid an error.
19320 Use char because int might match the return type of a GCC
19321 builtin and then its argument prototype would still apply. */
19325 char hes_getmailhost ();
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19336 return hes_getmailhost ();
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (ac_try="$ac_link"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_link") 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19354 (exit $ac_status); } && {
19355 test -z "$ac_c_werror_flag" ||
19356 test ! -s conftest.err
19357 } && test -s conftest$ac_exeext &&
19358 $as_test_x conftest$ac_exeext; then
19359 ac_cv_func_hes_getmailhost=yes
19361 echo "$as_me: failed program was
:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19364 ac_cv_func_hes_getmailhost=no
19367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19368 conftest$ac_exeext conftest.$ac_ext
19370 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19371 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19372 if test $ac_cv_func_hes_getmailhost = yes; then
19375 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19376 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19377 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19378 echo $ECHO_N "(cached
) $ECHO_C" >&6
19380 ac_check_lib_save_LIBS=$LIBS
19381 LIBS="-lhesiod $RESOLVLIB $LIBS"
19382 cat >conftest.$ac_ext <<_ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19395 char hes_getmailhost ();
19399 return hes_getmailhost ();
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_link") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest$ac_exeext &&
19421 $as_test_x conftest$ac_exeext; then
19422 ac_cv_lib_hesiod_hes_getmailhost=yes
19424 echo "$as_me: failed program was
:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_cv_lib_hesiod_hes_getmailhost=no
19430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19434 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19435 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19436 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_LIBHESIOD 1
19450 # These tell us which Kerberos-related libraries to use.
19451 if test "${with_kerberos+set}" = set; then
19453 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19454 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19455 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19456 echo $ECHO_N "(cached
) $ECHO_C" >&6
19458 ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lcom_err $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 /* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 ac_cv_lib_com_err_com_err=yes
19502 echo "$as_me: failed program was
:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ac_cv_lib_com_err_com_err=no
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509 conftest$ac_exeext conftest.$ac_ext
19510 LIBS=$ac_check_lib_save_LIBS
19512 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19513 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19514 if test $ac_cv_lib_com_err_com_err = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_LIBCOM_ERR 1
19519 LIBS="-lcom_err $LIBS"
19524 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19525 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19526 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19527 echo $ECHO_N "(cached
) $ECHO_C" >&6
19529 ac_check_lib_save_LIBS=$LIBS
19530 LIBS="-lk5crypto $LIBS"
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19544 char mit_des_cbc_encrypt ();
19548 return mit_des_cbc_encrypt ();
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19573 echo "$as_me: failed program was
:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19583 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19584 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19585 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define HAVE_LIBK5CRYPTO 1
19590 LIBS="-lk5crypto $LIBS"
19595 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19596 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19597 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19598 echo $ECHO_N "(cached
) $ECHO_C" >&6
19600 ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lcrypto $LIBS"
19602 cat >conftest.$ac_ext <<_ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19615 char mit_des_cbc_encrypt ();
19619 return mit_des_cbc_encrypt ();
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19637 (exit $ac_status); } && {
19638 test -z "$ac_c_werror_flag" ||
19639 test ! -s conftest.err
19640 } && test -s conftest$ac_exeext &&
19641 $as_test_x conftest$ac_exeext; then
19642 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19644 echo "$as_me: failed program was
:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19647 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19651 conftest$ac_exeext conftest.$ac_ext
19652 LIBS=$ac_check_lib_save_LIBS
19654 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19655 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19656 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19657 cat >>confdefs.h <<_ACEOF
19658 #define HAVE_LIBCRYPTO 1
19661 LIBS="-lcrypto $LIBS"
19666 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19667 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19668 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19669 echo $ECHO_N "(cached
) $ECHO_C" >&6
19671 ac_check_lib_save_LIBS=$LIBS
19672 LIBS="-lkrb5 $LIBS"
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19686 char krb5_init_context ();
19690 return krb5_init_context ();
19695 rm -f conftest.$ac_objext conftest$ac_exeext
19696 if { (ac_try="$ac_link"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_link") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest$ac_exeext &&
19712 $as_test_x conftest$ac_exeext; then
19713 ac_cv_lib_krb5_krb5_init_context=yes
19715 echo "$as_me: failed program was
:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_lib_krb5_krb5_init_context=no
19721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19722 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19725 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19726 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19727 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729 #define HAVE_LIBKRB5 1
19732 LIBS="-lkrb5 $LIBS"
19736 if test "${with_kerberos5+set}" != set; then
19738 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19739 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19740 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19741 echo $ECHO_N "(cached
) $ECHO_C" >&6
19743 ac_check_lib_save_LIBS=$LIBS
19744 LIBS="-ldes425 $LIBS"
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19752 /* Override any GCC internal prototype to avoid an error.
19753 Use char because int might match the return type of a GCC
19754 builtin and then its argument prototype would still apply. */
19758 char des_cbc_encrypt ();
19762 return des_cbc_encrypt ();
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_link") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest$ac_exeext &&
19784 $as_test_x conftest$ac_exeext; then
19785 ac_cv_lib_des425_des_cbc_encrypt=yes
19787 echo "$as_me: failed program was
:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_lib_des425_des_cbc_encrypt=no
19793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19794 conftest$ac_exeext conftest.$ac_ext
19795 LIBS=$ac_check_lib_save_LIBS
19797 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19798 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19799 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_LIBDES425 1
19804 LIBS="-ldes425 $LIBS"
19808 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19809 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19810 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19811 echo $ECHO_N "(cached
) $ECHO_C" >&6
19813 ac_check_lib_save_LIBS=$LIBS
19815 cat >conftest.$ac_ext <<_ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19822 /* Override any GCC internal prototype to avoid an error.
19823 Use char because int might match the return type of a GCC
19824 builtin and then its argument prototype would still apply. */
19828 char des_cbc_encrypt ();
19832 return des_cbc_encrypt ();
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 ac_cv_lib_des_des_cbc_encrypt=yes
19857 echo "$as_me: failed program was
:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_lib_des_des_cbc_encrypt=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19865 LIBS=$ac_check_lib_save_LIBS
19867 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19868 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19869 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_LIBDES 1
19881 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19882 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19883 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19884 echo $ECHO_N "(cached
) $ECHO_C" >&6
19886 ac_check_lib_save_LIBS=$LIBS
19887 LIBS="-lkrb4 $LIBS"
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19895 /* Override any GCC internal prototype to avoid an error.
19896 Use char because int might match the return type of a GCC
19897 builtin and then its argument prototype would still apply. */
19901 char krb_get_cred ();
19905 return krb_get_cred ();
19910 rm -f conftest.$ac_objext conftest$ac_exeext
19911 if { (ac_try="$ac_link"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_link") 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest$ac_exeext &&
19927 $as_test_x conftest$ac_exeext; then
19928 ac_cv_lib_krb4_krb_get_cred=yes
19930 echo "$as_me: failed program was
:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_cv_lib_krb4_krb_get_cred=no
19936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19937 conftest$ac_exeext conftest.$ac_ext
19938 LIBS=$ac_check_lib_save_LIBS
19940 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19941 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19942 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19943 cat >>confdefs.h <<_ACEOF
19944 #define HAVE_LIBKRB4 1
19947 LIBS="-lkrb4 $LIBS"
19951 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19952 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19953 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19954 echo $ECHO_N "(cached
) $ECHO_C" >&6
19956 ac_check_lib_save_LIBS=$LIBS
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19965 /* Override any GCC internal prototype to avoid an error.
19966 Use char because int might match the return type of a GCC
19967 builtin and then its argument prototype would still apply. */
19971 char krb_get_cred ();
19975 return krb_get_cred ();
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_link") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest$ac_exeext &&
19997 $as_test_x conftest$ac_exeext; then
19998 ac_cv_lib_krb_krb_get_cred=yes
20000 echo "$as_me: failed program was
:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_lib_krb_krb_get_cred=no
20006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20007 conftest$ac_exeext conftest.$ac_ext
20008 LIBS=$ac_check_lib_save_LIBS
20010 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20011 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20012 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20013 cat >>confdefs.h <<_ACEOF
20014 #define HAVE_LIBKRB 1
20025 if test "${with_kerberos5+set}" = set; then
20027 for ac_header in krb5.h
20029 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20031 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20032 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20033 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20034 echo $ECHO_N "(cached
) $ECHO_C" >&6
20036 ac_res=`eval echo '${'$as_ac_Header'}'`
20037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20038 echo "${ECHO_T}$ac_res" >&6; }
20040 # Is the header compilable?
20041 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20042 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20050 #include <$ac_header>
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest.$ac_objext; then
20069 ac_header_compiler=yes
20071 echo "$as_me: failed program was
:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_header_compiler=no
20077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20078 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20079 echo "${ECHO_T}$ac_header_compiler" >&6; }
20081 # Is the header present?
20082 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20083 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <$ac_header>
20092 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20100 grep -v '^ *+' conftest.er1 >conftest.err
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20104 (exit $ac_status); } >/dev/null && {
20105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20108 ac_header_preproc=yes
20110 echo "$as_me: failed program was
:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_header_preproc=no
20116 rm -f conftest.err conftest.$ac_ext
20117 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20118 echo "${ECHO_T}$ac_header_preproc" >&6; }
20120 # So? What about this header?
20121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20123 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20124 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20125 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20127 ac_header_preproc=yes
20130 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20131 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20132 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20133 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20134 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20135 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20136 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20137 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20140 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20141 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20145 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20146 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20147 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20148 echo $ECHO_N "(cached
) $ECHO_C" >&6
20150 eval "$as_ac_Header=\
$ac_header_preproc"
20152 ac_res=`eval echo '${'$as_ac_Header'}'`
20153 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20154 echo "${ECHO_T}$ac_res" >&6; }
20157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20158 cat >>confdefs.h <<_ACEOF
20159 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20168 for ac_header in des.h
20170 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20171 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20172 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20173 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20175 echo $ECHO_N "(cached
) $ECHO_C" >&6
20177 ac_res=`eval echo '${'$as_ac_Header'}'`
20178 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20179 echo "${ECHO_T}$ac_res" >&6; }
20181 # Is the header compilable?
20182 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20183 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20191 #include <$ac_header>
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_compile") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest.$ac_objext; then
20210 ac_header_compiler=yes
20212 echo "$as_me: failed program was
:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_compiler=no
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20224 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <$ac_header>
20233 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20241 grep -v '^ *+' conftest.er1 >conftest.err
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20245 (exit $ac_status); } >/dev/null && {
20246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20249 ac_header_preproc=yes
20251 echo "$as_me: failed program was
:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ac_header_preproc=no
20257 rm -f conftest.err conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6; }
20261 # So? What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20264 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20265 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20266 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20268 ac_header_preproc=yes
20271 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20272 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20273 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20274 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20275 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20276 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20277 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20278 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20279 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20281 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20282 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20286 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20287 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20288 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20289 echo $ECHO_N "(cached
) $ECHO_C" >&6
20291 eval "$as_ac_Header=\
$ac_header_preproc"
20293 ac_res=`eval echo '${'$as_ac_Header'}'`
20294 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20295 echo "${ECHO_T}$ac_res" >&6; }
20298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20305 for ac_header in kerberosIV/des.h
20307 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20308 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20309 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20310 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20312 echo $ECHO_N "(cached
) $ECHO_C" >&6
20314 ac_res=`eval echo '${'$as_ac_Header'}'`
20315 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20316 echo "${ECHO_T}$ac_res" >&6; }
20318 # Is the header compilable?
20319 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20320 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20321 cat >conftest.$ac_ext <<_ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 $ac_includes_default
20328 #include <$ac_header>
20330 rm -f conftest.$ac_objext
20331 if { (ac_try="$ac_compile"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_compile") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest.$ac_objext; then
20347 ac_header_compiler=yes
20349 echo "$as_me: failed program was
:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_header_compiler=no
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20357 echo "${ECHO_T}$ac_header_compiler" >&6; }
20359 # Is the header present?
20360 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20361 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include <$ac_header>
20370 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20371 case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20378 grep -v '^ *+' conftest.er1 >conftest.err
20380 cat conftest.err >&5
20381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20382 (exit $ac_status); } >/dev/null && {
20383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20384 test ! -s conftest.err
20386 ac_header_preproc=yes
20388 echo "$as_me: failed program was
:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_header_preproc=no
20394 rm -f conftest.err conftest.$ac_ext
20395 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20396 echo "${ECHO_T}$ac_header_preproc" >&6; }
20398 # So? What about this header?
20399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20401 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20402 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20403 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20405 ac_header_preproc=yes
20408 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20409 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20410 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20411 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20412 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20413 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20414 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20415 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20416 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20418 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20419 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20423 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20424 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20425 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20426 echo $ECHO_N "(cached
) $ECHO_C" >&6
20428 eval "$as_ac_Header=\
$ac_header_preproc"
20430 ac_res=`eval echo '${'$as_ac_Header'}'`
20431 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20432 echo "${ECHO_T}$ac_res" >&6; }
20435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20436 cat >>confdefs.h <<_ACEOF
20437 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20442 for ac_header in kerberos/des.h
20444 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20445 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20446 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20447 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20448 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20449 echo $ECHO_N "(cached
) $ECHO_C" >&6
20451 ac_res=`eval echo '${'$as_ac_Header'}'`
20452 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20455 # Is the header compilable?
20456 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20457 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 $ac_includes_default
20465 #include <$ac_header>
20467 rm -f conftest.$ac_objext
20468 if { (ac_try="$ac_compile"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_compile") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest.$ac_objext; then
20484 ac_header_compiler=yes
20486 echo "$as_me: failed program was
:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_header_compiler=no
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20494 echo "${ECHO_T}$ac_header_compiler" >&6; }
20496 # Is the header present?
20497 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20498 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 #include <$ac_header>
20507 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20519 (exit $ac_status); } >/dev/null && {
20520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20523 ac_header_preproc=yes
20525 echo "$as_me: failed program was
:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_header_preproc=no
20531 rm -f conftest.err conftest.$ac_ext
20532 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20533 echo "${ECHO_T}$ac_header_preproc" >&6; }
20535 # So? What about this header?
20536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20538 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20539 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20540 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20542 ac_header_preproc=yes
20545 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20546 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20547 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20548 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20549 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20550 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20551 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20552 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20553 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20555 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20556 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20560 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20561 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20562 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20563 echo $ECHO_N "(cached
) $ECHO_C" >&6
20565 eval "$as_ac_Header=\
$ac_header_preproc"
20567 ac_res=`eval echo '${'$as_ac_Header'}'`
20568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20569 echo "${ECHO_T}$ac_res" >&6; }
20572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20590 for ac_header in krb.h
20592 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20594 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20595 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20597 echo $ECHO_N "(cached
) $ECHO_C" >&6
20599 ac_res=`eval echo '${'$as_ac_Header'}'`
20600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20601 echo "${ECHO_T}$ac_res" >&6; }
20603 # Is the header compilable?
20604 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20605 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 $ac_includes_default
20613 #include <$ac_header>
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_compile") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest.$ac_objext; then
20632 ac_header_compiler=yes
20634 echo "$as_me: failed program was
:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ac_header_compiler=no
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20642 echo "${ECHO_T}$ac_header_compiler" >&6; }
20644 # Is the header present?
20645 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20646 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 #include <$ac_header>
20655 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20663 grep -v '^ *+' conftest.er1 >conftest.err
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20667 (exit $ac_status); } >/dev/null && {
20668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20671 ac_header_preproc=yes
20673 echo "$as_me: failed program was
:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_header_preproc=no
20679 rm -f conftest.err conftest.$ac_ext
20680 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20681 echo "${ECHO_T}$ac_header_preproc" >&6; }
20683 # So? What about this header?
20684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20687 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20688 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20690 ac_header_preproc=yes
20693 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20694 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20695 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20696 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20697 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20698 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20699 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20700 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20701 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20703 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20704 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20708 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20709 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20710 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20711 echo $ECHO_N "(cached
) $ECHO_C" >&6
20713 eval "$as_ac_Header=\
$ac_header_preproc"
20715 ac_res=`eval echo '${'$as_ac_Header'}'`
20716 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20717 echo "${ECHO_T}$ac_res" >&6; }
20720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20721 cat >>confdefs.h <<_ACEOF
20722 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20727 for ac_header in kerberosIV/krb.h
20729 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20730 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20731 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20732 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20733 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20734 echo $ECHO_N "(cached
) $ECHO_C" >&6
20736 ac_res=`eval echo '${'$as_ac_Header'}'`
20737 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20738 echo "${ECHO_T}$ac_res" >&6; }
20740 # Is the header compilable?
20741 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20742 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 $ac_includes_default
20750 #include <$ac_header>
20752 rm -f conftest.$ac_objext
20753 if { (ac_try="$ac_compile"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_compile") 2>conftest.er1
20761 grep -v '^ *+' conftest.er1 >conftest.err
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20765 (exit $ac_status); } && {
20766 test -z "$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20768 } && test -s conftest.$ac_objext; then
20769 ac_header_compiler=yes
20771 echo "$as_me: failed program was
:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_header_compiler=no
20777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20779 echo "${ECHO_T}$ac_header_compiler" >&6; }
20781 # Is the header present?
20782 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20783 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <$ac_header>
20792 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20800 grep -v '^ *+' conftest.er1 >conftest.err
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20804 (exit $ac_status); } >/dev/null && {
20805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20808 ac_header_preproc=yes
20810 echo "$as_me: failed program was
:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_header_preproc=no
20816 rm -f conftest.err conftest.$ac_ext
20817 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20818 echo "${ECHO_T}$ac_header_preproc" >&6; }
20820 # So? What about this header?
20821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20823 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20824 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20825 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20827 ac_header_preproc=yes
20830 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20831 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20832 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20833 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20834 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20835 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20836 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20837 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20838 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20840 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20841 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20845 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20846 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20847 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20848 echo $ECHO_N "(cached
) $ECHO_C" >&6
20850 eval "$as_ac_Header=\
$ac_header_preproc"
20852 ac_res=`eval echo '${'$as_ac_Header'}'`
20853 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20854 echo "${ECHO_T}$ac_res" >&6; }
20857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20858 cat >>confdefs.h <<_ACEOF
20859 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20864 for ac_header in kerberos/krb.h
20866 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20867 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20868 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20869 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20871 echo $ECHO_N "(cached
) $ECHO_C" >&6
20873 ac_res=`eval echo '${'$as_ac_Header'}'`
20874 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20875 echo "${ECHO_T}$ac_res" >&6; }
20877 # Is the header compilable?
20878 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20879 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20880 cat >conftest.$ac_ext <<_ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886 $ac_includes_default
20887 #include <$ac_header>
20889 rm -f conftest.$ac_objext
20890 if { (ac_try="$ac_compile"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20898 grep -v '^ *+' conftest.er1 >conftest.err
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 ac_header_compiler=yes
20908 echo "$as_me: failed program was
:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_header_compiler=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20916 echo "${ECHO_T}$ac_header_compiler" >&6; }
20918 # Is the header present?
20919 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20920 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20921 cat >conftest.$ac_ext <<_ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 #include <$ac_header>
20929 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20941 (exit $ac_status); } >/dev/null && {
20942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20945 ac_header_preproc=yes
20947 echo "$as_me: failed program was
:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ac_header_preproc=no
20953 rm -f conftest.err conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20955 echo "${ECHO_T}$ac_header_preproc" >&6; }
20957 # So? What about this header?
20958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20960 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20961 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20962 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20964 ac_header_preproc=yes
20967 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20968 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20969 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20970 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20971 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20972 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20973 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20974 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20975 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20977 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20978 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20982 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20983 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached
) $ECHO_C" >&6
20987 eval "$as_ac_Header=\
$ac_header_preproc"
20989 ac_res=`eval echo '${'$as_ac_Header'}'`
20990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20991 echo "${ECHO_T}$ac_res" >&6; }
20994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20995 cat >>confdefs.h <<_ACEOF
20996 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21013 for ac_header in com_err.h
21015 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21016 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21017 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21018 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21019 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21020 echo $ECHO_N "(cached
) $ECHO_C" >&6
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21026 # Is the header compilable?
21027 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21028 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 #include <$ac_header>
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21055 ac_header_compiler=yes
21057 echo "$as_me: failed program was
:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_compiler=no
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21065 echo "${ECHO_T}$ac_header_compiler" >&6; }
21067 # Is the header present?
21068 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21069 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <$ac_header>
21078 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21090 (exit $ac_status); } >/dev/null && {
21091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21094 ac_header_preproc=yes
21096 echo "$as_me: failed program was
:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_header_preproc=no
21102 rm -f conftest.err conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21104 echo "${ECHO_T}$ac_header_preproc" >&6; }
21106 # So? What about this header?
21107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21109 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21110 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21111 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21113 ac_header_preproc=yes
21116 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21117 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21118 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21119 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21120 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21121 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21122 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21123 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21124 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21126 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21127 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21131 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21132 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21134 echo $ECHO_N "(cached
) $ECHO_C" >&6
21136 eval "$as_ac_Header=\
$ac_header_preproc"
21138 ac_res=`eval echo '${'$as_ac_Header'}'`
21139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21140 echo "${ECHO_T}$ac_res" >&6; }
21143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21144 cat >>confdefs.h <<_ACEOF
21145 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21154 # Solaris requires -lintl if you want strerror (which calls dgettext)
21155 # to return localized messages.
21157 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21158 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21159 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21160 echo $ECHO_N "(cached
) $ECHO_C" >&6
21162 ac_check_lib_save_LIBS=$LIBS
21163 LIBS="-lintl $LIBS"
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21171 /* Override any GCC internal prototype to avoid an error.
21172 Use char because int might match the return type of a GCC
21173 builtin and then its argument prototype would still apply. */
21181 return dgettext ();
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (ac_try="$ac_link"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_link") 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest$ac_exeext &&
21203 $as_test_x conftest$ac_exeext; then
21204 ac_cv_lib_intl_dgettext=yes
21206 echo "$as_me: failed program was
:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21209 ac_cv_lib_intl_dgettext=no
21212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21213 conftest$ac_exeext conftest.$ac_ext
21214 LIBS=$ac_check_lib_save_LIBS
21216 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21217 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21218 if test $ac_cv_lib_intl_dgettext = yes; then
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_LIBINTL 1
21223 LIBS="-lintl $LIBS"
21228 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21229 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21230 if test "${emacs_cv_localtime_cache+set}" = set; then
21231 echo $ECHO_N "(cached
) $ECHO_C" >&6
21233 if test x$ac_cv_func_tzset = xyes; then
21234 if test "$cross_compiling" = yes; then
21235 # If we have tzset, assume the worst when cross-compiling.
21236 emacs_cv_localtime_cache=yes
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21245 extern char **environ;
21249 for (to = from = environ; (*to = *from); from++)
21250 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21253 char TZ_GMT0[] = "TZ
=GMT0
";
21254 char TZ_PST8[] = "TZ
=PST8
";
21257 time_t now = time ((time_t *) 0);
21258 int hour_GMT0, hour_unset;
21259 if (putenv (TZ_GMT0) != 0)
21261 hour_GMT0 = localtime (&now)->tm_hour;
21263 hour_unset = localtime (&now)->tm_hour;
21264 if (putenv (TZ_PST8) != 0)
21266 if (localtime (&now)->tm_hour == hour_GMT0)
21269 if (localtime (&now)->tm_hour != hour_unset)
21274 rm -f conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_link") 2>&5
21283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21285 { (case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_try") 2>&5
21292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21293 (exit $ac_status); }; }; then
21294 emacs_cv_localtime_cache=no
21296 echo "$as_me: program exited with status
$ac_status" >&5
21297 echo "$as_me: failed program was
:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ( exit $ac_status )
21301 emacs_cv_localtime_cache=yes
21303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21308 # If we lack tzset, report that localtime does not cache TZ,
21309 # since we can't invalidate the cache if we don't have tzset.
21310 emacs_cv_localtime_cache=no
21313 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21314 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21315 if test $emacs_cv_localtime_cache = yes; then
21317 cat >>confdefs.h <<\_ACEOF
21318 #define LOCALTIME_CACHE 1
21323 if test "x
$HAVE_TIMEVAL" = xyes; then
21325 for ac_func in gettimeofday
21327 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21328 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21329 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21330 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached
) $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21341 #define $ac_func innocuous_$ac_func
21343 /* System header to define __stub macros and hopefully few prototypes,
21344 which can conflict with char $ac_func (); below.
21345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346 <limits.h> exists even on freestanding compilers. */
21349 # include <limits.h>
21351 # include <assert.h>
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21363 /* The GNU C library defines this for functions which it implements
21364 to always fail with ENOSYS. Some functions are actually named
21365 something starting with __ and the normal name is an alias. */
21366 #if defined __stub_$ac_func || defined __stub___$ac_func
21373 return $ac_func ();
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_link") 2>conftest.er1
21387 grep -v '^ *+' conftest.er1 >conftest.err
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21391 (exit $ac_status); } && {
21392 test -z "$ac_c_werror_flag" ||
21393 test ! -s conftest.err
21394 } && test -s conftest$ac_exeext &&
21395 $as_test_x conftest$ac_exeext; then
21396 eval "$as_ac_var=yes"
21398 echo "$as_me: failed program was
:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 eval "$as_ac_var=no
"
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405 conftest$ac_exeext conftest.$ac_ext
21407 ac_res=`eval echo '${'$as_ac_var'}'`
21408 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21410 if test `eval echo '${'$as_ac_var'}'` = yes; then
21411 cat >>confdefs.h <<_ACEOF
21412 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21418 if test $ac_cv_func_gettimeofday = yes; then
21419 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21420 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21421 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21422 echo $ECHO_N "(cached
) $ECHO_C" >&6
21424 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21431 #ifdef TIME_WITH_SYS_TIME
21432 #include <sys/time.h>
21435 #ifdef HAVE_SYS_TIME_H
21436 #include <sys/time.h>
21444 struct timeval time;
21445 gettimeofday (&time, 0);
21450 rm -f conftest.$ac_objext
21451 if { (ac_try="$ac_compile"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_compile") 2>conftest.er1
21459 grep -v '^ *+' conftest.er1 >conftest.err
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest.$ac_objext; then
21467 emacs_cv_gettimeofday_two_arguments=yes
21469 echo "$as_me: failed program was
:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 emacs_cv_gettimeofday_two_arguments=no
21475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21477 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21478 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21479 if test $emacs_cv_gettimeofday_two_arguments = no; then
21481 cat >>confdefs.h <<\_ACEOF
21482 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21490 { echo "$as_me:$LINENO: checking
for socket
" >&5
21491 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21492 if test "${ac_cv_func_socket+set}" = set; then
21493 echo $ECHO_N "(cached
) $ECHO_C" >&6
21495 cat >conftest.$ac_ext <<_ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21503 #define socket innocuous_socket
21505 /* System header to define __stub macros and hopefully few prototypes,
21506 which can conflict with char socket (); below.
21507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508 <limits.h> exists even on freestanding compilers. */
21511 # include <limits.h>
21513 # include <assert.h>
21518 /* Override any GCC internal prototype to avoid an error.
21519 Use char because int might match the return type of a GCC
21520 builtin and then its argument prototype would still apply. */
21525 /* The GNU C library defines this for functions which it implements
21526 to always fail with ENOSYS. Some functions are actually named
21527 something starting with __ and the normal name is an alias. */
21528 #if defined __stub_socket || defined __stub___socket
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_link") 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext &&
21557 $as_test_x conftest$ac_exeext; then
21558 ac_cv_func_socket=yes
21560 echo "$as_me: failed program was
:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 ac_cv_func_socket=no
21566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21570 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21571 if test $ac_cv_func_socket = yes; then
21577 if test $ok_so_far = yes; then
21578 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21579 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21580 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21581 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21582 echo $ECHO_N "(cached
) $ECHO_C" >&6
21584 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21585 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21587 # Is the header compilable?
21588 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21589 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21597 #include <netinet/in.h>
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_compile") 2>conftest.er1
21608 grep -v '^ *+' conftest.er1 >conftest.err
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21612 (exit $ac_status); } && {
21613 test -z "$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 } && test -s conftest.$ac_objext; then
21616 ac_header_compiler=yes
21618 echo "$as_me: failed program was
:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_header_compiler=no
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21626 echo "${ECHO_T}$ac_header_compiler" >&6; }
21628 # Is the header present?
21629 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21630 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21631 cat >conftest.$ac_ext <<_ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h. */
21637 #include <netinet/in.h>
21639 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21651 (exit $ac_status); } >/dev/null && {
21652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21655 ac_header_preproc=yes
21657 echo "$as_me: failed program was
:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_header_preproc=no
21663 rm -f conftest.err conftest.$ac_ext
21664 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21665 echo "${ECHO_T}$ac_header_preproc" >&6; }
21667 # So? What about this header?
21668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21670 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21671 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21672 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21673 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21674 ac_header_preproc=yes
21677 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21678 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21679 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21680 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21681 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21682 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21683 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21684 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21685 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21686 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21687 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21688 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21692 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21693 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21694 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21695 echo $ECHO_N "(cached
) $ECHO_C" >&6
21697 ac_cv_header_netinet_in_h=$ac_header_preproc
21699 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21700 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21703 if test $ac_cv_header_netinet_in_h = yes; then
21711 if test $ok_so_far = yes; then
21712 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21713 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21714 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21715 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21716 echo $ECHO_N "(cached
) $ECHO_C" >&6
21718 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21719 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21721 # Is the header compilable?
21722 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21723 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21724 cat >conftest.$ac_ext <<_ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21730 $ac_includes_default
21731 #include <arpa/inet.h>
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.$ac_objext; then
21750 ac_header_compiler=yes
21752 echo "$as_me: failed program was
:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_header_compiler=no
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6; }
21762 # Is the header present?
21763 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21764 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <arpa/inet.h>
21773 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21774 case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21781 grep -v '^ *+' conftest.er1 >conftest.err
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21785 (exit $ac_status); } >/dev/null && {
21786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21789 ac_header_preproc=yes
21791 echo "$as_me: failed program was
:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_header_preproc=no
21797 rm -f conftest.err conftest.$ac_ext
21798 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21799 echo "${ECHO_T}$ac_header_preproc" >&6; }
21801 # So? What about this header?
21802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21804 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21805 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21806 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21807 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21808 ac_header_preproc=yes
21811 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21812 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21813 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21814 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21815 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21816 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21817 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21818 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21819 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21820 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21821 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21822 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21826 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21827 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21828 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21829 echo $ECHO_N "(cached
) $ECHO_C" >&6
21831 ac_cv_header_arpa_inet_h=$ac_header_preproc
21833 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21834 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21837 if test $ac_cv_header_arpa_inet_h = yes; then
21845 if test $ok_so_far = yes; then
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_INET_SOCKETS 1
21854 for ac_header in sys/ioctl.h
21856 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21857 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21858 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21859 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21860 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21861 echo $ECHO_N "(cached
) $ECHO_C" >&6
21863 ac_res=`eval echo '${'$as_ac_Header'}'`
21864 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21865 echo "${ECHO_T}$ac_res" >&6; }
21867 # Is the header compilable?
21868 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21869 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21870 cat >conftest.$ac_ext <<_ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21876 $ac_includes_default
21877 #include <$ac_header>
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_compile") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21892 (exit $ac_status); } && {
21893 test -z "$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 } && test -s conftest.$ac_objext; then
21896 ac_header_compiler=yes
21898 echo "$as_me: failed program was
:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 ac_header_compiler=no
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21906 echo "${ECHO_T}$ac_header_compiler" >&6; }
21908 # Is the header present?
21909 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21910 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 #include <$ac_header>
21919 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21920 case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21927 grep -v '^ *+' conftest.er1 >conftest.err
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21931 (exit $ac_status); } >/dev/null && {
21932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21935 ac_header_preproc=yes
21937 echo "$as_me: failed program was
:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 ac_header_preproc=no
21943 rm -f conftest.err conftest.$ac_ext
21944 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21945 echo "${ECHO_T}$ac_header_preproc" >&6; }
21947 # So? What about this header?
21948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21950 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21951 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21952 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21954 ac_header_preproc=yes
21957 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21958 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21959 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21960 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21961 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21962 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21963 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21964 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21965 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21967 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21968 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21972 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21973 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21974 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21975 echo $ECHO_N "(cached
) $ECHO_C" >&6
21977 eval "$as_ac_Header=\
$ac_header_preproc"
21979 ac_res=`eval echo '${'$as_ac_Header'}'`
21980 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21981 echo "${ECHO_T}$ac_res" >&6; }
21984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21985 cat >>confdefs.h <<_ACEOF
21986 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21994 if test -f /usr/lpp/X11/bin/smt.exp; then
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_AIX_SMT_EXP 1
22002 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22003 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22004 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22005 { echo "$as_me:$LINENO: result
: yes" >&5
22006 echo "${ECHO_T}yes" >&6; }
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_DEV_PTMX 1
22013 { echo "$as_me:$LINENO: result
: no
" >&5
22014 echo "${ECHO_T}no
" >&6; }
22017 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22018 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22019 if test "${ac_cv_type_pid_t+set}" = set; then
22020 echo $ECHO_N "(cached
) $ECHO_C" >&6
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 $ac_includes_default
22029 typedef pid_t ac__type_new_;
22033 if ((ac__type_new_ *) 0)
22035 if (sizeof (ac__type_new_))
22041 rm -f conftest.$ac_objext
22042 if { (ac_try="$ac_compile"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_compile") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest.$ac_objext; then
22058 ac_cv_type_pid_t=yes
22060 echo "$as_me: failed program was
:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_type_pid_t=no
22066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22069 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22070 if test $ac_cv_type_pid_t = yes; then
22074 cat >>confdefs.h <<_ACEOF
22081 for ac_header in vfork.h
22083 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22085 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22086 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached
) $ECHO_C" >&6
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22094 # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22096 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22104 #include <$ac_header>
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22123 ac_header_compiler=yes
22125 echo "$as_me: failed program was
:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_compiler=no
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22137 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <$ac_header>
22146 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22158 (exit $ac_status); } >/dev/null && {
22159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22162 ac_header_preproc=yes
22164 echo "$as_me: failed program was
:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_header_preproc=no
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22174 # So? What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22177 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22178 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22179 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22181 ac_header_preproc=yes
22184 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22185 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22186 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22187 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22188 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22189 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22190 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22191 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22194 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22195 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22199 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22200 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached
) $ECHO_C" >&6
22204 eval "$as_ac_Header=\
$ac_header_preproc"
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22222 for ac_func in fork vfork
22224 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22225 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22226 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22227 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22228 echo $ECHO_N "(cached
) $ECHO_C" >&6
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22238 #define $ac_func innocuous_$ac_func
22240 /* System header to define __stub macros and hopefully few prototypes,
22241 which can conflict with char $ac_func (); below.
22242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22243 <limits.h> exists even on freestanding compilers. */
22246 # include <limits.h>
22248 # include <assert.h>
22253 /* Override any GCC internal prototype to avoid an error.
22254 Use char because int might match the return type of a GCC
22255 builtin and then its argument prototype would still apply. */
22260 /* The GNU C library defines this for functions which it implements
22261 to always fail with ENOSYS. Some functions are actually named
22262 something starting with __ and the normal name is an alias. */
22263 #if defined __stub_$ac_func || defined __stub___$ac_func
22270 return $ac_func ();
22275 rm -f conftest.$ac_objext conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_link") 2>conftest.er1
22284 grep -v '^ *+' conftest.er1 >conftest.err
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest$ac_exeext &&
22292 $as_test_x conftest$ac_exeext; then
22293 eval "$as_ac_var=yes"
22295 echo "$as_me: failed program was
:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 eval "$as_ac_var=no
"
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302 conftest$ac_exeext conftest.$ac_ext
22304 ac_res=`eval echo '${'$as_ac_var'}'`
22305 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22306 echo "${ECHO_T}$ac_res" >&6; }
22307 if test `eval echo '${'$as_ac_var'}'` = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22315 if test "x
$ac_cv_func_fork" = xyes; then
22316 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22317 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22318 if test "${ac_cv_func_fork_works+set}" = set; then
22319 echo $ECHO_N "(cached
) $ECHO_C" >&6
22321 if test "$cross_compiling" = yes; then
22322 ac_cv_func_fork_works=cross
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 $ac_includes_default
22335 /* By Ruediger Kuhlmann. */
22336 return fork () < 0;
22342 rm -f conftest$ac_exeext
22343 if { (ac_try="$ac_link"
22344 case "(($ac_try" in
22345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346 *) ac_try_echo=$ac_try;;
22348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22349 (eval "$ac_link") 2>&5
22351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22353 { (case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_try") 2>&5
22360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 ac_cv_func_fork_works=yes
22364 echo "$as_me: program exited with status
$ac_status" >&5
22365 echo "$as_me: failed program was
:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ( exit $ac_status )
22369 ac_cv_func_fork_works=no
22371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22377 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22380 ac_cv_func_fork_works=$ac_cv_func_fork
22382 if test "x
$ac_cv_func_fork_works" = xcross; then
22384 *-*-amigaos* | *-*-msdosdjgpp*)
22385 # Override, as these systems have only a dummy fork() stub
22386 ac_cv_func_fork_works=no
22389 ac_cv_func_fork_works=yes
22392 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22393 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22395 ac_cv_func_vfork_works=$ac_cv_func_vfork
22396 if test "x
$ac_cv_func_vfork" = xyes; then
22397 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22398 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22399 if test "${ac_cv_func_vfork_works+set}" = set; then
22400 echo $ECHO_N "(cached
) $ECHO_C" >&6
22402 if test "$cross_compiling" = yes; then
22403 ac_cv_func_vfork_works=cross
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 /* Thanks to Paul Eggert for this test. */
22412 $ac_includes_default
22413 #include <sys/wait.h>
22414 #ifdef HAVE_VFORK_H
22415 # include <vfork.h>
22417 /* On some sparc systems, changes by the child to local and incoming
22418 argument registers are propagated back to the parent. The compiler
22419 is told about this with #include <vfork.h>, but some compilers
22420 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22421 static variable whose address is put into a register that is
22422 clobbered by the vfork. */
22425 sparc_address_test (int arg)
22427 sparc_address_test (arg) int arg;
22430 static pid_t child;
22448 pid_t parent = getpid ();
22451 sparc_address_test (0);
22456 /* Here is another test for sparc vfork register problems. This
22457 test uses lots of local variables, at least as many local
22458 variables as main has allocated so far including compiler
22459 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22460 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22461 reuse the register of parent for one of the local variables,
22462 since it will think that parent can't possibly be used any more
22463 in this routine. Assigning to the local variable will thus
22464 munge parent in the parent process. */
22466 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22467 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22468 /* Convince the compiler that p..p7 are live; otherwise, it might
22469 use the same hardware register for all 8 local variables. */
22470 if (p != p1 || p != p2 || p != p3 || p != p4
22471 || p != p5 || p != p6 || p != p7)
22474 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22475 from child file descriptors. If the child closes a descriptor
22476 before it execs or exits, this munges the parent's descriptor
22477 as well. Test for this by closing stdout in the child. */
22478 _exit(close(fileno(stdout)) != 0);
22483 while (wait(&status) != child)
22486 /* Was there some problem with vforking? */
22489 /* Did the child fail? (This shouldn't happen.) */
22492 /* Did the vfork/compiler bug occur? */
22493 || parent != getpid()
22495 /* Did the file descriptor bug occur? */
22496 || fstat(fileno(stdout), &st) != 0
22501 rm -f conftest$ac_exeext
22502 if { (ac_try="$ac_link"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_link") 2>&5
22510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22512 { (case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_try") 2>&5
22519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22520 (exit $ac_status); }; }; then
22521 ac_cv_func_vfork_works=yes
22523 echo "$as_me: program exited with status
$ac_status" >&5
22524 echo "$as_me: failed program was
:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ( exit $ac_status )
22528 ac_cv_func_vfork_works=no
22530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22535 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22536 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22539 if test "x
$ac_cv_func_fork_works" = xcross; then
22540 ac_cv_func_vfork_works=$ac_cv_func_vfork
22541 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22542 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22545 if test "x
$ac_cv_func_vfork_works" = xyes; then
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_WORKING_VFORK 1
22553 cat >>confdefs.h <<\_ACEOF
22558 if test "x
$ac_cv_func_fork_works" = xyes; then
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_WORKING_FORK 1
22567 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22568 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22569 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22570 echo $ECHO_N "(cached
) $ECHO_C" >&6
22572 cat >conftest.$ac_ext <<_ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h. */
22578 #include <langinfo.h>
22582 char* cs = nl_langinfo(CODESET);
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (ac_try="$ac_link"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_link") 2>conftest.er1
22596 grep -v '^ *+' conftest.er1 >conftest.err
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest$ac_exeext &&
22604 $as_test_x conftest$ac_exeext; then
22605 emacs_cv_langinfo_codeset=yes
22607 echo "$as_me: failed program was
:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 emacs_cv_langinfo_codeset=no
22613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22614 conftest$ac_exeext conftest.$ac_ext
22617 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22618 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22619 if test $emacs_cv_langinfo_codeset = yes; then
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_LANGINFO_CODESET 1
22627 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22628 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22629 if test "${ac_cv_type_size_t+set}" = set; then
22630 echo $ECHO_N "(cached
) $ECHO_C" >&6
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 $ac_includes_default
22639 typedef size_t ac__type_new_;
22643 if ((ac__type_new_ *) 0)
22645 if (sizeof (ac__type_new_))
22651 rm -f conftest.$ac_objext
22652 if { (ac_try="$ac_compile"
22653 case "(($ac_try" in
22654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655 *) ac_try_echo=$ac_try;;
22657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22658 (eval "$ac_compile") 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22664 (exit $ac_status); } && {
22665 test -z "$ac_c_werror_flag" ||
22666 test ! -s conftest.err
22667 } && test -s conftest.$ac_objext; then
22668 ac_cv_type_size_t=yes
22670 echo "$as_me: failed program was
:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22673 ac_cv_type_size_t=no
22676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22678 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22679 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22680 if test $ac_cv_type_size_t = yes; then
22682 cat >>confdefs.h <<_ACEOF
22683 #define HAVE_SIZE_T 1
22690 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22691 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22692 if test "${ac_cv_type_mbstate_t+set}" = set; then
22693 echo $ECHO_N "(cached
) $ECHO_C" >&6
22695 cat >conftest.$ac_ext <<_ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22701 $ac_includes_default
22702 # include <wchar.h>
22706 mbstate_t x; return sizeof x;
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_type_mbstate_t=yes
22730 echo "$as_me: failed program was
:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_type_mbstate_t=no
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22739 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22740 if test $ac_cv_type_mbstate_t = yes; then
22742 cat >>confdefs.h <<\_ACEOF
22743 #define HAVE_MBSTATE_T 1
22748 cat >>confdefs.h <<\_ACEOF
22749 #define mbstate_t int
22754 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22755 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22756 if test "${emacs_cv_c_restrict+set}" = set; then
22757 echo $ECHO_N "(cached
) $ECHO_C" >&6
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 void fred (int *restrict x);
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_compile") 2>conftest.er1
22783 grep -v '^ *+' conftest.er1 >conftest.err
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22787 (exit $ac_status); } && {
22788 test -z "$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 } && test -s conftest.$ac_objext; then
22791 emacs_cv_c_restrict=yes
22793 echo "$as_me: failed program was
:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 void fred (int *__restrict x);
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22820 grep -v '^ *+' conftest.er1 >conftest.err
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 emacs_cv_c_restrict=__restrict
22830 echo "$as_me: failed program was
:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 emacs_cv_c_restrict=no
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22842 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22843 case "$emacs_cv_c_restrict" in
22844 yes) emacs_restrict=restrict;;
22845 no) emacs_restrict="";;
22846 *) emacs_restrict="$emacs_cv_c_restrict";;
22848 if test "$emacs_restrict" != __restrict; then
22850 cat >>confdefs.h <<_ACEOF
22851 #define __restrict $emacs_restrict
22856 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22857 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22858 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22859 echo $ECHO_N "(cached
) $ECHO_C" >&6
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22867 void fred (int x[__restrict]);
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 emacs_cv_c_restrict_arr=yes
22895 echo "$as_me: failed program was
:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 emacs_cv_c_restrict_arr=no
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22904 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22905 if test "$emacs_cv_c_restrict_arr" = yes; then
22907 cat >>confdefs.h <<\_ACEOF
22908 #define __restrict_arr __restrict
22915 # Set up the CFLAGS for real compilation, so we can substitute it.
22916 CFLAGS="$REAL_CFLAGS"
22917 CPPFLAGS="$REAL_CPPFLAGS"
22919 #### Find out which version of Emacs this is.
22920 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22921 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22922 if test x"${version}" = x; then
22923 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22924 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22925 { (exit 1); exit 1; }; }
22928 ### Specify what sort of things we'll be editing into Makefile and config.h.
22929 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22965 cat >>confdefs.h <<_ACEOF
22966 #define EMACS_CONFIGURATION "${canonical}"
22970 cat >>confdefs.h <<_ACEOF
22971 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22975 cat >>confdefs.h <<_ACEOF
22976 #define config_machfile "${machfile}"
22980 cat >>confdefs.h <<_ACEOF
22981 #define config_opsysfile "${opsysfile}"
22985 cat >>confdefs.h <<_ACEOF
22986 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22990 cat >>confdefs.h <<_ACEOF
22991 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22995 cat >>confdefs.h <<_ACEOF
22996 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23000 cat >>confdefs.h <<_ACEOF
23001 #define UNEXEC_SRC ${UNEXEC_SRC}
23005 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_X_WINDOWS 1
23012 if test "${USE_X_TOOLKIT}" != "none
" ; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define USE_X_TOOLKIT 1
23019 if test "${HAVE_X11}" = "yes" ; then
23021 cat >>confdefs.h <<\_ACEOF
23026 if test "${HAVE_XFREE386}" = "yes" ; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_XFREE386 1
23033 if test "${HAVE_MENUS}" = "yes" ; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_MENUS 1
23040 if test "${GNU_MALLOC}" = "yes" ; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define GNU_MALLOC 1
23047 if test "${REL_ALLOC}" = "yes" ; then
23049 cat >>confdefs.h <<\_ACEOF
23050 #define REL_ALLOC 1
23059 #### Report on what we decided to do.
23060 #### Report GTK as a toolkit, even if it doesn't use Xt.
23061 #### It makes printing result more understandable as using GTK sets
23062 #### toolkit_scroll_bars to yes by default.
23063 if test "${HAVE_GTK}" = "yes"; then
23068 Configured
for \
`${canonical}'.
23070 Where should the build process find the source code? ${srcdir}
23071 What operating system and machine description files should Emacs use?
23072 \`${opsysfile}' and \`${machfile}'
23073 What compiler should emacs be built with?
${CC} ${CFLAGS}
23074 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23075 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23076 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23077 What window system should Emacs use?
${window_system}
23078 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23080 if test -n "${x_includes}"; then
23081 echo " Where
do we
find X Windows header files?
${x_includes}"
23083 echo " Where
do we
find X Windows header files? Standard
dirs"
23085 if test -n "${x_libraries}"; then
23086 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23088 echo " Where
do we
find X Windows libraries? Standard
dirs"
23091 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23092 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23093 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23094 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23095 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23096 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23097 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23100 if test $USE_XASSERTS = yes; then
23101 echo " Compiling with asserts turned on.
"
23102 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23106 if test "$USE_X_TOOLKIT" = GTK; then
23107 case "$canonical" in
23109 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23110 will probably get a crash on startup. If this happens
, please use another
23111 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23118 # Remove any trailing slashes in these variables.
23119 test "${prefix}" != NONE &&
23120 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23121 test "${exec_prefix}" != NONE &&
23122 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23124 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23125 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23126 ## from Makefile.c can correctly provide the arg `-traditional' to the
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23137 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23138 $EGREP "yes..
yes" >/dev/null 2>&1; then
23139 CPP_NEED_TRADITIONAL=no
23141 CPP_NEED_TRADITIONAL=yes
23146 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23148 ac_config_commands="$ac_config_commands default
"
23150 cat >confcache <<\_ACEOF
23151 # This file is a shell script that caches the results of configure
23152 # tests run on this system so they can be shared between configure
23153 # scripts and configure runs, see configure's option --config-cache.
23154 # It is not useful on other systems. If it contains results you don't
23155 # want to keep, you may remove or edit it.
23157 # config.status only pays attention to the cache file if you give it
23158 # the --recheck option to rerun configure.
23160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23162 # following values.
23166 # The following way of writing the cache mishandles newlines in values,
23167 # but we know of no workaround that is simple, portable, and efficient.
23168 # So, we kill variables containing newlines.
23169 # Ultrix sh set writes to stderr and can't be redirected directly,
23170 # and sets the high bit in the cache file unless we assign to the vars.
23172 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23173 eval ac_val=\$$ac_var
23177 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23178 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23181 _ | IFS | as_nl) ;; #(
23182 *) $as_unset $ac_var ;;
23188 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23189 *${as_nl}ac_space=\ *)
23190 # `set' does not quote correctly, so add quotes (double-quote
23191 # substitution turns \\\\ into \\, and sed turns \\ into \).
23194 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23197 # `set' quotes correctly as required by POSIX, so do not add quotes.
23198 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23207 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23209 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23211 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23212 if test -w "$cache_file"; then
23213 test "x
$cache_file" != "x
/dev
/null
" &&
23214 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23215 echo "$as_me: updating cache
$cache_file" >&6;}
23216 cat confcache >$cache_file
23218 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23219 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23224 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23225 # Let make expand exec_prefix.
23226 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23228 DEFS=-DHAVE_CONFIG_H
23232 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23233 # 1. Remove the extension, and $U if already installed.
23234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23235 ac_i=`echo "$ac_i" | sed "$ac_script"`
23236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23237 # will be set to the directory where LIBOBJS objects are built.
23238 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23239 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23241 LIBOBJS=$ac_libobjs
23243 LTLIBOBJS=$ac_ltlibobjs
23247 : ${CONFIG_STATUS=./config.status}
23248 ac_clean_files_save=$ac_clean_files
23249 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23250 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23251 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23252 cat >$CONFIG_STATUS <<_ACEOF
23254 # Generated by $as_me.
23255 # Run this file to recreate the current configuration.
23256 # Compiler output produced by configure, useful for debugging
23257 # configure, is in config.log if it exists.
23260 ac_cs_recheck=false
23262 SHELL=\${CONFIG_SHELL-$SHELL}
23265 cat >>$CONFIG_STATUS <<\_ACEOF
23266 ## --------------------- ##
23267 ## M4sh Initialization. ##
23268 ## --------------------- ##
23270 # Be more Bourne compatible
23271 DUALCASE=1; export DUALCASE # for MKS sh
23272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23275 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23276 # is contrary to our usage. Disable this feature.
23277 alias -g '${1+"$@"}'='"$@
"'
23278 setopt NO_GLOB_SUBST
23280 case `(set -o) 2>/dev/null` in
23281 *posix*) set -o posix ;;
23290 # Avoid depending upon Character Ranges.
23291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23294 as_cr_digits='0123456789'
23295 as_cr_alnum=$as_cr_Letters$as_cr_digits
23297 # The user is always right.
23298 if test "${PATH_SEPARATOR+set}" != set; then
23299 echo "#! /bin/sh" >conf$$.sh
23300 echo "exit 0" >>conf$$.sh
23302 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23310 # Support unset when possible.
23311 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23319 # We need space, tab and new line, in precisely that order. Quoting is
23320 # there to prevent editors from complaining about space-tab.
23321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23322 # splitting by setting IFS to empty value.)
23327 # Find who we are. Look in the path if we contain no directory separator.
23329 *[\\/]* ) as_myself
=$0 ;;
23330 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23331 for as_dir
in $PATH
23334 test -z "$as_dir" && as_dir
=.
23335 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23341 # We did not find ourselves, most probably we were run as `sh COMMAND'
23342 # in which case we are not to be found in the path.
23343 if test "x$as_myself" = x
; then
23346 if test ! -f "$as_myself"; then
23347 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23348 { (exit 1); exit 1; }
23351 # Work around bugs in pre-3.0 UWIN ksh.
23352 for as_var
in ENV MAIL MAILPATH
23353 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23363 LC_TELEPHONE LC_TIME
23365 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23366 eval $as_var=C
; export $as_var
23368 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23372 # Required to use basename.
23373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23381 as_basename
=basename
23387 # Name of the executable.
23388 as_me
=`$as_basename -- "$0" ||
23389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23390 X"$0" : 'X\(//\)$' \| \
23391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23393 sed '/^.*\/\([^/][^/]*\)\/*$/{
23412 as_lineno_1
=$LINENO
23413 as_lineno_2
=$LINENO
23414 test "x$as_lineno_1" != "x$as_lineno_2" &&
23415 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23417 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23418 # uniformly replaced by the line number. The first 'sed' inserts a
23419 # line-number line after each line using $LINENO; the second 'sed'
23420 # does the real work. The second script uses 'N' to pair each
23421 # line-number line with the line containing $LINENO, and appends
23422 # trailing '-' during substitution so that $LINENO is not a special
23423 # case at line end.
23424 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23425 # scripts with optimization help from Paolo Bonzini. Blame Lee
23426 # E. McMahon (1931-1989) for sed's syntax. :-)
23438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23441 ' >$as_me.lineno
&&
23442 chmod +x
"$as_me.lineno" ||
23443 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23444 { (exit 1); exit 1; }; }
23446 # Don't try to exec as it changes $[0], causing all sort of problems
23447 # (the dirname of $[0] is not the place where we might find the
23448 # original and so on. Autoconf is especially sensitive to this).
23449 .
"./$as_me.lineno"
23450 # Exit status is that of the last command.
23455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23461 ECHO_C
= ECHO_N
= ECHO_T
=
23462 case `echo -n x` in
23464 case `echo 'x\c'` in
23465 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23472 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23473 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23479 rm -f conf$$ conf$$.exe conf$$.
file
23480 if test -d conf$$.dir
; then
23481 rm -f conf$$.dir
/conf$$.
file
23487 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23489 # ... but there are two gotchas:
23490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23492 # In both cases, we have to default to `cp -p'.
23493 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23495 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23501 rmdir conf$$.dir
2>/dev
/null
23503 if mkdir
-p .
2>/dev
/null
; then
23506 test -d .
/-p && rmdir .
/-p
23510 if test -x / >/dev
/null
2>&1; then
23511 as_test_x
='test -x'
23513 if ls -dL / >/dev
/null
2>&1; then
23520 if test -d "$1"; then
23526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23527 ???[sx]*):;;*)false;;esac;fi
23531 as_executable_p
=$as_test_x
23533 # Sed expression to map a string onto a valid CPP name.
23534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23536 # Sed expression to map a string onto a valid variable name.
23537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23542 # Save the log message, to keep $[0] and so on meaningful, and to
23543 # report actual input values of CONFIG_FILES etc. instead of their
23544 # values after options handling.
23546 This file was extended by $as_me, which was
23547 generated by GNU Autoconf 2.61. Invocation command line was
23549 CONFIG_FILES = $CONFIG_FILES
23550 CONFIG_HEADERS = $CONFIG_HEADERS
23551 CONFIG_LINKS = $CONFIG_LINKS
23552 CONFIG_COMMANDS = $CONFIG_COMMANDS
23555 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23560 cat >>$CONFIG_STATUS <<_ACEOF
23561 # Files that config.status was made for.
23562 config_files="$ac_config_files"
23563 config_headers="$ac_config_headers"
23564 config_commands="$ac_config_commands"
23568 cat >>$CONFIG_STATUS <<\_ACEOF
23570 \`$as_me' instantiates files from templates according to the
23571 current configuration.
23573 Usage: $0 [OPTIONS] [FILE]...
23575 -h, --help print this help, then exit
23576 -V, --version print version number and configuration settings, then exit
23577 -q, --quiet do not print progress messages
23578 -d, --debug don't remove temporary files
23579 --recheck update $as_me by reconfiguring in the same conditions
23580 --file=FILE[:TEMPLATE]
23581 instantiate the configuration file FILE
23582 --header=FILE[:TEMPLATE]
23583 instantiate the configuration header FILE
23585 Configuration files:
23588 Configuration headers:
23591 Configuration commands:
23594 Report bugs to <bug-autoconf@gnu.org>."
23597 cat >>$CONFIG_STATUS <<_ACEOF
23600 configured by $0, generated by GNU Autoconf 2.61,
23601 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23603 Copyright (C) 2006 Free Software Foundation, Inc.
23604 This config.status script is free software; the Free Software Foundation
23605 gives unlimited permission to copy, distribute and modify it."
23612 cat >>$CONFIG_STATUS <<\_ACEOF
23613 # If no file are specified by the user, then we need to provide default
23614 # value. By we need to know if files were specified by the user.
23620 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23621 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23632 # Handling of the options.
23633 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23635 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23636 echo "$ac_cs_version"; exit ;;
23637 --debug |
--debu |
--deb |
--de |
--d |
-d )
23639 --file |
--fil |
--fi |
--f )
23641 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23642 ac_need_defaults
=false
;;
23643 --header |
--heade |
--head |
--hea )
23645 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23646 ac_need_defaults
=false
;;
23648 # Conflict between --help and --header
23649 { echo "$as_me: error: ambiguous option: $1
23650 Try \`$0 --help' for more information." >&2
23651 { (exit 1); exit 1; }; };;
23652 --help |
--hel |
-h )
23653 echo "$ac_cs_usage"; exit ;;
23654 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23655 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23658 # This is an error.
23659 -*) { echo "$as_me: error: unrecognized option: $1
23660 Try \`$0 --help' for more information." >&2
23661 { (exit 1); exit 1; }; } ;;
23663 *) ac_config_targets
="$ac_config_targets $1"
23664 ac_need_defaults
=false
;;
23670 ac_configure_extra_args
=
23672 if $ac_cs_silent; then
23674 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23678 cat >>$CONFIG_STATUS <<_ACEOF
23679 if \$ac_cs_recheck; then
23680 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23681 CONFIG_SHELL=$SHELL
23682 export CONFIG_SHELL
23683 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23687 cat >>$CONFIG_STATUS <<\_ACEOF
23691 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23692 ## Running $as_me. ##
23698 cat >>$CONFIG_STATUS <<_ACEOF
23702 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23706 cat >>$CONFIG_STATUS <<\_ACEOF
23708 # Handling of arguments.
23709 for ac_config_target
in $ac_config_targets
23711 case $ac_config_target in
23712 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23713 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23714 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23715 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23716 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23717 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23718 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23719 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23720 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23721 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23722 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23723 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23725 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23726 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23727 { (exit 1); exit 1; }; };;
23732 # If the user did not use the arguments to specify the items to instantiate,
23733 # then the envvar interface is used. Set only those that are not.
23734 # We use the long form for the default assignment because of an extremely
23735 # bizarre bug on SunOS 4.1.3.
23736 if $ac_need_defaults; then
23737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23742 # Have a temporary directory for convenience. Make it in the build tree
23743 # simply because there is no reason against having it here, and in addition,
23744 # creating and moving files from /tmp can sometimes cause problems.
23745 # Hook for its removal unless debugging.
23746 # Note that there is a small window in which the directory will not be cleaned:
23747 # after its creation but before its name has been assigned to `$tmp'.
23751 trap 'exit_status=$?
23752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23754 trap '{ (exit 1); exit 1; }' 1 2 13 15
23756 # Create a (secure) tmp directory for tmp files.
23759 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23760 test -n "$tmp" && test -d "$tmp"
23763 tmp
=.
/conf$$
-$RANDOM
23764 (umask 077 && mkdir
"$tmp")
23767 echo "$me: cannot create a temporary directory in ." >&2
23768 { (exit 1); exit 1; }
23772 # Set up the sed scripts for CONFIG_FILES section.
23775 # No need to generate the scripts if there are no CONFIG_FILES.
23776 # This happens for instance when ./config.status config.h
23777 if test -n "$CONFIG_FILES"; then
23784 for ac_last_try
in false false false false false
:; do
23785 cat >conf$
$subs.
sed <<_ACEOF
23786 SHELL!$SHELL$ac_delim
23787 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23788 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23789 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23790 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23791 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23792 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23793 exec_prefix!$exec_prefix$ac_delim
23794 prefix!$prefix$ac_delim
23795 program_transform_name!$program_transform_name$ac_delim
23796 bindir!$bindir$ac_delim
23797 sbindir!$sbindir$ac_delim
23798 libexecdir!$libexecdir$ac_delim
23799 datarootdir!$datarootdir$ac_delim
23800 datadir!$datadir$ac_delim
23801 sysconfdir!$sysconfdir$ac_delim
23802 sharedstatedir!$sharedstatedir$ac_delim
23803 localstatedir!$localstatedir$ac_delim
23804 includedir!$includedir$ac_delim
23805 oldincludedir!$oldincludedir$ac_delim
23806 docdir!$docdir$ac_delim
23807 infodir!$infodir$ac_delim
23808 htmldir!$htmldir$ac_delim
23809 dvidir!$dvidir$ac_delim
23810 pdfdir!$pdfdir$ac_delim
23811 psdir!$psdir$ac_delim
23812 libdir!$libdir$ac_delim
23813 localedir!$localedir$ac_delim
23814 mandir!$mandir$ac_delim
23815 DEFS!$DEFS$ac_delim
23816 ECHO_C!$ECHO_C$ac_delim
23817 ECHO_N!$ECHO_N$ac_delim
23818 ECHO_T!$ECHO_T$ac_delim
23819 LIBS!$LIBS$ac_delim
23820 build_alias!$build_alias$ac_delim
23821 host_alias!$host_alias$ac_delim
23822 target_alias!$target_alias$ac_delim
23823 MAINT!$MAINT$ac_delim
23824 build!$build$ac_delim
23825 build_cpu!$build_cpu$ac_delim
23826 build_vendor!$build_vendor$ac_delim
23827 build_os!$build_os$ac_delim
23828 host!$host$ac_delim
23829 host_cpu!$host_cpu$ac_delim
23830 host_vendor!$host_vendor$ac_delim
23831 host_os!$host_os$ac_delim
23833 CFLAGS!$CFLAGS$ac_delim
23834 LDFLAGS!$LDFLAGS$ac_delim
23835 CPPFLAGS!$CPPFLAGS$ac_delim
23836 ac_ct_CC!$ac_ct_CC$ac_delim
23837 EXEEXT!$EXEEXT$ac_delim
23838 OBJEXT!$OBJEXT$ac_delim
23840 GREP!$GREP$ac_delim
23841 EGREP!$EGREP$ac_delim
23842 LN_S!$LN_S$ac_delim
23843 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23844 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23845 INSTALL_DATA!$INSTALL_DATA$ac_delim
23846 RANLIB!$RANLIB$ac_delim
23847 INSTALL_INFO!$INSTALL_INFO$ac_delim
23848 GZIP_PROG!$GZIP_PROG$ac_delim
23849 LIBSOUND!$LIBSOUND$ac_delim
23850 PKG_CONFIG!$PKG_CONFIG$ac_delim
23851 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23852 ALSA_LIBS!$ALSA_LIBS$ac_delim
23853 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23854 SET_MAKE!$SET_MAKE$ac_delim
23855 XMKMF!$XMKMF$ac_delim
23856 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23857 GTK_LIBS!$GTK_LIBS$ac_delim
23858 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23859 XFT_LIBS!$XFT_LIBS$ac_delim
23860 ALLOCA!$ALLOCA$ac_delim
23861 liblockfile!$liblockfile$ac_delim
23862 LIBOBJS!$LIBOBJS$ac_delim
23863 NEED_SETGID!$NEED_SETGID$ac_delim
23864 KMEM_GROUP!$KMEM_GROUP$ac_delim
23865 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23866 GETOPT_H!$GETOPT_H$ac_delim
23867 GETOPTOBJS!$GETOPTOBJS$ac_delim
23868 version!$version$ac_delim
23869 configuration!$configuration$ac_delim
23870 canonical!$canonical$ac_delim
23871 srcdir!$srcdir$ac_delim
23872 lispdir!$lispdir$ac_delim
23873 locallisppath!$locallisppath$ac_delim
23874 lisppath!$lisppath$ac_delim
23875 x_default_search_path!$x_default_search_path$ac_delim
23876 etcdir!$etcdir$ac_delim
23877 archlibdir!$archlibdir$ac_delim
23878 bitmapdir!$bitmapdir$ac_delim
23879 gamedir!$gamedir$ac_delim
23880 gameuser!$gameuser$ac_delim
23881 c_switch_system!$c_switch_system$ac_delim
23882 c_switch_machine!$c_switch_machine$ac_delim
23885 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23887 elif $ac_last_try; then
23888 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23890 { (exit 1); exit 1; }; }
23892 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23896 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23897 if test -n "$ac_eof"; then
23898 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23899 ac_eof
=`expr $ac_eof + 1`
23902 cat >>$CONFIG_STATUS <<_ACEOF
23903 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23908 s/^/s,@/; s/!/@,|#_!!_#|/
23911 s/'"$ac_delim"'$/,g/; t
23913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23914 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23915 rm -f conf$
$subs.
sed
23916 cat >>$CONFIG_STATUS <<_ACEOF
23922 for ac_last_try
in false false false false false
:; do
23923 cat >conf$
$subs.
sed <<_ACEOF
23924 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23925 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23926 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23927 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23928 machfile!$machfile$ac_delim
23929 opsysfile!$opsysfile$ac_delim
23930 carbon_appdir!$carbon_appdir$ac_delim
23931 LTLIBOBJS!$LTLIBOBJS$ac_delim
23934 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23936 elif $ac_last_try; then
23937 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23938 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23939 { (exit 1); exit 1; }; }
23941 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23945 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23946 if test -n "$ac_eof"; then
23947 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23948 ac_eof
=`expr $ac_eof + 1`
23951 cat >>$CONFIG_STATUS <<_ACEOF
23952 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23956 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23957 s/^/s,@/; s/!/@,|#_!!_#|/
23960 s/'"$ac_delim"'$/,g/; t
23962 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23963 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23964 rm -f conf$
$subs.
sed
23965 cat >>$CONFIG_STATUS <<_ACEOF
23972 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23973 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23974 # trailing colons and then remove the whole line if VPATH becomes empty
23975 # (actually we leave an empty line to preserve line numbers).
23976 if test "x$srcdir" = x.
; then
23977 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23978 s/:*\$(srcdir):*/:/
23979 s/:*\${srcdir}:*/:/
23981 s/^\([^=]*=[ ]*\):*/\1/
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23988 fi # test -n "$CONFIG_FILES"
23991 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23994 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23996 case $ac_mode$ac_tag in
23998 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23999 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24000 { (exit 1); exit 1; }; };;
24001 :[FH
]-) ac_tag
=-:-;;
24002 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24019 -) ac_f
="$tmp/stdin";;
24020 *) # Look for the file first in the build tree, then in the source tree
24021 # (if the path is not absolute). The absolute path cannot be DOS-style,
24022 # because $ac_f cannot contain `:'.
24026 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24028 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24029 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24030 { (exit 1); exit 1; }; };;
24032 ac_file_inputs
="$ac_file_inputs $ac_f"
24035 # Let's still pretend it is `configure' which instantiates (i.e., don't
24036 # use $as_me), people would be surprised to read:
24037 # /* config.h. Generated by config.status. */
24038 configure_input
="Generated from "`IFS=:
24039 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24040 if test x
"$ac_file" != x-
; then
24041 configure_input
="$ac_file. $configure_input"
24042 { echo "$as_me:$LINENO: creating $ac_file" >&5
24043 echo "$as_me: creating $ac_file" >&6;}
24047 *:-:* |
*:-) cat >"$tmp/stdin";;
24052 ac_dir
=`$as_dirname -- "$ac_file" ||
24053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24054 X"$ac_file" : 'X\(//\)[^/]' \| \
24055 X"$ac_file" : 'X\(//\)$' \| \
24056 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24062 /^X\(\/\/\)[^/].*/{
24077 -*) as_dir
=.
/$as_dir;;
24079 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24083 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24084 *) as_qdir
=$as_dir;;
24086 as_dirs
="'$as_qdir' $as_dirs"
24087 as_dir
=`$as_dirname -- "$as_dir" ||
24088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24089 X"$as_dir" : 'X\(//\)[^/]' \| \
24090 X"$as_dir" : 'X\(//\)$' \| \
24091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24097 /^X\(\/\/\)[^/].*/{
24110 test -d "$as_dir" && break
24112 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24113 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24114 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24115 { (exit 1); exit 1; }; }; }
24119 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24121 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24122 # A ".." for each directory in $ac_dir_suffix.
24123 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24124 case $ac_top_builddir_sub in
24125 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24126 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24129 ac_abs_top_builddir
=$ac_pwd
24130 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24131 # for backward compatibility:
24132 ac_top_builddir
=$ac_top_build_prefix
24135 .
) # We are building in place.
24137 ac_top_srcdir
=$ac_top_builddir_sub
24138 ac_abs_top_srcdir
=$ac_pwd ;;
24139 [\\/]* | ?
:[\\/]* ) # Absolute name.
24140 ac_srcdir
=$srcdir$ac_dir_suffix;
24141 ac_top_srcdir
=$srcdir
24142 ac_abs_top_srcdir
=$srcdir ;;
24143 *) # Relative name.
24144 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24145 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24146 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24148 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24158 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24159 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24163 cat >>$CONFIG_STATUS <<\_ACEOF
24164 # If the template does not know about datarootdir, expand it.
24165 # FIXME: This hack should be removed a few years after 2.60.
24166 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24168 case `sed -n '/datarootdir/ {
24177 ' $ac_file_inputs` in
24178 *datarootdir
*) ac_datarootdir_seen
=yes;;
24179 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24180 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24181 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 ac_datarootdir_hack='
24185 s&@datadir@&$datadir&g
24186 s&@docdir@&$docdir&g
24187 s&@infodir@&$infodir&g
24188 s&@localedir@&$localedir&g
24189 s&@mandir@&$mandir&g
24190 s&\\\${datarootdir}&$datarootdir&g' ;;
24194 # Neutralize VPATH when `$srcdir' = `.'.
24195 # Shell code in configure.ac might set extrasub.
24196 # FIXME: do we really want to maintain this feature?
24197 cat >>$CONFIG_STATUS <<_ACEOF
24201 cat >>$CONFIG_STATUS <<\_ACEOF
24203 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24204 s
&@configure_input@
&$configure_input&;t t
24205 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24206 s
&@srcdir@
&$ac_srcdir&;t t
24207 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24208 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24209 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24210 s
&@builddir@
&$ac_builddir&;t t
24211 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24212 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24213 s
&@INSTALL@
&$ac_INSTALL&;t t
24214 $ac_datarootdir_hack
24215 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24217 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24218 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24220 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24221 which seems to be undefined. Please make sure it is defined." >&5
24222 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24223 which seems to be undefined. Please make sure it is defined." >&2;}
24227 -) cat "$tmp/out"; rm -f "$tmp/out";;
24228 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24237 # Transform confdefs.h into a sed script `conftest.defines', that
24238 # substitutes the proper values into config.h.in to produce config.h.
24239 rm -f conftest.defines conftest.
tail
24240 # First, append a space to every undef/define line, to ease matching.
24241 echo 's/$/ /' >conftest.defines
24242 # Then, protect against being on the right side of a sed subst, or in
24243 # an unquoted here document, in config.status. If some macros were
24244 # called several times there might be several #defines for the same
24245 # symbol, which is useless. But do not sort them, since the last
24246 # AC_DEFINE must be honored.
24247 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24248 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24249 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24250 # PARAMS is the parameter list in the macro definition--in most cases, it's
24251 # just an empty string.
24252 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24253 ac_dB
='\\)[ (].*,\\1define\\2'
24261 s/^[ ]*#[ ]*define[ ][ ]*//
24266 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24267 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24268 ' >>conftest.defines
24270 # Remove the space that was appended to ease matching.
24271 # Then replace #undef with comments. This is necessary, for
24272 # example, in the case of _POSIX_SOURCE, which is predefined and required
24273 # on some systems where configure will not decide to define it.
24274 # (The regexp can be short, since the line contains either #define or #undef.)
24276 s,^[ #]*u.*,/* & */,' >>conftest.defines
24278 # Break up conftest.defines:
24279 ac_max_sed_lines
=50
24281 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24282 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24283 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24285 ac_in
='$ac_file_inputs'
24286 ac_out
='"$tmp/out1"'
24287 ac_nxt
='"$tmp/out2"'
24291 # Write a here document:
24292 cat >>$CONFIG_STATUS <<_ACEOF
24293 # First, check the format of the line:
24294 cat >"\$tmp/defines.sed" <<\\CEOF
24295 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24296 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24300 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24302 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24303 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24304 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24305 grep . conftest.
tail >/dev
/null ||
break
24306 rm -f conftest.defines
24307 mv conftest.
tail conftest.defines
24309 rm -f conftest.defines conftest.
tail
24311 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24312 cat >>$CONFIG_STATUS <<\_ACEOF
24313 if test x
"$ac_file" != x-
; then
24314 echo "/* $configure_input */" >"$tmp/config.h"
24315 cat "$ac_result" >>"$tmp/config.h"
24316 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24318 echo "$as_me: $ac_file is unchanged" >&6;}
24321 mv "$tmp/config.h" $ac_file
24324 echo "/* $configure_input */"
24330 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24331 echo "$as_me: executing $ac_file commands" >&6;}
24336 case $ac_file$ac_mode in
24339 ### Make the necessary directories, if they don't exist.
24340 for dir
in etc lisp
; do
24341 test -d ${dir} || mkdir
${dir}
24344 # Build src/Makefile from ${srcdir}/src/Makefile.c
24345 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24346 # This must be done after src/config.h is built, since we rely on that file.
24348 # Now get this: Some word that is part of the ${srcdir} directory name
24349 # or the ${configuration} value might, just might, happen to be an
24350 # identifier like `sun4' or `i386' or something, and be predefined by
24351 # the C preprocessor to some helpful value like 1, or maybe the empty
24352 # string. Needless to say consequent macro substitutions are less
24353 # than conducive to the makefile finding the correct directory.
24354 undefs
="`echo $top_srcdir $configuration $canonical |
24355 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24356 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24359 echo creating src
/epaths.h
24360 ${MAKE-make} epaths-force
24362 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24363 # `..' to `. .' unless invoked with -traditional
24365 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24366 CPPFLAGS
="$CPPFLAGS -traditional"
24369 echo creating lib-src
/Makefile
24371 rm -f junk.c junk1.c junk2.c
24372 sed -e '/start of cpp stuff/q' \
24373 < Makefile.c
> junk1.c
24374 sed -e '1,/start of cpp stuff/d'\
24375 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24376 < Makefile.c
> junk.c
24377 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24378 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24379 cat junk1.c junk2.c
> Makefile.new
24380 rm -f junk.c junk1.c junk2.c
24381 chmod 444 Makefile.new
24382 mv -f Makefile.new Makefile
24385 echo creating src
/Makefile
24387 rm -f junk.c junk1.c junk2.c
24388 sed -e '/start of cpp stuff/q' \
24389 < Makefile.c
> junk1.c
24390 sed -e '1,/start of cpp stuff/d'\
24391 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24392 < Makefile.c
> junk.c
24393 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24394 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24395 cat junk1.c junk2.c
> Makefile.new
24396 rm -f junk.c junk1.c junk2.c
24397 chmod 444 Makefile.new
24398 mv -f Makefile.new Makefile
24401 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24402 echo creating src
/.gdbinit
24403 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24406 # This is how we know whether to re-run configure in certain cases.
24407 touch src
/config.stamp
24415 { (exit 0); exit 0; }
24417 chmod +x
$CONFIG_STATUS
24418 ac_clean_files
=$ac_clean_files_save
24421 # configure is writing to config.log, and then calls config.status.
24422 # config.status does its own redirection, appending to config.log.
24423 # Unfortunately, on DOS this fails, as config.log is still kept open
24424 # by configure, so config.status won't be able to write to it; its
24425 # output is simply discarded. So we exec the FD to /dev/null,
24426 # effectively closing config.log, so it can be properly (re)opened and
24427 # appended to by config.status. When coming back to configure, we
24428 # need to make the FD available again.
24429 if test "$no_create" != yes; then
24431 ac_config_status_args
=
24432 test "$silent" = yes &&
24433 ac_config_status_args
="$ac_config_status_args --quiet"
24435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24438 # would make configure fail if this is the last instruction.
24439 $ac_cs_success ||
{ (exit 1); exit 1; }