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; cat >>confdefs.h <<\_ACEOF
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1855 cat >>confdefs.h <<\_ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1898 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1899 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1901 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1902 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1988 USE_MAINTAINER_MODE=no
1991 if test $USE_MAINTAINER_MODE = yes; then
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2008 #### Make srcdir absolute, if it isn't already. It
's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2026 srcdir
="`(cd ${srcdir}; pwd)`"
2029 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2052 ### Canonicalize the configuration name.
2055 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2058 ac_install_sh
="$ac_aux_dir/install-sh -c"
2060 elif test -f "$ac_dir/install.sh"; then
2062 ac_install_sh
="$ac_aux_dir/install.sh -c"
2064 elif test -f "$ac_dir/shtool"; then
2066 ac_install_sh
="$ac_aux_dir/shtool install -c"
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_build_alias
=$build_alias
2097 test "x$ac_build_alias" = x
&&
2098 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x
&&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2118 ac_save_IFS
=$IFS; IFS
='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test "x$host_alias" = x
; then
2137 ac_cv_host
=$ac_cv_build
2139 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS
=$IFS; IFS
='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169 configuration
=${host_alias-$host}
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2196 machine
='' opsys
='' unported
=no
2197 case "${canonical}" in
2202 case "${canonical}" in
2203 alpha
*-*-freebsd*) machine
=alpha
;;
2204 ia64-
*-freebsd*) machine
=ia64
;;
2205 sparc64-
*-freebsd*) machine
=sparc
;;
2206 powerpc-
*-freebsd*) machine
=macppc
;;
2207 i
[3456]86-*-freebsd*) machine
=intel386
;;
2208 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2215 if test -f /usr
/lib
/crti.o
; then
2217 cat >>confdefs.h
<<\_ACEOF
2223 case "${canonical}" in
2224 alpha
*-*-netbsd*) machine
=alpha
;;
2225 i
[3456]86-*-netbsd*) machine
=intel386
;;
2227 # This is somewhat bogus.
2228 machine
=hp9000s300
;;
2229 mips-
*-netbsd*) machine
=pmax
;;
2230 mipsel-
*-netbsd*) machine
=pmax
;;
2231 mipseb-
*-netbsd*) machine
=pmax
;;
2232 ns32k-
*-netbsd*) machine
=ns32000
;;
2233 powerpc-
*-netbsd*) machine
=macppc
;;
2234 sparc
*-*-netbsd*) machine
=sparc
;;
2235 vax-
*-netbsd*) machine
=vax
;;
2236 arm-
*-netbsd*) machine
=arm
;;
2237 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2238 hppa-
*-netbsd*) machine
=hp800
;;
2239 shle-
*-netbsd*) machine
=sh3el
;;
2246 case "${canonical}" in
2247 alpha
*-*-openbsd*) machine
=alpha
;;
2248 i386-
*-openbsd*) machine
=intel386
;;
2249 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2250 m68k-
*-openbsd*) machine
=hp9000s300
;;
2251 mipsel-
*-openbsd*) machine
=pmax
;;
2252 ns32k-
*-openbsd*) machine
=ns32000
;;
2253 sparc-
*-openbsd*) machine
=sparc
;;
2254 vax-
*-openbsd*) machine
=vax
;;
2261 case "${canonical}" in
2262 i
[3456]86-*-lynxos*) machine
=intel386
;;
2263 powerpc-
*-lynxos*) machine
=powerpc
;;
2268 arm-acorn-riscix1.1
* )
2269 machine
=acorn opsys
=riscix1-1
2271 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2272 ## This name is riscix12 instead of riscix1.2
2273 ## to avoid a file name conflict on MSDOS.
2274 machine
=acorn opsys
=riscix12
2280 case "${canonical}" in
2281 i
[345]86-*-bsdi*) machine
=intel386
;;
2282 sparc-
*-bsdi*) machine
=sparc
;;
2283 powerpc-
*-bsdi*) machine
=macppc
;;
2285 case "${canonical}" in
2286 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2287 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2288 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2289 *-*-bsdi3* ) opsys
=bsdos3
;;
2290 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2295 ## Strictly speaking, we need the version of the alliant operating
2296 ## system to choose the right machine file, but currently the
2297 ## configuration name doesn't tell us enough to choose the right
2298 ## one; we need to give alliants their own operating system name to
2299 ## do this right. When someone cares, they can help us.
2301 machine
=alliant4 opsys
=bsd4-2
2304 machine
=alliant-2800 opsys
=bsd4-3
2307 ## Alpha (DEC) machines.
2309 machine
=alpha opsys
=osf1
2310 # This is needed to find X11R6.1 libraries for certain tests.
2311 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2312 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2313 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2314 # due to non-traditional preprocessing with the current compiler
2315 # defaults. OSF 4 can also have that compiler version, and there
2316 # seems always to have been a usable /usr/bin/cpp.
2317 NON_GNU_CPP
=/usr
/bin
/cpp
2318 case "${canonical}" in
2319 alpha
*-dec-osf[5-9]*)
2324 alpha
*-*-linux-gnu* )
2325 machine
=alpha opsys
=gnu-linux
2329 machine
=arm opsys
=gnu-linux
2334 machine
=altos opsys
=usg5-2
2339 machine
=amdahl opsys
=usg5-2-2
2342 ## Apollo, Domain/OS
2344 machine
=apollo opsys
=bsd4-3
2347 ## Apple Darwin / Mac OS X
2349 case "${canonical}" in
2350 i
[3456]86-* ) machine
=intel386
;;
2351 powerpc-
* ) machine
=powermac
;;
2355 # Define CPP as follows to make autoconf work correctly.
2356 CPP
="${CC-cc} -E -no-cpp-precomp"
2357 # Use fink packages if available.
2358 if test -d /sw
/include
&& test -d /sw
/lib
; then
2359 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2360 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2361 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2365 ## AT&T 3b2, 3b5, 3b15, 3b20
2367 machine
=att3b opsys
=usg5-2-2
2370 ## AT&T 3b1 - The Mighty Unix PC!
2372 machine
=7300 opsys
=usg5-2-2
2377 machine
=ibmrs6000 opsys
=aix3-2
2382 machine
=dpx2 opsys
=usg5-3
2387 machine
=sps7 opsys
=usg5-2
2390 ## CCI 5/32, 6/32 -- see "Tahoe".
2393 ## I don't know what configuration name to use for this; config.sub
2394 ## doesn't seem to know anything about it. Hey, Celerity users, get
2395 ## in touch with us!
2396 celerity-celerity-bsd
* )
2397 machine
=celerity opsys
=bsd4-2
2401 ## What operating systems does this chip run that Emacs has been
2405 ## We'll use the catch-all code at the bottom to guess the
2406 ## operating system.
2410 mips-compaq-nonstopux
* )
2411 machine
=nonstopux opsys
=nonstopux
2415 *-convex-bsd* |
*-convex-convexos* )
2416 machine
=convex opsys
=bsd4-3
2417 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2418 NON_GNU_CPP
="cc -E -P"
2422 i
[3456]86-cubix-sysv* )
2423 machine
=intel386 opsys
=usg5-3
2427 cydra
*-cydrome-sysv* )
2428 machine
=cydra5 opsys
=usg5-3
2431 ## Data General AViiON Machines
2432 ## DG changed naming conventions with the release of 5.4.4.10, they
2433 ## dropped the initial 5.4 but left the intervening R. Because of the
2434 ## R this shouldn't conflict with older versions of the OS (which I
2435 ## think were named like dgux4.*). In addition, DG new AViiONs series
2436 ## uses either Motorola M88k or Intel Pentium CPUs.
2437 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2438 machine
=aviion opsys
=dgux4
2440 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2441 ## This name is dgux5-4-3 instead of dgux5-4r3
2442 ## to avoid a file name conflict on MSDOS.
2443 machine
=aviion opsys
=dgux5-4-3
2445 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2446 machine
=aviion opsys
=dgux5-4r2
2449 machine
=aviion opsys
=dgux
2452 ## Data General AViiON Intel (x86) Machines
2453 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2454 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2455 i
[345]86-dg-dguxR4* )
2456 machine
=aviion-intel opsys
=dgux4
2460 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2461 machine
=pmax opsys
=bsd4-2
2463 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2464 machine
=pmax opsys
=bsd4-3
2467 machine
=pmax opsys
=ultrix4-3
2470 machine
=pmax opsys
=osf1
2472 mips-dec-mach_bsd4.3
* )
2473 machine
=pmax opsys
=mach-bsd4-3
2476 ## Motorola Delta machines
2477 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2478 machine
=delta opsys
=usg5-3
2479 if test -z "`type gnucc | grep 'not found'`"
2481 if test -s /etc
/167config
2482 then CC
="gnucc -m68040"
2483 else CC
="gnucc -m68881"
2486 if test -z "`type gcc | grep 'not found'`"
2492 m88k-motorola-sysv4
* )
2493 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2494 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2495 # I hope there are not other 4.0 versions for this machine
2496 # which really need usg5-4 instead.
2497 machine
=delta88k opsys
=usg5-4-2
2499 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2500 machine
=delta88k opsys
=usg5-3
2505 machine
=dual opsys
=usg5-2
2507 m68
*-dual-uniplus* )
2508 machine
=dual opsys
=unipl5-2
2513 machine
=elxsi opsys
=usg5-2
2518 machine
=ns16000 opsys
=umax
2521 ## The GEC 63 - apparently, this port isn't really finished yet.
2522 # I'm sure we finished off the last of the machines, though. -- fx
2524 ## Gould Power Node and NP1
2526 machine
=gould opsys
=bsd4-2
2529 machine
=gould opsys
=bsd4-3
2532 machine
=gould-np1 opsys
=bsd4-3
2535 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2536 ## as far as Emacs is concerned).
2538 # Build needs to be different on 7.0 and later releases
2539 case "`uname -r`" in
2540 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2541 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2543 NON_GNU_CPP
="/lib/cpp"
2545 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2547 machine
=nh3000 opsys
=cxux
2549 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2550 powerpc-harris-powerunix
)
2551 machine
=nh6000 opsys
=powerunix
2552 NON_GNU_CPP
="cc -Xo -E -P"
2555 xps
*-honeywell-sysv* )
2556 machine
=xps100 opsys
=usg5-2
2559 ## HP 9000 series 200 or 300
2561 machine
=hp9000s300 opsys
=bsd4-3
2563 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2569 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2570 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2571 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2572 *) machine
=hp9000s300 opsys
=hpux
;;
2576 hppa
*-*-linux-gnu* )
2577 machine
=hp800 opsys
=gnu-linux
2581 machine
=hp800 opsys
=nextstep
2586 machine
=orion opsys
=bsd4-2
2588 clipper-orion-bsd
* )
2589 machine
=orion105 opsys
=bsd4-2
2593 i
[3456]86-ibm-aix1.1
* )
2594 machine
=ibmps2-aix opsys
=usg5-2-2
2596 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2597 machine
=ibmps2-aix opsys
=usg5-3
2600 machine
=ibm370aix opsys
=usg5-3
2603 machine
=ibms390 opsys
=gnu-linux
2605 s390x-
*-linux-gnu* )
2606 machine
=ibms390x opsys
=gnu-linux
2608 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2609 machine
=ibmrs6000 opsys
=aix3-1
2611 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2612 machine
=ibmrs6000 opsys
=aix3-2-5
2614 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2615 machine
=ibmrs6000 opsys
=aix4-1
2617 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2618 machine
=ibmrs6000 opsys
=aix4-2
2620 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2621 machine
=ibmrs6000 opsys
=aix4-2
2623 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2624 machine
=ibmrs6000 opsys
=aix4
2626 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2627 machine
=ibmrs6000 opsys
=aix4-1
2629 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2630 machine
=ibmrs6000 opsys
=aix3-2
2633 machine
=ibmrt opsys
=bsd4-3
2636 machine
=ibmrt opsys
=bsd4-2
2639 machine
=ibmrt opsys
=bsd4-3
2642 machine
=ibmrt opsys
=bsd4-2
2645 machine
=ibmrt opsys
=bsd4-3
2648 machine
=ibmrt opsys
=bsd4-3
2651 machine
=ibmrt-aix opsys
=usg5-2-2
2654 ## Integrated Solutions `Optimum V'
2656 machine
=isi-ov opsys
=bsd4-2
2659 machine
=isi-ov opsys
=bsd4-3
2662 ## Intel 386 machines where we do care about the manufacturer
2663 i
[3456]86-intsys-sysv* )
2664 machine
=is386 opsys
=usg5-2-2
2668 i
[3456]86-prime-sysv* )
2669 machine
=i386 opsys
=usg5-3
2672 ## Sequent Symmetry running Dynix
2673 i
[3456]86-sequent-bsd* )
2674 machine
=symmetry opsys
=bsd4-3
2677 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2678 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2679 machine
=sequent-ptx opsys
=ptx4
2680 NON_GNU_CPP
=/lib
/cpp
2683 ## Sequent Symmetry running DYNIX/ptx
2684 ## Use the old cpp rather than the newer ANSI one.
2685 i
[3456]86-sequent-ptx* )
2686 machine
=sequent-ptx opsys
=ptx
2687 NON_GNU_CPP
="/lib/cpp"
2690 ## ncr machine running svr4.3.
2691 i
[3456]86-ncr-sysv4.3
)
2692 machine
=ncr386 opsys
=usg5-4-3
2695 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2696 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2697 i
[3456]86-ncr-sysv* )
2698 machine
=ncr386 opsys
=usg5-4-2
2701 ## Intel Paragon OSF/1
2703 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2708 machine
=i860 opsys
=usg5-4
2709 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2710 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2713 ## Macintosh PowerPC
2714 powerpc
*-*-linux-gnu* )
2715 machine
=macppc opsys
=gnu-linux
2718 ## Masscomp machines
2719 m68
*-masscomp-rtu* )
2720 machine
=masscomp opsys
=rtu
2723 ## Megatest machines
2724 m68
*-megatest-bsd* )
2725 machine
=mega68 opsys
=bsd4-2
2728 ## Workstations sold by MIPS
2729 ## This is not necessarily all workstations using the MIPS processor -
2730 ## Irises are produced by SGI, and DECstations by DEC.
2732 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2733 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2734 ## it gives for choosing between the alternatives seems to be "Use
2735 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2736 ## the BSD world." I'll assume that these are instructions for
2737 ## handling two odd situations, and that every other situation
2738 ## should use mips.h and usg5-2-2, they being listed first.
2741 ## Fall through to the general code at the bottom to decide on the OS.
2743 mips-mips-riscos4
* )
2744 machine
=mips4 opsys
=bsd4-3
2745 NON_GNU_CC
="cc -systype bsd43"
2746 NON_GNU_CPP
="cc -systype bsd43 -E"
2748 mips-mips-riscos5
* )
2749 machine
=mips4 opsys
=riscos5
2750 NON_GNU_CC
="cc -systype bsd43"
2751 NON_GNU_CPP
="cc -systype bsd43 -E"
2754 machine
=mips opsys
=bsd4-3
2757 machine
=mips opsys
=usg5-2-2
2761 m68
*-next-* | m68k-
*-nextstep* )
2762 machine
=m68k opsys
=nextstep
2765 ## The complete machine from National Semiconductor
2767 machine
=ns32000 opsys
=usg5-2
2771 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2772 machine
=tower32 opsys
=usg5-2-2
2774 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2775 machine
=tower32v3 opsys
=usg5-3
2780 machine
=ews4800 opsys
=ux4800
2783 ## Nixdorf Targon 31
2784 m68
*-nixdorf-sysv* )
2785 machine
=targon31 opsys
=usg5-2-2
2790 machine
=nu opsys
=usg5-2
2795 machine
=plexus opsys
=usg5-2
2799 ## I don't really have any idea what sort of processor the Pyramid has,
2800 ## so I'm assuming it is its own architecture.
2801 pyramid-pyramid-bsd
* )
2802 machine
=pyramid opsys
=bsd4-2
2806 ns32k-sequent-bsd4.2
* )
2807 machine
=sequent opsys
=bsd4-2
2809 ns32k-sequent-bsd4.3
* )
2810 machine
=sequent opsys
=bsd4-3
2814 mips-siemens-sysv
* | mips-sni-sysv
*)
2815 machine
=mips-siemens opsys
=usg5-4
2816 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2817 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2820 ## Silicon Graphics machines
2821 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2823 machine
=irist opsys
=iris3-5
2825 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2826 machine
=irist opsys
=iris3-6
2830 machine
=iris4d opsys
=irix3-3
2833 machine
=iris4d opsys
=irix4-0
2836 machine
=iris4d opsys
=irix6-5
2837 # Without defining _LANGUAGE_C, things get masked out in the headers
2838 # so that, for instance, grepping for `free' in stdlib.h fails and
2839 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2840 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2841 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2844 machine
=iris4d opsys
=irix6-0
2845 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2846 # but presumably it does no harm.
2847 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2848 # -32 probably isn't necessary in later v.6s -- anyone know which?
2849 NON_GCC_TEST_OPTIONS
=-32
2851 mips-sgi-irix5.
[01]* )
2852 machine
=iris4d opsys
=irix5-0
2854 mips-sgi-irix5
* | mips-sgi-irix
* )
2855 machine
=iris4d opsys
=irix5-2
2860 machine
=news opsys
=bsd4-2
2863 machine
=news opsys
=bsd4-3
2865 m68
*-sony-newsos3* | m68
*-sony-news3*)
2866 machine
=news opsys
=bsd4-3
2868 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2869 machine
=news-risc opsys
=bsd4-3
2871 mips-sony-newsos6
* )
2872 machine
=news-r6 opsys
=newsos6
2875 machine
=news-risc opsys
=newsos5
2880 machine
=stride opsys
=usg5-2
2884 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2885 machine
=sparc opsys
=gnu-linux
2888 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2889 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2890 | rs6000-
*-solaris2*)
2891 case "${canonical}" in
2892 m68
*-sunos1* ) machine
=sun1
;;
2893 m68
*-sunos2* ) machine
=sun2
;;
2894 m68
* ) machine
=sun3
;;
2895 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2896 i
[3456]86-*-* ) machine
=intel386
;;
2897 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2898 powerpcle
* ) machine
=powerpcle
;;
2899 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2900 sparc
* ) machine
=sparc
;;
2903 case "${canonical}" in
2904 ## The Sun386 didn't get past 4.0.
2905 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2906 *-sunos4.0
* ) opsys
=sunos4-0
;;
2907 *-sunos4.1.
[3-9]*noshare
)
2908 ## This name is sunos413 instead of sunos4-1-3
2909 ## to avoid a file name conflict on MSDOS.
2911 NON_GNU_CPP
=/usr
/lib
/cpp
2912 NON_GCC_TEST_OPTIONS
=-Bstatic
2913 GCC_TEST_OPTIONS
=-static
2915 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2917 NON_GNU_CPP
=/usr
/lib
/cpp
2919 *-sunos4* |
*-sunos )
2921 NON_GCC_TEST_OPTIONS
=-Bstatic
2922 GCC_TEST_OPTIONS
=-static
2924 *-sunos5.3
* |
*-solaris2.3
* )
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2928 *-sunos5.4
* |
*-solaris2.4
* )
2930 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2933 *-sunos5.5
* |
*-solaris2.5
* )
2935 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2938 *-sunos5.6
* |
*-solaris2.6
* )
2940 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2943 *-sunos5* |
*-solaris* )
2945 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2949 ## Watch out for a compiler that we know will not work.
2950 case "${canonical}" in
2951 *-solaris* |
*-sunos5* )
2952 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2953 ## /usr/ucb/cc doesn't work;
2954 ## we should find some other compiler that does work.
2962 machine
=sparc opsys
=nextstep
2966 m68
*-tadpole-sysv* )
2967 machine
=tad68k opsys
=usg5-3
2971 tahoe-tahoe-bsd4.2
* )
2972 machine
=tahoe opsys
=bsd4-2
2974 tahoe-tahoe-bsd4.3
* )
2975 machine
=tahoe opsys
=bsd4-3
2978 ## Tandem Integrity S2
2980 machine
=tandem-s2 opsys
=usg5-3
2984 m88k-tektronix-sysv3
* )
2985 machine
=tekxd88 opsys
=usg5-3
2988 ## Tektronix 16000 box (6130?)
2989 ns16k-tektronix-bsd
* )
2990 machine
=ns16000 opsys
=bsd4-2
2993 ## src/m/tek4300.h hints that this is a m68k machine.
2994 m68
*-tektronix-bsd* )
2995 machine
=tek4300 opsys
=bsd4-3
2999 ## We seem to have lost the machine-description file titan.h!
3001 machine
=titan opsys
=usg5-3
3004 ## Ustation E30 (SS5E)
3005 m68
*-unisys-uniplus* )
3006 machine
=ustation opsystem
=unipl5-2
3012 case "${canonical}" in
3013 *-bsd4.1
* ) opsys
=bsd4-1
;;
3014 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3015 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3016 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3017 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3018 *-vms* ) opsys
=vms
;;
3024 ns16k-whitechapel-
* )
3026 ## We don't know what sort of OS runs on these; we'll let the
3027 ## operating system guessing code below try.
3032 machine
=wicat opsys
=usg5-2
3037 machine
=ia64 opsys
=gnu-linux
3040 ## Intel 386 machines where we don't care about the manufacturer
3043 case "${canonical}" in
3044 *-cygwin ) opsys
=cygwin
;;
3045 *-darwin* ) opsys
=darwin
3046 CPP
="${CC-cc} -E -no-cpp-precomp"
3048 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3049 *-isc2.2
* ) opsys
=isc2-2
;;
3050 *-isc4.0
* ) opsys
=isc4-0
;;
3051 *-isc4.
* ) opsys
=isc4-1
3052 GCC_TEST_OPTIONS
=-posix
3053 NON_GCC_TEST_OPTIONS
=-Xp
3055 *-isc* ) opsys
=isc3-0
;;
3056 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3057 *-esix* ) opsys
=esix
;;
3058 *-xenix* ) opsys
=xenix
;;
3059 *-linux-gnu* ) opsys
=gnu-linux
;;
3060 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3061 *-sco3.2v5
* ) opsys
=sco5
3062 NON_GNU_CPP
=/lib
/cpp
3063 # Prevent -belf from being passed to $CPP.
3064 # /lib/cpp does not accept it.
3065 OVERRIDE_CPPFLAGS
=" "
3067 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3068 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3069 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3070 *-386bsd* ) opsys
=386bsd
;;
3071 *-nextstep* ) opsys
=nextstep
;;
3072 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3076 ## m68k Linux-based GNU system
3078 machine
=m68k opsys
=gnu-linux
3081 ## Mips Linux-based GNU system
3082 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3083 machine
=mips opsys
=gnu-linux
3087 sparc-fujitsu-sysv4
* )
3088 machine
=sparc opsys
=uxpds
3089 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3094 f301-fujitsu-uxpv4.1
)
3095 machine
=f301 opsys
=uxpv
3098 ## AMD x86-64 Linux-based GNU system
3099 x86_64-
*-linux-gnu* )
3100 machine
=amdx86-64 opsys
=gnu-linux
3103 ## Tensilica Xtensa Linux-based GNU system
3104 xtensa-
*-linux-gnu* )
3105 machine
=xtensa opsys
=gnu-linux
3113 ### If the code above didn't choose an operating system, just choose
3114 ### an operating system based on the configuration name. You really
3115 ### only want to use this when you have no idea what the right
3116 ### operating system is; if you know what operating systems a machine
3117 ### runs, it's cleaner to make it explicit in the case statement
3119 if test x
"${opsys}" = x
; then
3120 case "${canonical}" in
3121 *-gnu* ) opsys
=gnu
;;
3122 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3123 *-bsd4.2
) opsys
=bsd4-2
;;
3124 *-bsd4.3
) opsys
=bsd4-3
;;
3125 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3126 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3127 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3128 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3129 *-sysv4.2uw
* ) opsys
=unixware
;;
3130 *-sysv5uw* ) opsys
=unixware
;;
3131 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3132 *-sysv4.1
* |
*-sysvr4.1
* )
3133 NON_GNU_CPP
=/usr
/lib
/cpp
3135 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3136 if [ x
$NON_GNU_CPP = x
]; then
3137 if [ -f /usr
/ccs
/lib
/cpp
]; then
3138 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3140 NON_GNU_CPP
=/lib
/cpp
3144 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3153 if test $unported = yes; then
3154 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3155 Check \`etc/MACHINES' for recognized configuration names." >&5
3156 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3157 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3158 { (exit 1); exit 1; }; }
3161 machfile
="m/${machine}.h"
3162 opsysfile
="s/${opsys}.h"
3165 #### Choose a compiler.
3166 test -n "$CC" && cc_specified
=yes
3168 # Save the value of CFLAGS that the user specified.
3169 SPECIFIED_CFLAGS
="$CFLAGS"
3172 "yes" ) CC
="gcc" GCC
=yes ;;
3173 "no" ) : ${CC=cc} ;;
3177 ac_cpp
='$CPP $CPPFLAGS'
3178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3183 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3186 if test "${ac_cv_prog_CC+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC
="$CC" # Let the user override the test.
3192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir
=.
3197 for ac_exec_ext
in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 if test -n "$CC"; then
3211 { echo "$as_me:$LINENO: result: $CC" >&5
3212 echo "${ECHO_T}$CC" >&6; }
3214 { echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6; }
3220 if test -z "$ac_cv_prog_CC"; then
3222 # Extract the first word of "gcc", so it can be a program name with args.
3223 set dummy gcc
; ac_word
=$2
3224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir
=.
3237 for ac_exec_ext
in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 ac_cv_prog_ac_ct_CC
="gcc"
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3252 echo "${ECHO_T}$ac_ct_CC" >&6; }
3254 { echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6; }
3258 if test "x$ac_ct_CC" = x
; then
3261 case $cross_compiling:$ac_tool_warned in
3263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3264 whose name does not start with the host triplet. If you think this
3265 configuration is useful to you, please write to autoconf@gnu.org." >&5
3266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3267 whose name does not start with the host triplet. If you think this
3268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3269 ac_tool_warned
=yes ;;
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3280 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC
="$CC" # Let the user override the test.
3289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir
=.
3294 for ac_exec_ext
in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$CC"; then
3308 { echo "$as_me:$LINENO: result: $CC" >&5
3309 echo "${ECHO_T}$CC" >&6; }
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3318 if test -z "$CC"; then
3319 # Extract the first word of "cc", so it can be a program name with args.
3320 set dummy cc
; ac_word
=$2
3321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC
="$CC" # Let the user override the test.
3330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir
=.
3335 for ac_exec_ext
in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3338 ac_prog_rejected
=yes
3342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test $ac_prog_rejected = yes; then
3350 # We found a bogon in the path, so make sure we never use it.
3351 set dummy
$ac_cv_prog_CC
3353 if test $# != 0; then
3354 # We chose a different compiler from the bogus one.
3355 # However, it has the same basename, so the bogon will be chosen
3356 # first if we set CC to just the basename; use the full file name.
3358 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3364 if test -n "$CC"; then
3365 { echo "$as_me:$LINENO: result: $CC" >&5
3366 echo "${ECHO_T}$CC" >&6; }
3368 { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3374 if test -z "$CC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 for ac_prog
in cl.exe
3378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC
="$CC" # Let the user override the test.
3388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir
=.
3393 for ac_exec_ext
in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CC"; then
3407 { echo "$as_me:$LINENO: result: $CC" >&5
3408 echo "${ECHO_T}$CC" >&6; }
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3415 test -n "$CC" && break
3418 if test -z "$CC"; then
3420 for ac_prog
in cl.exe
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy
$ac_prog; ac_word
=$2
3424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 if test -n "$ac_ct_CC"; then
3430 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir
=.
3437 for ac_exec_ext
in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_ac_ct_CC
="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3450 if test -n "$ac_ct_CC"; then
3451 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3452 echo "${ECHO_T}$ac_ct_CC" >&6; }
3454 { echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6; }
3459 test -n "$ac_ct_CC" && break
3462 if test "x$ac_ct_CC" = x
; then
3465 case $cross_compiling:$ac_tool_warned in
3467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3468 whose name does not start with the host triplet. If you think this
3469 configuration is useful to you, please write to autoconf@gnu.org." >&5
3470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3471 whose name does not start with the host triplet. If you think this
3472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3473 ac_tool_warned
=yes ;;
3482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3483 See \`config.log' for more details." >&5
3484 echo "$as_me: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&2;}
3486 { (exit 1); exit 1; }; }
3488 # Provide some information about the compiler.
3489 echo "$as_me:$LINENO: checking for C compiler version" >&5
3490 ac_compiler
=`set X $ac_compile; echo $2`
3491 { (ac_try
="$ac_compiler --version >&5"
3493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compiler --version >&5") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }
3501 { (ac_try="$ac_compiler -v >&5"
3503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3504 *) ac_try_echo
=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compiler -v >&5") 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3511 { (ac_try
="$ac_compiler -V >&5"
3513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_compiler -V >&5") 2>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 ac_clean_files_save=$ac_clean_files
3538 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3539 # Try to create an executable without -o first, disregard a.out.
3540 # It will help us diagnose broken compilers, and finding out an intuition
3542 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3543 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3544 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3546 # List of possible output files, starting from the most likely.
3547 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3548 # only as a last resort. b.out is created by i960 compilers.
3549 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3551 # The IRIX 6 linker writes into existing files which may not be
3552 # executable, retaining their permissions. Remove them first so a
3553 # subsequent execution test works.
3555 for ac_file in $ac_files
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3559 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3564 if { (ac_try="$ac_link_default"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_link_default") 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; then
3574 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3575 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3576 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3577 # so that the user can short-circuit this test for compilers unknown to
3579 for ac_file
in $ac_files ''
3581 test -f "$ac_file" ||
continue
3583 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3586 # We found the default executable, but exeext='' is most
3590 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3592 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594 # We set ac_cv_exeext here because the later test for it is not
3595 # safe: cross compilers may not add the suffix if given an `-o'
3596 # argument, so we may need to know it at that point already.
3597 # Even if this section looks crufty: it has the advantage of
3604 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3610 { echo "$as_me:$LINENO: result: $ac_file" >&5
3611 echo "${ECHO_T}$ac_file" >&6; }
3612 if test -z "$ac_file"; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3616 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C compiler cannot create executables
3619 See \`config.log' for more details." >&2;}
3620 { (exit 77); exit 77; }; }
3623 ac_exeext
=$ac_cv_exeext
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3628 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3629 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3630 # If not cross compiling, check that we can run a simple program.
3631 if test "$cross_compiling" != yes; then
3632 if { ac_try
='./$ac_file'
3633 { (case "(($ac_try" in
3634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_try") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3644 if test "$cross_compiling" = maybe; then
3647 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details.
" >&5
3650 echo "$as_me: error
: cannot run C compiled programs.
3651 If you meant to cross compile
, use \
`--host'.
3652 See \`config.log
' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3657 { echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6; }
3660 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3661 ac_clean_files=$ac_clean_files_save
3662 # Check that the compiler produces executables we can run. If not, either
3663 # the compiler is broken, or we cross compile.
3664 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3665 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3666 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3667 echo "${ECHO_T}$cross_compiling" >&6; }
3669 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3670 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3671 if { (ac_try="$ac_link"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_link") 2>&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; then
3681 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3685 for ac_file
in conftest.exe conftest conftest.
*; do
3686 test -f "$ac_file" ||
continue
3688 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3689 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3696 See \`config.log' for more details." >&5
3697 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." >&2;}
3699 { (exit 1); exit 1; }; }
3702 rm -f conftest
$ac_cv_exeext
3703 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3704 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3706 rm -f conftest.
$ac_ext
3707 EXEEXT
=$ac_cv_exeext
3709 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3710 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3711 if test "${ac_cv_objext+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 cat >conftest.
$ac_ext <<_ACEOF
3717 cat confdefs.h
>>conftest.
$ac_ext
3718 cat >>conftest.
$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3729 rm -f conftest.o conftest.obj
3730 if { (ac_try
="$ac_compile"
3732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compile") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 for ac_file in conftest.o conftest.obj conftest.*; do
3741 test -f "$ac_file" || continue;
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3753 See \`config.log
' for more details." >&5
3754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details.
" >&2;}
3756 { (exit 1); exit 1; }; }
3759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3761 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3762 echo "${ECHO_T}$ac_cv_objext" >&6; }
3763 OBJEXT=$ac_cv_objext
3765 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3766 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3768 echo $ECHO_N "(cached
) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3807 echo "$as_me: failed program was
:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3819 GCC=`test $ac_compiler_gnu = yes && echo yes`
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3822 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3823 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3824 if test "${ac_cv_prog_cc_g+set}" = set; then
3825 echo $ECHO_N "(cached
) $ECHO_C" >&6
3827 ac_save_c_werror_flag=$ac_c_werror_flag
3828 ac_c_werror_flag=yes
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_compile") 2>conftest.er1
3855 grep -v '^ *+' conftest.er1 >conftest.err
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3859 (exit $ac_status); } && {
3860 test -z "$ac_c_werror_flag" ||
3861 test ! -s conftest.err
3862 } && test -s conftest.$ac_objext; then
3865 echo "$as_me: failed program was
:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_compile") 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3897 (exit $ac_status); } && {
3898 test -z "$ac_c_werror_flag" ||
3899 test ! -s conftest.err
3900 } && test -s conftest.$ac_objext; then
3903 echo "$as_me: failed program was
:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3906 ac_c_werror_flag=$ac_save_c_werror_flag
3908 cat >conftest.$ac_ext <<_ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3923 rm -f conftest.$ac_objext
3924 if { (ac_try="$ac_compile"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_compile") 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3936 (exit $ac_status); } && {
3937 test -z "$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3939 } && test -s conftest.$ac_objext; then
3942 echo "$as_me: failed program was
:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_c_werror_flag=$ac_save_c_werror_flag
3957 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3958 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3959 if test "$ac_test_CFLAGS" = set; then
3960 CFLAGS=$ac_save_CFLAGS
3961 elif test $ac_cv_prog_cc_g = yes; then
3962 if test "$GCC" = yes; then
3968 if test "$GCC" = yes; then
3974 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3975 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3976 if test "${ac_cv_prog_cc_c89+set}" = set; then
3977 echo $ECHO_N "(cached
) $ECHO_C" >&6
3979 ac_cv_prog_cc_c89=no
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3989 #include <sys/types.h>
3990 #include <sys/stat.h>
3991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3992 struct buf { int x; };
3993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994 static char *e (p, i)
4000 static char *f (char * (*g) (char **, int), char **p, ...)
4005 s = g (p, va_arg (v,int));
4010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4011 function prototypes and stuff, but not '\xHH' hex character constants.
4012 These don't provoke an error unfortunately, instead are silently treated
4013 as 'x'. The following induces an error, until -std is added to get
4014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4015 array size at least. It's necessary to write '\x00'==0 to get something
4016 that's true only with -std. */
4017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4020 inside strings and character constants. */
4022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4024 int test (int i, double x);
4025 struct s1 {int (*f) (int a);};
4026 struct s2 {int (*f) (double a);};
4027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4041 CC="$ac_save_CC $ac_arg"
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4059 ac_cv_prog_cc_c89=$ac_arg
4061 echo "$as_me: failed program was
:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4067 rm -f core conftest.err conftest.$ac_objext
4068 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4070 rm -f conftest.$ac_ext
4075 case "x
$ac_cv_prog_cc_c89" in
4077 { echo "$as_me:$LINENO: result
: none needed
" >&5
4078 echo "${ECHO_T}none needed
" >&6; } ;;
4080 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4081 echo "${ECHO_T}unsupported
" >&6; } ;;
4083 CC="$CC $ac_cv_prog_cc_c89"
4084 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4085 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4101 #### Some systems specify a CPP to use unless we are using GCC.
4102 #### Now that we know whether we are using GCC, we can decide whether
4103 #### to use that one.
4104 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4109 #### Some systems specify a CC to use unless we are using GCC.
4110 #### Now that we know whether we are using GCC, we can decide whether
4111 #### to use that one.
4112 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4113 test x$cc_specified != xyes
4118 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4120 CC="$CC $GCC_TEST_OPTIONS"
4123 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4125 CC="$CC $NON_GCC_TEST_OPTIONS"
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4135 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4136 # On Suns, sometimes $CPP names a directory.
4137 if test -n "$CPP" && test -d "$CPP"; then
4140 if test -z "$CPP"; then
4141 if test "${ac_cv_prog_CPP+set}" = set; then
4142 echo $ECHO_N "(cached
) $ECHO_C" >&6
4144 # Double quotes because CPP needs to be expanded
4145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4148 for ac_c_preproc_warn_flag in '' yes
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error
" is here to catch this case.
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 # include <limits.h>
4165 # include <assert.h>
4169 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4181 (exit $ac_status); } >/dev/null && {
4182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4187 echo "$as_me: failed program was
:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 # Broken: fails on valid input.
4194 rm -f conftest.err conftest.$ac_ext
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <ac_nonexistent.h>
4206 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4222 # Broken: success on invalid input.
4225 echo "$as_me: failed program was
:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 # Passes both tests.
4233 rm -f conftest.err conftest.$ac_ext
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then
4250 { echo "$as_me:$LINENO: result
: $CPP" >&5
4251 echo "${ECHO_T}$CPP" >&6; }
4253 for ac_c_preproc_warn_flag in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error
" is here to catch this case.
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4292 echo "$as_me: failed program was
:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 # Broken: fails on valid input.
4299 rm -f conftest.err conftest.$ac_ext
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4311 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4323 (exit $ac_status); } >/dev/null && {
4324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4327 # Broken: success on invalid input.
4330 echo "$as_me: failed program was
:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 # Passes both tests.
4338 rm -f conftest.err conftest.$ac_ext
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then
4346 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4347 See \
`config.log' for more details." >&5
4348 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4349 See \`config.log
' for more details." >&2;}
4350 { (exit 1); exit 1; }; }
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4356 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4361 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4362 if test "${ac_cv_path_GREP+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 # Extract the first word of "grep ggrep" to use in msg output
4366 if test -z "$GREP"; then
4367 set dummy grep ggrep; ac_prog_name=$2
4368 if test "${ac_cv_path_GREP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_path_GREP_found=false
4372 # Loop through the user's path and
test for each of PROGNAME-LIST
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_prog
in grep ggrep
; do
4379 for ac_exec_ext
in '' $ac_executable_extensions; do
4380 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4381 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4382 # Check for GNU ac_path_GREP and select it if it is found.
4383 # Check for GNU $ac_path_GREP
4384 case `"$ac_path_GREP" --version 2>&1` in
4386 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4389 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 echo 'GREP' >> "conftest.nl"
4396 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4397 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4398 ac_count
=`expr $ac_count + 1`
4399 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_GREP
="$ac_path_GREP"
4402 ac_path_GREP_max
=$ac_count
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4407 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4411 $ac_path_GREP_found && break 3
4421 GREP
="$ac_cv_path_GREP"
4422 if test -z "$GREP"; then
4423 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4424 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4425 { (exit 1); exit 1; }; }
4429 ac_cv_path_GREP
=$GREP
4434 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4435 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4436 GREP
="$ac_cv_path_GREP"
4439 { echo "$as_me:$LINENO: checking for egrep" >&5
4440 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4441 if test "${ac_cv_path_EGREP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4445 then ac_cv_path_EGREP
="$GREP -E"
4447 # Extract the first word of "egrep" to use in msg output
4448 if test -z "$EGREP"; then
4449 set dummy
egrep; ac_prog_name
=$2
4450 if test "${ac_cv_path_EGREP+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 ac_path_EGREP_found
=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4456 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4459 test -z "$as_dir" && as_dir
=.
4460 for ac_prog
in egrep; do
4461 for ac_exec_ext
in '' $ac_executable_extensions; do
4462 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4463 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4464 # Check for GNU ac_path_EGREP and select it if it is found.
4465 # Check for GNU $ac_path_EGREP
4466 case `"$ac_path_EGREP" --version 2>&1` in
4468 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4471 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4474 cat "conftest.in" "conftest.in" >"conftest.tmp"
4475 mv "conftest.tmp" "conftest.in"
4476 cp "conftest.in" "conftest.nl"
4477 echo 'EGREP' >> "conftest.nl"
4478 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4479 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4480 ac_count
=`expr $ac_count + 1`
4481 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4482 # Best one so far, save it but keep looking for a better one
4483 ac_cv_path_EGREP
="$ac_path_EGREP"
4484 ac_path_EGREP_max
=$ac_count
4486 # 10*(2^10) chars as input seems more than enough
4487 test $ac_count -gt 10 && break
4489 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4493 $ac_path_EGREP_found && break 3
4503 EGREP
="$ac_cv_path_EGREP"
4504 if test -z "$EGREP"; then
4505 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4506 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4507 { (exit 1); exit 1; }; }
4511 ac_cv_path_EGREP
=$EGREP
4517 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4518 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4519 EGREP
="$ac_cv_path_EGREP"
4523 { echo "$as_me:$LINENO: checking for AIX" >&5
4524 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4525 cat >conftest.
$ac_ext <<_ACEOF
4528 cat confdefs.h
>>conftest.
$ac_ext
4529 cat >>conftest.
$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "yes" >/dev
/null
2>&1; then
4538 { echo "$as_me:$LINENO: result: yes" >&5
4539 echo "${ECHO_T}yes" >&6; }
4540 cat >>confdefs.h
<<\_ACEOF
4541 #define _ALL_SOURCE 1
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4552 cat >>confdefs.h
<<\_ACEOF
4553 #define _GNU_SOURCE 1
4558 ### Use -Wno-pointer-sign if the compiler supports it
4559 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4560 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4561 SAVE_CFLAGS
="$CFLAGS"
4562 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4563 cat >conftest.
$ac_ext <<_ACEOF
4566 cat confdefs.h
>>conftest.
$ac_ext
4567 cat >>conftest.
$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4578 rm -f conftest.
$ac_objext
4579 if { (ac_try
="$ac_compile"
4581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_compile") 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && {
4592 test -z "$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4594 } && test -s conftest.$ac_objext; then
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 if test $has_option = yes; then
4605 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4607 { echo "$as_me:$LINENO: result: $has_option" >&5
4608 echo "${ECHO_T}$has_option" >&6; }
4609 CFLAGS="$SAVE_CFLAGS"
4613 #### Some other nice autoconf tests.
4615 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4618 if test "$LN_S" = "ln -s"; then
4619 { echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6; }
4622 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4623 echo "${ECHO_T}no, using $LN_S" >&6; }
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4633 # On Suns, sometimes $CPP names a directory.
4634 if test -n "$CPP" && test -d "$CPP"; then
4637 if test -z "$CPP"; then
4638 if test "${ac_cv_prog_CPP+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 # Double quotes because CPP needs to be expanded
4642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4645 for ac_c_preproc_warn_flag in '' yes
4647 # Use a header file that comes with gcc, so configuring glibc
4648 # with a fresh cross-compiler works.
4649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650 # <limits.h> exists even on freestanding compilers.
4651 # On the NeXT, cc -E runs the code through the compiler's parser,
4652 # not just through cpp. "Syntax error" is here to catch this case.
4653 cat >conftest.$ac_ext <<_ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4660 # include <limits.h>
4662 # include <assert.h>
4666 if { (ac_try="$ac_cpp conftest.$ac_ext"
4668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4669 *) ac_try_echo
=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4674 grep -v '^ *+' conftest.er1
>conftest.err
4676 cat conftest.err
>&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } >/dev
/null
&& {
4679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.
$ac_ext >&5
4687 # Broken: fails on valid input.
4691 rm -f conftest.err conftest.
$ac_ext
4693 # OK, works on sane cases. Now check whether nonexistent headers
4694 # can be detected and how.
4695 cat >conftest.
$ac_ext <<_ACEOF
4698 cat confdefs.h
>>conftest.
$ac_ext
4699 cat >>conftest.
$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <ac_nonexistent.h>
4703 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4711 grep -v '^ *+' conftest.er1 >conftest.err
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } >/dev/null && {
4716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4719 # Broken: success on invalid input.
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 # Passes both tests.
4730 rm -f conftest.err conftest.$ac_ext
4733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4734 rm -f conftest.err conftest.
$ac_ext
4735 if $ac_preproc_ok; then
4747 { echo "$as_me:$LINENO: result: $CPP" >&5
4748 echo "${ECHO_T}$CPP" >&6; }
4750 for ac_c_preproc_warn_flag
in '' yes
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.
$ac_ext <<_ACEOF
4761 cat confdefs.h
>>conftest.
$ac_ext
4762 cat >>conftest.
$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4765 # include <limits.h>
4767 # include <assert.h>
4771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 # Broken: fails on valid input.
4796 rm -f conftest.err conftest.$ac_ext
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #include <ac_nonexistent.h>
4808 if { (ac_try="$ac_cpp conftest.$ac_ext"
4810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4811 *) ac_try_echo
=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4816 grep -v '^ *+' conftest.er1
>conftest.err
4818 cat conftest.err
>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } >/dev
/null
&& {
4821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4824 # Broken: success on invalid input.
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.
$ac_ext >&5
4830 # Passes both tests.
4835 rm -f conftest.err conftest.
$ac_ext
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.err conftest.
$ac_ext
4840 if $ac_preproc_ok; then
4843 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details." >&5
4845 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4846 See \`config.log' for more details." >&2;}
4847 { (exit 1); exit 1; }; }
4851 ac_cpp
='$CPP $CPPFLAGS'
4852 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4856 # Find a good install program. We prefer a C program (faster),
4857 # so one script is as good as another. But avoid the broken or
4858 # incompatible versions:
4859 # SysV /etc/install, /usr/sbin/install
4860 # SunOS /usr/etc/install
4861 # IRIX /sbin/install
4863 # AmigaOS /C/install, which installs bootblocks on floppy discs
4864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4867 # OS/2's system install, which has a completely different semantic
4868 # ./install, which can be erroneously created by make from ./install.sh.
4869 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4871 if test -z "$INSTALL"; then
4872 if test "${ac_cv_path_install+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir
=.
4880 # Account for people who put trailing slashes in PATH elements.
4882 .
/ | .
// |
/cC
/* | \
4883 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4884 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4887 # OSF1 and SCO ODT 3.0 have their own names for install.
4888 # Don't use installbsd from OSF since it installs stuff as root
4890 for ac_prog
in ginstall scoinst
install; do
4891 for ac_exec_ext
in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4893 if test $ac_prog = install &&
4894 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4895 # AIX install. It has an incompatible calling convention.
4897 elif test $ac_prog = install &&
4898 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4899 # program-specific install script used by HP pwplus--don't use.
4902 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4915 if test "${ac_cv_path_install+set}" = set; then
4916 INSTALL
=$ac_cv_path_install
4918 # As a last resort, use the slow shell script. Don't cache a
4919 # value for INSTALL within a source directory, because that will
4920 # break other packages using the cache if that directory is
4921 # removed, or if the value is a relative name.
4922 INSTALL
=$ac_install_sh
4925 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4926 echo "${ECHO_T}$INSTALL" >&6; }
4928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4929 # It thinks the first close brace ends the variable substitution.
4930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4934 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4936 if test "x$RANLIB" = x
; then
4937 if test -n "$ac_tool_prefix"; then
4938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4939 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_RANLIB+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test -n "$RANLIB"; then
4946 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir
=.
4953 for ac_exec_ext
in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 RANLIB
=$ac_cv_prog_RANLIB
4966 if test -n "$RANLIB"; then
4967 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4968 echo "${ECHO_T}$RANLIB" >&6; }
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4976 if test -z "$ac_cv_prog_RANLIB"; then
4977 ac_ct_RANLIB
=$RANLIB
4978 # Extract the first word of "ranlib", so it can be a program name with args.
4979 set dummy ranlib
; ac_word
=$2
4980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4982 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 if test -n "$ac_ct_RANLIB"; then
4986 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir
=.
4993 for ac_exec_ext
in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5006 if test -n "$ac_ct_RANLIB"; then
5007 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5008 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5010 { echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6; }
5014 if test "x$ac_ct_RANLIB" = x
; then
5017 case $cross_compiling:$ac_tool_warned in
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet. If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned
=yes ;;
5027 RANLIB
=$ac_ct_RANLIB
5030 RANLIB
="$ac_cv_prog_RANLIB"
5034 # Extract the first word of "install-info", so it can be a program name with args.
5035 set dummy install-info
; ac_word
=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 case $INSTALL_INFO in
5043 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5065 if test -n "$INSTALL_INFO"; then
5066 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5067 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5069 { echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6; }
5074 # Extract the first word of "install-info", so it can be a program name with args.
5075 set dummy install-info
; ac_word
=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 case $INSTALL_INFO in
5083 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5087 for as_dir
in /usr
/sbin
5090 test -z "$as_dir" && as_dir
=.
5091 for ac_exec_ext
in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5105 if test -n "$INSTALL_INFO"; then
5106 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5107 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5109 { echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6; }
5114 # Extract the first word of "install-info", so it can be a program name with args.
5115 set dummy install-info
; ac_word
=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 case $INSTALL_INFO in
5123 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir
=.
5131 for ac_exec_ext
in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5145 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5146 if test -n "$INSTALL_INFO"; then
5147 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5148 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5150 { echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6; }
5155 # Extract the first word of "gzip", so it can be a program name with args.
5156 set dummy
gzip; ac_word
=$2
5157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir
=.
5172 for ac_exec_ext
in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5186 if test -n "$GZIP_PROG"; then
5187 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5188 echo "${ECHO_T}$GZIP_PROG" >&6; }
5190 { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5197 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5199 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5202 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5204 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5208 late_LDFLAGS
=$LDFLAGS
5209 if test "$GCC" = yes; then
5210 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5212 LDFLAGS
="$LDFLAGS -znocombreloc"
5215 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5216 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 rm -f conftest.
$ac_objext conftest
$ac_exeext
5221 if { (ac_try
="$ac_link"
5223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_link") 2>conftest.er1
5229 grep -v '^ *+' conftest.er1 >conftest.err
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && {
5234 test -z "$ac_c_werror_flag" ||
5235 test ! -s conftest.err
5236 } && test -s conftest$ac_exeext &&
5237 $as_test_x conftest$ac_exeext; then
5238 { echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6; }
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 LDFLAGS=$late_LDFLAGS
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5250 conftest$ac_exeext conftest.$ac_ext
5252 #### Extract some information from the operating system and machine files.
5254 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5255 - which libraries the lib-src programs will want, and
5256 - whether the GNU malloc routines are usable..." >&5
5257 echo "$as_me: checking the machine- and system-dependent files to find out
5258 - which libraries the lib-src programs will want, and
5259 - whether the GNU malloc routines are usable..." >&6;}
5261 ### First figure out CFLAGS (which we use for running the compiler here)
5262 ### and REAL_CFLAGS (which we use for real compilation).
5263 ### The two are the same except on a few systems, where they are made
5264 ### different to work around various lossages. For example,
5265 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5266 ### as implying static linking.
5268 ### If the CFLAGS env var is specified, we use that value
5269 ### instead of the default.
5271 ### It's not important that this name contain the PID; you can't run
5272 ### two configures in the same directory and have anything work
5274 tempcname="conftest.c"
5277 #include "'${srcdir}'/src/'${opsysfile}'"
5278 #include "'${srcdir}'/src/'${machfile}'"
5279 #ifndef LIBS_MACHINE
5280 #define LIBS_MACHINE
5285 #ifndef C_SWITCH_SYSTEM
5286 #define C_SWITCH_SYSTEM
5288 #ifndef C_SWITCH_MACHINE
5289 #define C_SWITCH_MACHINE
5291 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5292 configure___ c_switch_system=C_SWITCH_SYSTEM
5293 configure___ c_switch_machine=C_SWITCH_MACHINE
5296 #define LIB_X11_LIB -lX11
5299 #ifndef LIBX11_MACHINE
5300 #define LIBX11_MACHINE
5303 #ifndef LIBX11_SYSTEM
5304 #define LIBX11_SYSTEM
5306 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5309 configure___ unexec=UNEXEC
5311 configure___ unexec=unexec.o
5314 #ifdef SYSTEM_MALLOC
5315 configure___ system_malloc=yes
5317 configure___ system_malloc=no
5320 #ifdef USE_MMAP_FOR_BUFFERS
5321 configure___ use_mmap_for_buffers=yes
5323 configure___ use_mmap_for_buffers=no
5326 #ifndef C_DEBUG_SWITCH
5327 #define C_DEBUG_SWITCH -g
5330 #ifndef C_OPTIMIZE_SWITCH
5332 #define C_OPTIMIZE_SWITCH -O2
5334 #define C_OPTIMIZE_SWITCH -O
5338 #ifndef C_WARNINGS_SWITCH
5339 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5342 #ifndef LD_SWITCH_MACHINE
5343 #define LD_SWITCH_MACHINE
5346 #ifndef LD_SWITCH_SYSTEM
5347 #define LD_SWITCH_SYSTEM
5350 #ifndef LD_SWITCH_X_SITE_AUX
5351 #define LD_SWITCH_X_SITE_AUX
5354 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5355 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5357 #ifdef THIS_IS_CONFIGURE
5359 /* Get the CFLAGS for tests in configure. */
5361 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5363 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5366 #else /* not THIS_IS_CONFIGURE */
5368 /* Get the CFLAGS for real compilation. */
5370 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5372 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5375 #endif /* not THIS_IS_CONFIGURE */
5378 # The value of CPP is a quoted variable reference, so we need to do this
5379 # to get its actual value...
5380 CPP=`eval "echo $CPP"`
5381 eval `${CPP} -Isrc ${tempcname} \
5382 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5383 if test "x$SPECIFIED_CFLAGS" = x; then
5384 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5385 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5387 REAL_CFLAGS="$CFLAGS"
5391 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5393 ### Make sure subsequent tests use flags consistent with the build flags.
5395 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5396 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5398 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5403 # Check whether --enable-largefile was given.
5404 if test "${enable_largefile+set}" = set; then
5405 enableval=$enable_largefile;
5408 if test "$enable_largefile" != no; then
5410 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5411 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5412 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_sys_largefile_CC=no
5416 if test "$GCC" != yes; then
5419 # IRIX 6.2 and later do not support large files by default,
5420 # so use the C compiler's -n32 option if that helps.
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <sys/types.h>
5428 /* Check that off_t can represent 2**63 - 1 correctly.
5429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430 since some C++ compilers masquerading as C compilers
5431 incorrectly reject 9223372036854775807. */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434 && LARGE_OFF_T % 2147483647 == 1)
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5448 *) ac_try_echo
=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1
>conftest.err
5455 cat conftest.err
>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.
$ac_objext; then
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.
$ac_ext >&5
5469 rm -f core conftest.err conftest.
$ac_objext
5471 rm -f conftest.
$ac_objext
5472 if { (ac_try
="$ac_compile"
5474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 ac_cv_sys_largefile_CC=' -n32'; break
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5496 rm -f core conftest.err conftest.$ac_objext
5500 rm -f conftest.$ac_ext
5503 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5504 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5505 if test "$ac_cv_sys_largefile_CC" != no; then
5506 CC=$CC$ac_cv_sys_largefile_CC
5509 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5510 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5511 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 cat >conftest.$ac_ext <<_ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5542 *) ac_try_echo
=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1
>conftest.err
5549 cat conftest.err
>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.
$ac_objext; then
5555 ac_cv_sys_file_offset_bits
=no
; break
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 cat >conftest.
$ac_ext <<_ACEOF
5567 cat confdefs.h
>>conftest.
$ac_ext
5568 cat >>conftest.
$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #define _FILE_OFFSET_BITS 64
5571 #include <sys/types.h>
5572 /* Check that off_t can represent 2**63 - 1 correctly.
5573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5574 since some C++ compilers masquerading as C compilers
5575 incorrectly reject 9223372036854775807. */
5576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5578 && LARGE_OFF_T % 2147483647 == 1)
5588 rm -f conftest.
$ac_objext
5589 if { (ac_try
="$ac_compile"
5591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_c_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest.$ac_objext; then
5605 ac_cv_sys_file_offset_bits=64; break
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_sys_file_offset_bits=unknown
5618 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5619 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5623 cat >>confdefs.h <<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5629 if test $ac_cv_sys_file_offset_bits = unknown; then
5630 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5631 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5663 *) ac_try_echo
=$ac_try;;
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_compile") 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_c_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest.
$ac_objext; then
5676 ac_cv_sys_large_files
=no
; break
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.
$ac_ext >&5
5684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5685 cat >conftest.
$ac_ext <<_ACEOF
5688 cat confdefs.h
>>conftest.
$ac_ext
5689 cat >>conftest.
$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 #define _LARGE_FILES 1
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 rm -f conftest.
$ac_objext
5710 if { (ac_try
="$ac_compile"
5712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_cv_sys_large_files=1; break
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 ac_cv_sys_large_files=unknown
5739 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5740 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5741 case $ac_cv_sys_large_files in #(
5744 cat >>confdefs.h <<_ACEOF
5745 #define _LARGE_FILES $ac_cv_sys_large_files
5755 ### The standard library on x86-64 GNU/Linux distributions can
5756 ### be located in either /usr/lib64 or /usr/lib.
5757 case "${canonical}" in
5758 x86_64-*-linux-gnu* )
5759 if test -d /usr/lib64; then
5761 cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_X86_64_LIB64_DIR 1
5771 if test "${with_sound}" != "no"; then
5772 # Sound support for GNU/Linux and the free BSDs.
5773 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5775 if test "${ac_cv_header_stdc+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5801 *) ac_try_echo
=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5806 grep -v '^ *+' conftest.er1
>conftest.err
5808 cat conftest.err
>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.
$ac_objext; then
5814 ac_cv_header_stdc
=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.
$ac_ext >&5
5819 ac_cv_header_stdc
=no
5822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5824 if test $ac_cv_header_stdc = yes; then
5825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5826 cat >conftest.
$ac_ext <<_ACEOF
5829 cat confdefs.h
>>conftest.
$ac_ext
5830 cat >>conftest.
$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836 $EGREP "memchr" >/dev
/null
2>&1; then
5839 ac_cv_header_stdc
=no
5845 if test $ac_cv_header_stdc = yes; then
5846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5847 cat >conftest.
$ac_ext <<_ACEOF
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5857 $EGREP "free" >/dev
/null
2>&1; then
5860 ac_cv_header_stdc
=no
5866 if test $ac_cv_header_stdc = yes; then
5867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5868 if test "$cross_compiling" = yes; then
5871 cat >conftest.
$ac_ext <<_ACEOF
5874 cat confdefs.h
>>conftest.
$ac_ext
5875 cat >>conftest.
$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5879 #if ((' ' & 0x0FF) == 0x020)
5880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5883 # define ISLOWER(c) \
5884 (('a' <= (c) && (c) <= 'i') \
5885 || ('j' <= (c) && (c) <= 'r') \
5886 || ('s' <= (c) && (c) <= 'z'))
5887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5895 for (i = 0; i < 256; i++)
5896 if (XOR (islower (i), ISLOWER (i))
5897 || toupper (i) != TOUPPER (i))
5902 rm -f conftest
$ac_exeext
5903 if { (ac_try
="$ac_link"
5905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_link") 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5915 *) ac_try_echo
=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5924 echo "$as_me: program exited with status $ac_status" >&5
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.
$ac_ext >&5
5929 ac_cv_header_stdc
=no
5931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5937 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5938 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5939 if test $ac_cv_header_stdc = yes; then
5941 cat >>confdefs.h
<<\_ACEOF
5942 #define STDC_HEADERS 1
5947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5957 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5958 inttypes.h stdint.h unistd.h
5960 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5963 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5974 #include <$ac_header>
5976 rm -f conftest.
$ac_objext
5977 if { (ac_try
="$ac_compile"
5979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_compile") 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } && {
5990 test -z "$ac_c_werror_flag" ||
5991 test ! -s conftest.err
5992 } && test -s conftest.$ac_objext; then
5993 eval "$as_ac_Header=yes"
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 eval "$as_ac_Header=no"
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003 ac_res=`eval echo '${'$as_ac_Header'}'`
6004 { echo "$as_me:$LINENO: result: $ac_res" >&5
6005 echo "${ECHO_T}$ac_res" >&6; }
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6019 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6021 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 ac_res=`eval echo '${'$as_ac_Header'}'`
6029 { echo "$as_me:$LINENO: result: $ac_res" >&5
6030 echo "${ECHO_T}$ac_res" >&6; }
6032 # Is the header compilable?
6033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6042 #include <$ac_header>
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6048 *) ac_try_echo
=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1
>conftest.err
6055 cat conftest.err
>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.
$ac_objext; then
6061 ac_header_compiler
=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.
$ac_ext >&5
6066 ac_header_compiler
=no
6069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6; }
6073 # Is the header present?
6074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6076 cat >conftest.
$ac_ext <<_ACEOF
6079 cat confdefs.h
>>conftest.
$ac_ext
6080 cat >>conftest.
$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <$ac_header>
6084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6100 ac_header_preproc=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_header_preproc=no
6108 rm -f conftest.err conftest.$ac_ext
6109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6; }
6112 # So? What about this header?
6113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6119 ac_header_preproc=yes
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 eval "$as_ac_Header=\$ac_header_preproc"
6144 ac_res=`eval echo '${'$as_ac_Header'}'`
6145 { echo "$as_me:$LINENO: result: $ac_res" >&5
6146 echo "${ECHO_T}$ac_res" >&6; }
6149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6150 cat >>confdefs.h <<_ACEOF
6151 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6158 # Emulation library used on NetBSD.
6159 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6160 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6161 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lossaudio $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6183 return _oss_ioctl ();
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6192 *) ac_try_echo
=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1
>conftest.err
6199 cat conftest.err
>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest
$ac_exeext &&
6205 $as_test_x conftest
$ac_exeext; then
6206 ac_cv_lib_ossaudio__oss_ioctl
=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_cv_lib_ossaudio__oss_ioctl
=no
6214 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6215 conftest
$ac_exeext conftest.
$ac_ext
6216 LIBS
=$ac_check_lib_save_LIBS
6218 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6219 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6220 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6229 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6230 if test "X${with_pkg_config_prog}" != X
; then
6231 PKG_CONFIG
="${with_pkg_config_prog}"
6236 if test -z "$PKG_CONFIG"; then
6237 # Extract the first word of "pkg-config", so it can be a program name with args.
6238 set dummy pkg-config
; ac_word
=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir
=.
6254 for ac_exec_ext
in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6268 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6269 if test -n "$PKG_CONFIG"; then
6270 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6271 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6273 { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6280 if test "$PKG_CONFIG" = "no" ; then
6283 PKG_CONFIG_MIN_VERSION
=0.9.0
6284 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6285 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6286 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6288 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6289 { echo "$as_me:$LINENO: result: yes" >&5
6290 echo "${ECHO_T}yes" >&6; }
6293 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6294 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6295 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6296 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6297 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6299 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6300 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6301 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6302 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6303 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6309 ## If we have a custom action on failure, don't print errors, but
6310 ## do set a variable so people can do so.
6311 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6318 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6319 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6323 if test $succeeded = yes; then
6329 if test $HAVE_ALSA = yes; then
6330 SAVE_CFLAGS
="$CFLAGS"
6331 SAVE_LDFLAGS
="$LDFLAGS"
6332 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6333 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6334 cat >conftest.
$ac_ext <<_ACEOF
6337 cat confdefs.h
>>conftest.
$ac_ext
6338 cat >>conftest.
$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <asoundlib.h>
6344 snd_lib_error_set_handler (0);
6349 rm -f conftest.
$ac_objext
6350 if { (ac_try
="$ac_compile"
6352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6358 grep -v '^ *+' conftest.er1 >conftest.err
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && {
6363 test -z "$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 } && test -s conftest.$ac_objext; then
6366 emacs_alsa_normal=yes
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 emacs_alsa_normal=no
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 if test "$emacs_alsa_normal" != yes; then
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <alsa/asoundlib.h>
6386 snd_lib_error_set_handler (0);
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6395 *) ac_try_echo
=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1
>conftest.err
6402 cat conftest.err
>&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.
$ac_objext; then
6408 emacs_alsa_subdir
=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.
$ac_ext >&5
6413 emacs_alsa_subdir
=no
6416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6417 if test "$emacs_alsa_subdir" != yes; then
6418 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6419 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6420 { (exit 1); exit 1; }; }
6422 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6425 CFLAGS
="$SAVE_CFLAGS"
6426 LDFLAGS
="$SAVE_LDFLAGS"
6427 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6428 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6430 cat >>confdefs.h
<<\_ACEOF
6464 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6465 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6466 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6467 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6470 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6474 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 ac_res
=`eval echo '${'$as_ac_Header'}'`
6478 { echo "$as_me:$LINENO: result: $ac_res" >&5
6479 echo "${ECHO_T}$ac_res" >&6; }
6481 # Is the header compilable?
6482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6484 cat >conftest.
$ac_ext <<_ACEOF
6487 cat confdefs.h
>>conftest.
$ac_ext
6488 cat >>conftest.
$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 $ac_includes_default
6491 #include <$ac_header>
6493 rm -f conftest.
$ac_objext
6494 if { (ac_try
="$ac_compile"
6496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6502 grep -v '^ *+' conftest.er1 >conftest.err
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_header_compiler=yes
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_header_compiler=no
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520 echo "${ECHO_T}$ac_header_compiler" >&6; }
6522 # Is the header present?
6523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <$ac_header>
6533 if { (ac_try="$ac_cpp conftest.$ac_ext"
6535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6536 *) ac_try_echo
=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1
>conftest.err
6543 cat conftest.err
>&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev
/null
&& {
6546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6549 ac_header_preproc
=yes
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.
$ac_ext >&5
6554 ac_header_preproc
=no
6557 rm -f conftest.err conftest.
$ac_ext
6558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559 echo "${ECHO_T}$ac_header_preproc" >&6; }
6561 # So? What about this header?
6562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6568 ac_header_preproc
=yes
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6588 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 eval "$as_ac_Header=\$ac_header_preproc"
6593 ac_res
=`eval echo '${'$as_ac_Header'}'`
6594 { echo "$as_me:$LINENO: result: $ac_res" >&5
6595 echo "${ECHO_T}$ac_res" >&6; }
6598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599 cat >>confdefs.h
<<_ACEOF
6600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6609 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 #include <sys/personality.h>
6620 personality (PER_LINUX32)
6625 rm -f conftest.
$ac_objext
6626 if { (ac_try
="$ac_compile"
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_compile") 2>conftest.er1
6634 grep -v '^ *+' conftest.er1 >conftest.err
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest.$ac_objext; then
6642 emacs_cv_personality_linux32=yes
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 emacs_cv_personality_linux32=no
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6652 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6654 if test $emacs_cv_personality_linux32 = yes; then
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_PERSONALITY_LINUX32 1
6663 for ac_header in term.h
6665 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <$ac_header>
6679 if { (ac_try="$ac_cpp conftest.$ac_ext"
6681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6682 *) ac_try_echo
=$ac_try;;
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6687 grep -v '^ *+' conftest.er1
>conftest.err
6689 cat conftest.err
>&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } >/dev
/null
&& {
6692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6695 eval "$as_ac_Header=yes"
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.
$ac_ext >&5
6700 eval "$as_ac_Header=no"
6703 rm -f conftest.err conftest.
$ac_ext
6705 ac_res
=`eval echo '${'$as_ac_Header'}'`
6706 { echo "$as_me:$LINENO: result: $ac_res" >&5
6707 echo "${ECHO_T}$ac_res" >&6; }
6708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6709 cat >>confdefs.h
<<_ACEOF
6710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6717 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6719 if test "${ac_cv_header_stdc+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.
$ac_ext <<_ACEOF
6725 cat confdefs.h
>>conftest.
$ac_ext
6726 cat >>conftest.
$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6741 rm -f conftest.
$ac_objext
6742 if { (ac_try
="$ac_compile"
6744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6750 grep -v '^ *+' conftest.er1 >conftest.err
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
6758 ac_cv_header_stdc=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_header_stdc=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 if test $ac_cv_header_stdc = yes; then
6769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6770 cat >conftest.$ac_ext <<_ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780 $EGREP "memchr" >/dev/null 2>&1; then
6783 ac_cv_header_stdc=no
6789 if test $ac_cv_header_stdc = yes; then
6790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801 $EGREP "free" >/dev/null 2>&1; then
6804 ac_cv_header_stdc=no
6810 if test $ac_cv_header_stdc = yes; then
6811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6812 if test "$cross_compiling" = yes; then
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6823 #if ((' ' & 0x0FF) == 0x020)
6824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6827 # define ISLOWER(c) \
6828 (('a' <= (c) && (c) <= 'i') \
6829 || ('j' <= (c) && (c) <= 'r') \
6830 || ('s' <= (c) && (c) <= 'z'))
6831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6839 for (i = 0; i < 256; i++)
6840 if (XOR (islower (i), ISLOWER (i))
6841 || toupper (i) != TOUPPER (i))
6846 rm -f conftest$ac_exeext
6847 if { (ac_try="$ac_link"
6849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6850 *) ac_try_echo
=$ac_try;;
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_link") 2>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6857 { (case "(($ac_try" in
6858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_try") 2>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6868 echo "$as_me: program exited with status $ac_status" >&5
6869 echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_cv_header_stdc=no
6875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6881 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6882 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6883 if test $ac_cv_header_stdc = yes; then
6885 cat >>confdefs.h <<\_ACEOF
6886 #define STDC_HEADERS 1
6891 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6892 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6893 if test "${ac_cv_header_time+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 cat >conftest.$ac_ext <<_ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 #include <sys/time.h>
6909 if ((struct tm *) 0)
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6919 *) ac_try_echo
=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_compile") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1
>conftest.err
6926 cat conftest.err
>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && {
6929 test -z "$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6931 } && test -s conftest.
$ac_objext; then
6932 ac_cv_header_time
=yes
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.
$ac_ext >&5
6937 ac_cv_header_time
=no
6940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6942 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6943 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6944 if test $ac_cv_header_time = yes; then
6946 cat >>confdefs.h
<<\_ACEOF
6947 #define TIME_WITH_SYS_TIME 1
6952 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6953 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6954 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 cat >conftest.
$ac_ext <<_ACEOF
6960 cat confdefs.h
>>conftest.
$ac_ext
6961 cat >>conftest.
$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6975 rm -f conftest.
$ac_objext
6976 if { (ac_try
="$ac_compile"
6978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_compile") 2>conftest.er1
6984 grep -v '^ *+' conftest.er1 >conftest.err
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && {
6989 test -z "$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 } && test -s conftest.$ac_objext; then
6992 ac_cv_have_decl_sys_siglist=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_cv_have_decl_sys_siglist=no
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7003 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7004 if test $ac_cv_have_decl_sys_siglist = yes; then
7006 cat >>confdefs.h <<_ACEOF
7007 #define HAVE_DECL_SYS_SIGLIST 1
7012 cat >>confdefs.h <<_ACEOF
7013 #define HAVE_DECL_SYS_SIGLIST 0
7020 if test $ac_cv_have_decl_sys_siglist != yes; then
7021 # For Tru64, at least:
7022 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7023 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7024 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7033 $ac_includes_default
7037 #ifndef __sys_siglist
7038 (void) __sys_siglist;
7045 rm -f conftest.$ac_objext
7046 if { (ac_try="$ac_compile"
7048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7049 *) ac_try_echo
=$ac_try;;
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_compile") 2>conftest.er1
7054 grep -v '^ *+' conftest.er1
>conftest.err
7056 cat conftest.err
>&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest.
$ac_objext; then
7062 ac_cv_have_decl___sys_siglist
=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7067 ac_cv_have_decl___sys_siglist
=no
7070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7073 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7074 if test $ac_cv_have_decl___sys_siglist = yes; then
7076 cat >>confdefs.h
<<_ACEOF
7077 #define HAVE_DECL___SYS_SIGLIST 1
7082 cat >>confdefs.h
<<_ACEOF
7083 #define HAVE_DECL___SYS_SIGLIST 0
7090 if test $ac_cv_have_decl___sys_siglist = yes; then
7092 cat >>confdefs.h
<<\_ACEOF
7093 #define sys_siglist __sys_siglist
7098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 cat >conftest.
$ac_ext <<_ACEOF
7106 cat confdefs.h
>>conftest.
$ac_ext
7107 cat >>conftest.
$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7110 #include <sys/wait.h>
7112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7128 rm -f conftest.
$ac_objext
7129 if { (ac_try
="$ac_compile"
7131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_cv_header_sys_wait_h=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_header_sys_wait_h=no
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7156 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7157 if test $ac_cv_header_sys_wait_h = yes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_SYS_WAIT_H 1
7166 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7167 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7168 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #ifdef TIME_WITH_SYS_TIME
7178 #include <sys/time.h>
7181 #ifdef HAVE_SYS_TIME_H
7182 #include <sys/time.h>
7193 static struct utimbuf x; x.actime = x.modtime;
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7202 *) ac_try_echo
=$ac_try;;
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7207 grep -v '^ *+' conftest.er1
>conftest.err
7209 cat conftest.err
>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.
$ac_objext; then
7215 emacs_cv_struct_utimbuf
=yes
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.
$ac_ext >&5
7220 emacs_cv_struct_utimbuf
=no
7223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7225 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7226 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7227 if test $emacs_cv_struct_utimbuf = yes; then
7229 cat >>confdefs.h
<<\_ACEOF
7230 #define HAVE_STRUCT_UTIMBUF 1
7235 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7236 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7237 if test "${ac_cv_type_signal+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 cat >conftest.
$ac_ext <<_ACEOF
7243 cat confdefs.h
>>conftest.
$ac_ext
7244 cat >>conftest.
$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <sys/types.h>
7252 return *(signal (0, 0)) (0) == 1;
7257 rm -f conftest.
$ac_objext
7258 if { (ac_try
="$ac_compile"
7260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7266 grep -v '^ *+' conftest.er1 >conftest.err
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 ac_cv_type_signal=int
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 ac_cv_type_signal=void
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7285 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7287 cat >>confdefs.h <<_ACEOF
7288 #define RETSIGTYPE $ac_cv_type_signal
7293 { echo "$as_me:$LINENO: checking for speed_t" >&5
7294 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7295 if test "${emacs_cv_speed_t+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <termios.h>
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7317 *) ac_try_echo
=$ac_try;;
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7322 grep -v '^ *+' conftest.er1
>conftest.err
7324 cat conftest.err
>&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.
$ac_objext; then
7330 emacs_cv_speed_t
=yes
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.
$ac_ext >&5
7338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7340 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7341 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7342 if test $emacs_cv_speed_t = yes; then
7344 cat >>confdefs.h
<<\_ACEOF
7345 #define HAVE_SPEED_T 1
7350 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7351 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7352 if test "${emacs_cv_struct_timeval+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 cat >conftest.
$ac_ext <<_ACEOF
7358 cat confdefs.h
>>conftest.
$ac_ext
7359 cat >>conftest.
$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 #ifdef TIME_WITH_SYS_TIME
7362 #include <sys/time.h>
7365 #ifdef HAVE_SYS_TIME_H
7366 #include <sys/time.h>
7374 static struct timeval x; x.tv_sec = x.tv_usec;
7379 rm -f conftest.
$ac_objext
7380 if { (ac_try
="$ac_compile"
7382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 emacs_cv_struct_timeval=yes
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 emacs_cv_struct_timeval=no
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7407 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7408 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7409 if test $emacs_cv_struct_timeval = yes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_TIMEVAL 1
7417 { echo "$as_me:$LINENO: checking for struct exception" >&5
7418 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7419 if test "${emacs_cv_struct_exception+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7432 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7437 rm -f conftest.$ac_objext
7438 if { (ac_try="$ac_compile"
7440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7441 *) ac_try_echo
=$ac_try;;
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_compile") 2>conftest.er1
7446 grep -v '^ *+' conftest.er1
>conftest.err
7448 cat conftest.err
>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } && {
7451 test -z "$ac_c_werror_flag" ||
7452 test ! -s conftest.err
7453 } && test -s conftest.
$ac_objext; then
7454 emacs_cv_struct_exception
=yes
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.
$ac_ext >&5
7459 emacs_cv_struct_exception
=no
7462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7464 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7465 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7466 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7467 if test $emacs_cv_struct_exception != yes; then
7469 cat >>confdefs.h
<<\_ACEOF
7470 #define NO_MATHERR 1
7476 for ac_header
in sys
/socket.h
7478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 ac_res
=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487 echo "${ECHO_T}$ac_res" >&6; }
7489 # Is the header compilable?
7490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7492 cat >conftest.
$ac_ext <<_ACEOF
7495 cat confdefs.h
>>conftest.
$ac_ext
7496 cat >>conftest.
$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 $ac_includes_default
7499 #include <$ac_header>
7501 rm -f conftest.
$ac_objext
7502 if { (ac_try
="$ac_compile"
7504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_header_compiler=yes
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 ac_header_compiler=no
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7528 echo "${ECHO_T}$ac_header_compiler" >&6; }
7530 # Is the header present?
7531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <$ac_header>
7541 if { (ac_try="$ac_cpp conftest.$ac_ext"
7543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7544 *) ac_try_echo
=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7549 grep -v '^ *+' conftest.er1
>conftest.err
7551 cat conftest.err
>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } >/dev
/null
&& {
7554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7557 ac_header_preproc
=yes
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.
$ac_ext >&5
7562 ac_header_preproc
=no
7565 rm -f conftest.err conftest.
$ac_ext
7566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7567 echo "${ECHO_T}$ac_header_preproc" >&6; }
7569 # So? What about this header?
7570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7576 ac_header_preproc
=yes
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 eval "$as_ac_Header=\$ac_header_preproc"
7601 ac_res
=`eval echo '${'$as_ac_Header'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603 echo "${ECHO_T}$ac_res" >&6; }
7606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7607 cat >>confdefs.h
<<_ACEOF
7608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7616 for ac_header
in net
/if.h
7618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 cat >conftest.
$ac_ext <<_ACEOF
7627 cat confdefs.h
>>conftest.
$ac_ext
7628 cat >>conftest.
$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #if HAVE_SYS_SOCKET_H
7632 #include <sys/socket.h>
7635 #include <$ac_header>
7637 rm -f conftest.
$ac_objext
7638 if { (ac_try
="$ac_compile"
7640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest.$ac_objext; then
7654 eval "$as_ac_Header=yes"
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 eval "$as_ac_Header=no"
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 ac_res=`eval echo '${'$as_ac_Header'}'`
7665 { echo "$as_me:$LINENO: result: $ac_res" >&5
7666 echo "${ECHO_T}$ac_res" >&6; }
7667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7677 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7678 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7679 if test "${ac_cv_struct_tm+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #include <sys/types.h>
7695 int *p = &tm.tm_sec;
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7705 *) ac_try_echo
=$ac_try;;
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1
>conftest.err
7712 cat conftest.err
>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.
$ac_objext; then
7718 ac_cv_struct_tm
=time.h
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7723 ac_cv_struct_tm
=sys
/time.h
7726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7728 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7729 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7730 if test $ac_cv_struct_tm = sys
/time.h
; then
7732 cat >>confdefs.h
<<\_ACEOF
7733 #define TM_IN_SYS_TIME 1
7738 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7739 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7740 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 cat >conftest.
$ac_ext <<_ACEOF
7746 cat confdefs.h
>>conftest.
$ac_ext
7747 cat >>conftest.
$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7750 #include <$ac_cv_struct_tm>
7756 static struct tm ac_aggr;
7757 if (ac_aggr.tm_zone)
7763 rm -f conftest.
$ac_objext
7764 if { (ac_try
="$ac_compile"
7766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 ac_cv_member_struct_tm_tm_zone=yes
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 cat >conftest.$ac_ext <<_ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <sys/types.h>
7792 #include <$ac_cv_struct_tm>
7798 static struct tm ac_aggr;
7799 if (sizeof ac_aggr.tm_zone)
7805 rm -f conftest.$ac_objext
7806 if { (ac_try="$ac_compile"
7808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7809 *) ac_try_echo
=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1
>conftest.err
7816 cat conftest.err
>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.
$ac_objext; then
7822 ac_cv_member_struct_tm_tm_zone
=yes
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.
$ac_ext >&5
7827 ac_cv_member_struct_tm_tm_zone
=no
7830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7835 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7836 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7837 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7839 cat >>confdefs.h
<<_ACEOF
7840 #define HAVE_STRUCT_TM_TM_ZONE 1
7846 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7848 cat >>confdefs.h
<<\_ACEOF
7849 #define HAVE_TM_ZONE 1
7853 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7854 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7855 if test "${ac_cv_have_decl_tzname+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 cat >conftest.
$ac_ext <<_ACEOF
7861 cat confdefs.h
>>conftest.
$ac_ext
7862 cat >>conftest.
$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7877 rm -f conftest.
$ac_objext
7878 if { (ac_try
="$ac_compile"
7880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7886 grep -v '^ *+' conftest.er1 >conftest.err
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
7894 ac_cv_have_decl_tzname=yes
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_have_decl_tzname=no
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7905 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7906 if test $ac_cv_have_decl_tzname = yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_DECL_TZNAME 1
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_DECL_TZNAME 0
7922 { echo "$as_me:$LINENO: checking for tzname" >&5
7923 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7924 if test "${ac_cv_var_tzname+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7934 #if !HAVE_DECL_TZNAME
7935 extern char *tzname[];
7941 return tzname[0][0];
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7950 *) ac_try_echo
=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1
>conftest.err
7957 cat conftest.err
>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest
$ac_exeext &&
7963 $as_test_x conftest
$ac_exeext; then
7964 ac_cv_var_tzname
=yes
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.
$ac_ext >&5
7972 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7973 conftest
$ac_exeext conftest.
$ac_ext
7975 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7976 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7977 if test $ac_cv_var_tzname = yes; then
7979 cat >>confdefs.h
<<\_ACEOF
7980 #define HAVE_TZNAME 1
7986 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7987 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7988 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 cat >conftest.
$ac_ext <<_ACEOF
7994 cat confdefs.h
>>conftest.
$ac_ext
7995 cat >>conftest.
$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
8002 static struct tm ac_aggr;
8003 if (ac_aggr.tm_gmtoff)
8009 rm -f conftest.
$ac_objext
8010 if { (ac_try
="$ac_compile"
8012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 ac_cv_member_struct_tm_tm_gmtoff=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8042 static struct tm ac_aggr;
8043 if (sizeof ac_aggr.tm_gmtoff)
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8053 *) ac_try_echo
=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1
>conftest.err
8060 cat conftest.err
>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.
$ac_objext; then
8066 ac_cv_member_struct_tm_tm_gmtoff
=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.
$ac_ext >&5
8071 ac_cv_member_struct_tm_tm_gmtoff
=no
8074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8079 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8080 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8081 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8083 cat >>confdefs.h
<<\_ACEOF
8084 #define HAVE_TM_GMTOFF 1
8089 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8090 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8091 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 cat >conftest.
$ac_ext <<_ACEOF
8097 cat confdefs.h
>>conftest.
$ac_ext
8098 cat >>conftest.
$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 $ac_includes_default
8101 #if HAVE_SYS_SOCKET_H
8102 #include <sys/socket.h>
8111 static struct ifreq ac_aggr;
8112 if (ac_aggr.ifr_flags)
8118 rm -f conftest.
$ac_objext
8119 if { (ac_try
="$ac_compile"
8121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_compile") 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } && {
8132 test -z "$ac_c_werror_flag" ||
8133 test ! -s conftest.err
8134 } && test -s conftest.$ac_objext; then
8135 ac_cv_member_struct_ifreq_ifr_flags=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 #if HAVE_SYS_SOCKET_H
8148 #include <sys/socket.h>
8157 static struct ifreq ac_aggr;
8158 if (sizeof ac_aggr.ifr_flags)
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8168 *) ac_try_echo
=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1
>conftest.err
8175 cat conftest.err
>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.
$ac_objext; then
8181 ac_cv_member_struct_ifreq_ifr_flags
=yes
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.
$ac_ext >&5
8186 ac_cv_member_struct_ifreq_ifr_flags
=no
8189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8194 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8195 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8196 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8198 cat >>confdefs.h
<<_ACEOF
8199 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8204 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8205 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8206 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 cat >conftest.
$ac_ext <<_ACEOF
8212 cat confdefs.h
>>conftest.
$ac_ext
8213 cat >>conftest.
$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 $ac_includes_default
8216 #if HAVE_SYS_SOCKET_H
8217 #include <sys/socket.h>
8226 static struct ifreq ac_aggr;
8227 if (ac_aggr.ifr_hwaddr)
8233 rm -f conftest.
$ac_objext
8234 if { (ac_try
="$ac_compile"
8236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 $ac_includes_default
8262 #if HAVE_SYS_SOCKET_H
8263 #include <sys/socket.h>
8272 static struct ifreq ac_aggr;
8273 if (sizeof ac_aggr.ifr_hwaddr)
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8283 *) ac_try_echo
=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1
>conftest.err
8290 cat conftest.err
>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.
$ac_objext; then
8296 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.
$ac_ext >&5
8301 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8309 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8310 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8311 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8313 cat >>confdefs.h
<<_ACEOF
8314 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8319 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8320 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8321 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.
$ac_ext <<_ACEOF
8327 cat confdefs.h
>>conftest.
$ac_ext
8328 cat >>conftest.
$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 #if HAVE_SYS_SOCKET_H
8332 #include <sys/socket.h>
8341 static struct ifreq ac_aggr;
8342 if (ac_aggr.ifr_netmask)
8348 rm -f conftest.
$ac_objext
8349 if { (ac_try
="$ac_compile"
8351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8365 ac_cv_member_struct_ifreq_ifr_netmask=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8387 static struct ifreq ac_aggr;
8388 if (sizeof ac_aggr.ifr_netmask)
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8398 *) ac_try_echo
=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
8405 cat conftest.err
>&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.
$ac_objext; then
8411 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8416 ac_cv_member_struct_ifreq_ifr_netmask
=no
8419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8425 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8426 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8428 cat >>confdefs.h
<<_ACEOF
8429 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8434 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8435 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8436 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 cat >conftest.
$ac_ext <<_ACEOF
8442 cat confdefs.h
>>conftest.
$ac_ext
8443 cat >>conftest.
$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #if HAVE_SYS_SOCKET_H
8447 #include <sys/socket.h>
8456 static struct ifreq ac_aggr;
8457 if (ac_aggr.ifr_broadaddr)
8463 rm -f conftest.
$ac_objext
8464 if { (ac_try
="$ac_compile"
8466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8492 #if HAVE_SYS_SOCKET_H
8493 #include <sys/socket.h>
8502 static struct ifreq ac_aggr;
8503 if (sizeof ac_aggr.ifr_broadaddr)
8509 rm -f conftest.$ac_objext
8510 if { (ac_try="$ac_compile"
8512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8513 *) ac_try_echo
=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1
>conftest.err
8520 cat conftest.err
>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.
$ac_objext; then
8526 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.
$ac_ext >&5
8531 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8539 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8540 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8541 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8543 cat >>confdefs.h
<<_ACEOF
8544 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8549 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8550 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8551 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 cat >conftest.
$ac_ext <<_ACEOF
8557 cat confdefs.h
>>conftest.
$ac_ext
8558 cat >>conftest.
$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 $ac_includes_default
8561 #if HAVE_SYS_SOCKET_H
8562 #include <sys/socket.h>
8571 static struct ifreq ac_aggr;
8572 if (ac_aggr.ifr_addr)
8578 rm -f conftest.
$ac_objext
8579 if { (ac_try
="$ac_compile"
8581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8595 ac_cv_member_struct_ifreq_ifr_addr=yes
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8607 #if HAVE_SYS_SOCKET_H
8608 #include <sys/socket.h>
8617 static struct ifreq ac_aggr;
8618 if (sizeof ac_aggr.ifr_addr)
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8628 *) ac_try_echo
=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1
>conftest.err
8635 cat conftest.err
>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.
$ac_objext; then
8641 ac_cv_member_struct_ifreq_ifr_addr
=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.
$ac_ext >&5
8646 ac_cv_member_struct_ifreq_ifr_addr
=no
8649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8656 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8658 cat >>confdefs.h
<<_ACEOF
8659 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8667 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8668 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8669 if test "$ac_cv_prog_cc_c89" != no
; then
8670 { echo "$as_me:$LINENO: result: yes" >&5
8671 echo "${ECHO_T}yes" >&6; }
8673 cat >>confdefs.h
<<\_ACEOF
8674 #define PROTOTYPES 1
8678 cat >>confdefs.h
<<\_ACEOF
8679 #define __PROTOTYPES 1
8683 { echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6; }
8687 { echo "$as_me:$LINENO: checking for working volatile" >&5
8688 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8689 if test "${ac_cv_c_volatile+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.
$ac_ext <<_ACEOF
8695 cat confdefs.h
>>conftest.
$ac_ext
8696 cat >>conftest.
$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8704 int * volatile y = (int *) 0;
8710 rm -f conftest.
$ac_objext
8711 if { (ac_try
="$ac_compile"
8713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.$ac_objext; then
8727 ac_cv_c_volatile=yes
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8738 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8739 if test $ac_cv_c_volatile = no; then
8741 cat >>confdefs.h <<\_ACEOF
8747 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8748 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8749 if test "${ac_cv_c_const+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8762 /* FIXME: Include the comments suggested by Paul. */
8764 /* Ultrix mips cc rejects this. */
8765 typedef int charset[2];
8767 /* SunOS 4.1.1 cc rejects this. */
8768 char const *const *pcpcc;
8770 /* NEC SVR4.0.2 mips cc rejects this. */
8771 struct point {int x, y;};
8772 static struct point const zero = {0,0};
8773 /* AIX XL C 1.02.0.0 rejects this.
8774 It does not let you subtract one const X* pointer from another in
8775 an arm of an if-expression whose if-part is not a constant
8777 const char *g = "string";
8778 pcpcc = &g + (g ? g-g : 0);
8779 /* HPUX 7.0 cc rejects these. */
8781 ppc = (char**) pcpcc;
8782 pcpcc = (char const *const *) ppc;
8783 { /* SCO 3.2v4 cc rejects this. */
8785 char const *s = 0 ? (char *) 0 : (char const *) 0;
8790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8792 const int *foo = &x[0];
8795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8796 typedef const int *iptr;
8800 { /* AIX XL C 1.02.0.0 rejects this saying
8801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8802 struct s { int j; const int *ap[3]; };
8803 struct s *b; b->j = 5;
8805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8809 return !cs[0] && !zero.x;
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8820 *) ac_try_echo
=$ac_try;;
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_compile") 2>conftest.er1
8825 grep -v '^ *+' conftest.er1
>conftest.err
8827 cat conftest.err
>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && {
8830 test -z "$ac_c_werror_flag" ||
8831 test ! -s conftest.err
8832 } && test -s conftest.
$ac_objext; then
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.
$ac_ext >&5
8841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8843 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8844 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8845 if test $ac_cv_c_const = no
; then
8847 cat >>confdefs.h
<<\_ACEOF
8853 { echo "$as_me:$LINENO: checking for void * support" >&5
8854 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8855 if test "${emacs_cv_void_star+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 cat >conftest.
$ac_ext <<_ACEOF
8861 cat confdefs.h
>>conftest.
$ac_ext
8862 cat >>conftest.
$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8873 rm -f conftest.
$ac_objext
8874 if { (ac_try
="$ac_compile"
8876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8882 grep -v '^ *+' conftest.er1 >conftest.err
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 emacs_cv_void_star=yes
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 emacs_cv_void_star=no
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8901 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8902 if test $emacs_cv_void_star = yes; then
8903 cat >>confdefs.h <<\_ACEOF
8904 #define POINTER_TYPE void
8908 cat >>confdefs.h <<\_ACEOF
8909 #define POINTER_TYPE char
8918 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8920 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8921 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 cat >conftest.make <<\_ACEOF
8927 @echo '@@@%%%=$(MAKE)=@@@%%%'
8929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8930 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8932 eval ac_cv_prog_make_${ac_make}_set=yes;;
8934 eval ac_cv_prog_make_${ac_make}_set=no;;
8938 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8939 { echo "$as_me:$LINENO: result: yes" >&5
8940 echo "${ECHO_T}yes" >&6; }
8943 { echo "$as_me:$LINENO: result: no" >&5
8944 echo "${ECHO_T}no" >&6; }
8945 SET_MAKE="MAKE=${MAKE-make}"
8949 { echo "$as_me:$LINENO: checking for long file names" >&5
8950 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8951 if test "${ac_cv_sys_long_file_names+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 ac_cv_sys_long_file_names=yes
8955 # Test for long file names in all the places we know might matter:
8956 # . the current directory, where building will happen
8957 # $prefix/lib where we will be installing things
8958 # $exec_prefix/lib likewise
8959 # $TMPDIR if set, where it might want to write temporary files
8960 # /tmp where it might want to write temporary files
8963 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8964 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8965 # in the usual case where exec_prefix is '${prefix}'.
8967 . | /* | ?:[\\/]*) ;; #(
8970 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8971 ac_xdir=$ac_dir/cf$$
8972 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8973 ac_tf1=$ac_xdir/conftest9012345
8974 ac_tf2=$ac_xdir/conftest9012346
8975 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8976 ac_cv_sys_long_file_names=no
8977 rm -f -r "$ac_xdir" 2>/dev/null
8978 test $ac_cv_sys_long_file_names = no && break
8981 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8982 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8983 if test $ac_cv_sys_long_file_names = yes; then
8985 cat >>confdefs.h <<\_ACEOF
8986 #define HAVE_LONG_FILE_NAMES 1
8992 #### Choose a window system.
8994 { echo "$as_me:$LINENO: checking for X" >&5
8995 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8998 # Check whether --with-x was given.
8999 if test "${with_x+set}" = set; then
9003 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9004 if test "x$with_x" = xno; then
9005 # The user explicitly disabled X.
9008 case $x_includes,$x_libraries in #(
9009 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9010 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9011 { (exit 1); exit 1; }; };; #(
9012 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 # One or both of the vars are not set, and there is no cached value.
9016 ac_x_includes=no ac_x_libraries=no
9017 rm -f -r conftest.dir
9018 if mkdir conftest.dir; then
9020 cat >Imakefile <<'_ACEOF'
9022 @echo incroot='${INCROOT}'
9024 @echo usrlibdir='${USRLIBDIR}'
9026 @echo libdir='${LIBDIR}'
9028 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9029 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9030 for ac_var in incroot usrlibdir libdir; do
9031 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9033 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9034 for ac_extension in a so sl; do
9035 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9036 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9037 ac_im_usrlibdir=$ac_im_libdir; break
9040 # Screen out bogus values from the imake configuration. They are
9041 # bogus both because they are the default anyway, and because
9042 # using them would break gcc on systems where it needs fixed includes.
9043 case $ac_im_incroot in
9044 /usr/include) ac_x_includes= ;;
9045 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9047 case $ac_im_usrlibdir in
9049 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9053 rm -f -r conftest.dir
9056 # Standard set of common directories for X headers.
9057 # Check X11 before X11Rn because it is often a symlink to the current release.
9069 /usr/local/X11/include
9070 /usr/local/X11R6/include
9071 /usr/local/X11R5/include
9072 /usr/local/X11R4/include
9074 /usr/local/include/X11
9075 /usr/local/include/X11R6
9076 /usr/local/include/X11R5
9077 /usr/local/include/X11R4
9081 /usr/XFree86/include/X11
9085 /usr/unsupported/include
9087 /usr/local/x11r5/include
9088 /usr/lpp/Xamples/include
9090 /usr/openwin/include
9091 /usr/openwin/share/include'
9093 if test "$ac_x_includes" = no; then
9094 # Guess where to find include files, by looking for Xlib.h.
9095 # First, try using that file with no special directory specified.
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <X11/Xlib.h>
9104 if { (ac_try="$ac_cpp conftest.$ac_ext"
9106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9107 *) ac_try_echo
=$ac_try;;
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9112 grep -v '^ *+' conftest.er1
>conftest.err
9114 cat conftest.err
>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } >/dev
/null
&& {
9117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9120 # We can compile using X headers with no special include directory.
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.
$ac_ext >&5
9126 for ac_dir
in $ac_x_header_dirs; do
9127 if test -r "$ac_dir/X11/Xlib.h"; then
9128 ac_x_includes
=$ac_dir
9134 rm -f conftest.err conftest.
$ac_ext
9135 fi # $ac_x_includes = no
9137 if test "$ac_x_libraries" = no
; then
9138 # Check for the libraries.
9139 # See if we find them without any special options.
9140 # Don't add to $LIBS permanently.
9143 cat >conftest.
$ac_ext <<_ACEOF
9146 cat confdefs.h
>>conftest.
$ac_ext
9147 cat >>conftest.
$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 #include <X11/Xlib.h>
9158 rm -f conftest.
$ac_objext conftest
$ac_exeext
9159 if { (ac_try
="$ac_link"
9161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_link") 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest$ac_exeext &&
9175 $as_test_x conftest$ac_exeext; then
9177 # We can link X programs with no special library path.
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9184 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9186 # Don't even attempt the hair of trying to link an X program!
9187 for ac_extension in a so sl; do
9188 if test -r "$ac_dir/libX11.$ac_extension"; then
9189 ac_x_libraries=$ac_dir
9196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9197 conftest$ac_exeext conftest.$ac_ext
9198 fi # $ac_x_libraries = no
9200 case $ac_x_includes,$ac_x_libraries in #(
9202 # Didn't find X, or a directory has "'" in its name.
9203 ac_cv_have_x="have_x=no";; #(
9205 # Record where we found X for the cache.
9206 ac_cv_have_x="have_x=yes\
9207 ac_x_includes='$ac_x_includes'\
9208 ac_x_libraries='$ac_x_libraries'"
9214 eval "$ac_cv_have_x"
9217 if test "$have_x" != yes; then
9218 { echo "$as_me:$LINENO: result: $have_x" >&5
9219 echo "${ECHO_T}$have_x" >&6; }
9222 # If each of the values was on the command line, it overrides each guess.
9223 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9224 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9225 # Update the cache value to reflect the command line values.
9226 ac_cv_have_x="have_x=yes\
9227 ac_x_includes='$x_includes'\
9228 ac_x_libraries='$x_libraries'"
9229 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9230 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9233 if test "$no_x" = yes; then
9239 if test "${x_libraries}" != NONE; then
9240 if test -n "${x_libraries}"; then
9241 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9242 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9244 x_default_search_path=""
9245 x_search_path=${x_libraries}
9246 if test -z "${x_search_path}"; then
9247 x_search_path=/usr/lib
9249 for x_library in `echo ${x_search_path}: | \
9250 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9252 ${x_library}/X11/%L/%T/%N%C%S:\
9253 ${x_library}/X11/%l/%T/%N%C%S:\
9254 ${x_library}/X11/%T/%N%C%S:\
9255 ${x_library}/X11/%L/%T/%N%S:\
9256 ${x_library}/X11/%l/%T/%N%S:\
9257 ${x_library}/X11/%T/%N%S"
9258 if test x"${x_default_search_path}" = x; then
9259 x_default_search_path=${x_search_path}
9261 x_default_search_path="${x_search_path}:${x_default_search_path}"
9265 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9266 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9269 if test x"${x_includes}" = x; then
9270 bitmapdir=/usr/include/X11/bitmaps
9272 # accumulate include directories that have X11 bitmap subdirectories
9274 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9275 if test -d "${bmd}/X11/bitmaps"; then
9276 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9278 if test -d "${bmd}/bitmaps"; then
9279 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9282 if test ${bmd_acc} != "dummyval"; then
9283 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9288 if test "${with_carbon}" != no; then
9289 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9290 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9291 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9292 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9296 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9298 # Is the header compilable?
9299 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9300 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <Carbon/Carbon.h>
9310 rm -f conftest.$ac_objext
9311 if { (ac_try="$ac_compile"
9313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9314 *) ac_try_echo
=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_compile") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1
>conftest.err
9321 cat conftest.err
>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest.
$ac_objext; then
9327 ac_header_compiler
=yes
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.
$ac_ext >&5
9332 ac_header_compiler
=no
9335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9337 echo "${ECHO_T}$ac_header_compiler" >&6; }
9339 # Is the header present?
9340 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9341 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9342 cat >conftest.
$ac_ext <<_ACEOF
9345 cat confdefs.h
>>conftest.
$ac_ext
9346 cat >>conftest.
$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <Carbon/Carbon.h>
9350 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } >/dev/null && {
9363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9366 ac_header_preproc=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_preproc=no
9374 rm -f conftest.err conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9376 echo "${ECHO_T}$ac_header_preproc" >&6; }
9378 # So? What about this header?
9379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9381 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9382 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9384 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9385 ac_header_preproc=yes
9388 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9389 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9391 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9393 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9395 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9399 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9403 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9404 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9405 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9410 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9411 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9414 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9420 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9421 if test "${with_carbon+set}" != set \
9422 && test "${carbon_appdir_x+set}" != set; then
9423 for var in with_x with_x_toolkit with_gtk with_xim \
9424 with_xpm with_jpeg with_tiff with_gif with_png; do
9425 if eval test \"\${$var+set}\" = set; then
9432 if test "${HAVE_CARBON}" = yes; then
9436 case "${window_system}" in
9440 case "${with_x_toolkit}" in
9441 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9442 motif ) USE_X_TOOLKIT=MOTIF ;;
9444 USE_X_TOOLKIT=none ;;
9445 no ) USE_X_TOOLKIT=none ;;
9446 * ) USE_X_TOOLKIT=maybe ;;
9456 ### If we're using X11, we should use the X menu package.
9459 yes ) HAVE_MENUS=yes ;;
9462 if test "${opsys}" = "hpux9"; then
9463 case "${x_libraries}" in
9465 opsysfile="s/hpux9-x11r4.h"
9470 if test "${opsys}" = "hpux9shr"; then
9471 case "${x_libraries}" in
9473 opsysfile="s/hpux9shxr4.h"
9478 ### Compute the unexec source name from the object name.
9479 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9481 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9482 # Assume not, until told otherwise.
9485 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9486 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9487 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9498 #define malloc_get_state innocuous_malloc_get_state
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char malloc_get_state (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9506 # include <limits.h>
9508 # include <assert.h>
9511 #undef malloc_get_state
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9519 char malloc_get_state ();
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9530 return malloc_get_state ();
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9539 *) ac_try_echo
=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1
>conftest.err
9546 cat conftest.err
>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest
$ac_exeext &&
9552 $as_test_x conftest
$ac_exeext; then
9553 ac_cv_func_malloc_get_state
=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.
$ac_ext >&5
9558 ac_cv_func_malloc_get_state
=no
9561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9562 conftest
$ac_exeext conftest.
$ac_ext
9564 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9565 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9566 if test $ac_cv_func_malloc_get_state = yes; then
9572 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9573 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9574 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 cat >conftest.
$ac_ext <<_ACEOF
9580 cat confdefs.h
>>conftest.
$ac_ext
9581 cat >>conftest.
$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9585 #define malloc_set_state innocuous_malloc_set_state
9587 /* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char malloc_set_state (); below.
9589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590 <limits.h> exists even on freestanding compilers. */
9593 # include <limits.h>
9595 # include <assert.h>
9598 #undef malloc_set_state
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9606 char malloc_set_state ();
9607 /* The GNU C library defines this for functions which it implements
9608 to always fail with ENOSYS. Some functions are actually named
9609 something starting with __ and the normal name is an alias. */
9610 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9617 return malloc_set_state ();
9622 rm -f conftest.
$ac_objext conftest
$ac_exeext
9623 if { (ac_try
="$ac_link"
9625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_link") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext &&
9639 $as_test_x conftest$ac_exeext; then
9640 ac_cv_func_malloc_set_state=yes
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_cv_func_malloc_set_state=no
9648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9649 conftest$ac_exeext conftest.$ac_ext
9651 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9652 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9653 if test $ac_cv_func_malloc_set_state = yes; then
9659 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9660 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9661 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 cat >conftest.$ac_ext <<_ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670 extern void (* __after_morecore_hook)();
9674 __after_morecore_hook = 0
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9683 *) ac_try_echo
=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_link") 2>conftest.er1
9688 grep -v '^ *+' conftest.er1
>conftest.err
9690 cat conftest.err
>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest
$ac_exeext &&
9696 $as_test_x conftest
$ac_exeext; then
9697 emacs_cv_var___after_morecore_hook
=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.
$ac_ext >&5
9702 emacs_cv_var___after_morecore_hook
=no
9705 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9706 conftest
$ac_exeext conftest.
$ac_ext
9708 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9709 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9710 if test $emacs_cv_var___after_morecore_hook = no
; then
9713 if test "${system_malloc}" = "yes"; then
9716 (The GNU allocators don't work with this system configuration.)"
9718 if test "$doug_lea_malloc" = "yes" ; then
9719 if test "$GNU_MALLOC" = yes ; then
9721 (Using Doug Lea's new malloc from the GNU C Library.)"
9724 cat >>confdefs.h
<<\_ACEOF
9725 #define DOUG_LEA_MALLOC 1
9730 if test x
"${REL_ALLOC}" = x
; then
9731 REL_ALLOC
=${GNU_MALLOC}
9737 for ac_header
in stdlib.h unistd.h
9739 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9743 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 ac_res
=`eval echo '${'$as_ac_Header'}'`
9747 { echo "$as_me:$LINENO: result: $ac_res" >&5
9748 echo "${ECHO_T}$ac_res" >&6; }
9750 # Is the header compilable?
9751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9753 cat >conftest.
$ac_ext <<_ACEOF
9756 cat confdefs.h
>>conftest.
$ac_ext
9757 cat >>conftest.
$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9760 #include <$ac_header>
9762 rm -f conftest.
$ac_objext
9763 if { (ac_try
="$ac_compile"
9765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1 >conftest.err
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 ac_header_compiler=yes
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_header_compiler=no
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6; }
9791 # Is the header present?
9792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 #include <$ac_header>
9802 if { (ac_try="$ac_cpp conftest.$ac_ext"
9804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9805 *) ac_try_echo
=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1
>conftest.err
9812 cat conftest.err
>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } >/dev
/null
&& {
9815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9818 ac_header_preproc
=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.
$ac_ext >&5
9823 ac_header_preproc
=no
9826 rm -f conftest.err conftest.
$ac_ext
9827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9828 echo "${ECHO_T}$ac_header_preproc" >&6; }
9830 # So? What about this header?
9831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9837 ac_header_preproc
=yes
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9857 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 eval "$as_ac_Header=\$ac_header_preproc"
9862 ac_res
=`eval echo '${'$as_ac_Header'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864 echo "${ECHO_T}$ac_res" >&6; }
9867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9868 cat >>confdefs.h
<<_ACEOF
9869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9877 for ac_func
in getpagesize
9879 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9882 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define $ac_func innocuous_$ac_func
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char $ac_func (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9901 # include <limits.h>
9903 # include <assert.h>
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_$ac_func || defined __stub___$ac_func
9930 rm -f conftest.
$ac_objext conftest
$ac_exeext
9931 if { (ac_try
="$ac_link"
9933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 eval "$as_ac_var=yes"
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 eval "$as_ac_var=no"
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9959 ac_res=`eval echo '${'$as_ac_var'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961 echo "${ECHO_T}$ac_res" >&6; }
9962 if test `eval echo '${'$as_ac_var'}'` = yes; then
9963 cat >>confdefs.h <<_ACEOF
9964 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9970 { echo "$as_me:$LINENO: checking for working mmap" >&5
9971 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9972 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 if test "$cross_compiling" = yes; then
9976 ac_cv_func_mmap_fixed_mapped=no
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 /* malloc might have been renamed as rpl_malloc. */
9988 /* Thanks to Mike Haertel and Jim Avera for this test.
9989 Here is a matrix of mmap possibilities:
9990 mmap private not fixed
9991 mmap private fixed at somewhere currently unmapped
9992 mmap private fixed at somewhere already mapped
9993 mmap shared not fixed
9994 mmap shared fixed at somewhere currently unmapped
9995 mmap shared fixed at somewhere already mapped
9996 For private mappings, we should verify that changes cannot be read()
9997 back from the file, nor mmap's back from the file at a different
9998 address. (There have been systems where private was not correctly
9999 implemented like the infamous i386 svr4.0, and systems where the
10000 VM page cache was not coherent with the file system buffer cache
10001 like early versions of FreeBSD and possibly contemporary NetBSD.)
10002 For shared mappings, we should conversely verify that changes get
10003 propagated back to all the places they're supposed to be.
10005 Grep wants private fixed already mapped.
10006 The main things grep needs to know about mmap are:
10007 * does it exist and is it safe to write into the mmap'd area
10008 * how to use it (BSD variants) */
10011 #include <sys/mman.h>
10013 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10017 /* This mess was copied from the GNU getpagesize.h. */
10018 #ifndef HAVE_GETPAGESIZE
10019 /* Assume that all systems that can run configure have sys/param.h. */
10020 # ifndef HAVE_SYS_PARAM_H
10021 # define HAVE_SYS_PARAM_H 1
10024 # ifdef _SC_PAGESIZE
10025 # define getpagesize() sysconf(_SC_PAGESIZE)
10026 # else /* no _SC_PAGESIZE */
10027 # ifdef HAVE_SYS_PARAM_H
10028 # include <sys/param.h>
10029 # ifdef EXEC_PAGESIZE
10030 # define getpagesize() EXEC_PAGESIZE
10031 # else /* no EXEC_PAGESIZE */
10033 # define getpagesize() NBPG * CLSIZE
10036 # endif /* no CLSIZE */
10037 # else /* no NBPG */
10039 # define getpagesize() NBPC
10040 # else /* no NBPC */
10042 # define getpagesize() PAGESIZE
10043 # endif /* PAGESIZE */
10044 # endif /* no NBPC */
10045 # endif /* no NBPG */
10046 # endif /* no EXEC_PAGESIZE */
10047 # else /* no HAVE_SYS_PARAM_H */
10048 # define getpagesize() 8192 /* punt totally */
10049 # endif /* no HAVE_SYS_PARAM_H */
10050 # endif /* no _SC_PAGESIZE */
10052 #endif /* no HAVE_GETPAGESIZE */
10057 char *data, *data2, *data3;
10061 pagesize = getpagesize ();
10063 /* First, make a file with some known garbage in it. */
10064 data = (char *) malloc (pagesize);
10067 for (i = 0; i < pagesize; ++i)
10068 *(data + i) = rand ();
10070 fd = creat ("conftest.mmap", 0600);
10073 if (write (fd, data, pagesize) != pagesize)
10077 /* Next, try to mmap the file at a fixed address which already has
10078 something else allocated at it. If we can, also make sure that
10079 we see the same garbage. */
10080 fd = open ("conftest.mmap", O_RDWR);
10083 data2 = (char *) malloc (2 * pagesize);
10086 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10087 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10088 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10090 for (i = 0; i < pagesize; ++i)
10091 if (*(data + i) != *(data2 + i))
10094 /* Finally, make sure that changes to the mapped area do not
10095 percolate back to the file as seen by read(). (This is a bug on
10096 some variants of i386 svr4.0.) */
10097 for (i = 0; i < pagesize; ++i)
10098 *(data2 + i) = *(data2 + i) + 1;
10099 data3 = (char *) malloc (pagesize);
10102 if (read (fd, data3, pagesize) != pagesize)
10104 for (i = 0; i < pagesize; ++i)
10105 if (*(data + i) != *(data3 + i))
10111 rm -f conftest$ac_exeext
10112 if { (ac_try="$ac_link"
10113 case "(($ac_try" in
10114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10115 *) ac_try_echo
=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_link") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10122 { (case "(($ac_try" in
10123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_func_mmap_fixed_mapped=yes
10133 echo "$as_me: program exited with status $ac_status" >&5
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ( exit $ac_status )
10138 ac_cv_func_mmap_fixed_mapped=no
10140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10146 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10147 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10149 cat >>confdefs.h <<\_ACEOF
10150 #define HAVE_MMAP 1
10154 rm -f conftest.mmap
10156 if test $use_mmap_for_buffers = yes; then
10160 LIBS="$libsrc_libs $LIBS"
10163 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10164 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10165 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-ldnet $LIBS"
10170 cat >conftest.$ac_ext <<_ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10177 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10187 return dnet_ntoa ();
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (ac_try="$ac_link"
10194 case "(($ac_try" in
10195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10196 *) ac_try_echo
=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_link") 2>conftest.er1
10201 grep -v '^ *+' conftest.er1
>conftest.err
10203 cat conftest.err
>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } && {
10206 test -z "$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10208 } && test -s conftest
$ac_exeext &&
10209 $as_test_x conftest
$ac_exeext; then
10210 ac_cv_lib_dnet_dnet_ntoa
=yes
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.
$ac_ext >&5
10215 ac_cv_lib_dnet_dnet_ntoa
=no
10218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10219 conftest
$ac_exeext conftest.
$ac_ext
10220 LIBS
=$ac_check_lib_save_LIBS
10222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10223 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10224 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10225 cat >>confdefs.h
<<_ACEOF
10226 #define HAVE_LIBDNET 1
10229 LIBS
="-ldnet $LIBS"
10234 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10235 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 ac_check_lib_save_LIBS
=$LIBS
10240 LIBS
="-lXbsd $LIBS"
10241 cat >conftest.
$ac_ext <<_ACEOF
10244 cat confdefs.h
>>conftest.
$ac_ext
10245 cat >>conftest.
$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10257 rm -f conftest.
$ac_objext conftest
$ac_exeext
10258 if { (ac_try
="$ac_link"
10259 case "(($ac_try" in
10260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_link") 2>conftest.er1
10266 grep -v '^ *+' conftest.er1 >conftest.err
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext &&
10274 $as_test_x conftest$ac_exeext; then
10275 ac_cv_lib_Xbsd_main=yes
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10280 ac_cv_lib_Xbsd_main=no
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10287 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10288 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10289 if test $ac_cv_lib_Xbsd_main = yes; then
10290 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10295 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10296 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10297 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lpthreads $LIBS"
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10319 return cma_open ();
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10328 *) ac_try_echo
=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1
>conftest.err
10335 cat conftest.err
>&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest
$ac_exeext &&
10341 $as_test_x conftest
$ac_exeext; then
10342 ac_cv_lib_pthreads_cma_open
=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.
$ac_ext >&5
10347 ac_cv_lib_pthreads_cma_open
=no
10350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10351 conftest
$ac_exeext conftest.
$ac_ext
10352 LIBS
=$ac_check_lib_save_LIBS
10354 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10355 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10356 if test $ac_cv_lib_pthreads_cma_open = yes; then
10357 cat >>confdefs.h
<<_ACEOF
10358 #define HAVE_LIBPTHREADS 1
10361 LIBS
="-lpthreads $LIBS"
10366 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10367 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10368 if test -d /usr
/X386
/include
; then
10370 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10374 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10375 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10380 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10381 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10382 if test "${gdb_cv_bigtoc+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10388 *) gdb_cv_bigtoc
=-bbigtoc ;;
10391 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10392 cat >conftest.
$ac_ext <<_ACEOF
10395 cat confdefs.h
>>conftest.
$ac_ext
10396 cat >>conftest.
$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10407 rm -f conftest.
$ac_objext conftest
$ac_exeext
10408 if { (ac_try
="$ac_link"
10409 case "(($ac_try" in
10410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest$ac_exeext &&
10424 $as_test_x conftest$ac_exeext; then
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434 conftest$ac_exeext conftest.$ac_ext
10437 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10438 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10442 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10443 # used for the tests that follow. We set them back to REAL_CFLAGS and
10444 # REAL_CPPFLAGS later on.
10446 REAL_CPPFLAGS="$CPPFLAGS"
10448 if test "${HAVE_X11}" = "yes"; then
10449 DEFS="$C_SWITCH_X_SITE $DEFS"
10450 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10452 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10453 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10455 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10456 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10457 # but it's more convenient here to set LD_RUN_PATH
10458 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10459 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10460 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10464 if test "${opsys}" = "gnu-linux"; then
10465 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10466 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10477 XOpenDisplay ("foo");
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (ac_try="$ac_link"
10484 case "(($ac_try" in
10485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10486 *) ac_try_echo
=$ac_try;;
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_link") 2>conftest.er1
10491 grep -v '^ *+' conftest.er1
>conftest.err
10493 cat conftest.err
>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest
$ac_exeext &&
10499 $as_test_x conftest
$ac_exeext; then
10500 xlinux_first_failure
=no
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.
$ac_ext >&5
10505 xlinux_first_failure
=yes
10508 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10509 conftest
$ac_exeext conftest.
$ac_ext
10510 if test "${xlinux_first_failure}" = "yes"; then
10511 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10512 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10513 OLD_CPPFLAGS
="$CPPFLAGS"
10515 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10516 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10517 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10518 LIBS
="$LIBS -b i486-linuxaout"
10519 cat >conftest.
$ac_ext <<_ACEOF
10522 cat confdefs.h
>>conftest.
$ac_ext
10523 cat >>conftest.
$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10529 XOpenDisplay ("foo");
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (ac_try
="$ac_link"
10536 case "(($ac_try" in
10537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10552 xlinux_second_failure=no
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 xlinux_second_failure=yes
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562 if test "${xlinux_second_failure}" = "yes"; then
10563 # If we get the same failure with -b, there is no use adding -b.
10564 # So take it out. This plays safe.
10565 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10566 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10567 CPPFLAGS="$OLD_CPPFLAGS"
10569 { echo "$as_me:$LINENO: result: no" >&5
10570 echo "${ECHO_T}no" >&6; }
10572 { echo "$as_me:$LINENO: result: yes" >&5
10573 echo "${ECHO_T}yes" >&6; }
10576 { echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6; }
10581 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10582 # header files included from there.
10583 { echo "$as_me:$LINENO: checking for Xkb" >&5
10584 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 #include <X11/Xlib.h>
10592 #include <X11/XKBlib.h>
10596 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10605 *) ac_try_echo
=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1
>conftest.err
10612 cat conftest.err
>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest
$ac_exeext &&
10618 $as_test_x conftest
$ac_exeext; then
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.
$ac_ext >&5
10627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10628 conftest
$ac_exeext conftest.
$ac_ext
10629 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10630 echo "${ECHO_T}$emacs_xkb" >&6; }
10631 if test $emacs_xkb = yes; then
10633 cat >>confdefs.h
<<\_ACEOF
10634 #define HAVE_XKBGETKEYBOARD 1
10643 for ac_func
in XrmSetDatabase XScreenResourceString \
10644 XScreenNumberOfScreen XSetWMProtocols
10646 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10649 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 cat >conftest.
$ac_ext <<_ACEOF
10655 cat confdefs.h
>>conftest.
$ac_ext
10656 cat >>conftest.
$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10660 #define $ac_func innocuous_$ac_func
10662 /* System header to define __stub macros and hopefully few prototypes,
10663 which can conflict with char $ac_func (); below.
10664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665 <limits.h> exists even on freestanding compilers. */
10668 # include <limits.h>
10670 # include <assert.h>
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10682 /* The GNU C library defines this for functions which it implements
10683 to always fail with ENOSYS. Some functions are actually named
10684 something starting with __ and the normal name is an alias. */
10685 #if defined __stub_$ac_func || defined __stub___$ac_func
10692 return $ac_func ();
10697 rm -f conftest.
$ac_objext conftest
$ac_exeext
10698 if { (ac_try
="$ac_link"
10699 case "(($ac_try" in
10700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext &&
10714 $as_test_x conftest$ac_exeext; then
10715 eval "$as_ac_var=yes"
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 eval "$as_ac_var=no"
10723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10724 conftest$ac_exeext conftest.$ac_ext
10726 ac_res=`eval echo '${'$as_ac_var'}'`
10727 { echo "$as_me:$LINENO: result: $ac_res" >&5
10728 echo "${ECHO_T}$ac_res" >&6; }
10729 if test `eval echo '${'$as_ac_var'}'` = yes; then
10730 cat >>confdefs.h <<_ACEOF
10731 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10739 if test "${window_system}" = "x11"; then
10740 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10741 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10742 if test "${emacs_cv_x11_version_6+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 #include <X11/Xlib.h>
10755 #if XlibSpecificationRelease < 6
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10767 *) ac_try_echo
=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_link") 2>conftest.er1
10772 grep -v '^ *+' conftest.er1
>conftest.err
10774 cat conftest.err
>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest
$ac_exeext &&
10780 $as_test_x conftest
$ac_exeext; then
10781 emacs_cv_x11_version_6
=yes
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.
$ac_ext >&5
10786 emacs_cv_x11_version_6
=no
10789 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10790 conftest
$ac_exeext conftest.
$ac_ext
10793 if test $emacs_cv_x11_version_6 = yes; then
10794 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10795 echo "${ECHO_T}6 or newer" >&6; }
10797 cat >>confdefs.h
<<\_ACEOF
10798 #define HAVE_X11R6 1
10802 { echo "$as_me:$LINENO: result: before 6" >&5
10803 echo "${ECHO_T}before 6" >&6; }
10807 if test "${window_system}" = "x11"; then
10808 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10809 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10810 if test "${emacs_cv_x11_version_5+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 cat >conftest.
$ac_ext <<_ACEOF
10816 cat confdefs.h
>>conftest.
$ac_ext
10817 cat >>conftest.
$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <X11/Xlib.h>
10823 #if XlibSpecificationRelease < 5
10831 rm -f conftest.
$ac_objext conftest
$ac_exeext
10832 if { (ac_try
="$ac_link"
10833 case "(($ac_try" in
10834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest$ac_exeext &&
10848 $as_test_x conftest$ac_exeext; then
10849 emacs_cv_x11_version_5=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 emacs_cv_x11_version_5=no
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10861 if test $emacs_cv_x11_version_5 = yes; then
10862 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10863 echo "${ECHO_T}5 or newer" >&6; }
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_X11R5 1
10872 { echo "$as_me:$LINENO: result: before 5" >&5
10873 echo "${ECHO_T}before 5" >&6; }
10878 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10881 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10882 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10883 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10884 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10885 { (exit 1); exit 1; }; };
10889 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10891 if test "X${with_pkg_config_prog}" != X; then
10892 PKG_CONFIG="${with_pkg_config_prog}"
10897 if test -z "$PKG_CONFIG"; then
10898 # Extract the first word of "pkg-config", so it can be a program name with args.
10899 set dummy pkg-config; ac_word=$2
10900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10902 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 case $PKG_CONFIG in
10907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10930 if test -n "$PKG_CONFIG"; then
10931 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10932 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10934 { echo "$as_me:$LINENO: result: no" >&5
10935 echo "${ECHO_T}no" >&6; }
10941 if test "$PKG_CONFIG" = "no" ; then
10942 { { echo "$as_me:$LINENO: error:
10943 *** 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
10944 echo "$as_me: error:
10945 *** 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;}
10946 { (exit 1); exit 1; }; }
10948 PKG_CONFIG_MIN_VERSION=0.9.0
10949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10950 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10951 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10953 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10954 { echo "$as_me:$LINENO: result: yes" >&5
10955 echo "${ECHO_T}yes" >&6; }
10958 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10959 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10960 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10961 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10962 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10964 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10965 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10966 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10967 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10968 echo "${ECHO_T}$GTK_LIBS" >&6; }
10970 { echo "$as_me:$LINENO: result: no" >&5
10971 echo "${ECHO_T}no" >&6; }
10974 ## If we have a custom action on failure, don't print errors, but
10975 ## do set a variable so people can do so.
10976 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10977 echo $GTK_PKG_ERRORS
10983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10988 if test $succeeded = yes; then
10991 { { 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
10992 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;}
10993 { (exit 1); exit 1; }; }
10998 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10999 CFLAGS="$CFLAGS $GTK_CFLAGS"
11000 LIBS="$GTK_LIBS $LIBS"
11003 for ac_func in gtk_main
11005 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11019 #define $ac_func innocuous_$ac_func
11021 /* System header to define __stub macros and hopefully few prototypes,
11022 which can conflict with char $ac_func (); below.
11023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024 <limits.h> exists even on freestanding compilers. */
11027 # include <limits.h>
11029 # include <assert.h>
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11041 /* The GNU C library defines this for functions which it implements
11042 to always fail with ENOSYS. Some functions are actually named
11043 something starting with __ and the normal name is an alias. */
11044 #if defined __stub_$ac_func || defined __stub___$ac_func
11051 return $ac_func ();
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11060 *) ac_try_echo
=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_link") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1
>conftest.err
11067 cat conftest.err
>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest
$ac_exeext &&
11073 $as_test_x conftest
$ac_exeext; then
11074 eval "$as_ac_var=yes"
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.
$ac_ext >&5
11079 eval "$as_ac_var=no"
11082 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11083 conftest
$ac_exeext conftest.
$ac_ext
11085 ac_res
=`eval echo '${'$as_ac_var'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11088 if test `eval echo '${'$as_ac_var'}'` = yes; then
11089 cat >>confdefs.h
<<_ACEOF
11090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 if test "${GTK_COMPILES}" != "yes"; then
11097 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11098 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11099 { (exit 1); exit 1; }; };
11104 cat >>confdefs.h
<<\_ACEOF
11110 if test "$with_toolkit_scroll_bars" != no
; then
11111 with_toolkit_scroll_bars
=yes
11114 HAVE_GTK_MULTIDISPLAY
=no
11116 for ac_func
in gdk_display_open
11118 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11121 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 cat >conftest.
$ac_ext <<_ACEOF
11127 cat confdefs.h
>>conftest.
$ac_ext
11128 cat >>conftest.
$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11132 #define $ac_func innocuous_$ac_func
11134 /* System header to define __stub macros and hopefully few prototypes,
11135 which can conflict with char $ac_func (); below.
11136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11137 <limits.h> exists even on freestanding compilers. */
11140 # include <limits.h>
11142 # include <assert.h>
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11154 /* The GNU C library defines this for functions which it implements
11155 to always fail with ENOSYS. Some functions are actually named
11156 something starting with __ and the normal name is an alias. */
11157 #if defined __stub_$ac_func || defined __stub___$ac_func
11164 return $ac_func ();
11169 rm -f conftest.
$ac_objext conftest
$ac_exeext
11170 if { (ac_try
="$ac_link"
11171 case "(($ac_try" in
11172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>conftest.er1
11178 grep -v '^ *+' conftest.er1 >conftest.err
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext &&
11186 $as_test_x conftest$ac_exeext; then
11187 eval "$as_ac_var=yes"
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 eval "$as_ac_var=no"
11195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196 conftest$ac_exeext conftest.$ac_ext
11198 ac_res=`eval echo '${'$as_ac_var'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11201 if test `eval echo '${'$as_ac_var'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11205 HAVE_GTK_MULTIDISPLAY=yes
11209 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_GTK_MULTIDISPLAY 1
11216 HAVE_GTK_FILE_SELECTION=no
11218 for ac_func in gtk_file_selection_new
11220 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11242 # include <limits.h>
11244 # include <assert.h>
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11266 return $ac_func ();
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11275 *) ac_try_echo
=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>conftest.er1
11280 grep -v '^ *+' conftest.er1
>conftest.err
11282 cat conftest.err
>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest
$ac_exeext &&
11288 $as_test_x conftest
$ac_exeext; then
11289 eval "$as_ac_var=yes"
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.
$ac_ext >&5
11294 eval "$as_ac_var=no"
11297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11298 conftest
$ac_exeext conftest.
$ac_ext
11300 ac_res
=`eval echo '${'$as_ac_var'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303 if test `eval echo '${'$as_ac_var'}'` = yes; then
11304 cat >>confdefs.h
<<_ACEOF
11305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11307 HAVE_GTK_FILE_SELECTION
=yes
11312 HAVE_GTK_FILE_CHOOSER
=no
11314 for ac_func
in gtk_file_chooser_dialog_new
11316 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11319 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 cat >conftest.
$ac_ext <<_ACEOF
11325 cat confdefs.h
>>conftest.
$ac_ext
11326 cat >>conftest.
$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11330 #define $ac_func innocuous_$ac_func
11332 /* System header to define __stub macros and hopefully few prototypes,
11333 which can conflict with char $ac_func (); below.
11334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 <limits.h> exists even on freestanding compilers. */
11338 # include <limits.h>
11340 # include <assert.h>
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11352 /* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355 #if defined __stub_$ac_func || defined __stub___$ac_func
11362 return $ac_func ();
11367 rm -f conftest.
$ac_objext conftest
$ac_exeext
11368 if { (ac_try
="$ac_link"
11369 case "(($ac_try" in
11370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_link") 2>conftest.er1
11376 grep -v '^ *+' conftest.er1 >conftest.err
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest$ac_exeext &&
11384 $as_test_x conftest$ac_exeext; then
11385 eval "$as_ac_var=yes"
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 eval "$as_ac_var=no"
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11396 ac_res=`eval echo '${'$as_ac_var'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11399 if test `eval echo '${'$as_ac_var'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11403 HAVE_GTK_FILE_CHOOSER=yes
11408 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11409 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11411 cat >>confdefs.h <<\_ACEOF
11412 #define HAVE_GTK_FILE_BOTH 1
11417 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11418 HAVE_GTK_AND_PTHREAD=no
11420 for ac_header in pthread.h
11422 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 ac_res=`eval echo '${'$as_ac_Header'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431 echo "${ECHO_T}$ac_res" >&6; }
11433 # Is the header compilable?
11434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11443 #include <$ac_header>
11445 rm -f conftest.$ac_objext
11446 if { (ac_try="$ac_compile"
11447 case "(($ac_try" in
11448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11449 *) ac_try_echo
=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_compile") 2>conftest.er1
11454 grep -v '^ *+' conftest.er1
>conftest.err
11456 cat conftest.err
>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } && {
11459 test -z "$ac_c_werror_flag" ||
11460 test ! -s conftest.err
11461 } && test -s conftest.
$ac_objext; then
11462 ac_header_compiler
=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.
$ac_ext >&5
11467 ac_header_compiler
=no
11470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472 echo "${ECHO_T}$ac_header_compiler" >&6; }
11474 # Is the header present?
11475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11477 cat >conftest.
$ac_ext <<_ACEOF
11480 cat confdefs.h
>>conftest.
$ac_ext
11481 cat >>conftest.
$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 #include <$ac_header>
11485 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11486 case "(($ac_try" in
11487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } >/dev/null && {
11498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11501 ac_header_preproc=yes
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_header_preproc=no
11509 rm -f conftest.err conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511 echo "${ECHO_T}$ac_header_preproc" >&6; }
11513 # So? What about this header?
11514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520 ac_header_preproc=yes
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 eval "$as_ac_Header=\$ac_header_preproc"
11545 ac_res=`eval echo '${'$as_ac_Header'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11559 if test "$ac_cv_header_pthread_h"; then
11560 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11561 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11562 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-lpthread $LIBS"
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11580 char pthread_self ();
11584 return pthread_self ();
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (ac_try="$ac_link"
11591 case "(($ac_try" in
11592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11593 *) ac_try_echo
=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_link") 2>conftest.er1
11598 grep -v '^ *+' conftest.er1
>conftest.err
11600 cat conftest.err
>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest
$ac_exeext &&
11606 $as_test_x conftest
$ac_exeext; then
11607 ac_cv_lib_pthread_pthread_self
=yes
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.
$ac_ext >&5
11612 ac_cv_lib_pthread_pthread_self
=no
11615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11616 conftest
$ac_exeext conftest.
$ac_ext
11617 LIBS
=$ac_check_lib_save_LIBS
11619 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11620 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11621 if test $ac_cv_lib_pthread_pthread_self = yes; then
11622 HAVE_GTK_AND_PTHREAD
=yes
11626 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11627 GTK_LIBS
="$GTK_LIBS -lpthread"
11629 cat >>confdefs.h
<<\_ACEOF
11630 #define HAVE_GTK_AND_PTHREAD 1
11637 ### Link with -lXft if available to work around a bug.
11639 if test "${HAVE_GTK}" = "yes"; then
11640 if test "X${with_pkg_config_prog}" != X
; then
11641 PKG_CONFIG
="${with_pkg_config_prog}"
11647 if test -z "$PKG_CONFIG"; then
11648 # Extract the first word of "pkg-config", so it can be a program name with args.
11649 set dummy pkg-config
; ac_word
=$2
11650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11652 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 case $PKG_CONFIG in
11657 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11661 for as_dir
in $PATH
11664 test -z "$as_dir" && as_dir
=.
11665 for ac_exec_ext
in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11679 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11680 if test -n "$PKG_CONFIG"; then
11681 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11682 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11684 { echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6; }
11691 if test "$PKG_CONFIG" = "no" ; then
11694 PKG_CONFIG_MIN_VERSION
=0.9.0
11695 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11696 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11697 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11699 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11700 { echo "$as_me:$LINENO: result: yes" >&5
11701 echo "${ECHO_T}yes" >&6; }
11704 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11705 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11706 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11707 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11708 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11710 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11711 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11712 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11713 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11714 echo "${ECHO_T}$XFT_LIBS" >&6; }
11716 { echo "$as_me:$LINENO: result: no" >&5
11717 echo "${ECHO_T}no" >&6; }
11720 ## If we have a custom action on failure, don't print errors, but
11721 ## do set a variable so people can do so.
11722 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11729 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11730 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11734 if test $succeeded = yes; then
11740 if test "$HAVE_XFT" != no
; then
11741 OLD_CFLAGS
="$CPPFLAGS"
11742 OLD_CFLAGS
="$CFLAGS"
11744 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11745 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11746 LIBS
="$XFT_LIBS $LIBS"
11747 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11748 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11749 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11754 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11756 # Is the header compilable?
11757 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11758 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11759 cat >conftest.
$ac_ext <<_ACEOF
11762 cat confdefs.h
>>conftest.
$ac_ext
11763 cat >>conftest.
$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11766 #include <X11/Xft/Xft.h>
11768 rm -f conftest.
$ac_objext
11769 if { (ac_try
="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_header_compiler=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11799 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <X11/Xft/Xft.h>
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11811 *) ac_try_echo
=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1
>conftest.err
11818 cat conftest.err
>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev
/null
&& {
11821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11824 ac_header_preproc
=yes
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11829 ac_header_preproc
=no
11832 rm -f conftest.err conftest.
$ac_ext
11833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6; }
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc
=yes
11846 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11861 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11862 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11863 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11868 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11869 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11872 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11873 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11874 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11875 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_check_lib_save_LIBS
=$LIBS
11879 LIBS
="-lXft $XFT_LIBS $LIBS"
11880 cat >conftest.
$ac_ext <<_ACEOF
11883 cat confdefs.h
>>conftest.
$ac_ext
11884 cat >>conftest.
$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11893 char XftFontOpen ();
11897 return XftFontOpen ();
11902 rm -f conftest.
$ac_objext conftest
$ac_exeext
11903 if { (ac_try
="$ac_link"
11904 case "(($ac_try" in
11905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest$ac_exeext &&
11919 $as_test_x conftest$ac_exeext; then
11920 ac_cv_lib_Xft_XftFontOpen=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_cv_lib_Xft_XftFontOpen=no
11928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11932 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11933 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11934 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11942 if test "${HAVE_XFT}" = "yes"; then
11944 cat >>confdefs.h <<\_ACEOF
11949 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11951 CFLAGS="$OLD_CPPFLAGS"
11952 CFLAGS="$OLD_CFLAGS"
11958 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11959 if test x"${HAVE_X11R5}" = xyes; then
11960 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11961 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11962 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 #include <X11/Intrinsic.h>
11973 #include <X11/Xaw/Simple.h>
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11986 *) ac_try_echo
=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1
>conftest.err
11993 cat conftest.err
>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest
$ac_exeext &&
11999 $as_test_x conftest
$ac_exeext; then
12000 emacs_cv_x11_version_5_with_xaw
=yes
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.
$ac_ext >&5
12005 emacs_cv_x11_version_5_with_xaw
=no
12008 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12009 conftest
$ac_exeext conftest.
$ac_ext
12012 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12013 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12014 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12015 USE_X_TOOLKIT
=LUCID
12017 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12018 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12026 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12028 if test "${USE_X_TOOLKIT}" != "none"; then
12029 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12030 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12031 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 cat >conftest.
$ac_ext <<_ACEOF
12037 cat confdefs.h
>>conftest.
$ac_ext
12038 cat >>conftest.
$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <X11/Intrinsic.h>
12044 #if XtSpecificationRelease < 6
12052 rm -f conftest.
$ac_objext conftest
$ac_exeext
12053 if { (ac_try
="$ac_link"
12054 case "(($ac_try" in
12055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest$ac_exeext &&
12069 $as_test_x conftest$ac_exeext; then
12070 emacs_cv_x11_toolkit_version_6=yes
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 emacs_cv_x11_toolkit_version_6=no
12078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12079 conftest$ac_exeext conftest.$ac_ext
12082 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12083 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12084 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12085 echo "${ECHO_T}6 or newer" >&6; }
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_X11XTR6 1
12092 { echo "$as_me:$LINENO: result: before 6" >&5
12093 echo "${ECHO_T}before 6" >&6; }
12097 if test x$HAVE_X11XTR6 = xyes; then
12098 LIBS="-lXt -lSM -lICE $LIBS"
12103 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12104 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12105 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 ac_check_lib_save_LIBS=$LIBS
12110 cat >conftest.$ac_ext <<_ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12123 char XmuConvertStandardSelection ();
12127 return XmuConvertStandardSelection ();
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12136 *) ac_try_echo
=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1
>conftest.err
12143 cat conftest.err
>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } && {
12146 test -z "$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 } && test -s conftest
$ac_exeext &&
12149 $as_test_x conftest
$ac_exeext; then
12150 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.
$ac_ext >&5
12155 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12159 conftest
$ac_exeext conftest.
$ac_ext
12160 LIBS
=$ac_check_lib_save_LIBS
12162 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12163 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12164 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12165 cat >>confdefs.h
<<_ACEOF
12166 #define HAVE_LIBXMU 1
12173 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12176 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12177 if test "${HAVE_X11}" = "yes"; then
12178 if test "${USE_X_TOOLKIT}" != "none"; then
12180 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12181 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12182 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 ac_check_lib_save_LIBS
=$LIBS
12186 LIBS
="-lXext $LIBS"
12187 cat >conftest.
$ac_ext <<_ACEOF
12190 cat confdefs.h
>>conftest.
$ac_ext
12191 cat >>conftest.
$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12200 char XShapeQueryExtension ();
12204 return XShapeQueryExtension ();
12209 rm -f conftest.
$ac_objext conftest
$ac_exeext
12210 if { (ac_try
="$ac_link"
12211 case "(($ac_try" in
12212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest$ac_exeext &&
12226 $as_test_x conftest$ac_exeext; then
12227 ac_cv_lib_Xext_XShapeQueryExtension=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_lib_Xext_XShapeQueryExtension=no
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12240 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12241 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBXEXT 1
12246 LIBS="-lXext $LIBS"
12253 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12254 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12255 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12256 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 cat >conftest.$ac_ext <<_ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12269 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12272 Motif version prior to 2.1.
12278 rm -f conftest.$ac_objext
12279 if { (ac_try="$ac_compile"
12280 case "(($ac_try" in
12281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12282 *) ac_try_echo
=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12287 grep -v '^ *+' conftest.er1
>conftest.err
12289 cat conftest.err
>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.
$ac_objext; then
12295 emacs_cv_motif_version_2_1
=yes
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.
$ac_ext >&5
12300 emacs_cv_motif_version_2_1
=no
12303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12305 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12306 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12307 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12308 if test $emacs_cv_motif_version_2_1 = yes; then
12311 cat >>confdefs.h
<<\_ACEOF
12312 #define HAVE_MOTIF_2_1 1
12315 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12316 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12317 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 ac_check_lib_save_LIBS
=$LIBS
12322 cat >conftest.
$ac_ext <<_ACEOF
12325 cat confdefs.h
>>conftest.
$ac_ext
12326 cat >>conftest.
$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12335 char XpCreateContext ();
12339 return XpCreateContext ();
12344 rm -f conftest.
$ac_objext conftest
$ac_exeext
12345 if { (ac_try
="$ac_link"
12346 case "(($ac_try" in
12347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest$ac_exeext &&
12361 $as_test_x conftest$ac_exeext; then
12362 ac_cv_lib_Xp_XpCreateContext=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_lib_Xp_XpCreateContext=no
12370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12374 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12375 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12376 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12380 if test ${HAVE_LIBXP} = yes; then
12382 cat >>confdefs.h <<\_ACEOF
12383 #define HAVE_LIBXP 1
12388 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12389 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12390 if test "${emacs_cv_lesstif+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 # We put this in CFLAGS temporarily to precede other -I options
12394 # that might be in CFLAGS temporarily.
12395 # We put this in CPPFLAGS where it precedes the other -I options.
12396 OLD_CPPFLAGS=$CPPFLAGS
12398 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12399 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12415 rm -f conftest.$ac_objext
12416 if { (ac_try="$ac_compile"
12417 case "(($ac_try" in
12418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12419 *) ac_try_echo
=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_compile") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1
>conftest.err
12426 cat conftest.err
>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest.
$ac_objext; then
12432 emacs_cv_lesstif
=yes
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.
$ac_ext >&5
12437 emacs_cv_lesstif
=no
12440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12442 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12443 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12444 if test $emacs_cv_lesstif = yes; then
12445 # Make sure this -I option remains in CPPFLAGS after it is set
12446 # back to REAL_CPPFLAGS.
12447 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12448 # have those other -I options anyway. Ultimately, having this
12449 # directory ultimately in CPPFLAGS will be enough.
12450 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12451 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12454 CPPFLAGS
=$OLD_CPPFLAGS
12459 ### Is -lXaw3d available?
12461 if test "${HAVE_X11}" = "yes"; then
12462 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12463 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12464 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12465 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 cat >conftest.
$ac_ext <<_ACEOF
12471 cat confdefs.h
>>conftest.
$ac_ext
12472 cat >>conftest.
$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 #include <X11/Xaw3d/Scrollbar.h>
12476 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12477 case "(($ac_try" in
12478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12484 grep -v '^ *+' conftest.er1 >conftest.err
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } >/dev/null && {
12489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12490 test ! -s conftest.err
12492 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12500 rm -f conftest.err conftest.$ac_ext
12502 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12503 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12504 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12505 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12506 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12507 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lXaw3d $LIBS"
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12525 char XawScrollbarSetThumb ();
12529 return XawScrollbarSetThumb ();
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12538 *) ac_try_echo
=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1
>conftest.err
12545 cat conftest.err
>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest
$ac_exeext &&
12551 $as_test_x conftest
$ac_exeext; then
12552 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12557 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12561 conftest
$ac_exeext conftest.
$ac_ext
12562 LIBS
=$ac_check_lib_save_LIBS
12564 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12565 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12566 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12573 if test "${HAVE_XAW3D}" = "yes"; then
12575 cat >>confdefs.h
<<\_ACEOF
12576 #define HAVE_XAW3D 1
12585 USE_TOOLKIT_SCROLL_BARS
=no
12586 if test "${with_toolkit_scroll_bars}" != "no"; then
12587 if test "${USE_X_TOOLKIT}" != "none"; then
12588 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12589 cat >>confdefs.h
<<\_ACEOF
12590 #define USE_TOOLKIT_SCROLL_BARS 1
12594 USE_TOOLKIT_SCROLL_BARS
=yes
12595 elif test "${HAVE_XAW3D}" = "yes"; then
12596 cat >>confdefs.h
<<\_ACEOF
12597 #define USE_TOOLKIT_SCROLL_BARS 1
12600 USE_TOOLKIT_SCROLL_BARS
=yes
12602 elif test "${HAVE_GTK}" = "yes"; then
12603 cat >>confdefs.h
<<\_ACEOF
12604 #define USE_TOOLKIT_SCROLL_BARS 1
12607 USE_TOOLKIT_SCROLL_BARS
=yes
12608 elif test "${HAVE_CARBON}" = "yes"; then
12609 cat >>confdefs.h
<<\_ACEOF
12610 #define USE_TOOLKIT_SCROLL_BARS 1
12613 USE_TOOLKIT_SCROLL_BARS
=yes
12617 cat >conftest.
$ac_ext <<_ACEOF
12620 cat confdefs.h
>>conftest.
$ac_ext
12621 cat >>conftest.
$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 #include <X11/Xlib.h>
12625 #include <X11/Xresource.h>
12634 rm -f conftest.
$ac_objext
12635 if { (ac_try
="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12653 cat >>confdefs.h <<\_ACEOF
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 if test "${with_xim}" != "no"; then
12669 cat >>confdefs.h <<\_ACEOF
12676 if test "${HAVE_XIM}" != "no"; then
12677 late_CFLAGS=$CFLAGS
12678 if test "$GCC" = yes; then
12679 CFLAGS="$CFLAGS --pedantic-errors"
12681 cat >conftest.$ac_ext <<_ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12688 #include <X11/Xlib.h>
12689 #include <X11/Xresource.h>
12698 XPointer *client_data;
12700 /* If we're not using GCC, it's probably not XFree86, and this is
12701 probably right, but we can't use something like --pedantic-errors. */
12702 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12703 char*, XIMProc, XPointer*);
12705 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12711 rm -f conftest.$ac_objext
12712 if { (ac_try="$ac_compile"
12713 case "(($ac_try" in
12714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12715 *) ac_try_echo
=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1
>conftest.err
12722 cat conftest.err
>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.
$ac_objext; then
12728 emacs_cv_arg6_star
=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.
$ac_ext >&5
12736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12738 if test "$emacs_cv_arg6_star" = yes; then
12739 cat >>confdefs.h
<<\_ACEOF
12740 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12744 cat >>confdefs.h
<<\_ACEOF
12745 #define XRegisterIMInstantiateCallback_arg6 XPointer
12749 CFLAGS
=$late_CFLAGS
12752 ### Use -lXpm if available, unless `--with-xpm=no'.
12754 if test "${HAVE_X11}" = "yes"; then
12755 if test "${with_xpm}" != "no"; then
12756 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12757 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12758 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12759 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12763 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12765 # Is the header compilable?
12766 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12767 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12768 cat >conftest.
$ac_ext <<_ACEOF
12771 cat confdefs.h
>>conftest.
$ac_ext
12772 cat >>conftest.
$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12775 #include <X11/xpm.h>
12777 rm -f conftest.
$ac_objext
12778 if { (ac_try
="$ac_compile"
12779 case "(($ac_try" in
12780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12794 ac_header_compiler=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_header_compiler=no
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12804 echo "${ECHO_T}$ac_header_compiler" >&6; }
12806 # Is the header present?
12807 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12808 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12809 cat >conftest.$ac_ext <<_ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 #include <X11/xpm.h>
12817 if { (ac_try="$ac_cpp conftest.$ac_ext"
12818 case "(($ac_try" in
12819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12820 *) ac_try_echo
=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12825 grep -v '^ *+' conftest.er1
>conftest.err
12827 cat conftest.err
>&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } >/dev
/null
&& {
12830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12833 ac_header_preproc
=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.
$ac_ext >&5
12838 ac_header_preproc
=no
12841 rm -f conftest.err conftest.
$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12843 echo "${ECHO_T}$ac_header_preproc" >&6; }
12845 # So? What about this header?
12846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12848 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12849 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12851 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12852 ac_header_preproc
=yes
12855 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12856 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12858 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12860 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12862 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12864 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12866 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12870 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12871 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12872 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12877 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12878 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12881 if test $ac_cv_header_X11_xpm_h = yes; then
12882 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12883 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12884 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 ac_check_lib_save_LIBS
=$LIBS
12888 LIBS
="-lXpm -lX11 $LIBS"
12889 cat >conftest.
$ac_ext <<_ACEOF
12892 cat confdefs.h
>>conftest.
$ac_ext
12893 cat >>conftest.
$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12902 char XpmReadFileToPixmap ();
12906 return XpmReadFileToPixmap ();
12911 rm -f conftest.
$ac_objext conftest
$ac_exeext
12912 if { (ac_try
="$ac_link"
12913 case "(($ac_try" in
12914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_link") 2>conftest.er1
12920 grep -v '^ *+' conftest.er1 >conftest.err
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext &&
12928 $as_test_x conftest$ac_exeext; then
12929 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12941 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12942 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12943 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12950 if test "${HAVE_XPM}" = "yes"; then
12951 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12952 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include "X11/xpm.h"
12960 #ifndef XpmReturnAllocPixels
12961 no_return_alloc_pixels
12965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12966 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12974 if test "${HAVE_XPM}" = "yes"; then
12975 { echo "$as_me:$LINENO: result: yes" >&5
12976 echo "${ECHO_T}yes" >&6; }
12978 { echo "$as_me:$LINENO: result: no" >&5
12979 echo "${ECHO_T}no" >&6; }
12984 if test "${HAVE_XPM}" = "yes"; then
12986 cat >>confdefs.h <<\_ACEOF
12993 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
12995 if test "${HAVE_X11}" = "yes"; then
12996 if test "${with_jpeg}" != "no"; then
12997 if test "${ac_cv_header_jerror_h+set}" = set; then
12998 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12999 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13000 if test "${ac_cv_header_jerror_h+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13004 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13006 # Is the header compilable?
13007 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13008 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13009 cat >conftest.$ac_ext <<_ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 $ac_includes_default
13016 #include <jerror.h>
13018 rm -f conftest.$ac_objext
13019 if { (ac_try="$ac_compile"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_compile") 2>conftest.er1
13027 grep -v '^
*+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest.$ac_objext; then
13035 ac_header_compiler=yes
13037 echo "$as_me: failed program was:" >&5
13038 sed 's
/^
/|
/' conftest.$ac_ext >&5
13040 ac_header_compiler=no
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13045 echo "${ECHO_T}$ac_header_compiler" >&6; }
13047 # Is the header present?
13048 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13049 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13050 cat >conftest.$ac_ext <<_ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 #include <jerror.h>
13058 if { (ac_try="$ac_cpp conftest.$ac_ext"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13066 grep -v '^
*+' conftest.er1 >conftest.err
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } >/dev/null && {
13071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13074 ac_header_preproc=yes
13076 echo "$as_me: failed program was:" >&5
13077 sed 's
/^
/|
/' conftest.$ac_ext >&5
13079 ac_header_preproc=no
13082 rm -f conftest.err conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13084 echo "${ECHO_T}$ac_header_preproc" >&6; }
13086 # So? What about this header?
13087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13089 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13090 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13092 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13093 ac_header_preproc=yes
13096 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13097 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13099 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13101 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13103 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13105 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13107 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13111 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13112 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13113 if test "${ac_cv_header_jerror_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 ac_cv_header_jerror_h=$ac_header_preproc
13118 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13119 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13122 if test $ac_cv_header_jerror_h = yes; then
13123 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13124 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13125 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-ljpeg $LIBS"
13130 cat >conftest.$ac_ext <<_ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13143 char jpeg_destroy_compress ();
13147 return jpeg_destroy_compress ();
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13161 grep -v '^
*+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest$ac_exeext &&
13169 $as_test_x conftest$ac_exeext; then
13170 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13172 echo "$as_me: failed program was:" >&5
13173 sed 's
/^
/|
/' conftest.$ac_ext >&5
13175 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13183 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13184 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13194 if test "${HAVE_JPEG}" = "yes"; then
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_JPEG 1
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <jpeglib.h>
13206 version=JPEG_LIB_VERSION
13209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_JPEG 1
13216 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13217 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13225 ### Use -lpng if available, unless `--with-png=no'.
13227 if test "${HAVE_X11}" = "yes"; then
13228 if test "${with_png}" != "no"; then
13229 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13230 # in /usr/include/libpng.
13233 for ac_header
in png.h libpng
/png.h
13235 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13239 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 ac_res
=`eval echo '${'$as_ac_Header'}'`
13243 { echo "$as_me:$LINENO: result: $ac_res" >&5
13244 echo "${ECHO_T}$ac_res" >&6; }
13246 # Is the header compilable?
13247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13249 cat >conftest.
$ac_ext <<_ACEOF
13252 cat confdefs.h
>>conftest.
$ac_ext
13253 cat >>conftest.
$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 $ac_includes_default
13256 #include <$ac_header>
13258 rm -f conftest.
$ac_objext
13259 if { (ac_try
="$ac_compile"
13260 case "(($ac_try" in
13261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_compile") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest.$ac_objext; then
13275 ac_header_compiler=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_header_compiler=no
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13285 echo "${ECHO_T}$ac_header_compiler" >&6; }
13287 # Is the header present?
13288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296 #include <$ac_header>
13298 if { (ac_try="$ac_cpp conftest.$ac_ext"
13299 case "(($ac_try" in
13300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13301 *) ac_try_echo
=$ac_try;;
13303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13306 grep -v '^ *+' conftest.er1
>conftest.err
13308 cat conftest.err
>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } >/dev
/null
&& {
13311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13314 ac_header_preproc
=yes
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.
$ac_ext >&5
13319 ac_header_preproc
=no
13322 rm -f conftest.err conftest.
$ac_ext
13323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6; }
13326 # So? What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333 ac_header_preproc
=yes
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13353 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 eval "$as_ac_Header=\$ac_header_preproc"
13358 ac_res
=`eval echo '${'$as_ac_Header'}'`
13359 { echo "$as_me:$LINENO: result: $ac_res" >&5
13360 echo "${ECHO_T}$ac_res" >&6; }
13363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13364 cat >>confdefs.h
<<_ACEOF
13365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13373 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13374 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13375 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 ac_check_lib_save_LIBS
=$LIBS
13379 LIBS
="-lpng -lz -lm $LIBS"
13380 cat >conftest.
$ac_ext <<_ACEOF
13383 cat confdefs.h
>>conftest.
$ac_ext
13384 cat >>conftest.
$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13387 /* Override any GCC internal prototype to avoid an error.
13388 Use char because int might match the return type of a GCC
13389 builtin and then its argument prototype would still apply. */
13393 char png_get_channels ();
13397 return png_get_channels ();
13402 rm -f conftest.
$ac_objext conftest
$ac_exeext
13403 if { (ac_try
="$ac_link"
13404 case "(($ac_try" in
13405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_link") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && {
13416 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest$ac_exeext &&
13419 $as_test_x conftest$ac_exeext; then
13420 ac_cv_lib_png_png_get_channels=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_cv_lib_png_png_get_channels=no
13428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13429 conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13432 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13433 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13434 if test $ac_cv_lib_png_png_get_channels = yes; then
13441 if test "${HAVE_PNG}" = "yes"; then
13443 cat >>confdefs.h <<\_ACEOF
13450 ### Use -ltiff if available, unless `--with-tiff=no
'.
13452 if test "${HAVE_X11}" = "yes"; then
13453 if test "${with_tiff}" != "no"; then
13454 if test "${ac_cv_header_tiffio_h+set}" = set; then
13455 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13456 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13457 if test "${ac_cv_header_tiffio_h+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13461 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13463 # Is the header compilable?
13464 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13465 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 $ac_includes_default
13473 #include <tiffio.h>
13475 rm -f conftest.$ac_objext
13476 if { (ac_try="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13484 grep -v '^
*+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13492 ac_header_compiler=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's
/^
/|
/' conftest.$ac_ext >&5
13497 ac_header_compiler=no
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13502 echo "${ECHO_T}$ac_header_compiler" >&6; }
13504 # Is the header present?
13505 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13506 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include <tiffio.h>
13515 if { (ac_try="$ac_cpp conftest.$ac_ext"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13523 grep -v '^
*+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null && {
13528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13531 ac_header_preproc=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's
/^
/|
/' conftest.$ac_ext >&5
13536 ac_header_preproc=no
13539 rm -f conftest.err conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13541 echo "${ECHO_T}$ac_header_preproc" >&6; }
13543 # So? What about this header?
13544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13546 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13547 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13549 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13550 ac_header_preproc=yes
13553 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13554 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13556 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13558 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13560 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13562 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13564 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13568 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13569 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13570 if test "${ac_cv_header_tiffio_h+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 ac_cv_header_tiffio_h=$ac_header_preproc
13575 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13576 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13579 if test $ac_cv_header_tiffio_h = yes; then
13581 # At least one tiff package requires the jpeg library.
13582 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13583 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13584 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-ltiff $tifflibs $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13603 char TIFFGetVersion ();
13607 return TIFFGetVersion ();
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
13621 grep -v '^
*+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest$ac_exeext &&
13629 $as_test_x conftest$ac_exeext; then
13630 ac_cv_lib_tiff_TIFFGetVersion=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's
/^
/|
/' conftest.$ac_ext >&5
13635 ac_cv_lib_tiff_TIFFGetVersion=no
13638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LIBS=$ac_check_lib_save_LIBS
13642 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13643 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13644 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13653 if test "${HAVE_TIFF}" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_TIFF 1
13662 ### Use -lgif if available, unless `--with-gif=no'.
13664 if test "${HAVE_X11}" = "yes"; then
13665 if test "${with_gif}" != "no"; then
13666 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13667 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13668 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13669 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13673 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13675 # Is the header compilable?
13676 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13677 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13678 cat >conftest.
$ac_ext <<_ACEOF
13681 cat confdefs.h
>>conftest.
$ac_ext
13682 cat >>conftest.
$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 #include <gif_lib.h>
13687 rm -f conftest.
$ac_objext
13688 if { (ac_try
="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 ac_header_compiler=yes
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 ac_header_compiler=no
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13714 echo "${ECHO_T}$ac_header_compiler" >&6; }
13716 # Is the header present?
13717 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13718 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 #include <gif_lib.h>
13727 if { (ac_try="$ac_cpp conftest.$ac_ext"
13728 case "(($ac_try" in
13729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13730 *) ac_try_echo
=$ac_try;;
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13735 grep -v '^ *+' conftest.er1
>conftest.err
13737 cat conftest.err
>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } >/dev
/null
&& {
13740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13743 ac_header_preproc
=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.
$ac_ext >&5
13748 ac_header_preproc
=no
13751 rm -f conftest.err conftest.
$ac_ext
13752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753 echo "${ECHO_T}$ac_header_preproc" >&6; }
13755 # So? What about this header?
13756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13758 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13759 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13761 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13762 ac_header_preproc
=yes
13765 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13766 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13768 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13770 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13772 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13774 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13776 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13780 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13781 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13782 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_cv_header_gif_lib_h
=$ac_header_preproc
13787 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13788 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13791 if test $ac_cv_header_gif_lib_h = yes; then
13792 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13793 # Earlier versions can crash Emacs.
13794 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13795 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13796 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 ac_check_lib_save_LIBS
=$LIBS
13800 LIBS
="-lungif $LIBS"
13801 cat >conftest.
$ac_ext <<_ACEOF
13804 cat confdefs.h
>>conftest.
$ac_ext
13805 cat >>conftest.
$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13814 char EGifPutExtensionLast ();
13818 return EGifPutExtensionLast ();
13823 rm -f conftest.
$ac_objext conftest
$ac_exeext
13824 if { (ac_try
="$ac_link"
13825 case "(($ac_try" in
13826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_link") 2>conftest.er1
13832 grep -v '^ *+' conftest.er1 >conftest.err
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && {
13837 test -z "$ac_c_werror_flag" ||
13838 test ! -s conftest.err
13839 } && test -s conftest$ac_exeext &&
13840 $as_test_x conftest$ac_exeext; then
13841 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ac_cv_lib_ungif_EGifPutExtensionLast=no
13849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13853 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13854 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13855 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13864 if test "${HAVE_GIF}" = "yes"; then
13866 cat >>confdefs.h <<\_ACEOF
13873 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13874 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13875 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13876 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13880 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13882 # Is the header compilable?
13883 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13884 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 $ac_includes_default
13892 #include <malloc/malloc.h>
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
13896 case "(($ac_try" in
13897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13898 *) ac_try_echo
=$ac_try;;
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_compile") 2>conftest.er1
13903 grep -v '^ *+' conftest.er1
>conftest.err
13905 cat conftest.err
>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && {
13908 test -z "$ac_c_werror_flag" ||
13909 test ! -s conftest.err
13910 } && test -s conftest.
$ac_objext; then
13911 ac_header_compiler
=yes
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.
$ac_ext >&5
13916 ac_header_compiler
=no
13919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13921 echo "${ECHO_T}$ac_header_compiler" >&6; }
13923 # Is the header present?
13924 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13925 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13926 cat >conftest.
$ac_ext <<_ACEOF
13929 cat confdefs.h
>>conftest.
$ac_ext
13930 cat >>conftest.
$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 #include <malloc/malloc.h>
13934 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13935 case "(($ac_try" in
13936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } >/dev/null && {
13947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13950 ac_header_preproc=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_header_preproc=no
13958 rm -f conftest.err conftest.$ac_ext
13959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13960 echo "${ECHO_T}$ac_header_preproc" >&6; }
13962 # So? What about this header?
13963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13965 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13966 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13968 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13969 ac_header_preproc=yes
13972 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13973 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13975 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13977 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13979 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13981 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13983 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13987 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13988 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13989 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13994 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13995 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13998 if test $ac_cv_header_malloc_malloc_h = yes; then
14000 cat >>confdefs.h <<\_ACEOF
14001 #define HAVE_MALLOC_MALLOC_H 1
14008 ### Use Mac OS X Carbon API to implement GUI.
14009 if test "${HAVE_CARBON}" = "yes"; then
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_CARBON 1
14015 ## Specify the install directory
14017 if test "${carbon_appdir_x}" != ""; then
14018 case ${carbon_appdir_x} in
14019 y | ye | yes) carbon_appdir=/Applications ;;
14020 * ) carbon_appdir=${carbon_appdir_x} ;;
14023 # We also have mouse menus.
14027 ### Use session management (-lSM -lICE) if available
14029 if test "${HAVE_X11}" = "yes"; then
14030 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14031 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14032 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14037 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14039 # Is the header compilable?
14040 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14041 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 $ac_includes_default
14049 #include <X11/SM/SMlib.h>
14051 rm -f conftest.$ac_objext
14052 if { (ac_try="$ac_compile"
14053 case "(($ac_try" in
14054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14055 *) ac_try_echo
=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_compile") 2>conftest.er1
14060 grep -v '^ *+' conftest.er1
>conftest.err
14062 cat conftest.err
>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest.
$ac_objext; then
14068 ac_header_compiler
=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.
$ac_ext >&5
14073 ac_header_compiler
=no
14076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14078 echo "${ECHO_T}$ac_header_compiler" >&6; }
14080 # Is the header present?
14081 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14082 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14083 cat >conftest.
$ac_ext <<_ACEOF
14086 cat confdefs.h
>>conftest.
$ac_ext
14087 cat >>conftest.
$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #include <X11/SM/SMlib.h>
14091 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14092 case "(($ac_try" in
14093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } >/dev/null && {
14104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14107 ac_header_preproc=yes
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_header_preproc=no
14115 rm -f conftest.err conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6; }
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14122 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14126 ac_header_preproc=yes
14129 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14144 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14145 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14146 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14151 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14152 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14155 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14156 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14157 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lSM -lICE $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14176 char SmcOpenConnection ();
14180 return SmcOpenConnection ();
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14189 *) ac_try_echo
=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14194 grep -v '^ *+' conftest.er1
>conftest.err
14196 cat conftest.err
>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && {
14199 test -z "$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 } && test -s conftest
$ac_exeext &&
14202 $as_test_x conftest
$ac_exeext; then
14203 ac_cv_lib_SM_SmcOpenConnection
=yes
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.
$ac_ext >&5
14208 ac_cv_lib_SM_SmcOpenConnection
=no
14211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14212 conftest
$ac_exeext conftest.
$ac_ext
14213 LIBS
=$ac_check_lib_save_LIBS
14215 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14216 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14217 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14225 if test "${HAVE_X_SM}" = "yes"; then
14227 cat >>confdefs.h
<<\_ACEOF
14228 #define HAVE_X_SM 1
14233 *) LIBS
="-lSM -lICE $LIBS" ;;
14238 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14239 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14240 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14241 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.
$ac_ext <<_ACEOF
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14259 rm -f conftest.
$ac_objext conftest
$ac_exeext
14260 if { (ac_try
="$ac_link"
14261 case "(($ac_try" in
14262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest$ac_exeext &&
14276 $as_test_x conftest$ac_exeext; then
14277 emacs_cv_netdb_declares_h_errno=yes
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 emacs_cv_netdb_declares_h_errno=no
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14288 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14289 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14290 if test $emacs_cv_netdb_declares_h_errno = yes; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_H_ERRNO 1
14298 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14299 # for constant arguments. Useless!
14300 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14301 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14302 if test "${ac_cv_working_alloca_h+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <alloca.h>
14315 char *p = (char *) alloca (2 * sizeof (int));
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14325 *) ac_try_echo
=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14330 grep -v '^ *+' conftest.er1
>conftest.err
14332 cat conftest.err
>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest
$ac_exeext &&
14338 $as_test_x conftest
$ac_exeext; then
14339 ac_cv_working_alloca_h
=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.
$ac_ext >&5
14344 ac_cv_working_alloca_h
=no
14347 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14348 conftest
$ac_exeext conftest.
$ac_ext
14350 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14351 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14352 if test $ac_cv_working_alloca_h = yes; then
14354 cat >>confdefs.h
<<\_ACEOF
14355 #define HAVE_ALLOCA_H 1
14360 { echo "$as_me:$LINENO: checking for alloca" >&5
14361 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14362 if test "${ac_cv_func_alloca_works+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 cat >conftest.
$ac_ext <<_ACEOF
14368 cat confdefs.h
>>conftest.
$ac_ext
14369 cat >>conftest.
$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14372 # define alloca __builtin_alloca
14375 # include <malloc.h>
14376 # define alloca _alloca
14378 # ifdef HAVE_ALLOCA_H
14379 # include <alloca.h>
14384 # ifndef alloca /* predefined by HP cc +Olibcalls */
14395 char *p = (char *) alloca (1);
14401 rm -f conftest.
$ac_objext conftest
$ac_exeext
14402 if { (ac_try
="$ac_link"
14403 case "(($ac_try" in
14404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_link") 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && {
14415 test -z "$ac_c_werror_flag" ||
14416 test ! -s conftest.err
14417 } && test -s conftest$ac_exeext &&
14418 $as_test_x conftest$ac_exeext; then
14419 ac_cv_func_alloca_works=yes
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_func_alloca_works=no
14427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14428 conftest$ac_exeext conftest.$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14431 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14433 if test $ac_cv_func_alloca_works = yes; then
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_ALLOCA 1
14440 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14441 # that cause trouble. Some versions do not even contain alloca or
14442 # contain a buggy version. If you still want to use their alloca,
14443 # use ar to extract alloca.o from them instead of compiling alloca.c.
14445 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14447 cat >>confdefs.h <<\_ACEOF
14452 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14453 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14454 if test "${ac_cv_os_cray+set}" = set; then
14455 echo $ECHO_N "(cached
) $ECHO_C" >&6
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #if defined CRAY && ! defined CRAY2
14470 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14471 $EGREP "webecray
" >/dev/null 2>&1; then
14479 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14480 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14481 if test $ac_cv_os_cray = yes; then
14482 for ac_func in _getb67 GETB67 getb67; do
14483 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14484 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14485 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14486 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14487 echo $ECHO_N "(cached
) $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14497 #define $ac_func innocuous_$ac_func
14499 /* System header to define __stub macros and hopefully few prototypes,
14500 which can conflict with char $ac_func (); below.
14501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502 <limits.h> exists even on freestanding compilers. */
14505 # include <limits.h>
14507 # include <assert.h>
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14519 /* The GNU C library defines this for functions which it implements
14520 to always fail with ENOSYS. Some functions are actually named
14521 something starting with __ and the normal name is an alias. */
14522 #if defined __stub_$ac_func || defined __stub___$ac_func
14529 return $ac_func ();
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>conftest.er1
14543 grep -v '^ *+' conftest.er1 >conftest.err
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14547 (exit $ac_status); } && {
14548 test -z "$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14550 } && test -s conftest$ac_exeext &&
14551 $as_test_x conftest$ac_exeext; then
14552 eval "$as_ac_var=yes"
14554 echo "$as_me: failed program was
:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 eval "$as_ac_var=no
"
14560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14561 conftest$ac_exeext conftest.$ac_ext
14563 ac_res=`eval echo '${'$as_ac_var'}'`
14564 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14565 echo "${ECHO_T}$ac_res" >&6; }
14566 if test `eval echo '${'$as_ac_var'}'` = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569 #define CRAY_STACKSEG_END $ac_func
14578 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14579 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14580 if test "${ac_cv_c_stack_direction+set}" = set; then
14581 echo $ECHO_N "(cached
) $ECHO_C" >&6
14583 if test "$cross_compiling" = yes; then
14584 ac_cv_c_stack_direction=0
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14594 find_stack_direction ()
14596 static char *addr = 0;
14601 return find_stack_direction ();
14604 return (&dummy > addr) ? 1 : -1;
14610 return find_stack_direction () < 0;
14613 rm -f conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>&5
14622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_c_stack_direction=1
14635 echo "$as_me: program exited with status
$ac_status" >&5
14636 echo "$as_me: failed program was
:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ( exit $ac_status )
14640 ac_cv_c_stack_direction=-1
14642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14647 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14648 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14650 cat >>confdefs.h <<_ACEOF
14651 #define STACK_DIRECTION $ac_cv_c_stack_direction
14658 # fmod, logb, and frexp are found in -lm on most systems.
14659 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14661 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14662 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14663 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14664 echo $ECHO_N "(cached
) $ECHO_C" >&6
14666 ac_check_lib_save_LIBS=$LIBS
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14675 /* Override any GCC internal prototype to avoid an error.
14676 Use char because int might match the return type of a GCC
14677 builtin and then its argument prototype would still apply. */
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14708 ac_cv_lib_m_sqrt=yes
14710 echo "$as_me: failed program was
:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_lib_m_sqrt=no
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14718 LIBS=$ac_check_lib_save_LIBS
14720 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14721 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14722 if test $ac_cv_lib_m_sqrt = yes; then
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_LIBM 1
14732 # Check for mail-locking functions in a "mail" library. Probably this should
14733 # have the same check as for liblockfile below.
14735 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14736 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14737 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14738 echo $ECHO_N "(cached
) $ECHO_C" >&6
14740 ac_check_lib_save_LIBS=$LIBS
14741 LIBS="-lmail $LIBS"
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14759 return maillock ();
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest$ac_exeext &&
14781 $as_test_x conftest$ac_exeext; then
14782 ac_cv_lib_mail_maillock=yes
14784 echo "$as_me: failed program was
:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_cv_lib_mail_maillock=no
14790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791 conftest$ac_exeext conftest.$ac_ext
14792 LIBS=$ac_check_lib_save_LIBS
14794 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14795 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14796 if test $ac_cv_lib_mail_maillock = yes; then
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_LIBMAIL 1
14801 LIBS="-lmail $LIBS"
14806 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14807 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14808 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14809 echo $ECHO_N "(cached
) $ECHO_C" >&6
14811 ac_check_lib_save_LIBS=$LIBS
14812 LIBS="-llockfile $LIBS"
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14820 /* Override any GCC internal prototype to avoid an error.
14821 Use char because int might match the return type of a GCC
14822 builtin and then its argument prototype would still apply. */
14830 return maillock ();
14835 rm -f conftest.$ac_objext conftest$ac_exeext
14836 if { (ac_try="$ac_link"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_link") 2>conftest.er1
14844 grep -v '^ *+' conftest.er1 >conftest.err
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest$ac_exeext &&
14852 $as_test_x conftest$ac_exeext; then
14853 ac_cv_lib_lockfile_maillock=yes
14855 echo "$as_me: failed program was
:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_cv_lib_lockfile_maillock=no
14861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14862 conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14865 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14866 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14867 if test $ac_cv_lib_lockfile_maillock = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_LIBLOCKFILE 1
14872 LIBS="-llockfile $LIBS"
14876 # If we have the shared liblockfile, assume we must use it for mail
14877 # locking (e.g. Debian). If we couldn't link against liblockfile
14878 # (no liblockfile.a installed), ensure that we don't need to.
14879 if test "$ac_cv_lib_lockfile_maillock" = no; then
14880 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14881 set dummy liblockfile.so; ac_word=$2
14882 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14883 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14884 if test "${ac_cv_prog_liblockfile+set}" = set; then
14885 echo $ECHO_N "(cached
) $ECHO_C" >&6
14887 if test -n "$liblockfile"; then
14888 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14892 for as_dir in $as_dummy
14895 test -z "$as_dir" && as_dir=.
14896 for ac_exec_ext in '' $ac_executable_extensions; do
14897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14898 ac_cv_prog_liblockfile="yes"
14899 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14906 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14909 liblockfile=$ac_cv_prog_liblockfile
14910 if test -n "$liblockfile"; then
14911 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14912 echo "${ECHO_T}$liblockfile" >&6; }
14914 { echo "$as_me:$LINENO: result
: no
" >&5
14915 echo "${ECHO_T}no
" >&6; }
14919 if test $ac_cv_prog_liblockfile = yes; then
14920 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14921 This probably means that movemail could lose mail.
14922 There may be a \`development' package to
install containing liblockfile.
" >&5
14923 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14924 This probably means that movemail could lose mail.
14925 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14926 { (exit 1); exit 1; }; }
14931 for ac_func in touchlock
14933 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14934 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14935 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14936 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14937 echo $ECHO_N "(cached
) $ECHO_C" >&6
14939 cat >conftest.$ac_ext <<_ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14947 #define $ac_func innocuous_$ac_func
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func (); below.
14951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 <limits.h> exists even on freestanding compilers. */
14955 # include <limits.h>
14957 # include <assert.h>
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14969 /* The GNU C library defines this for functions which it implements
14970 to always fail with ENOSYS. Some functions are actually named
14971 something starting with __ and the normal name is an alias. */
14972 #if defined __stub_$ac_func || defined __stub___$ac_func
14979 return $ac_func ();
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (ac_try="$ac_link"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_link") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest$ac_exeext &&
15001 $as_test_x conftest$ac_exeext; then
15002 eval "$as_ac_var=yes"
15004 echo "$as_me: failed program was
:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 eval "$as_ac_var=no
"
15010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15011 conftest$ac_exeext conftest.$ac_ext
15013 ac_res=`eval echo '${'$as_ac_var'}'`
15014 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15015 echo "${ECHO_T}$ac_res" >&6; }
15016 if test `eval echo '${'$as_ac_var'}'` = yes; then
15017 cat >>confdefs.h <<_ACEOF
15018 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15025 for ac_header in maillock.h
15027 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15028 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15029 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15030 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15031 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15032 echo $ECHO_N "(cached
) $ECHO_C" >&6
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15040 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <$ac_header>
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15069 echo "$as_me: failed program was
:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15081 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <$ac_header>
15090 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15102 (exit $ac_status); } >/dev/null && {
15103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15106 ac_header_preproc=yes
15108 echo "$as_me: failed program was
:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_header_preproc=no
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15122 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15125 ac_header_preproc=yes
15128 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15129 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15130 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15131 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15132 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15133 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15134 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15135 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15138 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15139 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15143 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15144 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15146 echo $ECHO_N "(cached
) $ECHO_C" >&6
15148 eval "$as_ac_Header=\
$ac_header_preproc"
15150 ac_res=`eval echo '${'$as_ac_Header'}'`
15151 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15152 echo "${ECHO_T}$ac_res" >&6; }
15155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15156 cat >>confdefs.h <<_ACEOF
15157 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15234 for ac_func in gethostname getdomainname dup2 \
15235 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15236 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15237 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15238 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15239 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15240 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15241 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15242 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15244 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15245 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15246 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15247 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15248 echo $ECHO_N "(cached
) $ECHO_C" >&6
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15258 #define $ac_func innocuous_$ac_func
15260 /* System header to define __stub macros and hopefully few prototypes,
15261 which can conflict with char $ac_func (); below.
15262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15263 <limits.h> exists even on freestanding compilers. */
15266 # include <limits.h>
15268 # include <assert.h>
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15280 /* The GNU C library defines this for functions which it implements
15281 to always fail with ENOSYS. Some functions are actually named
15282 something starting with __ and the normal name is an alias. */
15283 #if defined __stub_$ac_func || defined __stub___$ac_func
15290 return $ac_func ();
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_link") 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15308 (exit $ac_status); } && {
15309 test -z "$ac_c_werror_flag" ||
15310 test ! -s conftest.err
15311 } && test -s conftest$ac_exeext &&
15312 $as_test_x conftest$ac_exeext; then
15313 eval "$as_ac_var=yes"
15315 echo "$as_me: failed program was
:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 eval "$as_ac_var=no
"
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322 conftest$ac_exeext conftest.$ac_ext
15324 ac_res=`eval echo '${'$as_ac_var'}'`
15325 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15326 echo "${ECHO_T}$ac_res" >&6; }
15327 if test `eval echo '${'$as_ac_var'}'` = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15337 for ac_header in sys/un.h
15339 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15340 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15341 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15342 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15344 echo $ECHO_N "(cached
) $ECHO_C" >&6
15346 ac_res=`eval echo '${'$as_ac_Header'}'`
15347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15348 echo "${ECHO_T}$ac_res" >&6; }
15350 # Is the header compilable?
15351 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15352 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 $ac_includes_default
15360 #include <$ac_header>
15362 rm -f conftest.$ac_objext
15363 if { (ac_try="$ac_compile"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_compile") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest.$ac_objext; then
15379 ac_header_compiler=yes
15381 echo "$as_me: failed program was
:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_header_compiler=no
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6; }
15391 # Is the header present?
15392 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15393 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <$ac_header>
15402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15410 grep -v '^ *+' conftest.er1 >conftest.err
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15414 (exit $ac_status); } >/dev/null && {
15415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15418 ac_header_preproc=yes
15420 echo "$as_me: failed program was
:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 ac_header_preproc=no
15426 rm -f conftest.err conftest.$ac_ext
15427 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15428 echo "${ECHO_T}$ac_header_preproc" >&6; }
15430 # So? What about this header?
15431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15433 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15434 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15435 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15437 ac_header_preproc=yes
15440 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15441 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15442 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15443 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15444 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15445 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15446 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15447 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15450 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15451 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15455 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15456 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached
) $ECHO_C" >&6
15460 eval "$as_ac_Header=\
$ac_header_preproc"
15462 ac_res=`eval echo '${'$as_ac_Header'}'`
15463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15464 echo "${ECHO_T}$ac_res" >&6; }
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468 cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15481 for ac_header in $ac_header_list
15483 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15484 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15485 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15486 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15487 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15488 echo $ECHO_N "(cached
) $ECHO_C" >&6
15490 ac_res=`eval echo '${'$as_ac_Header'}'`
15491 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15492 echo "${ECHO_T}$ac_res" >&6; }
15494 # Is the header compilable?
15495 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15496 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <$ac_header>
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_compile") 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest.$ac_objext; then
15523 ac_header_compiler=yes
15525 echo "$as_me: failed program was
:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_header_compiler=no
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15533 echo "${ECHO_T}$ac_header_compiler" >&6; }
15535 # Is the header present?
15536 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15537 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 #include <$ac_header>
15546 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15558 (exit $ac_status); } >/dev/null && {
15559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15562 ac_header_preproc=yes
15564 echo "$as_me: failed program was
:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_header_preproc=no
15570 rm -f conftest.err conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15572 echo "${ECHO_T}$ac_header_preproc" >&6; }
15574 # So? What about this header?
15575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15577 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15578 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15579 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15581 ac_header_preproc=yes
15584 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15585 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15586 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15587 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15588 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15589 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15590 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15591 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15592 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15594 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15595 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15599 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15600 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15601 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15602 echo $ECHO_N "(cached
) $ECHO_C" >&6
15604 eval "$as_ac_Header=\
$ac_header_preproc"
15606 ac_res=`eval echo '${'$as_ac_Header'}'`
15607 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15608 echo "${ECHO_T}$ac_res" >&6; }
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15628 for ac_func in $ac_func_list
15630 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15631 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15632 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15633 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15634 echo $ECHO_N "(cached
) $ECHO_C" >&6
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15644 #define $ac_func innocuous_$ac_func
15646 /* System header to define __stub macros and hopefully few prototypes,
15647 which can conflict with char $ac_func (); below.
15648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15649 <limits.h> exists even on freestanding compilers. */
15652 # include <limits.h>
15654 # include <assert.h>
15659 /* Override any GCC internal prototype to avoid an error.
15660 Use char because int might match the return type of a GCC
15661 builtin and then its argument prototype would still apply. */
15666 /* The GNU C library defines this for functions which it implements
15667 to always fail with ENOSYS. Some functions are actually named
15668 something starting with __ and the normal name is an alias. */
15669 #if defined __stub_$ac_func || defined __stub___$ac_func
15676 return $ac_func ();
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15694 (exit $ac_status); } && {
15695 test -z "$ac_c_werror_flag" ||
15696 test ! -s conftest.err
15697 } && test -s conftest$ac_exeext &&
15698 $as_test_x conftest$ac_exeext; then
15699 eval "$as_ac_var=yes"
15701 echo "$as_me: failed program was
:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 eval "$as_ac_var=no
"
15707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15708 conftest$ac_exeext conftest.$ac_ext
15710 ac_res=`eval echo '${'$as_ac_var'}'`
15711 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15712 echo "${ECHO_T}$ac_res" >&6; }
15713 if test `eval echo '${'$as_ac_var'}'` = yes; then
15714 cat >>confdefs.h <<_ACEOF
15715 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15737 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15738 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15739 if test "${ac_cv_func_working_mktime+set}" = set; then
15740 echo $ECHO_N "(cached
) $ECHO_C" >&6
15742 if test "$cross_compiling" = yes; then
15743 ac_cv_func_working_mktime=no
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 /* Test program from Paul Eggert and Tony Leneis. */
15752 #ifdef TIME_WITH_SYS_TIME
15753 # include <sys/time.h>
15756 # ifdef HAVE_SYS_TIME_H
15757 # include <sys/time.h>
15763 #include <stdlib.h>
15765 #ifdef HAVE_UNISTD_H
15766 # include <unistd.h>
15770 # define alarm(X) /* empty */
15773 /* Work around redefinition to rpl_putenv by other config tests. */
15776 static time_t time_t_max;
15777 static time_t time_t_min;
15779 /* Values we'll use to set the TZ environment variable. */
15780 static char *tz_strings[] = {
15781 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15782 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15784 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15786 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15787 Based on a problem report from Andreas Jaeger. */
15789 spring_forward_gap ()
15791 /* glibc (up to about 1998-10-07) failed this test. */
15794 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15795 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15796 on systems that don't support the Olson extension, or don't have the
15797 full zoneinfo tables installed. */
15798 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15807 return mktime (&tm) != (time_t) -1;
15815 return ! (lt = localtime (&now)) || mktime (lt) == now;
15822 return (mktime_test1 (now)
15823 && mktime_test1 ((time_t) (time_t_max - now))
15824 && mktime_test1 ((time_t) (time_t_min + now)));
15830 /* Based on code from Ariel Faigon. */
15840 return tm.tm_mon == 2 && tm.tm_mday == 31;
15849 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15850 now = mktime (&tm);
15851 if (now != (time_t) -1)
15853 struct tm *lt = localtime (&now);
15855 && lt->tm_year == tm.tm_year
15856 && lt->tm_mon == tm.tm_mon
15857 && lt->tm_mday == tm.tm_mday
15858 && lt->tm_hour == tm.tm_hour
15859 && lt->tm_min == tm.tm_min
15860 && lt->tm_sec == tm.tm_sec
15861 && lt->tm_yday == tm.tm_yday
15862 && lt->tm_wday == tm.tm_wday
15863 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15864 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15873 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15874 ignoring leap seconds. */
15875 unsigned long int answer = 2527315200UL;
15879 tm.tm_year = 2050 - 1900;
15882 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15885 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15886 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15887 on systems that don't support the Olson extension, or don't have the
15888 full zoneinfo tables installed. */
15889 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15893 /* Check that the result is either a failure, or close enough
15894 to the correct answer that we can assume the discrepancy is
15895 due to leap seconds. */
15896 return (t == (time_t) -1
15897 || (0 < t && answer - 120 <= t && t <= answer + 120));
15906 /* This test makes some buggy mktime implementations loop.
15907 Give up after 60 seconds; a mktime slower than that
15908 isn't worth using anyway. */
15911 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15914 if ((time_t) -1 < 0)
15915 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15917 delta = time_t_max / 997; /* a suitable prime number */
15918 for (i = 0; i < N_STRINGS; i++)
15921 putenv (tz_strings[i]);
15923 for (t = 0; t <= time_t_max - delta; t += delta)
15924 if (! mktime_test (t))
15926 if (! (mktime_test ((time_t) 1)
15927 && mktime_test ((time_t) (60 * 60))
15928 && mktime_test ((time_t) (60 * 60 * 24))))
15931 for (j = 1; 0 < j; j *= 2)
15932 if (! bigtime_test (j))
15934 if (! bigtime_test (j - 1))
15937 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15940 rm -f conftest$ac_exeext
15941 if { (ac_try="$ac_link"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_link") 2>&5
15949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_cv_func_working_mktime=yes
15962 echo "$as_me: program exited with status
$ac_status" >&5
15963 echo "$as_me: failed program was
:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ( exit $ac_status )
15967 ac_cv_func_working_mktime=no
15969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15975 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15976 if test $ac_cv_func_working_mktime = no; then
15977 case " $LIBOBJS " in
15978 *" mktime.
$ac_objext "* ) ;;
15979 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15985 if test "$ac_cv_func_working_mktime" = no; then
15987 cat >>confdefs.h <<\_ACEOF
15988 #define BROKEN_MKTIME 1
15993 ac_have_func=no # yes means we've found a way to get the load average.
15995 # Make sure getloadavg.c is where it belongs, at configure-time.
15996 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15997 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15998 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15999 { (exit 1); exit 1; }; }
16003 # Check for getloadavg, but be sure not to touch the cache variable.
16004 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16005 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16006 if test "${ac_cv_func_getloadavg+set}" = set; then
16007 echo $ECHO_N "(cached
) $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16017 #define getloadavg innocuous_getloadavg
16019 /* System header to define __stub macros and hopefully few prototypes,
16020 which can conflict with char getloadavg (); below.
16021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16022 <limits.h> exists even on freestanding compilers. */
16025 # include <limits.h>
16027 # include <assert.h>
16032 /* Override any GCC internal prototype to avoid an error.
16033 Use char because int might match the return type of a GCC
16034 builtin and then its argument prototype would still apply. */
16038 char getloadavg ();
16039 /* The GNU C library defines this for functions which it implements
16040 to always fail with ENOSYS. Some functions are actually named
16041 something starting with __ and the normal name is an alias. */
16042 #if defined __stub_getloadavg || defined __stub___getloadavg
16049 return getloadavg ();
16054 rm -f conftest.$ac_objext conftest$ac_exeext
16055 if { (ac_try="$ac_link"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_link") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest$ac_exeext &&
16071 $as_test_x conftest$ac_exeext; then
16072 ac_cv_func_getloadavg=yes
16074 echo "$as_me: failed program was
:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ac_cv_func_getloadavg=no
16080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16081 conftest$ac_exeext conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16084 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16085 if test $ac_cv_func_getloadavg = yes; then
16090 ) && ac_have_func=yes
16092 # On HPUX9, an unprivileged user can get load averages through this function.
16094 for ac_func in pstat_getdynamic
16096 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16097 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16098 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16099 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached
) $ECHO_C" >&6
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16110 #define $ac_func innocuous_$ac_func
16112 /* System header to define __stub macros and hopefully few prototypes,
16113 which can conflict with char $ac_func (); below.
16114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16115 <limits.h> exists even on freestanding compilers. */
16118 # include <limits.h>
16120 # include <assert.h>
16125 /* Override any GCC internal prototype to avoid an error.
16126 Use char because int might match the return type of a GCC
16127 builtin and then its argument prototype would still apply. */
16132 /* The GNU C library defines this for functions which it implements
16133 to always fail with ENOSYS. Some functions are actually named
16134 something starting with __ and the normal name is an alias. */
16135 #if defined __stub_$ac_func || defined __stub___$ac_func
16142 return $ac_func ();
16147 rm -f conftest.$ac_objext conftest$ac_exeext
16148 if { (ac_try="$ac_link"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_link") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest$ac_exeext &&
16164 $as_test_x conftest$ac_exeext; then
16165 eval "$as_ac_var=yes"
16167 echo "$as_me: failed program was
:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 eval "$as_ac_var=no
"
16173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16174 conftest$ac_exeext conftest.$ac_ext
16176 ac_res=`eval echo '${'$as_ac_var'}'`
16177 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16178 echo "${ECHO_T}$ac_res" >&6; }
16179 if test `eval echo '${'$as_ac_var'}'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16188 # Solaris has libkstat which does not require root.
16190 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16191 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16192 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16193 echo $ECHO_N "(cached
) $ECHO_C" >&6
16195 ac_check_lib_save_LIBS=$LIBS
16196 LIBS="-lkstat $LIBS"
16197 cat >conftest.$ac_ext <<_ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16210 char kstat_open ();
16214 return kstat_open ();
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>conftest.er1
16228 grep -v '^ *+' conftest.er1 >conftest.err
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext &&
16236 $as_test_x conftest$ac_exeext; then
16237 ac_cv_lib_kstat_kstat_open=yes
16239 echo "$as_me: failed program was
:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_cv_lib_kstat_kstat_open=no
16245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16246 conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16249 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16250 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16251 if test $ac_cv_lib_kstat_kstat_open = yes; then
16252 cat >>confdefs.h <<_ACEOF
16253 #define HAVE_LIBKSTAT 1
16256 LIBS="-lkstat $LIBS"
16260 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16262 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16263 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16264 # to get the right answer into the cache.
16265 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16266 if test $ac_have_func = no; then
16267 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16268 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16269 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16270 echo $ECHO_N "(cached
) $ECHO_C" >&6
16272 ac_check_lib_save_LIBS=$LIBS
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16291 return elf_begin ();
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (ac_try="$ac_link"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_link") 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest$ac_exeext &&
16313 $as_test_x conftest$ac_exeext; then
16314 ac_cv_lib_elf_elf_begin=yes
16316 echo "$as_me: failed program was
:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16319 ac_cv_lib_elf_elf_begin=no
16322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16323 conftest$ac_exeext conftest.$ac_ext
16324 LIBS=$ac_check_lib_save_LIBS
16326 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16327 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16328 if test $ac_cv_lib_elf_elf_begin = yes; then
16333 if test $ac_have_func = no; then
16334 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16335 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16336 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16337 echo $ECHO_N "(cached
) $ECHO_C" >&6
16339 ac_check_lib_save_LIBS=$LIBS
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16348 /* Override any GCC internal prototype to avoid an error.
16349 Use char because int might match the return type of a GCC
16350 builtin and then its argument prototype would still apply. */
16358 return kvm_open ();
16363 rm -f conftest.$ac_objext conftest$ac_exeext
16364 if { (ac_try="$ac_link"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_link") 2>conftest.er1
16372 grep -v '^ *+' conftest.er1 >conftest.err
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext &&
16380 $as_test_x conftest$ac_exeext; then
16381 ac_cv_lib_kvm_kvm_open=yes
16383 echo "$as_me: failed program was
:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_lib_kvm_kvm_open=no
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16391 LIBS=$ac_check_lib_save_LIBS
16393 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16394 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16395 if test $ac_cv_lib_kvm_kvm_open = yes; then
16399 # Check for the 4.4BSD definition of getloadavg.
16400 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16401 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16402 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16403 echo $ECHO_N "(cached
) $ECHO_C" >&6
16405 ac_check_lib_save_LIBS=$LIBS
16406 LIBS="-lutil $LIBS"
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16420 char getloadavg ();
16424 return getloadavg ();
16429 rm -f conftest.$ac_objext conftest$ac_exeext
16430 if { (ac_try="$ac_link"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_link") 2>conftest.er1
16438 grep -v '^ *+' conftest.er1 >conftest.err
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_c_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest$ac_exeext &&
16446 $as_test_x conftest$ac_exeext; then
16447 ac_cv_lib_util_getloadavg=yes
16449 echo "$as_me: failed program was
:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16452 ac_cv_lib_util_getloadavg=no
16455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16456 conftest$ac_exeext conftest.$ac_ext
16457 LIBS=$ac_check_lib_save_LIBS
16459 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16460 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16461 if test $ac_cv_lib_util_getloadavg = yes; then
16462 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16467 if test $ac_have_func = no; then
16468 # There is a commonly available library for RS/6000 AIX.
16469 # Since it is not a standard part of AIX, it might be installed locally.
16470 ac_getloadavg_LIBS=$LIBS
16471 LIBS="-L/usr
/local
/lib
$LIBS"
16472 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16473 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16474 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16475 echo $ECHO_N "(cached
) $ECHO_C" >&6
16477 ac_check_lib_save_LIBS=$LIBS
16478 LIBS="-lgetloadavg $LIBS"
16479 cat >conftest.$ac_ext <<_ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16486 /* Override any GCC internal prototype to avoid an error.
16487 Use char because int might match the return type of a GCC
16488 builtin and then its argument prototype would still apply. */
16492 char getloadavg ();
16496 return getloadavg ();
16501 rm -f conftest.$ac_objext conftest$ac_exeext
16502 if { (ac_try="$ac_link"
16503 case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_link") 2>conftest.er1
16510 grep -v '^ *+' conftest.er1 >conftest.err
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16514 (exit $ac_status); } && {
16515 test -z "$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16517 } && test -s conftest$ac_exeext &&
16518 $as_test_x conftest$ac_exeext; then
16519 ac_cv_lib_getloadavg_getloadavg=yes
16521 echo "$as_me: failed program was
:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16524 ac_cv_lib_getloadavg_getloadavg=no
16527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16528 conftest$ac_exeext conftest.$ac_ext
16529 LIBS=$ac_check_lib_save_LIBS
16531 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16532 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16533 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16534 LIBS="-lgetloadavg $LIBS"
16536 LIBS=$ac_getloadavg_LIBS
16541 # Make sure it is really in the library, if we think we found it,
16542 # otherwise set up the replacement function.
16544 for ac_func in getloadavg
16546 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16547 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16548 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16549 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16550 echo $ECHO_N "(cached
) $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16560 #define $ac_func innocuous_$ac_func
16562 /* System header to define __stub macros and hopefully few prototypes,
16563 which can conflict with char $ac_func (); below.
16564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16565 <limits.h> exists even on freestanding compilers. */
16568 # include <limits.h>
16570 # include <assert.h>
16575 /* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
16582 /* The GNU C library defines this for functions which it implements
16583 to always fail with ENOSYS. Some functions are actually named
16584 something starting with __ and the normal name is an alias. */
16585 #if defined __stub_$ac_func || defined __stub___$ac_func
16592 return $ac_func ();
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16610 (exit $ac_status); } && {
16611 test -z "$ac_c_werror_flag" ||
16612 test ! -s conftest.err
16613 } && test -s conftest$ac_exeext &&
16614 $as_test_x conftest$ac_exeext; then
16615 eval "$as_ac_var=yes"
16617 echo "$as_me: failed program was
:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 eval "$as_ac_var=no
"
16623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16624 conftest$ac_exeext conftest.$ac_ext
16626 ac_res=`eval echo '${'$as_ac_var'}'`
16627 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16629 if test `eval echo '${'$as_ac_var'}'` = yes; then
16630 cat >>confdefs.h <<_ACEOF
16631 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16635 case " $LIBOBJS " in
16636 *" getloadavg.
$ac_objext "* ) ;;
16637 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16642 cat >>confdefs.h <<\_ACEOF
16643 #define C_GETLOADAVG 1
16646 # Figure out what our getloadavg.c needs.
16648 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16649 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16650 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16651 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16652 echo $ECHO_N "(cached
) $ECHO_C" >&6
16654 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16655 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16657 # Is the header compilable?
16658 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16659 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 $ac_includes_default
16667 #include <sys/dg_sys_info.h>
16669 rm -f conftest.$ac_objext
16670 if { (ac_try="$ac_compile"
16671 case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_compile") 2>conftest.er1
16678 grep -v '^ *+' conftest.er1 >conftest.err
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16682 (exit $ac_status); } && {
16683 test -z "$ac_c_werror_flag" ||
16684 test ! -s conftest.err
16685 } && test -s conftest.$ac_objext; then
16686 ac_header_compiler=yes
16688 echo "$as_me: failed program was
:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ac_header_compiler=no
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16696 echo "${ECHO_T}$ac_header_compiler" >&6; }
16698 # Is the header present?
16699 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16700 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <sys/dg_sys_info.h>
16709 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16721 (exit $ac_status); } >/dev/null && {
16722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16725 ac_header_preproc=yes
16727 echo "$as_me: failed program was
:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_header_preproc=no
16733 rm -f conftest.err conftest.$ac_ext
16734 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16735 echo "${ECHO_T}$ac_header_preproc" >&6; }
16737 # So? What about this header?
16738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16740 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16741 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16742 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16743 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16744 ac_header_preproc=yes
16747 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16748 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16749 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16750 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16751 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16752 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16753 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16754 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16755 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16756 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16757 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16758 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16762 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16763 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16764 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16765 echo $ECHO_N "(cached
) $ECHO_C" >&6
16767 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16769 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16770 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16773 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16776 cat >>confdefs.h <<\_ACEOF
16781 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16782 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16783 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16784 echo $ECHO_N "(cached
) $ECHO_C" >&6
16786 ac_check_lib_save_LIBS=$LIBS
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 /* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
16801 char dg_sys_info ();
16805 return dg_sys_info ();
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16823 (exit $ac_status); } && {
16824 test -z "$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16826 } && test -s conftest$ac_exeext &&
16827 $as_test_x conftest$ac_exeext; then
16828 ac_cv_lib_dgc_dg_sys_info=yes
16830 echo "$as_me: failed program was
:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_cv_lib_dgc_dg_sys_info=no
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS
16840 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16841 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16842 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_LIBDGC 1
16855 if test "${ac_cv_header_locale_h+set}" = set; then
16856 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16857 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16858 if test "${ac_cv_header_locale_h+set}" = set; then
16859 echo $ECHO_N "(cached
) $ECHO_C" >&6
16861 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16862 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16864 # Is the header compilable?
16865 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16866 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 $ac_includes_default
16874 #include <locale.h>
16876 rm -f conftest.$ac_objext
16877 if { (ac_try="$ac_compile"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_compile") 2>conftest.er1
16885 grep -v '^ *+' conftest.er1 >conftest.err
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest.$ac_objext; then
16893 ac_header_compiler=yes
16895 echo "$as_me: failed program was
:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_header_compiler=no
16901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16903 echo "${ECHO_T}$ac_header_compiler" >&6; }
16905 # Is the header present?
16906 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16907 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <locale.h>
16916 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16928 (exit $ac_status); } >/dev/null && {
16929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16932 ac_header_preproc=yes
16934 echo "$as_me: failed program was
:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_header_preproc=no
16940 rm -f conftest.err conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16942 echo "${ECHO_T}$ac_header_preproc" >&6; }
16944 # So? What about this header?
16945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16947 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16948 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16950 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16951 ac_header_preproc=yes
16954 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16955 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16956 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16957 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16958 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16959 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16960 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16961 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16962 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16963 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16964 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16965 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16969 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16970 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16971 if test "${ac_cv_header_locale_h+set}" = set; then
16972 echo $ECHO_N "(cached
) $ECHO_C" >&6
16974 ac_cv_header_locale_h=$ac_header_preproc
16976 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16977 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16983 for ac_func in setlocale
16985 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16986 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16987 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16988 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached
) $ECHO_C" >&6
16991 cat >conftest.$ac_ext <<_ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999 #define $ac_func innocuous_$ac_func
17001 /* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17007 # include <limits.h>
17009 # include <assert.h>
17014 /* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined __stub_$ac_func || defined __stub___$ac_func
17031 return $ac_func ();
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17049 (exit $ac_status); } && {
17050 test -z "$ac_c_werror_flag" ||
17051 test ! -s conftest.err
17052 } && test -s conftest$ac_exeext &&
17053 $as_test_x conftest$ac_exeext; then
17054 eval "$as_ac_var=yes"
17056 echo "$as_me: failed program was
:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 eval "$as_ac_var=no
"
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063 conftest$ac_exeext conftest.$ac_ext
17065 ac_res=`eval echo '${'$as_ac_var'}'`
17066 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17067 echo "${ECHO_T}$ac_res" >&6; }
17068 if test `eval echo '${'$as_ac_var'}'` = yes; then
17069 cat >>confdefs.h <<_ACEOF
17070 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17077 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17078 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17079 # Irix 4.0.5F has the header but not the library.
17080 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17083 cat >>confdefs.h <<\_ACEOF
17089 if test $ac_have_func = no; then
17090 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17091 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17092 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17093 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17094 echo $ECHO_N "(cached
) $ECHO_C" >&6
17096 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17097 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17099 # Is the header compilable?
17100 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17101 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17102 cat >conftest.$ac_ext <<_ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 $ac_includes_default
17109 #include <inq_stats/cpustats.h>
17111 rm -f conftest.$ac_objext
17112 if { (ac_try="$ac_compile"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_compile") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest.$ac_objext; then
17128 ac_header_compiler=yes
17130 echo "$as_me: failed program was
:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_header_compiler=no
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17138 echo "${ECHO_T}$ac_header_compiler" >&6; }
17140 # Is the header present?
17141 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17142 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17143 cat >conftest.$ac_ext <<_ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 #include <inq_stats/cpustats.h>
17151 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17163 (exit $ac_status); } >/dev/null && {
17164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17167 ac_header_preproc=yes
17169 echo "$as_me: failed program was
:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ac_header_preproc=no
17175 rm -f conftest.err conftest.$ac_ext
17176 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17177 echo "${ECHO_T}$ac_header_preproc" >&6; }
17179 # So? What about this header?
17180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17182 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17183 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17184 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17185 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17186 ac_header_preproc=yes
17189 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17190 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17191 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17192 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17193 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17194 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17195 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17196 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17197 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17198 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17199 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17200 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17204 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17205 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17206 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17207 echo $ECHO_N "(cached
) $ECHO_C" >&6
17209 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17211 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17212 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17215 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17218 cat >>confdefs.h <<\_ACEOF
17223 cat >>confdefs.h <<\_ACEOF
17232 if test $ac_have_func = no; then
17233 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17234 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17235 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17236 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17237 echo $ECHO_N "(cached
) $ECHO_C" >&6
17239 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17240 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17242 # Is the header compilable?
17243 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17244 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 $ac_includes_default
17252 #include <sys/cpustats.h>
17254 rm -f conftest.$ac_objext
17255 if { (ac_try="$ac_compile"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_compile") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17267 (exit $ac_status); } && {
17268 test -z "$ac_c_werror_flag" ||
17269 test ! -s conftest.err
17270 } && test -s conftest.$ac_objext; then
17271 ac_header_compiler=yes
17273 echo "$as_me: failed program was
:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ac_header_compiler=no
17279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17281 echo "${ECHO_T}$ac_header_compiler" >&6; }
17283 # Is the header present?
17284 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17285 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 #include <sys/cpustats.h>
17294 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17306 (exit $ac_status); } >/dev/null && {
17307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17310 ac_header_preproc=yes
17312 echo "$as_me: failed program was
:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 ac_header_preproc=no
17318 rm -f conftest.err conftest.$ac_ext
17319 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17320 echo "${ECHO_T}$ac_header_preproc" >&6; }
17322 # So? What about this header?
17323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17325 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17326 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17327 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17328 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17329 ac_header_preproc=yes
17332 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17333 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17334 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17335 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17336 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17337 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17338 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17339 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17340 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17341 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17342 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17343 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17347 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17348 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17349 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17350 echo $ECHO_N "(cached
) $ECHO_C" >&6
17352 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17354 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17355 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17358 if test $ac_cv_header_sys_cpustats_h = yes; then
17359 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17368 if test $ac_have_func = no; then
17370 for ac_header in mach/mach.h
17372 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17373 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17374 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17375 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17376 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17377 echo $ECHO_N "(cached
) $ECHO_C" >&6
17379 ac_res=`eval echo '${'$as_ac_Header'}'`
17380 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17381 echo "${ECHO_T}$ac_res" >&6; }
17383 # Is the header compilable?
17384 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17385 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17386 cat >conftest.$ac_ext <<_ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17392 $ac_includes_default
17393 #include <$ac_header>
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 ac_header_compiler=yes
17414 echo "$as_me: failed program was
:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_header_compiler=no
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17422 echo "${ECHO_T}$ac_header_compiler" >&6; }
17424 # Is the header present?
17425 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17426 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <$ac_header>
17435 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17447 (exit $ac_status); } >/dev/null && {
17448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17451 ac_header_preproc=yes
17453 echo "$as_me: failed program was
:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_header_preproc=no
17459 rm -f conftest.err conftest.$ac_ext
17460 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17461 echo "${ECHO_T}$ac_header_preproc" >&6; }
17463 # So? What about this header?
17464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17466 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17467 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17468 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17470 ac_header_preproc=yes
17473 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17474 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17475 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17476 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17477 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17478 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17479 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17480 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17483 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17484 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17488 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17489 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17490 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17491 echo $ECHO_N "(cached
) $ECHO_C" >&6
17493 eval "$as_ac_Header=\
$ac_header_preproc"
17495 ac_res=`eval echo '${'$as_ac_Header'}'`
17496 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17497 echo "${ECHO_T}$ac_res" >&6; }
17500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17501 cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17512 for ac_header in nlist.h
17514 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17515 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17516 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17517 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17519 echo $ECHO_N "(cached
) $ECHO_C" >&6
17521 ac_res=`eval echo '${'$as_ac_Header'}'`
17522 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17523 echo "${ECHO_T}$ac_res" >&6; }
17525 # Is the header compilable?
17526 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17527 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 $ac_includes_default
17535 #include <$ac_header>
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_compile") 2>conftest.er1
17546 grep -v '^ *+' conftest.er1 >conftest.err
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17550 (exit $ac_status); } && {
17551 test -z "$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 } && test -s conftest.$ac_objext; then
17554 ac_header_compiler=yes
17556 echo "$as_me: failed program was
:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_header_compiler=no
17562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17564 echo "${ECHO_T}$ac_header_compiler" >&6; }
17566 # Is the header present?
17567 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17568 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17569 cat >conftest.$ac_ext <<_ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 #include <$ac_header>
17577 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17585 grep -v '^ *+' conftest.er1 >conftest.err
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17589 (exit $ac_status); } >/dev/null && {
17590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17591 test ! -s conftest.err
17593 ac_header_preproc=yes
17595 echo "$as_me: failed program was
:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_header_preproc=no
17601 rm -f conftest.err conftest.$ac_ext
17602 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17603 echo "${ECHO_T}$ac_header_preproc" >&6; }
17605 # So? What about this header?
17606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17608 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17609 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17610 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17612 ac_header_preproc=yes
17615 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17616 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17617 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17618 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17619 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17620 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17621 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17622 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17623 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17625 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17626 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17630 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17631 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17633 echo $ECHO_N "(cached
) $ECHO_C" >&6
17635 eval "$as_ac_Header=\
$ac_header_preproc"
17637 ac_res=`eval echo '${'$as_ac_Header'}'`
17638 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17639 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17646 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17647 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17648 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17649 echo $ECHO_N "(cached
) $ECHO_C" >&6
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17662 static struct nlist ac_aggr;
17663 if (ac_aggr.n_un.n_name)
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_compile") 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17682 (exit $ac_status); } && {
17683 test -z "$ac_c_werror_flag" ||
17684 test ! -s conftest.err
17685 } && test -s conftest.$ac_objext; then
17686 ac_cv_member_struct_nlist_n_un_n_name=yes
17688 echo "$as_me: failed program was
:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17702 static struct nlist ac_aggr;
17703 if (sizeof ac_aggr.n_un.n_name)
17709 rm -f conftest.$ac_objext
17710 if { (ac_try="$ac_compile"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_compile") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest.$ac_objext; then
17726 ac_cv_member_struct_nlist_n_un_n_name=yes
17728 echo "$as_me: failed program was
:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_member_struct_nlist_n_un_n_name=no
17734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17740 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17741 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17748 cat >>confdefs.h <<\_ACEOF
17749 #define NLIST_NAME_UNION 1
17763 # Some definitions of getloadavg require that the program be installed setgid.
17764 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17765 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17766 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17767 echo $ECHO_N "(cached
) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17776 #ifdef LDAV_PRIVILEGED
17777 Yowza Am I SETGID yet
17780 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17781 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17782 ac_cv_func_getloadavg_setgid=yes
17784 ac_cv_func_getloadavg_setgid=no
17789 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17790 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17791 if test $ac_cv_func_getloadavg_setgid = yes; then
17794 cat >>confdefs.h <<\_ACEOF
17795 #define GETLOADAVG_PRIVILEGED 1
17802 if test $ac_cv_func_getloadavg_setgid = yes; then
17803 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17804 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17805 if test "${ac_cv_group_kmem+set}" = set; then
17806 echo $ECHO_N "(cached
) $ECHO_C" >&6
17808 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17809 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17810 # If we got an error (system does not support symlinks), try without -L.
17811 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17812 ac_cv_group_kmem=`echo $ac_ls_output \
17813 | sed -ne 's/[ ][ ]*/ /g;
17814 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17818 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17819 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17820 KMEM_GROUP=$ac_cv_group_kmem
17822 if test "x
$ac_save_LIBS" = x; then
17823 GETLOADAVG_LIBS=$LIBS
17825 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17831 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17832 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17833 if test "${ac_cv_sys_largefile_source+set}" = set; then
17834 echo $ECHO_N "(cached
) $ECHO_C" >&6
17837 cat >conftest.$ac_ext <<_ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17847 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17852 rm -f conftest.$ac_objext conftest$ac_exeext
17853 if { (ac_try="$ac_link"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_link") 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest$ac_exeext &&
17869 $as_test_x conftest$ac_exeext; then
17870 ac_cv_sys_largefile_source=no; break
17872 echo "$as_me: failed program was
:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17879 conftest$ac_exeext conftest.$ac_ext
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 #define _LARGEFILE_SOURCE 1
17891 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17896 rm -f conftest.$ac_objext conftest$ac_exeext
17897 if { (ac_try="$ac_link"
17898 case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_link") 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17909 (exit $ac_status); } && {
17910 test -z "$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17912 } && test -s conftest$ac_exeext &&
17913 $as_test_x conftest$ac_exeext; then
17914 ac_cv_sys_largefile_source=1; break
17916 echo "$as_me: failed program was
:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17923 conftest$ac_exeext conftest.$ac_ext
17924 ac_cv_sys_largefile_source=unknown
17928 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17929 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17930 case $ac_cv_sys_largefile_source in #(
17933 cat >>confdefs.h <<_ACEOF
17934 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17940 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17941 # in glibc 2.1.3, but that breaks too many other things.
17942 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17943 if test $ac_cv_sys_largefile_source != unknown; then
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_FSEEKO 1
17952 # Configure getopt.
17953 # getopt.m4 serial 10
17955 # The getopt module assume you want GNU getopt, with getopt_long etc,
17956 # rather than vanilla POSIX getopt. This means your your code should
17957 # always include <getopt.h> for the getopt prototypes.
17969 # Prerequisites of lib/getopt*.
17976 for ac_header in getopt.h
17978 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17981 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached
) $ECHO_C" >&6
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17991 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was
:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18032 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18041 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was
:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18073 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18080 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18081 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18082 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18084 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18086 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18089 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18090 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18094 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18095 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached
) $ECHO_C" >&6
18099 eval "$as_ac_Header=\
$ac_header_preproc"
18101 ac_res=`eval echo '${'$as_ac_Header'}'`
18102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18117 if test -z "$GETOPT_H"; then
18119 for ac_func in getopt_long_only
18121 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18122 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18123 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18124 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached
) $ECHO_C" >&6
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18135 #define $ac_func innocuous_$ac_func
18137 /* System header to define __stub macros and hopefully few prototypes,
18138 which can conflict with char $ac_func (); below.
18139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140 <limits.h> exists even on freestanding compilers. */
18143 # include <limits.h>
18145 # include <assert.h>
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18157 /* The GNU C library defines this for functions which it implements
18158 to always fail with ENOSYS. Some functions are actually named
18159 something starting with __ and the normal name is an alias. */
18160 #if defined __stub_$ac_func || defined __stub___$ac_func
18167 return $ac_func ();
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest$ac_exeext &&
18189 $as_test_x conftest$ac_exeext; then
18190 eval "$as_ac_var=yes"
18192 echo "$as_me: failed program was
:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 eval "$as_ac_var=no
"
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199 conftest$ac_exeext conftest.$ac_ext
18201 ac_res=`eval echo '${'$as_ac_var'}'`
18202 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18203 echo "${ECHO_T}$ac_res" >&6; }
18204 if test `eval echo '${'$as_ac_var'}'` = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18216 if test -z "$GETOPT_H"; then
18217 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18218 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18219 if test "${ac_cv_have_decl_optreset+set}" = set; then
18220 echo $ECHO_N "(cached
) $ECHO_C" >&6
18222 cat >conftest.$ac_ext <<_ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18228 #include <getopt.h>
18241 rm -f conftest.$ac_objext
18242 if { (ac_try="$ac_compile"
18243 case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_compile") 2>conftest.er1
18250 grep -v '^ *+' conftest.er1 >conftest.err
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18254 (exit $ac_status); } && {
18255 test -z "$ac_c_werror_flag" ||
18256 test ! -s conftest.err
18257 } && test -s conftest.$ac_objext; then
18258 ac_cv_have_decl_optreset=yes
18260 echo "$as_me: failed program was
:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_have_decl_optreset=no
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18269 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18270 if test $ac_cv_have_decl_optreset = yes; then
18276 if test -z "$GETOPT_H"; then
18277 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18278 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18279 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18280 echo $ECHO_N "(cached
) $ECHO_C" >&6
18282 if test "$cross_compiling" = yes; then
18283 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18284 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18285 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18286 echo $ECHO_N "(cached
) $ECHO_C" >&6
18288 cat >conftest.$ac_ext <<_ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 #include <getopt.h>
18299 #ifndef getopt_clip
18300 (void) getopt_clip;
18307 rm -f conftest.$ac_objext
18308 if { (ac_try="$ac_compile"
18309 case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_compile") 2>conftest.er1
18316 grep -v '^ *+' conftest.er1 >conftest.err
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18320 (exit $ac_status); } && {
18321 test -z "$ac_c_werror_flag" ||
18322 test ! -s conftest.err
18323 } && test -s conftest.$ac_objext; then
18324 ac_cv_have_decl_getopt_clip=yes
18326 echo "$as_me: failed program was
:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18329 ac_cv_have_decl_getopt_clip=no
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18335 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18336 if test $ac_cv_have_decl_getopt_clip = yes; then
18337 gl_cv_func_gnu_getopt=no
18339 gl_cv_func_gnu_getopt=yes
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349 #include <getopt.h>
18355 myargv[0] = "conftest
";
18358 return getopt (2, myargv, "+a
") != '?';
18364 rm -f conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>&5
18373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 gl_cv_func_gnu_getopt=yes
18386 echo "$as_me: program exited with status
$ac_status" >&5
18387 echo "$as_me: failed program was
:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ( exit $ac_status )
18391 gl_cv_func_gnu_getopt=no
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18399 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18400 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18407 if test -n "$GETOPT_H"; then
18412 cat >>confdefs.h <<\_ACEOF
18413 #define __GETOPT_PREFIX rpl_
18419 GETOPTOBJS='getopt.o getopt1.o'
18426 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18427 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18428 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18429 echo $ECHO_N "(cached
) $ECHO_C" >&6
18431 # Use it with a single arg.
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 $ac_includes_default
18447 rm -f conftest.$ac_objext
18448 if { (ac_try="$ac_compile"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_compile") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18460 (exit $ac_status); } && {
18461 test -z "$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 } && test -s conftest.$ac_objext; then
18464 ac_cv_func_getpgrp_void=no
18466 echo "$as_me: failed program was
:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_cv_func_getpgrp_void=yes
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18476 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18477 if test $ac_cv_func_getpgrp_void = yes; then
18479 cat >>confdefs.h <<\_ACEOF
18480 #define GETPGRP_VOID 1
18487 for ac_func in strftime
18489 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18490 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18491 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18492 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18493 echo $ECHO_N "(cached
) $ECHO_C" >&6
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18503 #define $ac_func innocuous_$ac_func
18505 /* System header to define __stub macros and hopefully few prototypes,
18506 which can conflict with char $ac_func (); below.
18507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508 <limits.h> exists even on freestanding compilers. */
18511 # include <limits.h>
18513 # include <assert.h>
18518 /* Override any GCC internal prototype to avoid an error.
18519 Use char because int might match the return type of a GCC
18520 builtin and then its argument prototype would still apply. */
18525 /* The GNU C library defines this for functions which it implements
18526 to always fail with ENOSYS. Some functions are actually named
18527 something starting with __ and the normal name is an alias. */
18528 #if defined __stub_$ac_func || defined __stub___$ac_func
18535 return $ac_func ();
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_link") 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext &&
18557 $as_test_x conftest$ac_exeext; then
18558 eval "$as_ac_var=yes"
18560 echo "$as_me: failed program was
:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 eval "$as_ac_var=no
"
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18569 ac_res=`eval echo '${'$as_ac_var'}'`
18570 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18571 echo "${ECHO_T}$ac_res" >&6; }
18572 if test `eval echo '${'$as_ac_var'}'` = yes; then
18573 cat >>confdefs.h <<_ACEOF
18574 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18578 # strftime is in -lintl on SCO UNIX.
18579 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18580 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18581 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18582 echo $ECHO_N "(cached
) $ECHO_C" >&6
18584 ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lintl $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18603 return strftime ();
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext &&
18625 $as_test_x conftest$ac_exeext; then
18626 ac_cv_lib_intl_strftime=yes
18628 echo "$as_me: failed program was
:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_lib_intl_strftime=no
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18638 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18639 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18640 if test $ac_cv_lib_intl_strftime = yes; then
18641 cat >>confdefs.h <<\_ACEOF
18642 #define HAVE_STRFTIME 1
18645 LIBS="-lintl $LIBS"
18654 for ac_func in grantpt
18656 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18658 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18659 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18660 echo $ECHO_N "(cached
) $ECHO_C" >&6
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define $ac_func innocuous_$ac_func
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char $ac_func (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18678 # include <limits.h>
18680 # include <assert.h>
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined __stub_$ac_func || defined __stub___$ac_func
18702 return $ac_func ();
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext &&
18724 $as_test_x conftest$ac_exeext; then
18725 eval "$as_ac_var=yes"
18727 echo "$as_me: failed program was
:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 eval "$as_ac_var=no
"
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734 conftest$ac_exeext conftest.$ac_ext
18736 ac_res=`eval echo '${'$as_ac_var'}'`
18737 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18738 echo "${ECHO_T}$ac_res" >&6; }
18739 if test `eval echo '${'$as_ac_var'}'` = yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18748 # PTY-related GNU extensions.
18750 for ac_func in getpt
18752 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18753 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18754 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18755 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18756 echo $ECHO_N "(cached
) $ECHO_C" >&6
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18766 #define $ac_func innocuous_$ac_func
18768 /* System header to define __stub macros and hopefully few prototypes,
18769 which can conflict with char $ac_func (); below.
18770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 <limits.h> exists even on freestanding compilers. */
18774 # include <limits.h>
18776 # include <assert.h>
18781 /* Override any GCC internal prototype to avoid an error.
18782 Use char because int might match the return type of a GCC
18783 builtin and then its argument prototype would still apply. */
18788 /* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791 #if defined __stub_$ac_func || defined __stub___$ac_func
18798 return $ac_func ();
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (ac_try="$ac_link"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_link") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest$ac_exeext &&
18820 $as_test_x conftest$ac_exeext; then
18821 eval "$as_ac_var=yes"
18823 echo "$as_me: failed program was
:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 eval "$as_ac_var=no
"
18829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18830 conftest$ac_exeext conftest.$ac_ext
18832 ac_res=`eval echo '${'$as_ac_var'}'`
18833 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18834 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_var'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18844 # Check this now, so that we will NOT find the above functions in ncurses.
18845 # That is because we have not set up to link ncurses in lib-src.
18846 # It's better to believe a function is not available
18847 # than to expect to find it in ncurses.
18849 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18850 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18851 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18852 echo $ECHO_N "(cached
) $ECHO_C" >&6
18854 ac_check_lib_save_LIBS=$LIBS
18855 LIBS="-lncurses $LIBS"
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18863 /* Override any GCC internal prototype to avoid an error.
18864 Use char because int might match the return type of a GCC
18865 builtin and then its argument prototype would still apply. */
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>conftest.er1
18887 grep -v '^ *+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18891 (exit $ac_status); } && {
18892 test -z "$ac_c_werror_flag" ||
18893 test ! -s conftest.err
18894 } && test -s conftest$ac_exeext &&
18895 $as_test_x conftest$ac_exeext; then
18896 ac_cv_lib_ncurses_tparm=yes
18898 echo "$as_me: failed program was
:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_cv_lib_ncurses_tparm=no
18904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18905 conftest$ac_exeext conftest.$ac_ext
18906 LIBS=$ac_check_lib_save_LIBS
18908 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18909 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18910 if test $ac_cv_lib_ncurses_tparm = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define HAVE_LIBNCURSES 1
18915 LIBS="-lncurses $LIBS"
18920 # Do we need the Hesiod library to provide the support routines?
18921 if test "$with_hesiod" = yes ; then
18922 # Don't set $LIBS here -- see comments above.
18924 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18925 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18926 if test "${ac_cv_func_res_send+set}" = set; then
18927 echo $ECHO_N "(cached
) $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18937 #define res_send innocuous_res_send
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char res_send (); below.
18941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18942 <limits.h> exists even on freestanding compilers. */
18945 # include <limits.h>
18947 # include <assert.h>
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18959 /* The GNU C library defines this for functions which it implements
18960 to always fail with ENOSYS. Some functions are actually named
18961 something starting with __ and the normal name is an alias. */
18962 #if defined __stub_res_send || defined __stub___res_send
18969 return res_send ();
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18987 (exit $ac_status); } && {
18988 test -z "$ac_c_werror_flag" ||
18989 test ! -s conftest.err
18990 } && test -s conftest$ac_exeext &&
18991 $as_test_x conftest$ac_exeext; then
18992 ac_cv_func_res_send=yes
18994 echo "$as_me: failed program was
:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_cv_func_res_send=no
19000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19001 conftest$ac_exeext conftest.$ac_ext
19003 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19004 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19005 if test $ac_cv_func_res_send = yes; then
19008 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19009 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19010 if test "${ac_cv_func___res_send+set}" = set; then
19011 echo $ECHO_N "(cached
) $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021 #define __res_send innocuous___res_send
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char __res_send (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
19029 # include <limits.h>
19031 # include <assert.h>
19036 /* Override any GCC internal prototype to avoid an error.
19037 Use char because int might match the return type of a GCC
19038 builtin and then its argument prototype would still apply. */
19042 char __res_send ();
19043 /* The GNU C library defines this for functions which it implements
19044 to always fail with ENOSYS. Some functions are actually named
19045 something starting with __ and the normal name is an alias. */
19046 #if defined __stub___res_send || defined __stub_____res_send
19053 return __res_send ();
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest$ac_exeext &&
19075 $as_test_x conftest$ac_exeext; then
19076 ac_cv_func___res_send=yes
19078 echo "$as_me: failed program was
:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_func___res_send=no
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19087 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19088 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19089 if test $ac_cv_func___res_send = yes; then
19092 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19093 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19094 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19095 echo $ECHO_N "(cached
) $ECHO_C" >&6
19097 ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-lresolv $LIBS"
19099 cat >conftest.$ac_ext <<_ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19116 return res_send ();
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest$ac_exeext &&
19138 $as_test_x conftest$ac_exeext; then
19139 ac_cv_lib_resolv_res_send=yes
19141 echo "$as_me: failed program was
:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19144 ac_cv_lib_resolv_res_send=no
19147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19148 conftest$ac_exeext conftest.$ac_ext
19149 LIBS=$ac_check_lib_save_LIBS
19151 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19152 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19153 if test $ac_cv_lib_resolv_res_send = yes; then
19156 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19157 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19158 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19159 echo $ECHO_N "(cached
) $ECHO_C" >&6
19161 ac_check_lib_save_LIBS=$LIBS
19162 LIBS="-lresolv $LIBS"
19163 cat >conftest.$ac_ext <<_ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19170 /* Override any GCC internal prototype to avoid an error.
19171 Use char because int might match the return type of a GCC
19172 builtin and then its argument prototype would still apply. */
19176 char __res_send ();
19180 return __res_send ();
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (ac_try="$ac_link"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest$ac_exeext &&
19202 $as_test_x conftest$ac_exeext; then
19203 ac_cv_lib_resolv___res_send=yes
19205 echo "$as_me: failed program was
:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_lib_resolv___res_send=no
19211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212 conftest$ac_exeext conftest.$ac_ext
19213 LIBS=$ac_check_lib_save_LIBS
19215 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19216 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19217 if test $ac_cv_lib_resolv___res_send = yes; then
19227 if test "$resolv" = yes ; then
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_LIBRESOLV 1
19237 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19238 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19239 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19240 echo $ECHO_N "(cached
) $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19250 #define hes_getmailhost innocuous_hes_getmailhost
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char hes_getmailhost (); below.
19254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19255 <limits.h> exists even on freestanding compilers. */
19258 # include <limits.h>
19260 # include <assert.h>
19263 #undef hes_getmailhost
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19271 char hes_getmailhost ();
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19282 return hes_getmailhost ();
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_link") 2>conftest.er1
19296 grep -v '^ *+' conftest.er1 >conftest.err
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest$ac_exeext &&
19304 $as_test_x conftest$ac_exeext; then
19305 ac_cv_func_hes_getmailhost=yes
19307 echo "$as_me: failed program was
:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 ac_cv_func_hes_getmailhost=no
19313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
19316 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19317 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19318 if test $ac_cv_func_hes_getmailhost = yes; then
19321 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19322 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19323 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19324 echo $ECHO_N "(cached
) $ECHO_C" >&6
19326 ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lhesiod $RESOLVLIB $LIBS"
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19335 /* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19341 char hes_getmailhost ();
19345 return hes_getmailhost ();
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_link") 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19363 (exit $ac_status); } && {
19364 test -z "$ac_c_werror_flag" ||
19365 test ! -s conftest.err
19366 } && test -s conftest$ac_exeext &&
19367 $as_test_x conftest$ac_exeext; then
19368 ac_cv_lib_hesiod_hes_getmailhost=yes
19370 echo "$as_me: failed program was
:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_lib_hesiod_hes_getmailhost=no
19376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19380 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19381 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19382 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_LIBHESIOD 1
19396 # These tell us which Kerberos-related libraries to use.
19397 if test "${with_kerberos+set}" = set; then
19399 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19400 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19401 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19402 echo $ECHO_N "(cached
) $ECHO_C" >&6
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-lcom_err $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest$ac_exeext &&
19445 $as_test_x conftest$ac_exeext; then
19446 ac_cv_lib_com_err_com_err=yes
19448 echo "$as_me: failed program was
:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_lib_com_err_com_err=no
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455 conftest$ac_exeext conftest.$ac_ext
19456 LIBS=$ac_check_lib_save_LIBS
19458 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19459 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19460 if test $ac_cv_lib_com_err_com_err = yes; then
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_LIBCOM_ERR 1
19465 LIBS="-lcom_err $LIBS"
19470 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19471 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19472 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19473 echo $ECHO_N "(cached
) $ECHO_C" >&6
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lk5crypto $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19490 char mit_des_cbc_encrypt ();
19494 return mit_des_cbc_encrypt ();
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19519 echo "$as_me: failed program was
:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19530 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19531 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define HAVE_LIBK5CRYPTO 1
19536 LIBS="-lk5crypto $LIBS"
19541 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19542 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19543 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19544 echo $ECHO_N "(cached
) $ECHO_C" >&6
19546 ac_check_lib_save_LIBS=$LIBS
19547 LIBS="-lcrypto $LIBS"
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19555 /* Override any GCC internal prototype to avoid an error.
19556 Use char because int might match the return type of a GCC
19557 builtin and then its argument prototype would still apply. */
19561 char mit_des_cbc_encrypt ();
19565 return mit_des_cbc_encrypt ();
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (ac_try="$ac_link"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_link") 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19583 (exit $ac_status); } && {
19584 test -z "$ac_c_werror_flag" ||
19585 test ! -s conftest.err
19586 } && test -s conftest$ac_exeext &&
19587 $as_test_x conftest$ac_exeext; then
19588 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19590 echo "$as_me: failed program was
:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19600 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19601 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19602 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19603 cat >>confdefs.h <<_ACEOF
19604 #define HAVE_LIBCRYPTO 1
19607 LIBS="-lcrypto $LIBS"
19612 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19613 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19614 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19615 echo $ECHO_N "(cached
) $ECHO_C" >&6
19617 ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lkrb5 $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19632 char krb5_init_context ();
19636 return krb5_init_context ();
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19650 grep -v '^ *+' conftest.er1 >conftest.err
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19654 (exit $ac_status); } && {
19655 test -z "$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 } && test -s conftest$ac_exeext &&
19658 $as_test_x conftest$ac_exeext; then
19659 ac_cv_lib_krb5_krb5_init_context=yes
19661 echo "$as_me: failed program was
:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ac_cv_lib_krb5_krb5_init_context=no
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19671 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19672 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19673 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19674 cat >>confdefs.h <<_ACEOF
19675 #define HAVE_LIBKRB5 1
19678 LIBS="-lkrb5 $LIBS"
19682 if test "${with_kerberos5+set}" != set; then
19684 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19685 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19686 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19687 echo $ECHO_N "(cached
) $ECHO_C" >&6
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-ldes425 $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19704 char des_cbc_encrypt ();
19708 return des_cbc_encrypt ();
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext &&
19730 $as_test_x conftest$ac_exeext; then
19731 ac_cv_lib_des425_des_cbc_encrypt=yes
19733 echo "$as_me: failed program was
:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_lib_des425_des_cbc_encrypt=no
19739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19743 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19744 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19745 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBDES425 1
19750 LIBS="-ldes425 $LIBS"
19754 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19755 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19756 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19757 echo $ECHO_N "(cached
) $ECHO_C" >&6
19759 ac_check_lib_save_LIBS=$LIBS
19761 cat >conftest.$ac_ext <<_ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19768 /* Override any GCC internal prototype to avoid an error.
19769 Use char because int might match the return type of a GCC
19770 builtin and then its argument prototype would still apply. */
19774 char des_cbc_encrypt ();
19778 return des_cbc_encrypt ();
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_link") 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19796 (exit $ac_status); } && {
19797 test -z "$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19799 } && test -s conftest$ac_exeext &&
19800 $as_test_x conftest$ac_exeext; then
19801 ac_cv_lib_des_des_cbc_encrypt=yes
19803 echo "$as_me: failed program was
:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_lib_des_des_cbc_encrypt=no
19809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19813 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19814 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19815 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19816 cat >>confdefs.h <<_ACEOF
19817 #define HAVE_LIBDES 1
19827 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19828 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19829 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19830 echo $ECHO_N "(cached
) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lkrb4 $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19847 char krb_get_cred ();
19851 return krb_get_cred ();
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest$ac_exeext &&
19873 $as_test_x conftest$ac_exeext; then
19874 ac_cv_lib_krb4_krb_get_cred=yes
19876 echo "$as_me: failed program was
:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_cv_lib_krb4_krb_get_cred=no
19882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19886 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19887 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19888 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_LIBKRB4 1
19893 LIBS="-lkrb4 $LIBS"
19897 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19898 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19899 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19900 echo $ECHO_N "(cached
) $ECHO_C" >&6
19902 ac_check_lib_save_LIBS=$LIBS
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19917 char krb_get_cred ();
19921 return krb_get_cred ();
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest$ac_exeext &&
19943 $as_test_x conftest$ac_exeext; then
19944 ac_cv_lib_krb_krb_get_cred=yes
19946 echo "$as_me: failed program was
:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_lib_krb_krb_get_cred=no
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LIBS=$ac_check_lib_save_LIBS
19956 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19957 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19958 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_LIBKRB 1
19971 if test "${with_kerberos5+set}" = set; then
19973 for ac_header in krb5.h
19975 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19977 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19978 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19980 echo $ECHO_N "(cached
) $ECHO_C" >&6
19982 ac_res=`eval echo '${'$as_ac_Header'}'`
19983 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19984 echo "${ECHO_T}$ac_res" >&6; }
19986 # Is the header compilable?
19987 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19988 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 $ac_includes_default
19996 #include <$ac_header>
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_compile") 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest.$ac_objext; then
20015 ac_header_compiler=yes
20017 echo "$as_me: failed program was
:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20020 ac_header_compiler=no
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20025 echo "${ECHO_T}$ac_header_compiler" >&6; }
20027 # Is the header present?
20028 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20029 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <$ac_header>
20038 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20046 grep -v '^ *+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20050 (exit $ac_status); } >/dev/null && {
20051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20054 ac_header_preproc=yes
20056 echo "$as_me: failed program was
:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ac_header_preproc=no
20062 rm -f conftest.err conftest.$ac_ext
20063 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20064 echo "${ECHO_T}$ac_header_preproc" >&6; }
20066 # So? What about this header?
20067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20069 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20070 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20073 ac_header_preproc=yes
20076 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20077 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20078 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20079 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20080 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20081 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20082 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20083 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20084 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20086 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20087 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20091 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20092 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20094 echo $ECHO_N "(cached
) $ECHO_C" >&6
20096 eval "$as_ac_Header=\
$ac_header_preproc"
20098 ac_res=`eval echo '${'$as_ac_Header'}'`
20099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20100 echo "${ECHO_T}$ac_res" >&6; }
20103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20114 for ac_header in des.h
20116 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20118 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20119 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20120 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20121 echo $ECHO_N "(cached
) $ECHO_C" >&6
20123 ac_res=`eval echo '${'$as_ac_Header'}'`
20124 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20125 echo "${ECHO_T}$ac_res" >&6; }
20127 # Is the header compilable?
20128 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20129 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20137 #include <$ac_header>
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compile") 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest.$ac_objext; then
20156 ac_header_compiler=yes
20158 echo "$as_me: failed program was
:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_header_compiler=no
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20166 echo "${ECHO_T}$ac_header_compiler" >&6; }
20168 # Is the header present?
20169 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20170 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 #include <$ac_header>
20179 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20191 (exit $ac_status); } >/dev/null && {
20192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20195 ac_header_preproc=yes
20197 echo "$as_me: failed program was
:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_header_preproc=no
20203 rm -f conftest.err conftest.$ac_ext
20204 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20205 echo "${ECHO_T}$ac_header_preproc" >&6; }
20207 # So? What about this header?
20208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20210 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20211 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20212 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20214 ac_header_preproc=yes
20217 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20218 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20219 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20220 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20221 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20222 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20223 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20224 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20225 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20227 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20228 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20232 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20233 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20234 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20235 echo $ECHO_N "(cached
) $ECHO_C" >&6
20237 eval "$as_ac_Header=\
$ac_header_preproc"
20239 ac_res=`eval echo '${'$as_ac_Header'}'`
20240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20241 echo "${ECHO_T}$ac_res" >&6; }
20244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20245 cat >>confdefs.h <<_ACEOF
20246 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20251 for ac_header in kerberosIV/des.h
20253 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20255 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20256 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20257 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20258 echo $ECHO_N "(cached
) $ECHO_C" >&6
20260 ac_res=`eval echo '${'$as_ac_Header'}'`
20261 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20262 echo "${ECHO_T}$ac_res" >&6; }
20264 # Is the header compilable?
20265 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20266 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 #include <$ac_header>
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20285 grep -v '^ *+' conftest.er1 >conftest.err
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_header_compiler=yes
20295 echo "$as_me: failed program was
:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_header_compiler=no
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20307 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <$ac_header>
20316 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20324 grep -v '^ *+' conftest.er1 >conftest.err
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20328 (exit $ac_status); } >/dev/null && {
20329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20332 ac_header_preproc=yes
20334 echo "$as_me: failed program was
:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_header_preproc=no
20340 rm -f conftest.err conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20342 echo "${ECHO_T}$ac_header_preproc" >&6; }
20344 # So? What about this header?
20345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20347 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20348 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20349 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20351 ac_header_preproc=yes
20354 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20355 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20356 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20357 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20358 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20359 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20360 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20361 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20362 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20364 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20365 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20369 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20370 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20371 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20372 echo $ECHO_N "(cached
) $ECHO_C" >&6
20374 eval "$as_ac_Header=\
$ac_header_preproc"
20376 ac_res=`eval echo '${'$as_ac_Header'}'`
20377 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20378 echo "${ECHO_T}$ac_res" >&6; }
20381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20388 for ac_header in kerberos/des.h
20390 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20392 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20393 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20395 echo $ECHO_N "(cached
) $ECHO_C" >&6
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20401 # Is the header compilable?
20402 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20403 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 $ac_includes_default
20411 #include <$ac_header>
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_header_compiler=yes
20432 echo "$as_me: failed program was
:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_header_compiler=no
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20440 echo "${ECHO_T}$ac_header_compiler" >&6; }
20442 # Is the header present?
20443 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20444 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 #include <$ac_header>
20453 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20465 (exit $ac_status); } >/dev/null && {
20466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20469 ac_header_preproc=yes
20471 echo "$as_me: failed program was
:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_header_preproc=no
20477 rm -f conftest.err conftest.$ac_ext
20478 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20479 echo "${ECHO_T}$ac_header_preproc" >&6; }
20481 # So? What about this header?
20482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20484 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20485 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20486 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20488 ac_header_preproc=yes
20491 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20492 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20493 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20494 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20495 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20496 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20497 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20498 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20499 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20501 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20502 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20506 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20507 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20509 echo $ECHO_N "(cached
) $ECHO_C" >&6
20511 eval "$as_ac_Header=\
$ac_header_preproc"
20513 ac_res=`eval echo '${'$as_ac_Header'}'`
20514 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20515 echo "${ECHO_T}$ac_res" >&6; }
20518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20536 for ac_header in krb.h
20538 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20540 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20541 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20542 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20543 echo $ECHO_N "(cached
) $ECHO_C" >&6
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20549 # Is the header compilable?
20550 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20551 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <$ac_header>
20561 rm -f conftest.$ac_objext
20562 if { (ac_try="$ac_compile"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_compile") 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20574 (exit $ac_status); } && {
20575 test -z "$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 } && test -s conftest.$ac_objext; then
20578 ac_header_compiler=yes
20580 echo "$as_me: failed program was
:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_header_compiler=no
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20588 echo "${ECHO_T}$ac_header_compiler" >&6; }
20590 # Is the header present?
20591 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20592 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include <$ac_header>
20601 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20613 (exit $ac_status); } >/dev/null && {
20614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20617 ac_header_preproc=yes
20619 echo "$as_me: failed program was
:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_header_preproc=no
20625 rm -f conftest.err conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20627 echo "${ECHO_T}$ac_header_preproc" >&6; }
20629 # So? What about this header?
20630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20632 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20633 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20634 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20636 ac_header_preproc=yes
20639 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20640 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20641 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20642 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20643 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20644 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20645 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20646 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20647 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20649 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20650 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20654 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20655 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20656 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20657 echo $ECHO_N "(cached
) $ECHO_C" >&6
20659 eval "$as_ac_Header=\
$ac_header_preproc"
20661 ac_res=`eval echo '${'$as_ac_Header'}'`
20662 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20663 echo "${ECHO_T}$ac_res" >&6; }
20666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20673 for ac_header in kerberosIV/krb.h
20675 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20677 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20678 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached
) $ECHO_C" >&6
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20686 # Is the header compilable?
20687 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20688 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20689 cat >conftest.$ac_ext <<_ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 $ac_includes_default
20696 #include <$ac_header>
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest.$ac_objext; then
20715 ac_header_compiler=yes
20717 echo "$as_me: failed program was
:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_header_compiler=no
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20724 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20725 echo "${ECHO_T}$ac_header_compiler" >&6; }
20727 # Is the header present?
20728 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20729 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <$ac_header>
20738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20750 (exit $ac_status); } >/dev/null && {
20751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20754 ac_header_preproc=yes
20756 echo "$as_me: failed program was
:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_header_preproc=no
20762 rm -f conftest.err conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20764 echo "${ECHO_T}$ac_header_preproc" >&6; }
20766 # So? What about this header?
20767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20769 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20770 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20771 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20773 ac_header_preproc=yes
20776 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20777 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20778 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20779 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20781 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20782 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20783 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20784 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20786 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20787 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20791 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20792 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20793 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20794 echo $ECHO_N "(cached
) $ECHO_C" >&6
20796 eval "$as_ac_Header=\
$ac_header_preproc"
20798 ac_res=`eval echo '${'$as_ac_Header'}'`
20799 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20800 echo "${ECHO_T}$ac_res" >&6; }
20803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20810 for ac_header in kerberos/krb.h
20812 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20813 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20814 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20815 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20817 echo $ECHO_N "(cached
) $ECHO_C" >&6
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20823 # Is the header compilable?
20824 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20825 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 $ac_includes_default
20833 #include <$ac_header>
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20852 ac_header_compiler=yes
20854 echo "$as_me: failed program was
:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20857 ac_header_compiler=no
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20862 echo "${ECHO_T}$ac_header_compiler" >&6; }
20864 # Is the header present?
20865 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20866 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <$ac_header>
20875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20887 (exit $ac_status); } >/dev/null && {
20888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20891 ac_header_preproc=yes
20893 echo "$as_me: failed program was
:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896 ac_header_preproc=no
20899 rm -f conftest.err conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20901 echo "${ECHO_T}$ac_header_preproc" >&6; }
20903 # So? What about this header?
20904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20906 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20907 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20908 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20910 ac_header_preproc=yes
20913 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20914 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20915 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20916 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20917 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20918 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20919 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20920 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20923 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20924 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20931 echo $ECHO_N "(cached
) $ECHO_C" >&6
20933 eval "$as_ac_Header=\
$ac_header_preproc"
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20959 for ac_header in com_err.h
20961 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20962 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20963 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20964 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20965 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20966 echo $ECHO_N "(cached
) $ECHO_C" >&6
20968 ac_res=`eval echo '${'$as_ac_Header'}'`
20969 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20970 echo "${ECHO_T}$ac_res" >&6; }
20972 # Is the header compilable?
20973 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20974 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 $ac_includes_default
20982 #include <$ac_header>
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_header_compiler=yes
21003 echo "$as_me: failed program was
:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_header_compiler=no
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21011 echo "${ECHO_T}$ac_header_compiler" >&6; }
21013 # Is the header present?
21014 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21015 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 #include <$ac_header>
21024 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1 >conftest.err
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21036 (exit $ac_status); } >/dev/null && {
21037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21040 ac_header_preproc=yes
21042 echo "$as_me: failed program was
:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 ac_header_preproc=no
21048 rm -f conftest.err conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21050 echo "${ECHO_T}$ac_header_preproc" >&6; }
21052 # So? What about this header?
21053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21055 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21056 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21057 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21059 ac_header_preproc=yes
21062 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21063 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21064 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21065 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21066 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21067 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21068 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21069 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21072 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21073 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21077 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21078 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21080 echo $ECHO_N "(cached
) $ECHO_C" >&6
21082 eval "$as_ac_Header=\
$ac_header_preproc"
21084 ac_res=`eval echo '${'$as_ac_Header'}'`
21085 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21086 echo "${ECHO_T}$ac_res" >&6; }
21089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21100 # Solaris requires -lintl if you want strerror (which calls dgettext)
21101 # to return localized messages.
21103 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21104 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21105 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21106 echo $ECHO_N "(cached
) $ECHO_C" >&6
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lintl $LIBS"
21110 cat >conftest.$ac_ext <<_ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21117 /* Override any GCC internal prototype to avoid an error.
21118 Use char because int might match the return type of a GCC
21119 builtin and then its argument prototype would still apply. */
21127 return dgettext ();
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_link") 2>conftest.er1
21141 grep -v '^ *+' conftest.er1 >conftest.err
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21145 (exit $ac_status); } && {
21146 test -z "$ac_c_werror_flag" ||
21147 test ! -s conftest.err
21148 } && test -s conftest$ac_exeext &&
21149 $as_test_x conftest$ac_exeext; then
21150 ac_cv_lib_intl_dgettext=yes
21152 echo "$as_me: failed program was
:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ac_cv_lib_intl_dgettext=no
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159 conftest$ac_exeext conftest.$ac_ext
21160 LIBS=$ac_check_lib_save_LIBS
21162 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21163 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21164 if test $ac_cv_lib_intl_dgettext = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define HAVE_LIBINTL 1
21169 LIBS="-lintl $LIBS"
21174 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21175 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21176 if test "${emacs_cv_localtime_cache+set}" = set; then
21177 echo $ECHO_N "(cached
) $ECHO_C" >&6
21179 if test x$ac_cv_func_tzset = xyes; then
21180 if test "$cross_compiling" = yes; then
21181 # If we have tzset, assume the worst when cross-compiling.
21182 emacs_cv_localtime_cache=yes
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21191 extern char **environ;
21195 for (to = from = environ; (*to = *from); from++)
21196 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21199 char TZ_GMT0[] = "TZ
=GMT0
";
21200 char TZ_PST8[] = "TZ
=PST8
";
21203 time_t now = time ((time_t *) 0);
21204 int hour_GMT0, hour_unset;
21205 if (putenv (TZ_GMT0) != 0)
21207 hour_GMT0 = localtime (&now)->tm_hour;
21209 hour_unset = localtime (&now)->tm_hour;
21210 if (putenv (TZ_PST8) != 0)
21212 if (localtime (&now)->tm_hour == hour_GMT0)
21215 if (localtime (&now)->tm_hour != hour_unset)
21220 rm -f conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_link") 2>&5
21229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21231 { (case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_try") 2>&5
21238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 emacs_cv_localtime_cache=no
21242 echo "$as_me: program exited with status
$ac_status" >&5
21243 echo "$as_me: failed program was
:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ( exit $ac_status )
21247 emacs_cv_localtime_cache=yes
21249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21254 # If we lack tzset, report that localtime does not cache TZ,
21255 # since we can't invalidate the cache if we don't have tzset.
21256 emacs_cv_localtime_cache=no
21259 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21260 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21261 if test $emacs_cv_localtime_cache = yes; then
21263 cat >>confdefs.h <<\_ACEOF
21264 #define LOCALTIME_CACHE 1
21269 if test "x
$HAVE_TIMEVAL" = xyes; then
21271 for ac_func in gettimeofday
21273 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21274 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21275 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21276 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21277 echo $ECHO_N "(cached
) $ECHO_C" >&6
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21287 #define $ac_func innocuous_$ac_func
21289 /* System header to define __stub macros and hopefully few prototypes,
21290 which can conflict with char $ac_func (); below.
21291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21292 <limits.h> exists even on freestanding compilers. */
21295 # include <limits.h>
21297 # include <assert.h>
21302 /* Override any GCC internal prototype to avoid an error.
21303 Use char because int might match the return type of a GCC
21304 builtin and then its argument prototype would still apply. */
21309 /* The GNU C library defines this for functions which it implements
21310 to always fail with ENOSYS. Some functions are actually named
21311 something starting with __ and the normal name is an alias. */
21312 #if defined __stub_$ac_func || defined __stub___$ac_func
21319 return $ac_func ();
21324 rm -f conftest.$ac_objext conftest$ac_exeext
21325 if { (ac_try="$ac_link"
21326 case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_link") 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest$ac_exeext &&
21341 $as_test_x conftest$ac_exeext; then
21342 eval "$as_ac_var=yes"
21344 echo "$as_me: failed program was
:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 eval "$as_ac_var=no
"
21350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21351 conftest$ac_exeext conftest.$ac_ext
21353 ac_res=`eval echo '${'$as_ac_var'}'`
21354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21355 echo "${ECHO_T}$ac_res" >&6; }
21356 if test `eval echo '${'$as_ac_var'}'` = yes; then
21357 cat >>confdefs.h <<_ACEOF
21358 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21364 if test $ac_cv_func_gettimeofday = yes; then
21365 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21366 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21367 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21368 echo $ECHO_N "(cached
) $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21377 #ifdef TIME_WITH_SYS_TIME
21378 #include <sys/time.h>
21381 #ifdef HAVE_SYS_TIME_H
21382 #include <sys/time.h>
21390 struct timeval time;
21391 gettimeofday (&time, 0);
21396 rm -f conftest.$ac_objext
21397 if { (ac_try="$ac_compile"
21398 case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_compile") 2>conftest.er1
21405 grep -v '^ *+' conftest.er1 >conftest.err
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21409 (exit $ac_status); } && {
21410 test -z "$ac_c_werror_flag" ||
21411 test ! -s conftest.err
21412 } && test -s conftest.$ac_objext; then
21413 emacs_cv_gettimeofday_two_arguments=yes
21415 echo "$as_me: failed program was
:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 emacs_cv_gettimeofday_two_arguments=no
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21423 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21424 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21425 if test $emacs_cv_gettimeofday_two_arguments = no; then
21427 cat >>confdefs.h <<\_ACEOF
21428 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21436 { echo "$as_me:$LINENO: checking
for socket
" >&5
21437 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21438 if test "${ac_cv_func_socket+set}" = set; then
21439 echo $ECHO_N "(cached
) $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21449 #define socket innocuous_socket
21451 /* System header to define __stub macros and hopefully few prototypes,
21452 which can conflict with char socket (); below.
21453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21454 <limits.h> exists even on freestanding compilers. */
21457 # include <limits.h>
21459 # include <assert.h>
21464 /* Override any GCC internal prototype to avoid an error.
21465 Use char because int might match the return type of a GCC
21466 builtin and then its argument prototype would still apply. */
21471 /* The GNU C library defines this for functions which it implements
21472 to always fail with ENOSYS. Some functions are actually named
21473 something starting with __ and the normal name is an alias. */
21474 #if defined __stub_socket || defined __stub___socket
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (ac_try="$ac_link"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_link") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest$ac_exeext &&
21503 $as_test_x conftest$ac_exeext; then
21504 ac_cv_func_socket=yes
21506 echo "$as_me: failed program was
:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ac_cv_func_socket=no
21512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21513 conftest$ac_exeext conftest.$ac_ext
21515 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21516 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21517 if test $ac_cv_func_socket = yes; then
21523 if test $ok_so_far = yes; then
21524 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21525 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21526 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21527 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21528 echo $ECHO_N "(cached
) $ECHO_C" >&6
21530 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21531 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21533 # Is the header compilable?
21534 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21535 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 #include <netinet/in.h>
21545 rm -f conftest.$ac_objext
21546 if { (ac_try="$ac_compile"
21547 case "(($ac_try" in
21548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549 *) ac_try_echo=$ac_try;;
21551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21552 (eval "$ac_compile") 2>conftest.er1
21554 grep -v '^ *+' conftest.er1 >conftest.err
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21558 (exit $ac_status); } && {
21559 test -z "$ac_c_werror_flag" ||
21560 test ! -s conftest.err
21561 } && test -s conftest.$ac_objext; then
21562 ac_header_compiler=yes
21564 echo "$as_me: failed program was
:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_header_compiler=no
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21572 echo "${ECHO_T}$ac_header_compiler" >&6; }
21574 # Is the header present?
21575 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21576 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 #include <netinet/in.h>
21585 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21593 grep -v '^ *+' conftest.er1 >conftest.err
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21597 (exit $ac_status); } >/dev/null && {
21598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21601 ac_header_preproc=yes
21603 echo "$as_me: failed program was
:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21606 ac_header_preproc=no
21609 rm -f conftest.err conftest.$ac_ext
21610 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21611 echo "${ECHO_T}$ac_header_preproc" >&6; }
21613 # So? What about this header?
21614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21616 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21617 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21618 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21619 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21620 ac_header_preproc=yes
21623 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21624 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21625 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21626 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21627 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21628 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21630 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21631 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21632 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21633 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21634 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21638 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21639 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21640 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21641 echo $ECHO_N "(cached
) $ECHO_C" >&6
21643 ac_cv_header_netinet_in_h=$ac_header_preproc
21645 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21646 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21649 if test $ac_cv_header_netinet_in_h = yes; then
21657 if test $ok_so_far = yes; then
21658 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21659 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21660 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21661 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21662 echo $ECHO_N "(cached
) $ECHO_C" >&6
21664 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21665 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21669 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <arpa/inet.h>
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_header_compiler=yes
21698 echo "$as_me: failed program was
:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_compiler=no
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21706 echo "${ECHO_T}$ac_header_compiler" >&6; }
21708 # Is the header present?
21709 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21710 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <arpa/inet.h>
21719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21720 case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21727 grep -v '^ *+' conftest.er1 >conftest.err
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21731 (exit $ac_status); } >/dev/null && {
21732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21735 ac_header_preproc=yes
21737 echo "$as_me: failed program was
:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_header_preproc=no
21743 rm -f conftest.err conftest.$ac_ext
21744 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21745 echo "${ECHO_T}$ac_header_preproc" >&6; }
21747 # So? What about this header?
21748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21750 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21751 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21752 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21753 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21754 ac_header_preproc=yes
21757 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21758 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21759 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21760 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21761 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21762 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21763 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21764 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21765 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21766 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21768 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21772 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21773 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21774 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21775 echo $ECHO_N "(cached
) $ECHO_C" >&6
21777 ac_cv_header_arpa_inet_h=$ac_header_preproc
21779 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21780 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21783 if test $ac_cv_header_arpa_inet_h = yes; then
21791 if test $ok_so_far = yes; then
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_INET_SOCKETS 1
21800 for ac_header in sys/ioctl.h
21802 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21804 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21805 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21807 echo $ECHO_N "(cached
) $ECHO_C" >&6
21809 ac_res=`eval echo '${'$as_ac_Header'}'`
21810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21811 echo "${ECHO_T}$ac_res" >&6; }
21813 # Is the header compilable?
21814 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21815 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21823 #include <$ac_header>
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_compile") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1 >conftest.err
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21838 (exit $ac_status); } && {
21839 test -z "$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21841 } && test -s conftest.$ac_objext; then
21842 ac_header_compiler=yes
21844 echo "$as_me: failed program was
:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847 ac_header_compiler=no
21850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21852 echo "${ECHO_T}$ac_header_compiler" >&6; }
21854 # Is the header present?
21855 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21856 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <$ac_header>
21865 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21873 grep -v '^ *+' conftest.er1 >conftest.err
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21877 (exit $ac_status); } >/dev/null && {
21878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21881 ac_header_preproc=yes
21883 echo "$as_me: failed program was
:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_header_preproc=no
21889 rm -f conftest.err conftest.$ac_ext
21890 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6; }
21893 # So? What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21896 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21897 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21898 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21900 ac_header_preproc=yes
21903 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21904 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21905 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21906 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21907 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21908 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21909 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21910 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21911 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21914 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21918 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21919 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21920 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21921 echo $ECHO_N "(cached
) $ECHO_C" >&6
21923 eval "$as_ac_Header=\
$ac_header_preproc"
21925 ac_res=`eval echo '${'$as_ac_Header'}'`
21926 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21927 echo "${ECHO_T}$ac_res" >&6; }
21930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931 cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21940 if test -f /usr/lpp/X11/bin/smt.exp; then
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_AIX_SMT_EXP 1
21948 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21949 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21950 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21951 { echo "$as_me:$LINENO: result
: yes" >&5
21952 echo "${ECHO_T}yes" >&6; }
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_DEV_PTMX 1
21959 { echo "$as_me:$LINENO: result
: no
" >&5
21960 echo "${ECHO_T}no
" >&6; }
21963 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21964 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21965 if test "${ac_cv_type_pid_t+set}" = set; then
21966 echo $ECHO_N "(cached
) $ECHO_C" >&6
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 $ac_includes_default
21975 typedef pid_t ac__type_new_;
21979 if ((ac__type_new_ *) 0)
21981 if (sizeof (ac__type_new_))
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_compile") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22000 (exit $ac_status); } && {
22001 test -z "$ac_c_werror_flag" ||
22002 test ! -s conftest.err
22003 } && test -s conftest.$ac_objext; then
22004 ac_cv_type_pid_t=yes
22006 echo "$as_me: failed program was
:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_cv_type_pid_t=no
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22015 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22016 if test $ac_cv_type_pid_t = yes; then
22020 cat >>confdefs.h <<_ACEOF
22027 for ac_header in vfork.h
22029 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22031 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22032 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22033 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22034 echo $ECHO_N "(cached
) $ECHO_C" >&6
22036 ac_res=`eval echo '${'$as_ac_Header'}'`
22037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22038 echo "${ECHO_T}$ac_res" >&6; }
22040 # Is the header compilable?
22041 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22042 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 $ac_includes_default
22050 #include <$ac_header>
22052 rm -f conftest.$ac_objext
22053 if { (ac_try="$ac_compile"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_compile") 2>conftest.er1
22061 grep -v '^ *+' conftest.er1 >conftest.err
22063 cat conftest.err >&5
22064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest.$ac_objext; then
22069 ac_header_compiler=yes
22071 echo "$as_me: failed program was
:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22074 ac_header_compiler=no
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22079 echo "${ECHO_T}$ac_header_compiler" >&6; }
22081 # Is the header present?
22082 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22083 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 #include <$ac_header>
22092 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22104 (exit $ac_status); } >/dev/null && {
22105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22108 ac_header_preproc=yes
22110 echo "$as_me: failed program was
:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 ac_header_preproc=no
22116 rm -f conftest.err conftest.$ac_ext
22117 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22118 echo "${ECHO_T}$ac_header_preproc" >&6; }
22120 # So? What about this header?
22121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22123 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22124 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22125 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22127 ac_header_preproc=yes
22130 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22131 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22132 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22133 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22134 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22135 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22136 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22137 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22140 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22141 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22145 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22146 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22147 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22148 echo $ECHO_N "(cached
) $ECHO_C" >&6
22150 eval "$as_ac_Header=\
$ac_header_preproc"
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22158 cat >>confdefs.h <<_ACEOF
22159 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22168 for ac_func in fork vfork
22170 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22171 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22172 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22173 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22174 echo $ECHO_N "(cached
) $ECHO_C" >&6
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22184 #define $ac_func innocuous_$ac_func
22186 /* System header to define __stub macros and hopefully few prototypes,
22187 which can conflict with char $ac_func (); below.
22188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22189 <limits.h> exists even on freestanding compilers. */
22192 # include <limits.h>
22194 # include <assert.h>
22199 /* Override any GCC internal prototype to avoid an error.
22200 Use char because int might match the return type of a GCC
22201 builtin and then its argument prototype would still apply. */
22206 /* The GNU C library defines this for functions which it implements
22207 to always fail with ENOSYS. Some functions are actually named
22208 something starting with __ and the normal name is an alias. */
22209 #if defined __stub_$ac_func || defined __stub___$ac_func
22216 return $ac_func ();
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (ac_try="$ac_link"
22223 case "(($ac_try" in
22224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225 *) ac_try_echo=$ac_try;;
22227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22228 (eval "$ac_link") 2>conftest.er1
22230 grep -v '^ *+' conftest.er1 >conftest.err
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest$ac_exeext &&
22238 $as_test_x conftest$ac_exeext; then
22239 eval "$as_ac_var=yes"
22241 echo "$as_me: failed program was
:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22244 eval "$as_ac_var=no
"
22247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22248 conftest$ac_exeext conftest.$ac_ext
22250 ac_res=`eval echo '${'$as_ac_var'}'`
22251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22252 echo "${ECHO_T}$ac_res" >&6; }
22253 if test `eval echo '${'$as_ac_var'}'` = yes; then
22254 cat >>confdefs.h <<_ACEOF
22255 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22261 if test "x
$ac_cv_func_fork" = xyes; then
22262 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22263 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22264 if test "${ac_cv_func_fork_works+set}" = set; then
22265 echo $ECHO_N "(cached
) $ECHO_C" >&6
22267 if test "$cross_compiling" = yes; then
22268 ac_cv_func_fork_works=cross
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 $ac_includes_default
22281 /* By Ruediger Kuhlmann. */
22282 return fork () < 0;
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>&5
22297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_func_fork_works=yes
22310 echo "$as_me: program exited with status
$ac_status" >&5
22311 echo "$as_me: failed program was
:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ( exit $ac_status )
22315 ac_cv_func_fork_works=no
22317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22322 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22323 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22326 ac_cv_func_fork_works=$ac_cv_func_fork
22328 if test "x
$ac_cv_func_fork_works" = xcross; then
22330 *-*-amigaos* | *-*-msdosdjgpp*)
22331 # Override, as these systems have only a dummy fork() stub
22332 ac_cv_func_fork_works=no
22335 ac_cv_func_fork_works=yes
22338 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22339 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22341 ac_cv_func_vfork_works=$ac_cv_func_vfork
22342 if test "x
$ac_cv_func_vfork" = xyes; then
22343 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22344 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22345 if test "${ac_cv_func_vfork_works+set}" = set; then
22346 echo $ECHO_N "(cached
) $ECHO_C" >&6
22348 if test "$cross_compiling" = yes; then
22349 ac_cv_func_vfork_works=cross
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 /* Thanks to Paul Eggert for this test. */
22358 $ac_includes_default
22359 #include <sys/wait.h>
22360 #ifdef HAVE_VFORK_H
22361 # include <vfork.h>
22363 /* On some sparc systems, changes by the child to local and incoming
22364 argument registers are propagated back to the parent. The compiler
22365 is told about this with #include <vfork.h>, but some compilers
22366 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22367 static variable whose address is put into a register that is
22368 clobbered by the vfork. */
22371 sparc_address_test (int arg)
22373 sparc_address_test (arg) int arg;
22376 static pid_t child;
22394 pid_t parent = getpid ();
22397 sparc_address_test (0);
22402 /* Here is another test for sparc vfork register problems. This
22403 test uses lots of local variables, at least as many local
22404 variables as main has allocated so far including compiler
22405 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22406 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22407 reuse the register of parent for one of the local variables,
22408 since it will think that parent can't possibly be used any more
22409 in this routine. Assigning to the local variable will thus
22410 munge parent in the parent process. */
22412 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22413 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22414 /* Convince the compiler that p..p7 are live; otherwise, it might
22415 use the same hardware register for all 8 local variables. */
22416 if (p != p1 || p != p2 || p != p3 || p != p4
22417 || p != p5 || p != p6 || p != p7)
22420 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22421 from child file descriptors. If the child closes a descriptor
22422 before it execs or exits, this munges the parent's descriptor
22423 as well. Test for this by closing stdout in the child. */
22424 _exit(close(fileno(stdout)) != 0);
22429 while (wait(&status) != child)
22432 /* Was there some problem with vforking? */
22435 /* Did the child fail? (This shouldn't happen.) */
22438 /* Did the vfork/compiler bug occur? */
22439 || parent != getpid()
22441 /* Did the file descriptor bug occur? */
22442 || fstat(fileno(stdout), &st) != 0
22447 rm -f conftest$ac_exeext
22448 if { (ac_try="$ac_link"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22454 (eval "$ac_link") 2>&5
22456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22458 { (case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_try") 2>&5
22465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_cv_func_vfork_works=yes
22469 echo "$as_me: program exited with status
$ac_status" >&5
22470 echo "$as_me: failed program was
:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 ( exit $ac_status )
22474 ac_cv_func_vfork_works=no
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22481 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22482 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22485 if test "x
$ac_cv_func_fork_works" = xcross; then
22486 ac_cv_func_vfork_works=$ac_cv_func_vfork
22487 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22488 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22491 if test "x
$ac_cv_func_vfork_works" = xyes; then
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_WORKING_VFORK 1
22499 cat >>confdefs.h <<\_ACEOF
22504 if test "x
$ac_cv_func_fork_works" = xyes; then
22506 cat >>confdefs.h <<\_ACEOF
22507 #define HAVE_WORKING_FORK 1
22513 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22514 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22515 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22516 echo $ECHO_N "(cached
) $ECHO_C" >&6
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 #include <langinfo.h>
22528 char* cs = nl_langinfo(CODESET);
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (ac_try="$ac_link"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_link") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext &&
22550 $as_test_x conftest$ac_exeext; then
22551 emacs_cv_langinfo_codeset=yes
22553 echo "$as_me: failed program was
:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 emacs_cv_langinfo_codeset=no
22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560 conftest$ac_exeext conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22564 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22565 if test $emacs_cv_langinfo_codeset = yes; then
22567 cat >>confdefs.h <<\_ACEOF
22568 #define HAVE_LANGINFO_CODESET 1
22573 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22574 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22575 if test "${ac_cv_type_size_t+set}" = set; then
22576 echo $ECHO_N "(cached
) $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 $ac_includes_default
22585 typedef size_t ac__type_new_;
22589 if ((ac__type_new_ *) 0)
22591 if (sizeof (ac__type_new_))
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_type_size_t=yes
22616 echo "$as_me: failed program was
:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_type_size_t=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22625 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22626 if test $ac_cv_type_size_t = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_SIZE_T 1
22636 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22637 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22638 if test "${ac_cv_type_mbstate_t+set}" = set; then
22639 echo $ECHO_N "(cached
) $ECHO_C" >&6
22641 cat >conftest.$ac_ext <<_ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 $ac_includes_default
22648 # include <wchar.h>
22652 mbstate_t x; return sizeof x;
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 *) ac_try_echo=$ac_try;;
22663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_compile") 2>conftest.er1
22666 grep -v '^ *+' conftest.er1 >conftest.err
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest.$ac_objext; then
22674 ac_cv_type_mbstate_t=yes
22676 echo "$as_me: failed program was
:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 ac_cv_type_mbstate_t=no
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22685 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22686 if test $ac_cv_type_mbstate_t = yes; then
22688 cat >>confdefs.h <<\_ACEOF
22689 #define HAVE_MBSTATE_T 1
22694 cat >>confdefs.h <<\_ACEOF
22695 #define mbstate_t int
22700 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22701 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22702 if test "${emacs_cv_c_restrict+set}" = set; then
22703 echo $ECHO_N "(cached
) $ECHO_C" >&6
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 void fred (int *restrict x);
22720 rm -f conftest.$ac_objext
22721 if { (ac_try="$ac_compile"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_compile") 2>conftest.er1
22729 grep -v '^ *+' conftest.er1 >conftest.err
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest.$ac_objext; then
22737 emacs_cv_c_restrict=yes
22739 echo "$as_me: failed program was
:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22742 cat >conftest.$ac_ext <<_ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 void fred (int *__restrict x);
22757 rm -f conftest.$ac_objext
22758 if { (ac_try="$ac_compile"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest.$ac_objext; then
22774 emacs_cv_c_restrict=__restrict
22776 echo "$as_me: failed program was
:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 emacs_cv_c_restrict=no
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22788 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22789 case "$emacs_cv_c_restrict" in
22790 yes) emacs_restrict=restrict;;
22791 no) emacs_restrict="";;
22792 *) emacs_restrict="$emacs_cv_c_restrict";;
22794 if test "$emacs_restrict" != __restrict; then
22796 cat >>confdefs.h <<_ACEOF
22797 #define __restrict $emacs_restrict
22802 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22803 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22804 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22805 echo $ECHO_N "(cached
) $ECHO_C" >&6
22807 cat >conftest.$ac_ext <<_ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 void fred (int x[__restrict]);
22822 rm -f conftest.$ac_objext
22823 if { (ac_try="$ac_compile"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_compile") 2>conftest.er1
22831 grep -v '^ *+' conftest.er1 >conftest.err
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22835 (exit $ac_status); } && {
22836 test -z "$ac_c_werror_flag" ||
22837 test ! -s conftest.err
22838 } && test -s conftest.$ac_objext; then
22839 emacs_cv_c_restrict_arr=yes
22841 echo "$as_me: failed program was
:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 emacs_cv_c_restrict_arr=no
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22850 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22851 if test "$emacs_cv_c_restrict_arr" = yes; then
22853 cat >>confdefs.h <<\_ACEOF
22854 #define __restrict_arr __restrict
22861 # Set up the CFLAGS for real compilation, so we can substitute it.
22862 CFLAGS="$REAL_CFLAGS"
22863 CPPFLAGS="$REAL_CPPFLAGS"
22865 #### Find out which version of Emacs this is.
22866 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22867 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22868 if test x"${version}" = x; then
22869 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22870 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22871 { (exit 1); exit 1; }; }
22874 ### Specify what sort of things we'll be editing into Makefile and config.h.
22875 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22911 cat >>confdefs.h <<_ACEOF
22912 #define EMACS_CONFIGURATION "${canonical}"
22916 cat >>confdefs.h <<_ACEOF
22917 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22921 cat >>confdefs.h <<_ACEOF
22922 #define config_machfile "${machfile}"
22926 cat >>confdefs.h <<_ACEOF
22927 #define config_opsysfile "${opsysfile}"
22931 cat >>confdefs.h <<_ACEOF
22932 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22936 cat >>confdefs.h <<_ACEOF
22937 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22941 cat >>confdefs.h <<_ACEOF
22942 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22946 cat >>confdefs.h <<_ACEOF
22947 #define UNEXEC_SRC ${UNEXEC_SRC}
22951 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_X_WINDOWS 1
22958 if test "${USE_X_TOOLKIT}" != "none
" ; then
22960 cat >>confdefs.h <<\_ACEOF
22961 #define USE_X_TOOLKIT 1
22965 if test "${HAVE_X11}" = "yes" ; then
22967 cat >>confdefs.h <<\_ACEOF
22972 if test "${HAVE_XFREE386}" = "yes" ; then
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_XFREE386 1
22979 if test "${HAVE_MENUS}" = "yes" ; then
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE_MENUS 1
22986 if test "${GNU_MALLOC}" = "yes" ; then
22988 cat >>confdefs.h <<\_ACEOF
22989 #define GNU_MALLOC 1
22993 if test "${REL_ALLOC}" = "yes" ; then
22995 cat >>confdefs.h <<\_ACEOF
22996 #define REL_ALLOC 1
23005 #### Report on what we decided to do.
23006 #### Report GTK as a toolkit, even if it doesn't use Xt.
23007 #### It makes printing result more understandable as using GTK sets
23008 #### toolkit_scroll_bars to yes by default.
23009 if test "${HAVE_GTK}" = "yes"; then
23014 Configured
for \
`${canonical}'.
23016 Where should the build process find the source code? ${srcdir}
23017 What operating system and machine description files should Emacs use?
23018 \`${opsysfile}' and \`${machfile}'
23019 What compiler should emacs be built with?
${CC} ${CFLAGS}
23020 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23021 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23022 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23023 What window system should Emacs use?
${window_system}
23024 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23026 if test -n "${x_includes}"; then
23027 echo " Where
do we
find X Windows header files?
${x_includes}"
23029 echo " Where
do we
find X Windows header files? Standard
dirs"
23031 if test -n "${x_libraries}"; then
23032 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23034 echo " Where
do we
find X Windows libraries? Standard
dirs"
23037 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23038 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23039 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23040 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23041 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23042 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23043 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23046 if test $USE_XASSERTS = yes; then
23047 echo " Compiling with asserts turned on.
"
23048 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23054 # Remove any trailing slashes in these variables.
23055 test "${prefix}" != NONE &&
23056 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23057 test "${exec_prefix}" != NONE &&
23058 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23060 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23061 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23062 ## from Makefile.c can correctly provide the arg `-traditional' to the
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23073 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23074 $EGREP "yes..
yes" >/dev/null 2>&1; then
23075 CPP_NEED_TRADITIONAL=no
23077 CPP_NEED_TRADITIONAL=yes
23082 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
"
23084 ac_config_commands="$ac_config_commands default
"
23086 cat >confcache <<\_ACEOF
23087 # This file is a shell script that caches the results of configure
23088 # tests run on this system so they can be shared between configure
23089 # scripts and configure runs, see configure's option --config-cache.
23090 # It is not useful on other systems. If it contains results you don't
23091 # want to keep, you may remove or edit it.
23093 # config.status only pays attention to the cache file if you give it
23094 # the --recheck option to rerun configure.
23096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23098 # following values.
23102 # The following way of writing the cache mishandles newlines in values,
23103 # but we know of no workaround that is simple, portable, and efficient.
23104 # So, we kill variables containing newlines.
23105 # Ultrix sh set writes to stderr and can't be redirected directly,
23106 # and sets the high bit in the cache file unless we assign to the vars.
23108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23109 eval ac_val=\$$ac_var
23113 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23114 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23117 _ | IFS | as_nl) ;; #(
23118 *) $as_unset $ac_var ;;
23124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23125 *${as_nl}ac_space=\ *)
23126 # `set' does not quote correctly, so add quotes (double-quote
23127 # substitution turns \\\\ into \\, and sed turns \\ into \).
23130 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23133 # `set' quotes correctly as required by POSIX, so do not add quotes.
23134 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23148 if test -w "$cache_file"; then
23149 test "x
$cache_file" != "x
/dev
/null
" &&
23150 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23151 echo "$as_me: updating cache
$cache_file" >&6;}
23152 cat confcache >$cache_file
23154 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23155 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23160 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23161 # Let make expand exec_prefix.
23162 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23164 DEFS=-DHAVE_CONFIG_H
23168 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23169 # 1. Remove the extension, and $U if already installed.
23170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23171 ac_i=`echo "$ac_i" | sed "$ac_script"`
23172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23173 # will be set to the directory where LIBOBJS objects are built.
23174 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23175 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23177 LIBOBJS=$ac_libobjs
23179 LTLIBOBJS=$ac_ltlibobjs
23183 : ${CONFIG_STATUS=./config.status}
23184 ac_clean_files_save=$ac_clean_files
23185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23186 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23187 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23188 cat >$CONFIG_STATUS <<_ACEOF
23190 # Generated by $as_me.
23191 # Run this file to recreate the current configuration.
23192 # Compiler output produced by configure, useful for debugging
23193 # configure, is in config.log if it exists.
23196 ac_cs_recheck=false
23198 SHELL=\${CONFIG_SHELL-$SHELL}
23201 cat >>$CONFIG_STATUS <<\_ACEOF
23202 ## --------------------- ##
23203 ## M4sh Initialization. ##
23204 ## --------------------- ##
23206 # Be more Bourne compatible
23207 DUALCASE=1; export DUALCASE # for MKS sh
23208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23212 # is contrary to our usage. Disable this feature.
23213 alias -g '${1+"$@"}'='"$@
"'
23214 setopt NO_GLOB_SUBST
23216 case `(set -o) 2>/dev/null` in
23217 *posix*) set -o posix ;;
23226 # Avoid depending upon Character Ranges.
23227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23230 as_cr_digits='0123456789'
23231 as_cr_alnum=$as_cr_Letters$as_cr_digits
23233 # The user is always right.
23234 if test "${PATH_SEPARATOR+set}" != set; then
23235 echo "#! /bin/sh" >conf$$.sh
23236 echo "exit 0" >>conf$$.sh
23238 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23246 # Support unset when possible.
23247 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23255 # We need space, tab and new line, in precisely that order. Quoting is
23256 # there to prevent editors from complaining about space-tab.
23257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23258 # splitting by setting IFS to empty value.)
23263 # Find who we are. Look in the path if we contain no directory separator.
23265 *[\\/]* ) as_myself
=$0 ;;
23266 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23267 for as_dir
in $PATH
23270 test -z "$as_dir" && as_dir
=.
23271 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23277 # We did not find ourselves, most probably we were run as `sh COMMAND'
23278 # in which case we are not to be found in the path.
23279 if test "x$as_myself" = x
; then
23282 if test ! -f "$as_myself"; then
23283 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23284 { (exit 1); exit 1; }
23287 # Work around bugs in pre-3.0 UWIN ksh.
23288 for as_var
in ENV MAIL MAILPATH
23289 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23297 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23298 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23299 LC_TELEPHONE LC_TIME
23301 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23302 eval $as_var=C
; export $as_var
23304 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23308 # Required to use basename.
23309 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23310 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23316 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23317 as_basename
=basename
23323 # Name of the executable.
23324 as_me
=`$as_basename -- "$0" ||
23325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23326 X"$0" : 'X\(//\)$' \| \
23327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23329 sed '/^.*\/\([^/][^/]*\)\/*$/{
23348 as_lineno_1
=$LINENO
23349 as_lineno_2
=$LINENO
23350 test "x$as_lineno_1" != "x$as_lineno_2" &&
23351 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23354 # uniformly replaced by the line number. The first 'sed' inserts a
23355 # line-number line after each line using $LINENO; the second 'sed'
23356 # does the real work. The second script uses 'N' to pair each
23357 # line-number line with the line containing $LINENO, and appends
23358 # trailing '-' during substitution so that $LINENO is not a special
23359 # case at line end.
23360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23361 # scripts with optimization help from Paolo Bonzini. Blame Lee
23362 # E. McMahon (1931-1989) for sed's syntax. :-)
23374 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23377 ' >$as_me.lineno
&&
23378 chmod +x
"$as_me.lineno" ||
23379 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23380 { (exit 1); exit 1; }; }
23382 # Don't try to exec as it changes $[0], causing all sort of problems
23383 # (the dirname of $[0] is not the place where we might find the
23384 # original and so on. Autoconf is especially sensitive to this).
23385 .
"./$as_me.lineno"
23386 # Exit status is that of the last command.
23391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23397 ECHO_C
= ECHO_N
= ECHO_T
=
23398 case `echo -n x` in
23400 case `echo 'x\c'` in
23401 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23408 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23409 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23415 rm -f conf$$ conf$$.exe conf$$.
file
23416 if test -d conf$$.dir
; then
23417 rm -f conf$$.dir
/conf$$.
file
23423 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23425 # ... but there are two gotchas:
23426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23428 # In both cases, we have to default to `cp -p'.
23429 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23431 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23436 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23437 rmdir conf$$.dir
2>/dev
/null
23439 if mkdir
-p .
2>/dev
/null
; then
23442 test -d .
/-p && rmdir .
/-p
23446 if test -x / >/dev
/null
2>&1; then
23447 as_test_x
='test -x'
23449 if ls -dL / >/dev
/null
2>&1; then
23456 if test -d "$1"; then
23462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23463 ???[sx]*):;;*)false;;esac;fi
23467 as_executable_p
=$as_test_x
23469 # Sed expression to map a string onto a valid CPP name.
23470 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23472 # Sed expression to map a string onto a valid variable name.
23473 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23478 # Save the log message, to keep $[0] and so on meaningful, and to
23479 # report actual input values of CONFIG_FILES etc. instead of their
23480 # values after options handling.
23482 This file was extended by $as_me, which was
23483 generated by GNU Autoconf 2.61. Invocation command line was
23485 CONFIG_FILES = $CONFIG_FILES
23486 CONFIG_HEADERS = $CONFIG_HEADERS
23487 CONFIG_LINKS = $CONFIG_LINKS
23488 CONFIG_COMMANDS = $CONFIG_COMMANDS
23491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23496 cat >>$CONFIG_STATUS <<_ACEOF
23497 # Files that config.status was made for.
23498 config_files="$ac_config_files"
23499 config_headers="$ac_config_headers"
23500 config_commands="$ac_config_commands"
23504 cat >>$CONFIG_STATUS <<\_ACEOF
23506 \`$as_me' instantiates files from templates according to the
23507 current configuration.
23509 Usage: $0 [OPTIONS] [FILE]...
23511 -h, --help print this help, then exit
23512 -V, --version print version number and configuration settings, then exit
23513 -q, --quiet do not print progress messages
23514 -d, --debug don't remove temporary files
23515 --recheck update $as_me by reconfiguring in the same conditions
23516 --file=FILE[:TEMPLATE]
23517 instantiate the configuration file FILE
23518 --header=FILE[:TEMPLATE]
23519 instantiate the configuration header FILE
23521 Configuration files:
23524 Configuration headers:
23527 Configuration commands:
23530 Report bugs to <bug-autoconf@gnu.org>."
23533 cat >>$CONFIG_STATUS <<_ACEOF
23536 configured by $0, generated by GNU Autoconf 2.61,
23537 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23539 Copyright (C) 2006 Free Software Foundation, Inc.
23540 This config.status script is free software; the Free Software Foundation
23541 gives unlimited permission to copy, distribute and modify it."
23548 cat >>$CONFIG_STATUS <<\_ACEOF
23549 # If no file are specified by the user, then we need to provide default
23550 # value. By we need to know if files were specified by the user.
23556 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23557 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23568 # Handling of the options.
23569 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23571 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23572 echo "$ac_cs_version"; exit ;;
23573 --debug |
--debu |
--deb |
--de |
--d |
-d )
23575 --file |
--fil |
--fi |
--f )
23577 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23578 ac_need_defaults
=false
;;
23579 --header |
--heade |
--head |
--hea )
23581 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23582 ac_need_defaults
=false
;;
23584 # Conflict between --help and --header
23585 { echo "$as_me: error: ambiguous option: $1
23586 Try \`$0 --help' for more information." >&2
23587 { (exit 1); exit 1; }; };;
23588 --help |
--hel |
-h )
23589 echo "$ac_cs_usage"; exit ;;
23590 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23591 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23594 # This is an error.
23595 -*) { echo "$as_me: error: unrecognized option: $1
23596 Try \`$0 --help' for more information." >&2
23597 { (exit 1); exit 1; }; } ;;
23599 *) ac_config_targets
="$ac_config_targets $1"
23600 ac_need_defaults
=false
;;
23606 ac_configure_extra_args
=
23608 if $ac_cs_silent; then
23610 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23614 cat >>$CONFIG_STATUS <<_ACEOF
23615 if \$ac_cs_recheck; then
23616 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23617 CONFIG_SHELL=$SHELL
23618 export CONFIG_SHELL
23619 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23623 cat >>$CONFIG_STATUS <<\_ACEOF
23627 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23628 ## Running $as_me. ##
23634 cat >>$CONFIG_STATUS <<_ACEOF
23638 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23642 cat >>$CONFIG_STATUS <<\_ACEOF
23644 # Handling of arguments.
23645 for ac_config_target
in $ac_config_targets
23647 case $ac_config_target in
23648 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23649 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23650 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23651 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23652 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23653 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23654 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23655 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23656 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23657 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23658 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23659 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23663 { (exit 1); exit 1; }; };;
23668 # If the user did not use the arguments to specify the items to instantiate,
23669 # then the envvar interface is used. Set only those that are not.
23670 # We use the long form for the default assignment because of an extremely
23671 # bizarre bug on SunOS 4.1.3.
23672 if $ac_need_defaults; then
23673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23678 # Have a temporary directory for convenience. Make it in the build tree
23679 # simply because there is no reason against having it here, and in addition,
23680 # creating and moving files from /tmp can sometimes cause problems.
23681 # Hook for its removal unless debugging.
23682 # Note that there is a small window in which the directory will not be cleaned:
23683 # after its creation but before its name has been assigned to `$tmp'.
23687 trap 'exit_status=$?
23688 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23690 trap '{ (exit 1); exit 1; }' 1 2 13 15
23692 # Create a (secure) tmp directory for tmp files.
23695 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23696 test -n "$tmp" && test -d "$tmp"
23699 tmp
=.
/conf$$
-$RANDOM
23700 (umask 077 && mkdir
"$tmp")
23703 echo "$me: cannot create a temporary directory in ." >&2
23704 { (exit 1); exit 1; }
23708 # Set up the sed scripts for CONFIG_FILES section.
23711 # No need to generate the scripts if there are no CONFIG_FILES.
23712 # This happens for instance when ./config.status config.h
23713 if test -n "$CONFIG_FILES"; then
23720 for ac_last_try
in false false false false false
:; do
23721 cat >conf$
$subs.
sed <<_ACEOF
23722 SHELL!$SHELL$ac_delim
23723 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23724 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23725 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23726 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23727 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23728 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23729 exec_prefix!$exec_prefix$ac_delim
23730 prefix!$prefix$ac_delim
23731 program_transform_name!$program_transform_name$ac_delim
23732 bindir!$bindir$ac_delim
23733 sbindir!$sbindir$ac_delim
23734 libexecdir!$libexecdir$ac_delim
23735 datarootdir!$datarootdir$ac_delim
23736 datadir!$datadir$ac_delim
23737 sysconfdir!$sysconfdir$ac_delim
23738 sharedstatedir!$sharedstatedir$ac_delim
23739 localstatedir!$localstatedir$ac_delim
23740 includedir!$includedir$ac_delim
23741 oldincludedir!$oldincludedir$ac_delim
23742 docdir!$docdir$ac_delim
23743 infodir!$infodir$ac_delim
23744 htmldir!$htmldir$ac_delim
23745 dvidir!$dvidir$ac_delim
23746 pdfdir!$pdfdir$ac_delim
23747 psdir!$psdir$ac_delim
23748 libdir!$libdir$ac_delim
23749 localedir!$localedir$ac_delim
23750 mandir!$mandir$ac_delim
23751 DEFS!$DEFS$ac_delim
23752 ECHO_C!$ECHO_C$ac_delim
23753 ECHO_N!$ECHO_N$ac_delim
23754 ECHO_T!$ECHO_T$ac_delim
23755 LIBS!$LIBS$ac_delim
23756 build_alias!$build_alias$ac_delim
23757 host_alias!$host_alias$ac_delim
23758 target_alias!$target_alias$ac_delim
23759 MAINT!$MAINT$ac_delim
23760 build!$build$ac_delim
23761 build_cpu!$build_cpu$ac_delim
23762 build_vendor!$build_vendor$ac_delim
23763 build_os!$build_os$ac_delim
23764 host!$host$ac_delim
23765 host_cpu!$host_cpu$ac_delim
23766 host_vendor!$host_vendor$ac_delim
23767 host_os!$host_os$ac_delim
23769 CFLAGS!$CFLAGS$ac_delim
23770 LDFLAGS!$LDFLAGS$ac_delim
23771 CPPFLAGS!$CPPFLAGS$ac_delim
23772 ac_ct_CC!$ac_ct_CC$ac_delim
23773 EXEEXT!$EXEEXT$ac_delim
23774 OBJEXT!$OBJEXT$ac_delim
23776 GREP!$GREP$ac_delim
23777 EGREP!$EGREP$ac_delim
23778 LN_S!$LN_S$ac_delim
23779 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23780 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23781 INSTALL_DATA!$INSTALL_DATA$ac_delim
23782 RANLIB!$RANLIB$ac_delim
23783 INSTALL_INFO!$INSTALL_INFO$ac_delim
23784 GZIP_PROG!$GZIP_PROG$ac_delim
23785 LIBSOUND!$LIBSOUND$ac_delim
23786 PKG_CONFIG!$PKG_CONFIG$ac_delim
23787 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23788 ALSA_LIBS!$ALSA_LIBS$ac_delim
23789 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23790 SET_MAKE!$SET_MAKE$ac_delim
23791 XMKMF!$XMKMF$ac_delim
23792 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23793 GTK_LIBS!$GTK_LIBS$ac_delim
23794 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23795 XFT_LIBS!$XFT_LIBS$ac_delim
23796 ALLOCA!$ALLOCA$ac_delim
23797 liblockfile!$liblockfile$ac_delim
23798 LIBOBJS!$LIBOBJS$ac_delim
23799 NEED_SETGID!$NEED_SETGID$ac_delim
23800 KMEM_GROUP!$KMEM_GROUP$ac_delim
23801 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23802 GETOPT_H!$GETOPT_H$ac_delim
23803 GETOPTOBJS!$GETOPTOBJS$ac_delim
23804 version!$version$ac_delim
23805 configuration!$configuration$ac_delim
23806 canonical!$canonical$ac_delim
23807 srcdir!$srcdir$ac_delim
23808 lispdir!$lispdir$ac_delim
23809 locallisppath!$locallisppath$ac_delim
23810 lisppath!$lisppath$ac_delim
23811 x_default_search_path!$x_default_search_path$ac_delim
23812 etcdir!$etcdir$ac_delim
23813 archlibdir!$archlibdir$ac_delim
23814 bitmapdir!$bitmapdir$ac_delim
23815 gamedir!$gamedir$ac_delim
23816 gameuser!$gameuser$ac_delim
23817 c_switch_system!$c_switch_system$ac_delim
23818 c_switch_machine!$c_switch_machine$ac_delim
23821 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23823 elif $ac_last_try; then
23824 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23826 { (exit 1); exit 1; }; }
23828 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23832 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23833 if test -n "$ac_eof"; then
23834 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23835 ac_eof
=`expr $ac_eof + 1`
23838 cat >>$CONFIG_STATUS <<_ACEOF
23839 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23844 s/^/s,@/; s/!/@,|#_!!_#|/
23847 s/'"$ac_delim"'$/,g/; t
23849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23850 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23851 rm -f conf$
$subs.
sed
23852 cat >>$CONFIG_STATUS <<_ACEOF
23858 for ac_last_try
in false false false false false
:; do
23859 cat >conf$
$subs.
sed <<_ACEOF
23860 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23861 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23862 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23863 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23864 machfile!$machfile$ac_delim
23865 opsysfile!$opsysfile$ac_delim
23866 carbon_appdir!$carbon_appdir$ac_delim
23867 LTLIBOBJS!$LTLIBOBJS$ac_delim
23870 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23872 elif $ac_last_try; then
23873 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23874 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23875 { (exit 1); exit 1; }; }
23877 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23881 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23882 if test -n "$ac_eof"; then
23883 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23884 ac_eof
=`expr $ac_eof + 1`
23887 cat >>$CONFIG_STATUS <<_ACEOF
23888 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23892 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23893 s/^/s,@/; s/!/@,|#_!!_#|/
23896 s/'"$ac_delim"'$/,g/; t
23898 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23899 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23900 rm -f conf$
$subs.
sed
23901 cat >>$CONFIG_STATUS <<_ACEOF
23908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23910 # trailing colons and then remove the whole line if VPATH becomes empty
23911 # (actually we leave an empty line to preserve line numbers).
23912 if test "x$srcdir" = x.
; then
23913 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23914 s/:*\$(srcdir):*/:/
23915 s/:*\${srcdir}:*/:/
23917 s/^\([^=]*=[ ]*\):*/\1/
23923 cat >>$CONFIG_STATUS <<\_ACEOF
23924 fi # test -n "$CONFIG_FILES"
23927 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23930 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23932 case $ac_mode$ac_tag in
23934 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23935 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23936 { (exit 1); exit 1; }; };;
23937 :[FH
]-) ac_tag
=-:-;;
23938 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23955 -) ac_f
="$tmp/stdin";;
23956 *) # Look for the file first in the build tree, then in the source tree
23957 # (if the path is not absolute). The absolute path cannot be DOS-style,
23958 # because $ac_f cannot contain `:'.
23962 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23964 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23965 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23966 { (exit 1); exit 1; }; };;
23968 ac_file_inputs
="$ac_file_inputs $ac_f"
23971 # Let's still pretend it is `configure' which instantiates (i.e., don't
23972 # use $as_me), people would be surprised to read:
23973 # /* config.h. Generated by config.status. */
23974 configure_input
="Generated from "`IFS=:
23975 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23976 if test x
"$ac_file" != x-
; then
23977 configure_input
="$ac_file. $configure_input"
23978 { echo "$as_me:$LINENO: creating $ac_file" >&5
23979 echo "$as_me: creating $ac_file" >&6;}
23983 *:-:* |
*:-) cat >"$tmp/stdin";;
23988 ac_dir
=`$as_dirname -- "$ac_file" ||
23989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23990 X"$ac_file" : 'X\(//\)[^/]' \| \
23991 X"$ac_file" : 'X\(//\)$' \| \
23992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23998 /^X\(\/\/\)[^/].*/{
24013 -*) as_dir
=.
/$as_dir;;
24015 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24019 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24020 *) as_qdir
=$as_dir;;
24022 as_dirs
="'$as_qdir' $as_dirs"
24023 as_dir
=`$as_dirname -- "$as_dir" ||
24024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24025 X"$as_dir" : 'X\(//\)[^/]' \| \
24026 X"$as_dir" : 'X\(//\)$' \| \
24027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24033 /^X\(\/\/\)[^/].*/{
24046 test -d "$as_dir" && break
24048 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24049 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24050 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24051 { (exit 1); exit 1; }; }; }
24055 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24057 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24058 # A ".." for each directory in $ac_dir_suffix.
24059 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24060 case $ac_top_builddir_sub in
24061 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24062 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24065 ac_abs_top_builddir
=$ac_pwd
24066 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24067 # for backward compatibility:
24068 ac_top_builddir
=$ac_top_build_prefix
24071 .
) # We are building in place.
24073 ac_top_srcdir
=$ac_top_builddir_sub
24074 ac_abs_top_srcdir
=$ac_pwd ;;
24075 [\\/]* | ?
:[\\/]* ) # Absolute name.
24076 ac_srcdir
=$srcdir$ac_dir_suffix;
24077 ac_top_srcdir
=$srcdir
24078 ac_abs_top_srcdir
=$srcdir ;;
24079 *) # Relative name.
24080 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24081 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24082 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24084 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24094 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24095 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24099 cat >>$CONFIG_STATUS <<\_ACEOF
24100 # If the template does not know about datarootdir, expand it.
24101 # FIXME: This hack should be removed a few years after 2.60.
24102 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24104 case `sed -n '/datarootdir/ {
24113 ' $ac_file_inputs` in
24114 *datarootdir
*) ac_datarootdir_seen
=yes;;
24115 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24116 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24117 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24119 cat >>$CONFIG_STATUS <<_ACEOF
24120 ac_datarootdir_hack='
24121 s&@datadir@&$datadir&g
24122 s&@docdir@&$docdir&g
24123 s&@infodir@&$infodir&g
24124 s&@localedir@&$localedir&g
24125 s&@mandir@&$mandir&g
24126 s&\\\${datarootdir}&$datarootdir&g' ;;
24130 # Neutralize VPATH when `$srcdir' = `.'.
24131 # Shell code in configure.ac might set extrasub.
24132 # FIXME: do we really want to maintain this feature?
24133 cat >>$CONFIG_STATUS <<_ACEOF
24137 cat >>$CONFIG_STATUS <<\_ACEOF
24139 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24140 s
&@configure_input@
&$configure_input&;t t
24141 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24142 s
&@srcdir@
&$ac_srcdir&;t t
24143 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24144 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24145 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24146 s
&@builddir@
&$ac_builddir&;t t
24147 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24148 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24149 s
&@INSTALL@
&$ac_INSTALL&;t t
24150 $ac_datarootdir_hack
24151 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24154 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24156 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24157 which seems to be undefined. Please make sure it is defined." >&5
24158 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24159 which seems to be undefined. Please make sure it is defined." >&2;}
24163 -) cat "$tmp/out"; rm -f "$tmp/out";;
24164 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24173 # Transform confdefs.h into a sed script `conftest.defines', that
24174 # substitutes the proper values into config.h.in to produce config.h.
24175 rm -f conftest.defines conftest.
tail
24176 # First, append a space to every undef/define line, to ease matching.
24177 echo 's/$/ /' >conftest.defines
24178 # Then, protect against being on the right side of a sed subst, or in
24179 # an unquoted here document, in config.status. If some macros were
24180 # called several times there might be several #defines for the same
24181 # symbol, which is useless. But do not sort them, since the last
24182 # AC_DEFINE must be honored.
24183 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24184 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24185 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24186 # PARAMS is the parameter list in the macro definition--in most cases, it's
24187 # just an empty string.
24188 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24189 ac_dB
='\\)[ (].*,\\1define\\2'
24197 s/^[ ]*#[ ]*define[ ][ ]*//
24202 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24203 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24204 ' >>conftest.defines
24206 # Remove the space that was appended to ease matching.
24207 # Then replace #undef with comments. This is necessary, for
24208 # example, in the case of _POSIX_SOURCE, which is predefined and required
24209 # on some systems where configure will not decide to define it.
24210 # (The regexp can be short, since the line contains either #define or #undef.)
24212 s,^[ #]*u.*,/* & */,' >>conftest.defines
24214 # Break up conftest.defines:
24215 ac_max_sed_lines
=50
24217 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24218 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24219 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24221 ac_in
='$ac_file_inputs'
24222 ac_out
='"$tmp/out1"'
24223 ac_nxt
='"$tmp/out2"'
24227 # Write a here document:
24228 cat >>$CONFIG_STATUS <<_ACEOF
24229 # First, check the format of the line:
24230 cat >"\$tmp/defines.sed" <<\\CEOF
24231 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24232 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24236 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24238 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24239 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24240 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24241 grep . conftest.
tail >/dev
/null ||
break
24242 rm -f conftest.defines
24243 mv conftest.
tail conftest.defines
24245 rm -f conftest.defines conftest.
tail
24247 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24248 cat >>$CONFIG_STATUS <<\_ACEOF
24249 if test x
"$ac_file" != x-
; then
24250 echo "/* $configure_input */" >"$tmp/config.h"
24251 cat "$ac_result" >>"$tmp/config.h"
24252 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24253 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24254 echo "$as_me: $ac_file is unchanged" >&6;}
24257 mv "$tmp/config.h" $ac_file
24260 echo "/* $configure_input */"
24266 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24267 echo "$as_me: executing $ac_file commands" >&6;}
24272 case $ac_file$ac_mode in
24275 ### Make the necessary directories, if they don't exist.
24276 for dir
in etc lisp
; do
24277 test -d ${dir} || mkdir
${dir}
24280 # Build src/Makefile from ${srcdir}/src/Makefile.c
24281 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24282 # This must be done after src/config.h is built, since we rely on that file.
24284 # Now get this: Some word that is part of the ${srcdir} directory name
24285 # or the ${configuration} value might, just might, happen to be an
24286 # identifier like `sun4' or `i386' or something, and be predefined by
24287 # the C preprocessor to some helpful value like 1, or maybe the empty
24288 # string. Needless to say consequent macro substitutions are less
24289 # than conducive to the makefile finding the correct directory.
24290 undefs
="`echo $top_srcdir $configuration $canonical |
24291 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24292 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24295 echo creating src
/epaths.h
24296 ${MAKE-make} epaths-force
24298 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24299 # `..' to `. .' unless invoked with -traditional
24301 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24302 CPPFLAGS
="$CPPFLAGS -traditional"
24305 echo creating lib-src
/Makefile
24307 rm -f junk.c junk1.c junk2.c
24308 sed -e '/start of cpp stuff/q' \
24309 < Makefile.c
> junk1.c
24310 sed -e '1,/start of cpp stuff/d'\
24311 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24312 < Makefile.c
> junk.c
24313 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24314 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24315 cat junk1.c junk2.c
> Makefile.new
24316 rm -f junk.c junk1.c junk2.c
24317 chmod 444 Makefile.new
24318 mv -f Makefile.new Makefile
24321 echo creating src
/Makefile
24323 rm -f junk.c junk1.c junk2.c
24324 sed -e '/start of cpp stuff/q' \
24325 < Makefile.c
> junk1.c
24326 sed -e '1,/start of cpp stuff/d'\
24327 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24328 < Makefile.c
> junk.c
24329 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24330 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24331 cat junk1.c junk2.c
> Makefile.new
24332 rm -f junk.c junk1.c junk2.c
24333 chmod 444 Makefile.new
24334 mv -f Makefile.new Makefile
24337 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24338 echo creating src
/.gdbinit
24339 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24342 # This is how we know whether to re-run configure in certain cases.
24343 touch src
/config.stamp
24351 { (exit 0); exit 0; }
24353 chmod +x
$CONFIG_STATUS
24354 ac_clean_files
=$ac_clean_files_save
24357 # configure is writing to config.log, and then calls config.status.
24358 # config.status does its own redirection, appending to config.log.
24359 # Unfortunately, on DOS this fails, as config.log is still kept open
24360 # by configure, so config.status won't be able to write to it; its
24361 # output is simply discarded. So we exec the FD to /dev/null,
24362 # effectively closing config.log, so it can be properly (re)opened and
24363 # appended to by config.status. When coming back to configure, we
24364 # need to make the FD available again.
24365 if test "$no_create" != yes; then
24367 ac_config_status_args
=
24368 test "$silent" = yes &&
24369 ac_config_status_args
="$ac_config_status_args --quiet"
24371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24374 # would make configure fail if this is the last instruction.
24375 $ac_cs_success ||
{ (exit 1); exit 1; }