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 shle-
*-netbsd*) machine
=sh3el
;;
2245 case "${canonical}" in
2246 alpha
*-*-openbsd*) machine
=alpha
;;
2247 i386-
*-openbsd*) machine
=intel386
;;
2248 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2249 m68k-
*-openbsd*) machine
=hp9000s300
;;
2250 mipsel-
*-openbsd*) machine
=pmax
;;
2251 ns32k-
*-openbsd*) machine
=ns32000
;;
2252 sparc-
*-openbsd*) machine
=sparc
;;
2253 vax-
*-openbsd*) machine
=vax
;;
2260 case "${canonical}" in
2261 i
[3456]86-*-lynxos*) machine
=intel386
;;
2262 powerpc-
*-lynxos*) machine
=powerpc
;;
2267 arm-acorn-riscix1.1
* )
2268 machine
=acorn opsys
=riscix1-1
2270 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2271 ## This name is riscix12 instead of riscix1.2
2272 ## to avoid a file name conflict on MSDOS.
2273 machine
=acorn opsys
=riscix12
2279 case "${canonical}" in
2280 i
[345]86-*-bsdi*) machine
=intel386
;;
2281 sparc-
*-bsdi*) machine
=sparc
;;
2282 powerpc-
*-bsdi*) machine
=macppc
;;
2284 case "${canonical}" in
2285 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2286 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2287 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2288 *-*-bsdi3* ) opsys
=bsdos3
;;
2289 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2294 ## Strictly speaking, we need the version of the alliant operating
2295 ## system to choose the right machine file, but currently the
2296 ## configuration name doesn't tell us enough to choose the right
2297 ## one; we need to give alliants their own operating system name to
2298 ## do this right. When someone cares, they can help us.
2300 machine
=alliant4 opsys
=bsd4-2
2303 machine
=alliant-2800 opsys
=bsd4-3
2306 ## Alpha (DEC) machines.
2308 machine
=alpha opsys
=osf1
2309 # This is needed to find X11R6.1 libraries for certain tests.
2310 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2311 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2312 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2313 # due to non-traditional preprocessing with the current compiler
2314 # defaults. OSF 4 can also have that compiler version, and there
2315 # seems always to have been a usable /usr/bin/cpp.
2316 NON_GNU_CPP
=/usr
/bin
/cpp
2317 case "${canonical}" in
2318 alpha
*-dec-osf[5-9]*)
2323 alpha
*-*-linux-gnu* )
2324 machine
=alpha opsys
=gnu-linux
2328 machine
=arm opsys
=gnu-linux
2333 machine
=altos opsys
=usg5-2
2338 machine
=amdahl opsys
=usg5-2-2
2341 ## Apollo, Domain/OS
2343 machine
=apollo opsys
=bsd4-3
2346 ## Apple Darwin / Mac OS X
2348 case "${canonical}" in
2349 i
[3456]86-* ) machine
=intel386
;;
2350 powerpc-
* ) machine
=powermac
;;
2354 # Define CPP as follows to make autoconf work correctly.
2355 CPP
="${CC-cc} -E -no-cpp-precomp"
2356 # Use fink packages if available.
2357 if test -d /sw
/include
&& test -d /sw
/lib
; then
2358 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2359 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2360 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2364 ## AT&T 3b2, 3b5, 3b15, 3b20
2366 machine
=att3b opsys
=usg5-2-2
2369 ## AT&T 3b1 - The Mighty Unix PC!
2371 machine
=7300 opsys
=usg5-2-2
2376 machine
=ibmrs6000 opsys
=aix3-2
2381 machine
=dpx2 opsys
=usg5-3
2386 machine
=sps7 opsys
=usg5-2
2389 ## CCI 5/32, 6/32 -- see "Tahoe".
2392 ## I don't know what configuration name to use for this; config.sub
2393 ## doesn't seem to know anything about it. Hey, Celerity users, get
2394 ## in touch with us!
2395 celerity-celerity-bsd
* )
2396 machine
=celerity opsys
=bsd4-2
2400 ## What operating systems does this chip run that Emacs has been
2404 ## We'll use the catch-all code at the bottom to guess the
2405 ## operating system.
2409 mips-compaq-nonstopux
* )
2410 machine
=nonstopux opsys
=nonstopux
2414 *-convex-bsd* |
*-convex-convexos* )
2415 machine
=convex opsys
=bsd4-3
2416 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2417 NON_GNU_CPP
="cc -E -P"
2421 i
[3456]86-cubix-sysv* )
2422 machine
=intel386 opsys
=usg5-3
2426 cydra
*-cydrome-sysv* )
2427 machine
=cydra5 opsys
=usg5-3
2430 ## Data General AViiON Machines
2431 ## DG changed naming conventions with the release of 5.4.4.10, they
2432 ## dropped the initial 5.4 but left the intervening R. Because of the
2433 ## R this shouldn't conflict with older versions of the OS (which I
2434 ## think were named like dgux4.*). In addition, DG new AViiONs series
2435 ## uses either Motorola M88k or Intel Pentium CPUs.
2436 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2437 machine
=aviion opsys
=dgux4
2439 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2440 ## This name is dgux5-4-3 instead of dgux5-4r3
2441 ## to avoid a file name conflict on MSDOS.
2442 machine
=aviion opsys
=dgux5-4-3
2444 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2445 machine
=aviion opsys
=dgux5-4r2
2448 machine
=aviion opsys
=dgux
2451 ## Data General AViiON Intel (x86) Machines
2452 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2453 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2454 i
[345]86-dg-dguxR4* )
2455 machine
=aviion-intel opsys
=dgux4
2459 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2460 machine
=pmax opsys
=bsd4-2
2462 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2463 machine
=pmax opsys
=bsd4-3
2466 machine
=pmax opsys
=ultrix4-3
2469 machine
=pmax opsys
=osf1
2471 mips-dec-mach_bsd4.3
* )
2472 machine
=pmax opsys
=mach-bsd4-3
2475 ## Motorola Delta machines
2476 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2477 machine
=delta opsys
=usg5-3
2478 if test -z "`type gnucc | grep 'not found'`"
2480 if test -s /etc
/167config
2481 then CC
="gnucc -m68040"
2482 else CC
="gnucc -m68881"
2485 if test -z "`type gcc | grep 'not found'`"
2491 m88k-motorola-sysv4
* )
2492 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2493 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2494 # I hope there are not other 4.0 versions for this machine
2495 # which really need usg5-4 instead.
2496 machine
=delta88k opsys
=usg5-4-2
2498 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2499 machine
=delta88k opsys
=usg5-3
2504 machine
=dual opsys
=usg5-2
2506 m68
*-dual-uniplus* )
2507 machine
=dual opsys
=unipl5-2
2512 machine
=elxsi opsys
=usg5-2
2517 machine
=ns16000 opsys
=umax
2520 ## The GEC 63 - apparently, this port isn't really finished yet.
2521 # I'm sure we finished off the last of the machines, though. -- fx
2523 ## Gould Power Node and NP1
2525 machine
=gould opsys
=bsd4-2
2528 machine
=gould opsys
=bsd4-3
2531 machine
=gould-np1 opsys
=bsd4-3
2534 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2535 ## as far as Emacs is concerned).
2537 # Build needs to be different on 7.0 and later releases
2538 case "`uname -r`" in
2539 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2540 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2542 NON_GNU_CPP
="/lib/cpp"
2544 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2546 machine
=nh3000 opsys
=cxux
2548 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2549 powerpc-harris-powerunix
)
2550 machine
=nh6000 opsys
=powerunix
2551 NON_GNU_CPP
="cc -Xo -E -P"
2554 xps
*-honeywell-sysv* )
2555 machine
=xps100 opsys
=usg5-2
2558 ## HP 9000 series 200 or 300
2560 machine
=hp9000s300 opsys
=bsd4-3
2562 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2564 case "`uname -r`" in
2565 ## Someone's system reports A.B8.05 for this.
2566 ## I wonder what other possibilities there are.
2567 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2568 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2569 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2570 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2571 *) machine
=hp9000s300 opsys
=hpux
;;
2577 machine
=orion opsys
=bsd4-2
2579 clipper-orion-bsd
* )
2580 machine
=orion105 opsys
=bsd4-2
2584 i
[3456]86-ibm-aix1.1
* )
2585 machine
=ibmps2-aix opsys
=usg5-2-2
2587 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2588 machine
=ibmps2-aix opsys
=usg5-3
2591 machine
=ibm370aix opsys
=usg5-3
2594 machine
=ibms390 opsys
=gnu-linux
2596 s390x-
*-linux-gnu* )
2597 machine
=ibms390x opsys
=gnu-linux
2599 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2600 machine
=ibmrs6000 opsys
=aix3-1
2602 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2603 machine
=ibmrs6000 opsys
=aix3-2-5
2605 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2606 machine
=ibmrs6000 opsys
=aix4-1
2608 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2609 machine
=ibmrs6000 opsys
=aix4-2
2611 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2612 machine
=ibmrs6000 opsys
=aix4-2
2614 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2615 machine
=ibmrs6000 opsys
=aix4
2617 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2618 machine
=ibmrs6000 opsys
=aix4-1
2620 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2621 machine
=ibmrs6000 opsys
=aix3-2
2624 machine
=ibmrt opsys
=bsd4-3
2627 machine
=ibmrt opsys
=bsd4-2
2630 machine
=ibmrt opsys
=bsd4-3
2633 machine
=ibmrt opsys
=bsd4-2
2636 machine
=ibmrt opsys
=bsd4-3
2639 machine
=ibmrt opsys
=bsd4-3
2642 machine
=ibmrt-aix opsys
=usg5-2-2
2645 ## Integrated Solutions `Optimum V'
2647 machine
=isi-ov opsys
=bsd4-2
2650 machine
=isi-ov opsys
=bsd4-3
2653 ## Intel 386 machines where we do care about the manufacturer
2654 i
[3456]86-intsys-sysv* )
2655 machine
=is386 opsys
=usg5-2-2
2659 i
[3456]86-prime-sysv* )
2660 machine
=i386 opsys
=usg5-3
2663 ## Sequent Symmetry running Dynix
2664 i
[3456]86-sequent-bsd* )
2665 machine
=symmetry opsys
=bsd4-3
2668 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2669 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2670 machine
=sequent-ptx opsys
=ptx4
2671 NON_GNU_CPP
=/lib
/cpp
2674 ## Sequent Symmetry running DYNIX/ptx
2675 ## Use the old cpp rather than the newer ANSI one.
2676 i
[3456]86-sequent-ptx* )
2677 machine
=sequent-ptx opsys
=ptx
2678 NON_GNU_CPP
="/lib/cpp"
2681 ## ncr machine running svr4.3.
2682 i
[3456]86-ncr-sysv4.3
)
2683 machine
=ncr386 opsys
=usg5-4-3
2686 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2687 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2688 i
[3456]86-ncr-sysv* )
2689 machine
=ncr386 opsys
=usg5-4-2
2692 ## Intel Paragon OSF/1
2694 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2699 machine
=i860 opsys
=usg5-4
2700 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2701 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2704 ## Macintosh PowerPC
2705 powerpc
*-*-linux-gnu* )
2706 machine
=macppc opsys
=gnu-linux
2709 ## Masscomp machines
2710 m68
*-masscomp-rtu* )
2711 machine
=masscomp opsys
=rtu
2714 ## Megatest machines
2715 m68
*-megatest-bsd* )
2716 machine
=mega68 opsys
=bsd4-2
2719 ## Workstations sold by MIPS
2720 ## This is not necessarily all workstations using the MIPS processor -
2721 ## Irises are produced by SGI, and DECstations by DEC.
2723 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2724 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2725 ## it gives for choosing between the alternatives seems to be "Use
2726 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2727 ## the BSD world." I'll assume that these are instructions for
2728 ## handling two odd situations, and that every other situation
2729 ## should use mips.h and usg5-2-2, they being listed first.
2732 ## Fall through to the general code at the bottom to decide on the OS.
2734 mips-mips-riscos4
* )
2735 machine
=mips4 opsys
=bsd4-3
2736 NON_GNU_CC
="cc -systype bsd43"
2737 NON_GNU_CPP
="cc -systype bsd43 -E"
2739 mips-mips-riscos5
* )
2740 machine
=mips4 opsys
=riscos5
2741 NON_GNU_CC
="cc -systype bsd43"
2742 NON_GNU_CPP
="cc -systype bsd43 -E"
2745 machine
=mips opsys
=bsd4-3
2748 machine
=mips opsys
=usg5-2-2
2752 m68
*-next-* | m68k-
*-nextstep* )
2753 machine
=m68k opsys
=nextstep
2756 ## The complete machine from National Semiconductor
2758 machine
=ns32000 opsys
=usg5-2
2762 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2763 machine
=tower32 opsys
=usg5-2-2
2765 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2766 machine
=tower32v3 opsys
=usg5-3
2771 machine
=ews4800 opsys
=ux4800
2774 ## Nixdorf Targon 31
2775 m68
*-nixdorf-sysv* )
2776 machine
=targon31 opsys
=usg5-2-2
2781 machine
=nu opsys
=usg5-2
2786 machine
=plexus opsys
=usg5-2
2790 ## I don't really have any idea what sort of processor the Pyramid has,
2791 ## so I'm assuming it is its own architecture.
2792 pyramid-pyramid-bsd
* )
2793 machine
=pyramid opsys
=bsd4-2
2797 ns32k-sequent-bsd4.2
* )
2798 machine
=sequent opsys
=bsd4-2
2800 ns32k-sequent-bsd4.3
* )
2801 machine
=sequent opsys
=bsd4-3
2805 mips-siemens-sysv
* | mips-sni-sysv
*)
2806 machine
=mips-siemens opsys
=usg5-4
2807 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2808 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2811 ## Silicon Graphics machines
2812 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2814 machine
=irist opsys
=iris3-5
2816 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2817 machine
=irist opsys
=iris3-6
2821 machine
=iris4d opsys
=irix3-3
2824 machine
=iris4d opsys
=irix4-0
2827 machine
=iris4d opsys
=irix6-5
2828 # Without defining _LANGUAGE_C, things get masked out in the headers
2829 # so that, for instance, grepping for `free' in stdlib.h fails and
2830 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2831 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2832 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2835 machine
=iris4d opsys
=irix6-0
2836 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2837 # but presumably it does no harm.
2838 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2839 # -32 probably isn't necessary in later v.6s -- anyone know which?
2840 NON_GCC_TEST_OPTIONS
=-32
2842 mips-sgi-irix5.
[01]* )
2843 machine
=iris4d opsys
=irix5-0
2845 mips-sgi-irix5
* | mips-sgi-irix
* )
2846 machine
=iris4d opsys
=irix5-2
2851 machine
=news opsys
=bsd4-2
2854 machine
=news opsys
=bsd4-3
2856 m68
*-sony-newsos3* | m68
*-sony-news3*)
2857 machine
=news opsys
=bsd4-3
2859 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2860 machine
=news-risc opsys
=bsd4-3
2862 mips-sony-newsos6
* )
2863 machine
=news-r6 opsys
=newsos6
2866 machine
=news-risc opsys
=newsos5
2871 machine
=stride opsys
=usg5-2
2875 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2876 machine
=sparc opsys
=gnu-linux
2879 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2880 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2881 | rs6000-
*-solaris2*)
2882 case "${canonical}" in
2883 m68
*-sunos1* ) machine
=sun1
;;
2884 m68
*-sunos2* ) machine
=sun2
;;
2885 m68
* ) machine
=sun3
;;
2886 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2887 i
[3456]86-*-* ) machine
=intel386
;;
2888 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2889 powerpcle
* ) machine
=powerpcle
;;
2890 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2891 sparc
* ) machine
=sparc
;;
2894 case "${canonical}" in
2895 ## The Sun386 didn't get past 4.0.
2896 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2897 *-sunos4.0
* ) opsys
=sunos4-0
;;
2898 *-sunos4.1.
[3-9]*noshare
)
2899 ## This name is sunos413 instead of sunos4-1-3
2900 ## to avoid a file name conflict on MSDOS.
2902 NON_GNU_CPP
=/usr
/lib
/cpp
2903 NON_GCC_TEST_OPTIONS
=-Bstatic
2904 GCC_TEST_OPTIONS
=-static
2906 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2908 NON_GNU_CPP
=/usr
/lib
/cpp
2910 *-sunos4* |
*-sunos )
2912 NON_GCC_TEST_OPTIONS
=-Bstatic
2913 GCC_TEST_OPTIONS
=-static
2915 *-sunos5.3
* |
*-solaris2.3
* )
2917 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2919 *-sunos5.4
* |
*-solaris2.4
* )
2921 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2924 *-sunos5.5
* |
*-solaris2.5
* )
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2929 *-sunos5.6
* |
*-solaris2.6
* )
2931 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2934 *-sunos5* |
*-solaris* )
2936 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2940 ## Watch out for a compiler that we know will not work.
2941 case "${canonical}" in
2942 *-solaris* |
*-sunos5* )
2943 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2944 ## /usr/ucb/cc doesn't work;
2945 ## we should find some other compiler that does work.
2953 machine
=sparc opsys
=nextstep
2957 m68
*-tadpole-sysv* )
2958 machine
=tad68k opsys
=usg5-3
2962 tahoe-tahoe-bsd4.2
* )
2963 machine
=tahoe opsys
=bsd4-2
2965 tahoe-tahoe-bsd4.3
* )
2966 machine
=tahoe opsys
=bsd4-3
2969 ## Tandem Integrity S2
2971 machine
=tandem-s2 opsys
=usg5-3
2975 m88k-tektronix-sysv3
* )
2976 machine
=tekxd88 opsys
=usg5-3
2979 ## Tektronix 16000 box (6130?)
2980 ns16k-tektronix-bsd
* )
2981 machine
=ns16000 opsys
=bsd4-2
2984 ## src/m/tek4300.h hints that this is a m68k machine.
2985 m68
*-tektronix-bsd* )
2986 machine
=tek4300 opsys
=bsd4-3
2990 ## We seem to have lost the machine-description file titan.h!
2992 machine
=titan opsys
=usg5-3
2995 ## Ustation E30 (SS5E)
2996 m68
*-unisys-uniplus* )
2997 machine
=ustation opsystem
=unipl5-2
3003 case "${canonical}" in
3004 *-bsd4.1
* ) opsys
=bsd4-1
;;
3005 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3006 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3007 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3008 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3009 *-vms* ) opsys
=vms
;;
3015 ns16k-whitechapel-
* )
3017 ## We don't know what sort of OS runs on these; we'll let the
3018 ## operating system guessing code below try.
3023 machine
=wicat opsys
=usg5-2
3028 machine
=ia64 opsys
=gnu-linux
3031 ## Intel 386 machines where we don't care about the manufacturer
3034 case "${canonical}" in
3035 *-cygwin ) opsys
=cygwin
;;
3036 *-darwin* ) opsys
=darwin
3037 CPP
="${CC-cc} -E -no-cpp-precomp"
3039 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3040 *-isc2.2
* ) opsys
=isc2-2
;;
3041 *-isc4.0
* ) opsys
=isc4-0
;;
3042 *-isc4.
* ) opsys
=isc4-1
3043 GCC_TEST_OPTIONS
=-posix
3044 NON_GCC_TEST_OPTIONS
=-Xp
3046 *-isc* ) opsys
=isc3-0
;;
3047 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3048 *-esix* ) opsys
=esix
;;
3049 *-xenix* ) opsys
=xenix
;;
3050 *-linux-gnu* ) opsys
=gnu-linux
;;
3051 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3052 *-sco3.2v5
* ) opsys
=sco5
3053 NON_GNU_CPP
=/lib
/cpp
3054 # Prevent -belf from being passed to $CPP.
3055 # /lib/cpp does not accept it.
3056 OVERRIDE_CPPFLAGS
=" "
3058 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3059 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3060 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3061 *-386bsd* ) opsys
=386bsd
;;
3062 *-nextstep* ) opsys
=nextstep
;;
3063 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3067 ## m68k Linux-based GNU system
3069 machine
=m68k opsys
=gnu-linux
3072 ## Mips Linux-based GNU system
3073 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3074 machine
=mips opsys
=gnu-linux
3078 sparc-fujitsu-sysv4
* )
3079 machine
=sparc opsys
=uxpds
3080 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3085 f301-fujitsu-uxpv4.1
)
3086 machine
=f301 opsys
=uxpv
3089 ## AMD x86-64 Linux-based GNU system
3090 x86_64-
*-linux-gnu* )
3091 machine
=amdx86-64 opsys
=gnu-linux
3099 ### If the code above didn't choose an operating system, just choose
3100 ### an operating system based on the configuration name. You really
3101 ### only want to use this when you have no idea what the right
3102 ### operating system is; if you know what operating systems a machine
3103 ### runs, it's cleaner to make it explicit in the case statement
3105 if test x
"${opsys}" = x
; then
3106 case "${canonical}" in
3107 *-gnu* ) opsys
=gnu
;;
3108 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3109 *-bsd4.2
) opsys
=bsd4-2
;;
3110 *-bsd4.3
) opsys
=bsd4-3
;;
3111 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3112 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3113 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3114 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3115 *-sysv4.2uw
* ) opsys
=unixware
;;
3116 *-sysv5uw* ) opsys
=unixware
;;
3117 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3118 *-sysv4.1
* |
*-sysvr4.1
* )
3119 NON_GNU_CPP
=/usr
/lib
/cpp
3121 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3122 if [ x
$NON_GNU_CPP = x
]; then
3123 if [ -f /usr
/ccs
/lib
/cpp
]; then
3124 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3126 NON_GNU_CPP
=/lib
/cpp
3130 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3139 if test $unported = yes; then
3140 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3141 Check \`etc/MACHINES' for recognized configuration names." >&5
3142 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3143 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3144 { (exit 1); exit 1; }; }
3147 machfile
="m/${machine}.h"
3148 opsysfile
="s/${opsys}.h"
3151 #### Choose a compiler.
3152 test -n "$CC" && cc_specified
=yes
3154 # Save the value of CFLAGS that the user specified.
3155 SPECIFIED_CFLAGS
="$CFLAGS"
3158 "yes" ) CC
="gcc" GCC
=yes ;;
3159 "no" ) : ${CC=cc} ;;
3163 ac_cpp
='$CPP $CPPFLAGS'
3164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3169 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3172 if test "${ac_cv_prog_CC+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC
="$CC" # Let the user override the test.
3178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir
=.
3183 for ac_exec_ext
in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 if test -n "$CC"; then
3197 { echo "$as_me:$LINENO: result: $CC" >&5
3198 echo "${ECHO_T}$CC" >&6; }
3200 { echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6; }
3206 if test -z "$ac_cv_prog_CC"; then
3208 # Extract the first word of "gcc", so it can be a program name with args.
3209 set dummy gcc
; ac_word
=$2
3210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 if test -n "$ac_ct_CC"; then
3216 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir
=.
3223 for ac_exec_ext
in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_ac_ct_CC
="gcc"
3226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3236 if test -n "$ac_ct_CC"; then
3237 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3238 echo "${ECHO_T}$ac_ct_CC" >&6; }
3240 { echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6; }
3244 if test "x$ac_ct_CC" = x
; then
3247 case $cross_compiling:$ac_tool_warned in
3249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3250 whose name does not start with the host triplet. If you think this
3251 configuration is useful to you, please write to autoconf@gnu.org." >&5
3252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3253 whose name does not start with the host triplet. If you think this
3254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3255 ac_tool_warned
=yes ;;
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_CC+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC
="$CC" # Let the user override the test.
3275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir
=.
3280 for ac_exec_ext
in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 if test -n "$CC"; then
3294 { echo "$as_me:$LINENO: result: $CC" >&5
3295 echo "${ECHO_T}$CC" >&6; }
3297 { echo "$as_me:$LINENO: result: no" >&5
3298 echo "${ECHO_T}no" >&6; }
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc
; ac_word
=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_CC+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC
="$CC" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected
=yes
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy
$ac_cv_prog_CC
3339 if test $# != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3344 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3350 if test -n "$CC"; then
3351 { echo "$as_me:$LINENO: result: $CC" >&5
3352 echo "${ECHO_T}$CC" >&6; }
3354 { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog
in cl.exe
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC
="$CC" # Let the user override the test.
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 for ac_exec_ext
in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { echo "$as_me:$LINENO: result: $CC" >&5
3394 echo "${ECHO_T}$CC" >&6; }
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$CC" && break
3404 if test -z "$CC"; then
3406 for ac_prog
in cl.exe
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy
$ac_prog; ac_word
=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir
=.
3423 for ac_exec_ext
in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_CC
="$ac_prog"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3438 echo "${ECHO_T}$ac_ct_CC" >&6; }
3440 { echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6; }
3445 test -n "$ac_ct_CC" && break
3448 if test "x$ac_ct_CC" = x
; then
3451 case $cross_compiling:$ac_tool_warned in
3453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3454 whose name does not start with the host triplet. If you think this
3455 configuration is useful to you, please write to autoconf@gnu.org." >&5
3456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3457 whose name does not start with the host triplet. If you think this
3458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3459 ac_tool_warned
=yes ;;
3468 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: no acceptable C compiler found in \$PATH
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3474 # Provide some information about the compiler.
3475 echo "$as_me:$LINENO: checking for C compiler version" >&5
3476 ac_compiler
=`set X $ac_compile; echo $2`
3477 { (ac_try
="$ac_compiler --version >&5"
3479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compiler --version >&5") 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3487 { (ac_try="$ac_compiler -v >&5"
3489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3490 *) ac_try_echo
=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_compiler -v >&5") 2>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }
3497 { (ac_try
="$ac_compiler -V >&5"
3499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compiler -V >&5") 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3523 ac_clean_files_save=$ac_clean_files
3524 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3525 # Try to create an executable without -o first, disregard a.out.
3526 # It will help us diagnose broken compilers, and finding out an intuition
3528 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3529 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3530 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3532 # List of possible output files, starting from the most likely.
3533 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3534 # only as a last resort. b.out is created by i960 compilers.
3535 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3537 # The IRIX 6 linker writes into existing files which may not be
3538 # executable, retaining their permissions. Remove them first so a
3539 # subsequent execution test works.
3541 for ac_file in $ac_files
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3545 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3550 if { (ac_try="$ac_link_default"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_link_default") 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; then
3560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3563 # so that the user can short-circuit this test for compilers unknown to
3565 for ac_file
in $ac_files ''
3567 test -f "$ac_file" ||
continue
3569 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3572 # We found the default executable, but exeext='' is most
3576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3578 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580 # We set ac_cv_exeext here because the later test for it is not
3581 # safe: cross compilers may not add the suffix if given an `-o'
3582 # argument, so we may need to know it at that point already.
3583 # Even if this section looks crufty: it has the advantage of
3590 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3596 { echo "$as_me:$LINENO: result: $ac_file" >&5
3597 echo "${ECHO_T}$ac_file" >&6; }
3598 if test -z "$ac_file"; then
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.
$ac_ext >&5
3602 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C compiler cannot create executables
3605 See \`config.log' for more details." >&2;}
3606 { (exit 77); exit 77; }; }
3609 ac_exeext
=$ac_cv_exeext
3611 # Check that the compiler produces executables we can run. If not, either
3612 # the compiler is broken, or we cross compile.
3613 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3614 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3615 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3616 # If not cross compiling, check that we can run a simple program.
3617 if test "$cross_compiling" != yes; then
3618 if { ac_try
='./$ac_file'
3619 { (case "(($ac_try" in
3620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_try") 2>&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3630 if test "$cross_compiling" = maybe; then
3633 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details.
" >&5
3636 echo "$as_me: error
: cannot run C compiled programs.
3637 If you meant to cross compile
, use \
`--host'.
3638 See \`config.log
' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3646 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3647 ac_clean_files=$ac_clean_files_save
3648 # Check that the compiler produces executables we can run. If not, either
3649 # the compiler is broken, or we cross compile.
3650 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3651 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3652 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3653 echo "${ECHO_T}$cross_compiling" >&6; }
3655 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3656 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3657 if { (ac_try="$ac_link"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; then
3667 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3668 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3669 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3671 for ac_file
in conftest.exe conftest conftest.
*; do
3672 test -f "$ac_file" ||
continue
3674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3675 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3682 See \`config.log' for more details." >&5
3683 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3684 See \`config.log' for more details." >&2;}
3685 { (exit 1); exit 1; }; }
3688 rm -f conftest
$ac_cv_exeext
3689 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3690 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3692 rm -f conftest.
$ac_ext
3693 EXEEXT
=$ac_cv_exeext
3695 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3696 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3697 if test "${ac_cv_objext+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 cat >conftest.
$ac_ext <<_ACEOF
3703 cat confdefs.h
>>conftest.
$ac_ext
3704 cat >>conftest.
$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3715 rm -f conftest.o conftest.obj
3716 if { (ac_try
="$ac_compile"
3718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_compile") 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; then
3726 for ac_file in conftest.o conftest.obj conftest.*; do
3727 test -f "$ac_file" || continue;
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3739 See \`config.log
' for more details." >&5
3740 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3741 See \`config.log' for more details.
" >&2;}
3742 { (exit 1); exit 1; }; }
3745 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3747 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3748 echo "${ECHO_T}$ac_cv_objext" >&6; }
3749 OBJEXT=$ac_cv_objext
3751 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3752 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3753 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3754 echo $ECHO_N "(cached
) $ECHO_C" >&6
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3793 echo "$as_me: failed program was
:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3803 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3805 GCC=`test $ac_compiler_gnu = yes && echo yes`
3806 ac_test_CFLAGS=${CFLAGS+set}
3807 ac_save_CFLAGS=$CFLAGS
3808 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3809 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3810 if test "${ac_cv_prog_cc_g+set}" = set; then
3811 echo $ECHO_N "(cached
) $ECHO_C" >&6
3813 ac_save_c_werror_flag=$ac_c_werror_flag
3814 ac_c_werror_flag=yes
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_c_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest.$ac_objext; then
3851 echo "$as_me: failed program was
:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3889 echo "$as_me: failed program was
:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 ac_c_werror_flag=$ac_save_c_werror_flag
3943 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3944 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3945 if test "$ac_test_CFLAGS" = set; then
3946 CFLAGS=$ac_save_CFLAGS
3947 elif test $ac_cv_prog_cc_g = yes; then
3948 if test "$GCC" = yes; then
3954 if test "$GCC" = yes; then
3960 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3961 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3962 if test "${ac_cv_prog_cc_c89+set}" = set; then
3963 echo $ECHO_N "(cached
) $ECHO_C" >&6
3965 ac_cv_prog_cc_c89=no
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 #include <sys/types.h>
3976 #include <sys/stat.h>
3977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3978 struct buf { int x; };
3979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980 static char *e (p, i)
3986 static char *f (char * (*g) (char **, int), char **p, ...)
3991 s = g (p, va_arg (v,int));
3996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3997 function prototypes and stuff, but not '\xHH' hex character constants.
3998 These don't provoke an error unfortunately, instead are silently treated
3999 as 'x'. The following induces an error, until -std is added to get
4000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4001 array size at least. It's necessary to write '\x00'==0 to get something
4002 that's true only with -std. */
4003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006 inside strings and character constants. */
4008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010 int test (int i, double x);
4011 struct s1 {int (*f) (int a);};
4012 struct s2 {int (*f) (double a);};
4013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027 CC="$ac_save_CC $ac_arg"
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.$ac_objext; then
4045 ac_cv_prog_cc_c89=$ac_arg
4047 echo "$as_me: failed program was
:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4056 rm -f conftest.$ac_ext
4061 case "x
$ac_cv_prog_cc_c89" in
4063 { echo "$as_me:$LINENO: result
: none needed
" >&5
4064 echo "${ECHO_T}none needed
" >&6; } ;;
4066 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4067 echo "${ECHO_T}unsupported
" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4071 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 # On Suns, sometimes $CPP names a directory.
4083 if test -n "$CPP" && test -d "$CPP"; then
4087 #### Some systems specify a CPP to use unless we are using GCC.
4088 #### Now that we know whether we are using GCC, we can decide whether
4089 #### to use that one.
4090 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4095 #### Some systems specify a CC to use unless we are using GCC.
4096 #### Now that we know whether we are using GCC, we can decide whether
4097 #### to use that one.
4098 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4099 test x$cc_specified != xyes
4104 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4106 CC="$CC $GCC_TEST_OPTIONS"
4109 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4111 CC="$CC $NON_GCC_TEST_OPTIONS"
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4121 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4122 # On Suns, sometimes $CPP names a directory.
4123 if test -n "$CPP" && test -d "$CPP"; then
4126 if test -z "$CPP"; then
4127 if test "${ac_cv_prog_CPP+set}" = set; then
4128 echo $ECHO_N "(cached
) $ECHO_C" >&6
4130 # Double quotes because CPP needs to be expanded
4131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4134 for ac_c_preproc_warn_flag in '' yes
4136 # Use a header file that comes with gcc, so configuring glibc
4137 # with a fresh cross-compiler works.
4138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4139 # <limits.h> exists even on freestanding compilers.
4140 # On the NeXT, cc -E runs the code through the compiler's parser,
4141 # not just through cpp. "Syntax error
" is here to catch this case.
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 # include <limits.h>
4151 # include <assert.h>
4155 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4167 (exit $ac_status); } >/dev/null && {
4168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4173 echo "$as_me: failed program was
:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 # Broken: fails on valid input.
4180 rm -f conftest.err conftest.$ac_ext
4182 # OK, works on sane cases. Now check whether nonexistent headers
4183 # can be detected and how.
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <ac_nonexistent.h>
4192 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4204 (exit $ac_status); } >/dev/null && {
4205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4208 # Broken: success on invalid input.
4211 echo "$as_me: failed program was
:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # Passes both tests.
4219 rm -f conftest.err conftest.$ac_ext
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.err conftest.$ac_ext
4224 if $ac_preproc_ok; then
4236 { echo "$as_me:$LINENO: result
: $CPP" >&5
4237 echo "${ECHO_T}$CPP" >&6; }
4239 for ac_c_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error
" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4254 # include <limits.h>
4256 # include <assert.h>
4260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4278 echo "$as_me: failed program was
:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 # Broken: fails on valid input.
4285 rm -f conftest.err conftest.$ac_ext
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4309 (exit $ac_status); } >/dev/null && {
4310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4313 # Broken: success on invalid input.
4316 echo "$as_me: failed program was
:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 # Passes both tests.
4324 rm -f conftest.err conftest.$ac_ext
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then
4332 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4333 See \
`config.log' for more details." >&5
4334 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log
' for more details." >&2;}
4336 { (exit 1); exit 1; }; }
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4342 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4347 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4348 if test "${ac_cv_path_GREP+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 # Extract the first word of "grep ggrep" to use in msg output
4352 if test -z "$GREP"; then
4353 set dummy grep ggrep; ac_prog_name=$2
4354 if test "${ac_cv_path_GREP+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 ac_path_GREP_found=false
4358 # Loop through the user's path and
test for each of PROGNAME-LIST
4359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4360 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4363 test -z "$as_dir" && as_dir
=.
4364 for ac_prog
in grep ggrep
; do
4365 for ac_exec_ext
in '' $ac_executable_extensions; do
4366 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4367 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4368 # Check for GNU ac_path_GREP and select it if it is found.
4369 # Check for GNU $ac_path_GREP
4370 case `"$ac_path_GREP" --version 2>&1` in
4372 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4375 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4378 cat "conftest.in" "conftest.in" >"conftest.tmp"
4379 mv "conftest.tmp" "conftest.in"
4380 cp "conftest.in" "conftest.nl"
4381 echo 'GREP' >> "conftest.nl"
4382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4383 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4384 ac_count
=`expr $ac_count + 1`
4385 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4386 # Best one so far, save it but keep looking for a better one
4387 ac_cv_path_GREP
="$ac_path_GREP"
4388 ac_path_GREP_max
=$ac_count
4390 # 10*(2^10) chars as input seems more than enough
4391 test $ac_count -gt 10 && break
4393 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4397 $ac_path_GREP_found && break 3
4407 GREP
="$ac_cv_path_GREP"
4408 if test -z "$GREP"; then
4409 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4410 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4411 { (exit 1); exit 1; }; }
4415 ac_cv_path_GREP
=$GREP
4420 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4421 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4422 GREP
="$ac_cv_path_GREP"
4425 { echo "$as_me:$LINENO: checking for egrep" >&5
4426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4427 if test "${ac_cv_path_EGREP+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4431 then ac_cv_path_EGREP
="$GREP -E"
4433 # Extract the first word of "egrep" to use in msg output
4434 if test -z "$EGREP"; then
4435 set dummy
egrep; ac_prog_name
=$2
4436 if test "${ac_cv_path_EGREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 ac_path_EGREP_found
=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4442 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_prog
in egrep; do
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4450 # Check for GNU ac_path_EGREP and select it if it is found.
4451 # Check for GNU $ac_path_EGREP
4452 case `"$ac_path_EGREP" --version 2>&1` in
4454 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 echo 'EGREP' >> "conftest.nl"
4464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4465 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4466 ac_count
=`expr $ac_count + 1`
4467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_EGREP
="$ac_path_EGREP"
4470 ac_path_EGREP_max
=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4475 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4479 $ac_path_EGREP_found && break 3
4489 EGREP
="$ac_cv_path_EGREP"
4490 if test -z "$EGREP"; then
4491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4493 { (exit 1); exit 1; }; }
4497 ac_cv_path_EGREP
=$EGREP
4503 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4504 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4505 EGREP
="$ac_cv_path_EGREP"
4509 { echo "$as_me:$LINENO: checking for AIX" >&5
4510 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4511 cat >conftest.
$ac_ext <<_ACEOF
4514 cat confdefs.h
>>conftest.
$ac_ext
4515 cat >>conftest.
$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "yes" >/dev
/null
2>&1; then
4524 { echo "$as_me:$LINENO: result: yes" >&5
4525 echo "${ECHO_T}yes" >&6; }
4526 cat >>confdefs.h
<<\_ACEOF
4527 #define _ALL_SOURCE 1
4531 { echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6; }
4538 cat >>confdefs.h
<<\_ACEOF
4539 #define _GNU_SOURCE 1
4544 ### Use -Wno-pointer-sign if the compiler supports it
4545 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4546 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4547 SAVE_CFLAGS
="$CFLAGS"
4548 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4549 cat >conftest.
$ac_ext <<_ACEOF
4552 cat confdefs.h
>>conftest.
$ac_ext
4553 cat >>conftest.
$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4564 rm -f conftest.
$ac_objext
4565 if { (ac_try
="$ac_compile"
4567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 if test $has_option = yes; then
4591 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4593 { echo "$as_me:$LINENO: result: $has_option" >&5
4594 echo "${ECHO_T}$has_option" >&6; }
4595 CFLAGS="$SAVE_CFLAGS"
4599 #### Some other nice autoconf tests.
4601 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4602 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4604 if test "$LN_S" = "ln -s"; then
4605 { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4608 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4609 echo "${ECHO_T}no, using $LN_S" >&6; }
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4618 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4619 # On Suns, sometimes $CPP names a directory.
4620 if test -n "$CPP" && test -d "$CPP"; then
4623 if test -z "$CPP"; then
4624 if test "${ac_cv_prog_CPP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 # Double quotes because CPP needs to be expanded
4628 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4631 for ac_c_preproc_warn_flag in '' yes
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 # include <limits.h>
4648 # include <assert.h>
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4655 *) ac_try_echo
=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1
>conftest.err
4662 cat conftest.err
>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev
/null
&& {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4673 # Broken: fails on valid input.
4677 rm -f conftest.err conftest.
$ac_ext
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat >conftest.
$ac_ext <<_ACEOF
4684 cat confdefs.h
>>conftest.
$ac_ext
4685 cat >>conftest.
$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4689 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev/null && {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4705 # Broken: success on invalid input.
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 # Passes both tests.
4716 rm -f conftest.err conftest.$ac_ext
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.
$ac_ext
4721 if $ac_preproc_ok; then
4733 { echo "$as_me:$LINENO: result: $CPP" >&5
4734 echo "${ECHO_T}$CPP" >&6; }
4736 for ac_c_preproc_warn_flag
in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.
$ac_ext <<_ACEOF
4747 cat confdefs.h
>>conftest.
$ac_ext
4748 cat >>conftest.
$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4751 # include <limits.h>
4753 # include <assert.h>
4757 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Broken: fails on valid input.
4782 rm -f conftest.err conftest.$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4797 *) ac_try_echo
=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1
>conftest.err
4804 cat conftest.err
>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev
/null
&& {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.
$ac_ext >&5
4816 # Passes both tests.
4821 rm -f conftest.err conftest.
$ac_ext
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.
$ac_ext
4826 if $ac_preproc_ok; then
4829 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4832 See \`config.log' for more details." >&2;}
4833 { (exit 1); exit 1; }; }
4837 ac_cpp
='$CPP $CPPFLAGS'
4838 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4842 # Find a good install program. We prefer a C program (faster),
4843 # so one script is as good as another. But avoid the broken or
4844 # incompatible versions:
4845 # SysV /etc/install, /usr/sbin/install
4846 # SunOS /usr/etc/install
4847 # IRIX /sbin/install
4849 # AmigaOS /C/install, which installs bootblocks on floppy discs
4850 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4851 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4852 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4853 # OS/2's system install, which has a completely different semantic
4854 # ./install, which can be erroneously created by make from ./install.sh.
4855 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4856 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4857 if test -z "$INSTALL"; then
4858 if test "${ac_cv_path_install+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir
=.
4866 # Account for people who put trailing slashes in PATH elements.
4868 .
/ | .
// |
/cC
/* | \
4869 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4870 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4873 # OSF1 and SCO ODT 3.0 have their own names for install.
4874 # Don't use installbsd from OSF since it installs stuff as root
4876 for ac_prog
in ginstall scoinst
install; do
4877 for ac_exec_ext
in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4879 if test $ac_prog = install &&
4880 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4881 # AIX install. It has an incompatible calling convention.
4883 elif test $ac_prog = install &&
4884 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4885 # program-specific install script used by HP pwplus--don't use.
4888 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4901 if test "${ac_cv_path_install+set}" = set; then
4902 INSTALL
=$ac_cv_path_install
4904 # As a last resort, use the slow shell script. Don't cache a
4905 # value for INSTALL within a source directory, because that will
4906 # break other packages using the cache if that directory is
4907 # removed, or if the value is a relative name.
4908 INSTALL
=$ac_install_sh
4911 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4912 echo "${ECHO_T}$INSTALL" >&6; }
4914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4915 # It thinks the first close brace ends the variable substitution.
4916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4920 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4922 if test "x$RANLIB" = x
; then
4923 if test -n "$ac_tool_prefix"; then
4924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4925 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_prog_RANLIB+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 if test -n "$RANLIB"; then
4932 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir
=.
4939 for ac_exec_ext
in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 RANLIB
=$ac_cv_prog_RANLIB
4952 if test -n "$RANLIB"; then
4953 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4954 echo "${ECHO_T}$RANLIB" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4962 if test -z "$ac_cv_prog_RANLIB"; then
4963 ac_ct_RANLIB
=$RANLIB
4964 # Extract the first word of "ranlib", so it can be a program name with args.
4965 set dummy ranlib
; ac_word
=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if test -n "$ac_ct_RANLIB"; then
4972 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir
=.
4979 for ac_exec_ext
in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4992 if test -n "$ac_ct_RANLIB"; then
4993 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4994 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4996 { echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6; }
5000 if test "x$ac_ct_RANLIB" = x
; then
5003 case $cross_compiling:$ac_tool_warned in
5005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5006 whose name does not start with the host triplet. If you think this
5007 configuration is useful to you, please write to autoconf@gnu.org." >&5
5008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5009 whose name does not start with the host triplet. If you think this
5010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5011 ac_tool_warned
=yes ;;
5013 RANLIB
=$ac_ct_RANLIB
5016 RANLIB
="$ac_cv_prog_RANLIB"
5020 # Extract the first word of "install-info", so it can be a program name with args.
5021 set dummy install-info
; ac_word
=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 case $INSTALL_INFO in
5029 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir
=.
5037 for ac_exec_ext
in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5051 if test -n "$INSTALL_INFO"; then
5052 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5053 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5060 # Extract the first word of "install-info", so it can be a program name with args.
5061 set dummy install-info
; ac_word
=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 case $INSTALL_INFO in
5069 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5073 for as_dir
in /usr
/sbin
5076 test -z "$as_dir" && as_dir
=.
5077 for ac_exec_ext
in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5091 if test -n "$INSTALL_INFO"; then
5092 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5093 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5100 # Extract the first word of "install-info", so it can be a program name with args.
5101 set dummy install-info
; ac_word
=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 case $INSTALL_INFO in
5109 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir
=.
5117 for ac_exec_ext
in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5131 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5132 if test -n "$INSTALL_INFO"; then
5133 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5134 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5141 # Extract the first word of "gzip", so it can be a program name with args.
5142 set dummy
gzip; ac_word
=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5172 if test -n "$GZIP_PROG"; then
5173 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5174 echo "${ECHO_T}$GZIP_PROG" >&6; }
5176 { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5183 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5185 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5188 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5190 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5194 late_LDFLAGS
=$LDFLAGS
5195 if test "$GCC" = yes; then
5196 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5198 LDFLAGS
="$LDFLAGS -znocombreloc"
5201 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5202 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5203 cat >conftest.
$ac_ext <<_ACEOF
5206 rm -f conftest.
$ac_objext conftest
$ac_exeext
5207 if { (ac_try
="$ac_link"
5209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_link") 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && {
5220 test -z "$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 } && test -s conftest$ac_exeext &&
5223 $as_test_x conftest$ac_exeext; then
5224 { echo "$as_me:$LINENO: result: yes" >&5
5225 echo "${ECHO_T}yes" >&6; }
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 LDFLAGS=$late_LDFLAGS
5231 { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5236 conftest$ac_exeext conftest.$ac_ext
5238 #### Extract some information from the operating system and machine files.
5240 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5241 - which libraries the lib-src programs will want, and
5242 - whether the GNU malloc routines are usable..." >&5
5243 echo "$as_me: checking the machine- and system-dependent files to find out
5244 - which libraries the lib-src programs will want, and
5245 - whether the GNU malloc routines are usable..." >&6;}
5247 ### First figure out CFLAGS (which we use for running the compiler here)
5248 ### and REAL_CFLAGS (which we use for real compilation).
5249 ### The two are the same except on a few systems, where they are made
5250 ### different to work around various lossages. For example,
5251 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5252 ### as implying static linking.
5254 ### If the CFLAGS env var is specified, we use that value
5255 ### instead of the default.
5257 ### It's not important that this name contain the PID; you can't run
5258 ### two configures in the same directory and have anything work
5260 tempcname="conftest.c"
5263 #include "'${srcdir}'/src/'${opsysfile}'"
5264 #include "'${srcdir}'/src/'${machfile}'"
5265 #ifndef LIBS_MACHINE
5266 #define LIBS_MACHINE
5271 #ifndef C_SWITCH_SYSTEM
5272 #define C_SWITCH_SYSTEM
5274 #ifndef C_SWITCH_MACHINE
5275 #define C_SWITCH_MACHINE
5277 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5278 configure___ c_switch_system=C_SWITCH_SYSTEM
5279 configure___ c_switch_machine=C_SWITCH_MACHINE
5282 #define LIB_X11_LIB -lX11
5285 #ifndef LIBX11_MACHINE
5286 #define LIBX11_MACHINE
5289 #ifndef LIBX11_SYSTEM
5290 #define LIBX11_SYSTEM
5292 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5295 configure___ unexec=UNEXEC
5297 configure___ unexec=unexec.o
5300 #ifdef SYSTEM_MALLOC
5301 configure___ system_malloc=yes
5303 configure___ system_malloc=no
5306 #ifdef USE_MMAP_FOR_BUFFERS
5307 configure___ use_mmap_for_buffers=yes
5309 configure___ use_mmap_for_buffers=no
5312 #ifndef C_DEBUG_SWITCH
5313 #define C_DEBUG_SWITCH -g
5316 #ifndef C_OPTIMIZE_SWITCH
5318 #define C_OPTIMIZE_SWITCH -O2
5320 #define C_OPTIMIZE_SWITCH -O
5324 #ifndef C_WARNINGS_SWITCH
5325 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5328 #ifndef LD_SWITCH_MACHINE
5329 #define LD_SWITCH_MACHINE
5332 #ifndef LD_SWITCH_SYSTEM
5333 #define LD_SWITCH_SYSTEM
5336 #ifndef LD_SWITCH_X_SITE_AUX
5337 #define LD_SWITCH_X_SITE_AUX
5340 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5341 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5343 #ifdef THIS_IS_CONFIGURE
5345 /* Get the CFLAGS for tests in configure. */
5347 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5349 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5352 #else /* not THIS_IS_CONFIGURE */
5354 /* Get the CFLAGS for real compilation. */
5356 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5358 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5361 #endif /* not THIS_IS_CONFIGURE */
5364 # The value of CPP is a quoted variable reference, so we need to do this
5365 # to get its actual value...
5366 CPP=`eval "echo $CPP"`
5367 eval `${CPP} -Isrc ${tempcname} \
5368 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5369 if test "x$SPECIFIED_CFLAGS" = x; then
5370 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5371 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5373 REAL_CFLAGS="$CFLAGS"
5377 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5379 ### Make sure subsequent tests use flags consistent with the build flags.
5381 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5382 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5384 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5389 # Check whether --enable-largefile was given.
5390 if test "${enable_largefile+set}" = set; then
5391 enableval=$enable_largefile;
5394 if test "$enable_largefile" != no; then
5396 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5397 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5398 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 ac_cv_sys_largefile_CC=no
5402 if test "$GCC" != yes; then
5405 # IRIX 6.2 and later do not support large files by default,
5406 # so use the C compiler's -n32 option if that helps.
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <sys/types.h>
5414 /* Check that off_t can represent 2**63 - 1 correctly.
5415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5416 since some C++ compilers masquerading as C compilers
5417 incorrectly reject 9223372036854775807. */
5418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5420 && LARGE_OFF_T % 2147483647 == 1)
5430 rm -f conftest.$ac_objext
5431 if { (ac_try="$ac_compile"
5433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5434 *) ac_try_echo
=$ac_try;;
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_compile") 2>conftest.er1
5439 grep -v '^ *+' conftest.er1
>conftest.err
5441 cat conftest.err
>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && {
5444 test -z "$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5446 } && test -s conftest.
$ac_objext; then
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.
$ac_ext >&5
5455 rm -f core conftest.err conftest.
$ac_objext
5457 rm -f conftest.
$ac_objext
5458 if { (ac_try
="$ac_compile"
5460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5474 ac_cv_sys_largefile_CC=' -n32'; break
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5482 rm -f core conftest.err conftest.$ac_objext
5486 rm -f conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5490 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5491 if test "$ac_cv_sys_largefile_CC" != no; then
5492 CC=$CC$ac_cv_sys_largefile_CC
5495 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5496 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 cat >conftest.$ac_ext <<_ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <sys/types.h>
5508 /* Check that off_t can represent 2**63 - 1 correctly.
5509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5510 since some C++ compilers masquerading as C compilers
5511 incorrectly reject 9223372036854775807. */
5512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5514 && LARGE_OFF_T % 2147483647 == 1)
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5528 *) ac_try_echo
=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_compile") 2>conftest.er1
5533 grep -v '^ *+' conftest.er1
>conftest.err
5535 cat conftest.err
>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } && {
5538 test -z "$ac_c_werror_flag" ||
5539 test ! -s conftest.err
5540 } && test -s conftest.
$ac_objext; then
5541 ac_cv_sys_file_offset_bits
=no
; break
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.
$ac_ext >&5
5549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5550 cat >conftest.
$ac_ext <<_ACEOF
5553 cat confdefs.h
>>conftest.
$ac_ext
5554 cat >>conftest.
$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #define _FILE_OFFSET_BITS 64
5557 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5560 since some C++ compilers masquerading as C compilers
5561 incorrectly reject 9223372036854775807. */
5562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5564 && LARGE_OFF_T % 2147483647 == 1)
5574 rm -f conftest.
$ac_objext
5575 if { (ac_try
="$ac_compile"
5577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5583 grep -v '^ *+' conftest.er1 >conftest.err
5585 cat conftest.err >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_c_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_sys_file_offset_bits=64; break
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 ac_cv_sys_file_offset_bits=unknown
5604 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5605 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5606 case $ac_cv_sys_file_offset_bits in #(
5609 cat >>confdefs.h <<_ACEOF
5610 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5615 if test $ac_cv_sys_file_offset_bits = unknown; then
5616 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5617 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5618 if test "${ac_cv_sys_large_files+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5649 *) ac_try_echo
=$ac_try;;
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5654 grep -v '^ *+' conftest.er1
>conftest.err
5656 cat conftest.err
>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && {
5659 test -z "$ac_c_werror_flag" ||
5660 test ! -s conftest.err
5661 } && test -s conftest.
$ac_objext; then
5662 ac_cv_sys_large_files
=no
; break
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.
$ac_ext >&5
5670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5671 cat >conftest.
$ac_ext <<_ACEOF
5674 cat confdefs.h
>>conftest.
$ac_ext
5675 cat >>conftest.
$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #define _LARGE_FILES 1
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5695 rm -f conftest.
$ac_objext
5696 if { (ac_try
="$ac_compile"
5698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5704 grep -v '^ *+' conftest.er1 >conftest.err
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.$ac_objext; then
5712 ac_cv_sys_large_files=1; break
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 ac_cv_sys_large_files=unknown
5725 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5726 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5727 case $ac_cv_sys_large_files in #(
5730 cat >>confdefs.h <<_ACEOF
5731 #define _LARGE_FILES $ac_cv_sys_large_files
5741 ### The standard library on x86-64 GNU/Linux distributions can
5742 ### be located in either /usr/lib64 or /usr/lib.
5743 case "${canonical}" in
5744 x86_64-*-linux-gnu* )
5745 if test -d /usr/lib64; then
5747 cat >>confdefs.h <<\_ACEOF
5748 #define HAVE_X86_64_LIB64_DIR 1
5757 if test "${with_sound}" != "no"; then
5758 # Sound support for GNU/Linux and the free BSDs.
5759 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5760 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5761 if test "${ac_cv_header_stdc+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5787 *) ac_try_echo
=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1
>conftest.err
5794 cat conftest.err
>&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.
$ac_objext; then
5800 ac_cv_header_stdc
=yes
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.
$ac_ext >&5
5805 ac_cv_header_stdc
=no
5808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5810 if test $ac_cv_header_stdc = yes; then
5811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5812 cat >conftest.
$ac_ext <<_ACEOF
5815 cat confdefs.h
>>conftest.
$ac_ext
5816 cat >>conftest.
$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "memchr" >/dev
/null
2>&1; then
5825 ac_cv_header_stdc
=no
5831 if test $ac_cv_header_stdc = yes; then
5832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5833 cat >conftest.
$ac_ext <<_ACEOF
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5843 $EGREP "free" >/dev
/null
2>&1; then
5846 ac_cv_header_stdc
=no
5852 if test $ac_cv_header_stdc = yes; then
5853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5854 if test "$cross_compiling" = yes; then
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5865 #if ((' ' & 0x0FF) == 0x020)
5866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5869 # define ISLOWER(c) \
5870 (('a' <= (c) && (c) <= 'i') \
5871 || ('j' <= (c) && (c) <= 'r') \
5872 || ('s' <= (c) && (c) <= 'z'))
5873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5881 for (i = 0; i < 256; i++)
5882 if (XOR (islower (i), ISLOWER (i))
5883 || toupper (i) != TOUPPER (i))
5888 rm -f conftest
$ac_exeext
5889 if { (ac_try
="$ac_link"
5891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_link") 2>&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5901 *) ac_try_echo
=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_try") 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5910 echo "$as_me: program exited with status $ac_status" >&5
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.
$ac_ext >&5
5915 ac_cv_header_stdc
=no
5917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5923 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5924 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5925 if test $ac_cv_header_stdc = yes; then
5927 cat >>confdefs.h
<<\_ACEOF
5928 #define STDC_HEADERS 1
5933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5943 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5944 inttypes.h stdint.h unistd.h
5946 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5949 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 cat >conftest.
$ac_ext <<_ACEOF
5955 cat confdefs.h
>>conftest.
$ac_ext
5956 cat >>conftest.
$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 $ac_includes_default
5960 #include <$ac_header>
5962 rm -f conftest.
$ac_objext
5963 if { (ac_try
="$ac_compile"
5965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1 >conftest.err
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 eval "$as_ac_Header=yes"
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 eval "$as_ac_Header=no"
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 ac_res=`eval echo '${'$as_ac_Header'}'`
5990 { echo "$as_me:$LINENO: result: $ac_res" >&5
5991 echo "${ECHO_T}$ac_res" >&6; }
5992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h <<_ACEOF
5994 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6005 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6007 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_res=`eval echo '${'$as_ac_Header'}'`
6015 { echo "$as_me:$LINENO: result: $ac_res" >&5
6016 echo "${ECHO_T}$ac_res" >&6; }
6018 # Is the header compilable?
6019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6021 cat >conftest.$ac_ext <<_ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 $ac_includes_default
6028 #include <$ac_header>
6030 rm -f conftest.$ac_objext
6031 if { (ac_try="$ac_compile"
6033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6034 *) ac_try_echo
=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1
>conftest.err
6041 cat conftest.err
>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.
$ac_objext; then
6047 ac_header_compiler
=yes
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.
$ac_ext >&5
6052 ac_header_compiler
=no
6055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6057 echo "${ECHO_T}$ac_header_compiler" >&6; }
6059 # Is the header present?
6060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6062 cat >conftest.
$ac_ext <<_ACEOF
6065 cat confdefs.h
>>conftest.
$ac_ext
6066 cat >>conftest.
$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <$ac_header>
6070 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null && {
6083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6086 ac_header_preproc=yes
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_header_preproc=no
6094 rm -f conftest.err conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6096 echo "${ECHO_T}$ac_header_preproc" >&6; }
6098 # So? What about this header?
6099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6105 ac_header_preproc=yes
6108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 eval "$as_ac_Header=\$ac_header_preproc"
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131 { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6136 cat >>confdefs.h <<_ACEOF
6137 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6144 # Emulation library used on NetBSD.
6145 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6146 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6147 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 ac_check_lib_save_LIBS=$LIBS
6151 LIBS="-lossaudio $LIBS"
6152 cat >conftest.$ac_ext <<_ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6159 /* Override any GCC internal prototype to avoid an error.
6160 Use char because int might match the return type of a GCC
6161 builtin and then its argument prototype would still apply. */
6169 return _oss_ioctl ();
6174 rm -f conftest.$ac_objext conftest$ac_exeext
6175 if { (ac_try="$ac_link"
6177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6178 *) ac_try_echo
=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_link") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest
$ac_exeext &&
6191 $as_test_x conftest
$ac_exeext; then
6192 ac_cv_lib_ossaudio__oss_ioctl
=yes
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.
$ac_ext >&5
6197 ac_cv_lib_ossaudio__oss_ioctl
=no
6200 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6201 conftest
$ac_exeext conftest.
$ac_ext
6202 LIBS
=$ac_check_lib_save_LIBS
6204 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6205 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6206 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6215 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6216 if test "X${with_pkg_config_prog}" != X
; then
6217 PKG_CONFIG
="${with_pkg_config_prog}"
6222 if test -z "$PKG_CONFIG"; then
6223 # Extract the first word of "pkg-config", so it can be a program name with args.
6224 set dummy pkg-config
; ac_word
=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir
=.
6240 for ac_exec_ext
in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6254 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6255 if test -n "$PKG_CONFIG"; then
6256 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6257 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6266 if test "$PKG_CONFIG" = "no" ; then
6269 PKG_CONFIG_MIN_VERSION
=0.9.0
6270 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6271 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6272 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6274 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6275 { echo "$as_me:$LINENO: result: yes" >&5
6276 echo "${ECHO_T}yes" >&6; }
6279 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6280 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6281 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6282 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6283 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6285 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6286 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6287 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6288 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6289 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6295 ## If we have a custom action on failure, don't print errors, but
6296 ## do set a variable so people can do so.
6297 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6309 if test $succeeded = yes; then
6315 if test $HAVE_ALSA = yes; then
6316 SAVE_CFLAGS
="$CFLAGS"
6317 SAVE_LDFLAGS
="$LDFLAGS"
6318 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6319 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6320 cat >conftest.
$ac_ext <<_ACEOF
6323 cat confdefs.h
>>conftest.
$ac_ext
6324 cat >>conftest.
$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <asoundlib.h>
6330 snd_lib_error_set_handler (0);
6335 rm -f conftest.
$ac_objext
6336 if { (ac_try
="$ac_compile"
6338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 emacs_alsa_normal=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 emacs_alsa_normal=no
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 if test "$emacs_alsa_normal" != yes; then
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <alsa/asoundlib.h>
6372 snd_lib_error_set_handler (0);
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6381 *) ac_try_echo
=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1
>conftest.err
6388 cat conftest.err
>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.
$ac_objext; then
6394 emacs_alsa_subdir
=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.
$ac_ext >&5
6399 emacs_alsa_subdir
=no
6402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6403 if test "$emacs_alsa_subdir" != yes; then
6404 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6405 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6406 { (exit 1); exit 1; }; }
6408 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6411 CFLAGS
="$SAVE_CFLAGS"
6412 LDFLAGS
="$SAVE_LDFLAGS"
6413 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6414 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6416 cat >>confdefs.h
<<\_ACEOF
6450 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6451 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6452 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6453 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6456 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 ac_res
=`eval echo '${'$as_ac_Header'}'`
6464 { echo "$as_me:$LINENO: result: $ac_res" >&5
6465 echo "${ECHO_T}$ac_res" >&6; }
6467 # Is the header compilable?
6468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6470 cat >conftest.
$ac_ext <<_ACEOF
6473 cat confdefs.h
>>conftest.
$ac_ext
6474 cat >>conftest.
$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6479 rm -f conftest.
$ac_objext
6480 if { (ac_try
="$ac_compile"
6482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 ac_header_compiler=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 ac_header_compiler=no
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506 echo "${ECHO_T}$ac_header_compiler" >&6; }
6508 # Is the header present?
6509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <$ac_header>
6519 if { (ac_try="$ac_cpp conftest.$ac_ext"
6521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6522 *) ac_try_echo
=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1
>conftest.err
6529 cat conftest.err
>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } >/dev
/null
&& {
6532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6535 ac_header_preproc
=yes
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.
$ac_ext >&5
6540 ac_header_preproc
=no
6543 rm -f conftest.err conftest.
$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6545 echo "${ECHO_T}$ac_header_preproc" >&6; }
6547 # So? What about this header?
6548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6554 ac_header_preproc
=yes
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6574 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 eval "$as_ac_Header=\$ac_header_preproc"
6579 ac_res
=`eval echo '${'$as_ac_Header'}'`
6580 { echo "$as_me:$LINENO: result: $ac_res" >&5
6581 echo "${ECHO_T}$ac_res" >&6; }
6584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6585 cat >>confdefs.h
<<_ACEOF
6586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6595 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6596 cat >conftest.
$ac_ext <<_ACEOF
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 #include <sys/personality.h>
6606 personality (PER_LINUX32)
6611 rm -f conftest.
$ac_objext
6612 if { (ac_try
="$ac_compile"
6614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest.$ac_objext; then
6628 emacs_cv_personality_linux32=yes
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 emacs_cv_personality_linux32=no
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6638 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6640 if test $emacs_cv_personality_linux32 = yes; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_PERSONALITY_LINUX32 1
6649 for ac_header in term.h
6651 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <$ac_header>
6665 if { (ac_try="$ac_cpp conftest.$ac_ext"
6667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6668 *) ac_try_echo
=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1
>conftest.err
6675 cat conftest.err
>&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev
/null
&& {
6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6681 eval "$as_ac_Header=yes"
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.
$ac_ext >&5
6686 eval "$as_ac_Header=no"
6689 rm -f conftest.err conftest.
$ac_ext
6691 ac_res
=`eval echo '${'$as_ac_Header'}'`
6692 { echo "$as_me:$LINENO: result: $ac_res" >&5
6693 echo "${ECHO_T}$ac_res" >&6; }
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h
<<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6703 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6705 if test "${ac_cv_header_stdc+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.
$ac_ext <<_ACEOF
6711 cat confdefs.h
>>conftest.
$ac_ext
6712 cat >>conftest.
$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6727 rm -f conftest.
$ac_objext
6728 if { (ac_try
="$ac_compile"
6730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_compile") 2>conftest.er1
6736 grep -v '^ *+' conftest.er1 >conftest.err
6738 cat conftest.err >&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest.$ac_objext; then
6744 ac_cv_header_stdc=yes
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 ac_cv_header_stdc=no
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 if test $ac_cv_header_stdc = yes; then
6755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 $EGREP "memchr" >/dev/null 2>&1; then
6769 ac_cv_header_stdc=no
6775 if test $ac_cv_header_stdc = yes; then
6776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6777 cat >conftest.$ac_ext <<_ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6787 $EGREP "free" >/dev/null 2>&1; then
6790 ac_cv_header_stdc=no
6796 if test $ac_cv_header_stdc = yes; then
6797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6798 if test "$cross_compiling" = yes; then
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6809 #if ((' ' & 0x0FF) == 0x020)
6810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6813 # define ISLOWER(c) \
6814 (('a' <= (c) && (c) <= 'i') \
6815 || ('j' <= (c) && (c) <= 'r') \
6816 || ('s' <= (c) && (c) <= 'z'))
6817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6825 for (i = 0; i < 256; i++)
6826 if (XOR (islower (i), ISLOWER (i))
6827 || toupper (i) != TOUPPER (i))
6832 rm -f conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6836 *) ac_try_echo
=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6843 { (case "(($ac_try" in
6844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_try") 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6859 ac_cv_header_stdc=no
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6868 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6869 if test $ac_cv_header_stdc = yes; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define STDC_HEADERS 1
6877 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6878 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6879 if test "${ac_cv_header_time+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <sys/types.h>
6889 #include <sys/time.h>
6895 if ((struct tm *) 0)
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6905 *) ac_try_echo
=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_compile") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1
>conftest.err
6912 cat conftest.err
>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest.
$ac_objext; then
6918 ac_cv_header_time
=yes
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.
$ac_ext >&5
6923 ac_cv_header_time
=no
6926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6928 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6929 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6930 if test $ac_cv_header_time = yes; then
6932 cat >>confdefs.h
<<\_ACEOF
6933 #define TIME_WITH_SYS_TIME 1
6938 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6939 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6940 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 cat >conftest.
$ac_ext <<_ACEOF
6946 cat confdefs.h
>>conftest.
$ac_ext
6947 cat >>conftest.
$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6961 rm -f conftest.
$ac_objext
6962 if { (ac_try
="$ac_compile"
6964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_have_decl_sys_siglist=yes
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_cv_have_decl_sys_siglist=no
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6989 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6990 if test $ac_cv_have_decl_sys_siglist = yes; then
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_DECL_SYS_SIGLIST 1
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_DECL_SYS_SIGLIST 0
7006 if test $ac_cv_have_decl_sys_siglist != yes; then
7007 # For Tru64, at least:
7008 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7009 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7010 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 $ac_includes_default
7023 #ifndef __sys_siglist
7024 (void) __sys_siglist;
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7035 *) ac_try_echo
=$ac_try;;
7037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1
>conftest.err
7042 cat conftest.err
>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.
$ac_objext; then
7048 ac_cv_have_decl___sys_siglist
=yes
7050 echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.
$ac_ext >&5
7053 ac_cv_have_decl___sys_siglist
=no
7056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7058 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7059 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7060 if test $ac_cv_have_decl___sys_siglist = yes; then
7062 cat >>confdefs.h
<<_ACEOF
7063 #define HAVE_DECL___SYS_SIGLIST 1
7068 cat >>confdefs.h
<<_ACEOF
7069 #define HAVE_DECL___SYS_SIGLIST 0
7076 if test $ac_cv_have_decl___sys_siglist = yes; then
7078 cat >>confdefs.h
<<\_ACEOF
7079 #define sys_siglist __sys_siglist
7084 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7085 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7086 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat >conftest.
$ac_ext <<_ACEOF
7092 cat confdefs.h
>>conftest.
$ac_ext
7093 cat >>conftest.
$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 #include <sys/types.h>
7096 #include <sys/wait.h>
7098 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7101 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7109 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7114 rm -f conftest.
$ac_objext
7115 if { (ac_try
="$ac_compile"
7117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_header_sys_wait_h=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_header_sys_wait_h=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7142 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7143 if test $ac_cv_header_sys_wait_h = yes; then
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_SYS_WAIT_H 1
7152 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7153 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7154 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 cat >conftest.$ac_ext <<_ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #ifdef TIME_WITH_SYS_TIME
7164 #include <sys/time.h>
7167 #ifdef HAVE_SYS_TIME_H
7168 #include <sys/time.h>
7179 static struct utimbuf x; x.actime = x.modtime;
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7188 *) ac_try_echo
=$ac_try;;
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7193 grep -v '^ *+' conftest.er1
>conftest.err
7195 cat conftest.err
>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.
$ac_objext; then
7201 emacs_cv_struct_utimbuf
=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.
$ac_ext >&5
7206 emacs_cv_struct_utimbuf
=no
7209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7211 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7212 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7213 if test $emacs_cv_struct_utimbuf = yes; then
7215 cat >>confdefs.h
<<\_ACEOF
7216 #define HAVE_STRUCT_UTIMBUF 1
7221 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7222 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7223 if test "${ac_cv_type_signal+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 cat >conftest.
$ac_ext <<_ACEOF
7229 cat confdefs.h
>>conftest.
$ac_ext
7230 cat >>conftest.
$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 #include <sys/types.h>
7238 return *(signal (0, 0)) (0) == 1;
7243 rm -f conftest.
$ac_objext
7244 if { (ac_try
="$ac_compile"
7246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7260 ac_cv_type_signal=int
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 ac_cv_type_signal=void
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7271 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7273 cat >>confdefs.h <<_ACEOF
7274 #define RETSIGTYPE $ac_cv_type_signal
7279 { echo "$as_me:$LINENO: checking for speed_t" >&5
7280 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7281 if test "${emacs_cv_speed_t+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <termios.h>
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7303 *) ac_try_echo
=$ac_try;;
7305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7308 grep -v '^ *+' conftest.er1
>conftest.err
7310 cat conftest.err
>&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.
$ac_objext; then
7316 emacs_cv_speed_t
=yes
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.
$ac_ext >&5
7324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7326 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7327 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7328 if test $emacs_cv_speed_t = yes; then
7330 cat >>confdefs.h
<<\_ACEOF
7331 #define HAVE_SPEED_T 1
7336 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7337 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7338 if test "${emacs_cv_struct_timeval+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 cat >conftest.
$ac_ext <<_ACEOF
7344 cat confdefs.h
>>conftest.
$ac_ext
7345 cat >>conftest.
$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #ifdef TIME_WITH_SYS_TIME
7348 #include <sys/time.h>
7351 #ifdef HAVE_SYS_TIME_H
7352 #include <sys/time.h>
7360 static struct timeval x; x.tv_sec = x.tv_usec;
7365 rm -f conftest.
$ac_objext
7366 if { (ac_try
="$ac_compile"
7368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 emacs_cv_struct_timeval=yes
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 emacs_cv_struct_timeval=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7393 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7394 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7395 if test $emacs_cv_struct_timeval = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_TIMEVAL 1
7403 { echo "$as_me:$LINENO: checking for struct exception" >&5
7404 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_exception+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7418 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7423 rm -f conftest.$ac_objext
7424 if { (ac_try="$ac_compile"
7426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7427 *) ac_try_echo
=$ac_try;;
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7432 grep -v '^ *+' conftest.er1
>conftest.err
7434 cat conftest.err
>&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.
$ac_objext; then
7440 emacs_cv_struct_exception
=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.
$ac_ext >&5
7445 emacs_cv_struct_exception
=no
7448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7450 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7451 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7452 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7453 if test $emacs_cv_struct_exception != yes; then
7455 cat >>confdefs.h
<<\_ACEOF
7456 #define NO_MATHERR 1
7462 for ac_header
in sys
/socket.h
7464 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_res
=`eval echo '${'$as_ac_Header'}'`
7472 { echo "$as_me:$LINENO: result: $ac_res" >&5
7473 echo "${ECHO_T}$ac_res" >&6; }
7475 # Is the header compilable?
7476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7478 cat >conftest.
$ac_ext <<_ACEOF
7481 cat confdefs.h
>>conftest.
$ac_ext
7482 cat >>conftest.
$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 $ac_includes_default
7485 #include <$ac_header>
7487 rm -f conftest.
$ac_objext
7488 if { (ac_try
="$ac_compile"
7490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_header_compiler=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_header_compiler=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7514 echo "${ECHO_T}$ac_header_compiler" >&6; }
7516 # Is the header present?
7517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7519 cat >conftest.$ac_ext <<_ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 #include <$ac_header>
7527 if { (ac_try="$ac_cpp conftest.$ac_ext"
7529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7530 *) ac_try_echo
=$ac_try;;
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1
>conftest.err
7537 cat conftest.err
>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } >/dev
/null
&& {
7540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7543 ac_header_preproc
=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.
$ac_ext >&5
7548 ac_header_preproc
=no
7551 rm -f conftest.err conftest.
$ac_ext
7552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7553 echo "${ECHO_T}$ac_header_preproc" >&6; }
7555 # So? What about this header?
7556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7562 ac_header_preproc
=yes
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7582 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 eval "$as_ac_Header=\$ac_header_preproc"
7587 ac_res
=`eval echo '${'$as_ac_Header'}'`
7588 { echo "$as_me:$LINENO: result: $ac_res" >&5
7589 echo "${ECHO_T}$ac_res" >&6; }
7592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7593 cat >>confdefs.h
<<_ACEOF
7594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7602 for ac_header
in net
/if.h
7604 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 cat >conftest.
$ac_ext <<_ACEOF
7613 cat confdefs.h
>>conftest.
$ac_ext
7614 cat >>conftest.
$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 #if HAVE_SYS_SOCKET_H
7618 #include <sys/socket.h>
7621 #include <$ac_header>
7623 rm -f conftest.
$ac_objext
7624 if { (ac_try
="$ac_compile"
7626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7640 eval "$as_ac_Header=yes"
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 eval "$as_ac_Header=no"
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 ac_res=`eval echo '${'$as_ac_Header'}'`
7651 { echo "$as_me:$LINENO: result: $ac_res" >&5
7652 echo "${ECHO_T}$ac_res" >&6; }
7653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7663 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7664 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7665 if test "${ac_cv_struct_tm+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <sys/types.h>
7681 int *p = &tm.tm_sec;
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7691 *) ac_try_echo
=$ac_try;;
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7696 grep -v '^ *+' conftest.er1
>conftest.err
7698 cat conftest.err
>&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.
$ac_objext; then
7704 ac_cv_struct_tm
=time.h
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.
$ac_ext >&5
7709 ac_cv_struct_tm
=sys
/time.h
7712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7714 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7715 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7716 if test $ac_cv_struct_tm = sys
/time.h
; then
7718 cat >>confdefs.h
<<\_ACEOF
7719 #define TM_IN_SYS_TIME 1
7724 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7725 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7726 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 cat >conftest.
$ac_ext <<_ACEOF
7732 cat confdefs.h
>>conftest.
$ac_ext
7733 cat >>conftest.
$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 #include <sys/types.h>
7736 #include <$ac_cv_struct_tm>
7742 static struct tm ac_aggr;
7743 if (ac_aggr.tm_zone)
7749 rm -f conftest.
$ac_objext
7750 if { (ac_try
="$ac_compile"
7752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_compile") 2>conftest.er1
7758 grep -v '^ *+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest.$ac_objext; then
7766 ac_cv_member_struct_tm_tm_zone=yes
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 cat >conftest.$ac_ext <<_ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <sys/types.h>
7778 #include <$ac_cv_struct_tm>
7784 static struct tm ac_aggr;
7785 if (sizeof ac_aggr.tm_zone)
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7795 *) ac_try_echo
=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1
>conftest.err
7802 cat conftest.err
>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.
$ac_objext; then
7808 ac_cv_member_struct_tm_tm_zone
=yes
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.
$ac_ext >&5
7813 ac_cv_member_struct_tm_tm_zone
=no
7816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7821 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7822 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7823 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7825 cat >>confdefs.h
<<_ACEOF
7826 #define HAVE_STRUCT_TM_TM_ZONE 1
7832 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7834 cat >>confdefs.h
<<\_ACEOF
7835 #define HAVE_TM_ZONE 1
7839 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7840 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7841 if test "${ac_cv_have_decl_tzname+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 cat >conftest.
$ac_ext <<_ACEOF
7847 cat confdefs.h
>>conftest.
$ac_ext
7848 cat >>conftest.
$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7863 rm -f conftest.
$ac_objext
7864 if { (ac_try
="$ac_compile"
7866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 ac_cv_have_decl_tzname=yes
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 ac_cv_have_decl_tzname=no
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7891 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7892 if test $ac_cv_have_decl_tzname = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define HAVE_DECL_TZNAME 1
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_DECL_TZNAME 0
7908 { echo "$as_me:$LINENO: checking for tzname" >&5
7909 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7910 if test "${ac_cv_var_tzname+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7920 #if !HAVE_DECL_TZNAME
7921 extern char *tzname[];
7927 return tzname[0][0];
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (ac_try="$ac_link"
7935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7936 *) ac_try_echo
=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_link") 2>conftest.er1
7941 grep -v '^ *+' conftest.er1
>conftest.err
7943 cat conftest.err
>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest
$ac_exeext &&
7949 $as_test_x conftest
$ac_exeext; then
7950 ac_cv_var_tzname
=yes
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.
$ac_ext >&5
7958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7959 conftest
$ac_exeext conftest.
$ac_ext
7961 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7962 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7963 if test $ac_cv_var_tzname = yes; then
7965 cat >>confdefs.h
<<\_ACEOF
7966 #define HAVE_TZNAME 1
7972 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7973 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7974 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 cat >conftest.
$ac_ext <<_ACEOF
7980 cat confdefs.h
>>conftest.
$ac_ext
7981 cat >>conftest.
$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7988 static struct tm ac_aggr;
7989 if (ac_aggr.tm_gmtoff)
7995 rm -f conftest.
$ac_objext
7996 if { (ac_try
="$ac_compile"
7998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_compile") 2>conftest.er1
8004 grep -v '^ *+' conftest.er1 >conftest.err
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest.$ac_objext; then
8012 ac_cv_member_struct_tm_tm_gmtoff=yes
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8028 static struct tm ac_aggr;
8029 if (sizeof ac_aggr.tm_gmtoff)
8035 rm -f conftest.$ac_objext
8036 if { (ac_try="$ac_compile"
8038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8039 *) ac_try_echo
=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1
>conftest.err
8046 cat conftest.err
>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.
$ac_objext; then
8052 ac_cv_member_struct_tm_tm_gmtoff
=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.
$ac_ext >&5
8057 ac_cv_member_struct_tm_tm_gmtoff
=no
8060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8065 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8066 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8067 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8069 cat >>confdefs.h
<<\_ACEOF
8070 #define HAVE_TM_GMTOFF 1
8075 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8076 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8077 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.
$ac_ext <<_ACEOF
8083 cat confdefs.h
>>conftest.
$ac_ext
8084 cat >>conftest.
$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8087 #if HAVE_SYS_SOCKET_H
8088 #include <sys/socket.h>
8097 static struct ifreq ac_aggr;
8098 if (ac_aggr.ifr_flags)
8104 rm -f conftest.
$ac_objext
8105 if { (ac_try
="$ac_compile"
8107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest.$ac_objext; then
8121 ac_cv_member_struct_ifreq_ifr_flags=yes
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 #if HAVE_SYS_SOCKET_H
8134 #include <sys/socket.h>
8143 static struct ifreq ac_aggr;
8144 if (sizeof ac_aggr.ifr_flags)
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8154 *) ac_try_echo
=$ac_try;;
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8159 grep -v '^ *+' conftest.er1
>conftest.err
8161 cat conftest.err
>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.
$ac_objext; then
8167 ac_cv_member_struct_ifreq_ifr_flags
=yes
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.
$ac_ext >&5
8172 ac_cv_member_struct_ifreq_ifr_flags
=no
8175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8180 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8181 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8182 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8184 cat >>confdefs.h
<<_ACEOF
8185 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8190 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8191 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8192 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 cat >conftest.
$ac_ext <<_ACEOF
8198 cat confdefs.h
>>conftest.
$ac_ext
8199 cat >>conftest.
$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 $ac_includes_default
8202 #if HAVE_SYS_SOCKET_H
8203 #include <sys/socket.h>
8212 static struct ifreq ac_aggr;
8213 if (ac_aggr.ifr_hwaddr)
8219 rm -f conftest.
$ac_objext
8220 if { (ac_try
="$ac_compile"
8222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_compile") 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && {
8233 test -z "$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 } && test -s conftest.$ac_objext; then
8236 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 cat >conftest.$ac_ext <<_ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247 $ac_includes_default
8248 #if HAVE_SYS_SOCKET_H
8249 #include <sys/socket.h>
8258 static struct ifreq ac_aggr;
8259 if (sizeof ac_aggr.ifr_hwaddr)
8265 rm -f conftest.$ac_objext
8266 if { (ac_try="$ac_compile"
8268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8269 *) ac_try_echo
=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_compile") 2>conftest.er1
8274 grep -v '^ *+' conftest.er1
>conftest.err
8276 cat conftest.err
>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } && {
8279 test -z "$ac_c_werror_flag" ||
8280 test ! -s conftest.err
8281 } && test -s conftest.
$ac_objext; then
8282 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.
$ac_ext >&5
8287 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8295 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8296 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8297 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8299 cat >>confdefs.h
<<_ACEOF
8300 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8305 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8306 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8307 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 cat >conftest.
$ac_ext <<_ACEOF
8313 cat confdefs.h
>>conftest.
$ac_ext
8314 cat >>conftest.
$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8317 #if HAVE_SYS_SOCKET_H
8318 #include <sys/socket.h>
8327 static struct ifreq ac_aggr;
8328 if (ac_aggr.ifr_netmask)
8334 rm -f conftest.
$ac_objext
8335 if { (ac_try
="$ac_compile"
8337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1 >conftest.err
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 ac_cv_member_struct_ifreq_ifr_netmask=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 $ac_includes_default
8363 #if HAVE_SYS_SOCKET_H
8364 #include <sys/socket.h>
8373 static struct ifreq ac_aggr;
8374 if (sizeof ac_aggr.ifr_netmask)
8380 rm -f conftest.$ac_objext
8381 if { (ac_try="$ac_compile"
8383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8384 *) ac_try_echo
=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_compile") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1
>conftest.err
8391 cat conftest.err
>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } && {
8394 test -z "$ac_c_werror_flag" ||
8395 test ! -s conftest.err
8396 } && test -s conftest.
$ac_objext; then
8397 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.
$ac_ext >&5
8402 ac_cv_member_struct_ifreq_ifr_netmask
=no
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8410 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8411 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8412 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8414 cat >>confdefs.h
<<_ACEOF
8415 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8420 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8421 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8422 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 cat >conftest.
$ac_ext <<_ACEOF
8428 cat confdefs.h
>>conftest.
$ac_ext
8429 cat >>conftest.
$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 #if HAVE_SYS_SOCKET_H
8433 #include <sys/socket.h>
8442 static struct ifreq ac_aggr;
8443 if (ac_aggr.ifr_broadaddr)
8449 rm -f conftest.
$ac_objext
8450 if { (ac_try
="$ac_compile"
8452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.$ac_objext; then
8466 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 $ac_includes_default
8478 #if HAVE_SYS_SOCKET_H
8479 #include <sys/socket.h>
8488 static struct ifreq ac_aggr;
8489 if (sizeof ac_aggr.ifr_broadaddr)
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8499 *) ac_try_echo
=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1
>conftest.err
8506 cat conftest.err
>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.
$ac_objext; then
8512 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.
$ac_ext >&5
8517 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8525 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8526 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8527 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8529 cat >>confdefs.h
<<_ACEOF
8530 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8535 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8536 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8537 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 cat >conftest.
$ac_ext <<_ACEOF
8543 cat confdefs.h
>>conftest.
$ac_ext
8544 cat >>conftest.
$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8557 static struct ifreq ac_aggr;
8558 if (ac_aggr.ifr_addr)
8564 rm -f conftest.
$ac_objext
8565 if { (ac_try
="$ac_compile"
8567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_addr=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 $ac_includes_default
8593 #if HAVE_SYS_SOCKET_H
8594 #include <sys/socket.h>
8603 static struct ifreq ac_aggr;
8604 if (sizeof ac_aggr.ifr_addr)
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8614 *) ac_try_echo
=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_compile") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.
$ac_objext; then
8627 ac_cv_member_struct_ifreq_ifr_addr
=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.
$ac_ext >&5
8632 ac_cv_member_struct_ifreq_ifr_addr
=no
8635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8641 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8642 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8644 cat >>confdefs.h
<<_ACEOF
8645 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8653 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8654 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8655 if test "$ac_cv_prog_cc_c89" != no
; then
8656 { echo "$as_me:$LINENO: result: yes" >&5
8657 echo "${ECHO_T}yes" >&6; }
8659 cat >>confdefs.h
<<\_ACEOF
8660 #define PROTOTYPES 1
8664 cat >>confdefs.h
<<\_ACEOF
8665 #define __PROTOTYPES 1
8669 { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8673 { echo "$as_me:$LINENO: checking for working volatile" >&5
8674 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8675 if test "${ac_cv_c_volatile+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.
$ac_ext <<_ACEOF
8681 cat confdefs.h
>>conftest.
$ac_ext
8682 cat >>conftest.
$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8690 int * volatile y = (int *) 0;
8696 rm -f conftest.
$ac_objext
8697 if { (ac_try
="$ac_compile"
8699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 ac_cv_c_volatile=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8724 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8725 if test $ac_cv_c_volatile = no; then
8727 cat >>confdefs.h <<\_ACEOF
8733 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8734 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8735 if test "${ac_cv_c_const+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8748 /* FIXME: Include the comments suggested by Paul. */
8750 /* Ultrix mips cc rejects this. */
8751 typedef int charset[2];
8753 /* SunOS 4.1.1 cc rejects this. */
8754 char const *const *pcpcc;
8756 /* NEC SVR4.0.2 mips cc rejects this. */
8757 struct point {int x, y;};
8758 static struct point const zero = {0,0};
8759 /* AIX XL C 1.02.0.0 rejects this.
8760 It does not let you subtract one const X* pointer from another in
8761 an arm of an if-expression whose if-part is not a constant
8763 const char *g = "string";
8764 pcpcc = &g + (g ? g-g : 0);
8765 /* HPUX 7.0 cc rejects these. */
8767 ppc = (char**) pcpcc;
8768 pcpcc = (char const *const *) ppc;
8769 { /* SCO 3.2v4 cc rejects this. */
8771 char const *s = 0 ? (char *) 0 : (char const *) 0;
8776 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8778 const int *foo = &x[0];
8781 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8782 typedef const int *iptr;
8786 { /* AIX XL C 1.02.0.0 rejects this saying
8787 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8788 struct s { int j; const int *ap[3]; };
8789 struct s *b; b->j = 5;
8791 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8795 return !cs[0] && !zero.x;
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8806 *) ac_try_echo
=$ac_try;;
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1
>conftest.err
8813 cat conftest.err
>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.
$ac_objext; then
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8829 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8830 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8831 if test $ac_cv_c_const = no
; then
8833 cat >>confdefs.h
<<\_ACEOF
8839 { echo "$as_me:$LINENO: checking for void * support" >&5
8840 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8841 if test "${emacs_cv_void_star+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 cat >conftest.
$ac_ext <<_ACEOF
8847 cat confdefs.h
>>conftest.
$ac_ext
8848 cat >>conftest.
$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8859 rm -f conftest.
$ac_objext
8860 if { (ac_try
="$ac_compile"
8862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8868 grep -v '^ *+' conftest.er1 >conftest.err
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_c_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 emacs_cv_void_star=yes
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 emacs_cv_void_star=no
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8887 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8888 if test $emacs_cv_void_star = yes; then
8889 cat >>confdefs.h <<\_ACEOF
8890 #define POINTER_TYPE void
8894 cat >>confdefs.h <<\_ACEOF
8895 #define POINTER_TYPE char
8904 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8905 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8906 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8907 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 cat >conftest.make <<\_ACEOF
8913 @echo '@@@%%%=$(MAKE)=@@@%%%'
8915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8916 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8918 eval ac_cv_prog_make_${ac_make}_set=yes;;
8920 eval ac_cv_prog_make_${ac_make}_set=no;;
8924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8925 { echo "$as_me:$LINENO: result: yes" >&5
8926 echo "${ECHO_T}yes" >&6; }
8929 { echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6; }
8931 SET_MAKE="MAKE=${MAKE-make}"
8935 { echo "$as_me:$LINENO: checking for long file names" >&5
8936 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8937 if test "${ac_cv_sys_long_file_names+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 ac_cv_sys_long_file_names=yes
8941 # Test for long file names in all the places we know might matter:
8942 # . the current directory, where building will happen
8943 # $prefix/lib where we will be installing things
8944 # $exec_prefix/lib likewise
8945 # $TMPDIR if set, where it might want to write temporary files
8946 # /tmp where it might want to write temporary files
8949 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8950 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8951 # in the usual case where exec_prefix is '${prefix}'.
8953 . | /* | ?:[\\/]*) ;; #(
8956 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8957 ac_xdir=$ac_dir/cf$$
8958 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8959 ac_tf1=$ac_xdir/conftest9012345
8960 ac_tf2=$ac_xdir/conftest9012346
8961 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8962 ac_cv_sys_long_file_names=no
8963 rm -f -r "$ac_xdir" 2>/dev/null
8964 test $ac_cv_sys_long_file_names = no && break
8967 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8968 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8969 if test $ac_cv_sys_long_file_names = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_LONG_FILE_NAMES 1
8978 #### Choose a window system.
8980 { echo "$as_me:$LINENO: checking for X" >&5
8981 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8984 # Check whether --with-x was given.
8985 if test "${with_x+set}" = set; then
8989 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8990 if test "x$with_x" = xno; then
8991 # The user explicitly disabled X.
8994 case $x_includes,$x_libraries in #(
8995 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8996 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8997 { (exit 1); exit 1; }; };; #(
8998 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 # One or both of the vars are not set, and there is no cached value.
9002 ac_x_includes=no ac_x_libraries=no
9003 rm -f -r conftest.dir
9004 if mkdir conftest.dir; then
9006 cat >Imakefile <<'_ACEOF'
9008 @echo incroot='${INCROOT}'
9010 @echo usrlibdir='${USRLIBDIR}'
9012 @echo libdir='${LIBDIR}'
9014 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9016 for ac_var in incroot usrlibdir libdir; do
9017 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9019 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9020 for ac_extension in a so sl; do
9021 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9022 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9023 ac_im_usrlibdir=$ac_im_libdir; break
9026 # Screen out bogus values from the imake configuration. They are
9027 # bogus both because they are the default anyway, and because
9028 # using them would break gcc on systems where it needs fixed includes.
9029 case $ac_im_incroot in
9030 /usr/include) ac_x_includes= ;;
9031 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9033 case $ac_im_usrlibdir in
9035 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9039 rm -f -r conftest.dir
9042 # Standard set of common directories for X headers.
9043 # Check X11 before X11Rn because it is often a symlink to the current release.
9055 /usr/local/X11/include
9056 /usr/local/X11R6/include
9057 /usr/local/X11R5/include
9058 /usr/local/X11R4/include
9060 /usr/local/include/X11
9061 /usr/local/include/X11R6
9062 /usr/local/include/X11R5
9063 /usr/local/include/X11R4
9067 /usr/XFree86/include/X11
9071 /usr/unsupported/include
9073 /usr/local/x11r5/include
9074 /usr/lpp/Xamples/include
9076 /usr/openwin/include
9077 /usr/openwin/share/include'
9079 if test "$ac_x_includes" = no; then
9080 # Guess where to find include files, by looking for Xlib.h.
9081 # First, try using that file with no special directory specified.
9082 cat >conftest.$ac_ext <<_ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 #include <X11/Xlib.h>
9090 if { (ac_try="$ac_cpp conftest.$ac_ext"
9092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9093 *) ac_try_echo
=$ac_try;;
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9098 grep -v '^ *+' conftest.er1
>conftest.err
9100 cat conftest.err
>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } >/dev
/null
&& {
9103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9104 test ! -s conftest.err
9106 # We can compile using X headers with no special include directory.
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.
$ac_ext >&5
9112 for ac_dir
in $ac_x_header_dirs; do
9113 if test -r "$ac_dir/X11/Xlib.h"; then
9114 ac_x_includes
=$ac_dir
9120 rm -f conftest.err conftest.
$ac_ext
9121 fi # $ac_x_includes = no
9123 if test "$ac_x_libraries" = no
; then
9124 # Check for the libraries.
9125 # See if we find them without any special options.
9126 # Don't add to $LIBS permanently.
9129 cat >conftest.
$ac_ext <<_ACEOF
9132 cat confdefs.h
>>conftest.
$ac_ext
9133 cat >>conftest.
$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 #include <X11/Xlib.h>
9144 rm -f conftest.
$ac_objext conftest
$ac_exeext
9145 if { (ac_try
="$ac_link"
9147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_link") 2>conftest.er1
9153 grep -v '^ *+' conftest.er1 >conftest.err
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest$ac_exeext &&
9161 $as_test_x conftest$ac_exeext; then
9163 # We can link X programs with no special library path.
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9170 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9172 # Don't even attempt the hair of trying to link an X program!
9173 for ac_extension in a so sl; do
9174 if test -r "$ac_dir/libX11.$ac_extension"; then
9175 ac_x_libraries=$ac_dir
9182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9183 conftest$ac_exeext conftest.$ac_ext
9184 fi # $ac_x_libraries = no
9186 case $ac_x_includes,$ac_x_libraries in #(
9188 # Didn't find X, or a directory has "'" in its name.
9189 ac_cv_have_x="have_x=no";; #(
9191 # Record where we found X for the cache.
9192 ac_cv_have_x="have_x=yes\
9193 ac_x_includes='$ac_x_includes'\
9194 ac_x_libraries='$ac_x_libraries'"
9200 eval "$ac_cv_have_x"
9203 if test "$have_x" != yes; then
9204 { echo "$as_me:$LINENO: result: $have_x" >&5
9205 echo "${ECHO_T}$have_x" >&6; }
9208 # If each of the values was on the command line, it overrides each guess.
9209 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9210 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9211 # Update the cache value to reflect the command line values.
9212 ac_cv_have_x="have_x=yes\
9213 ac_x_includes='$x_includes'\
9214 ac_x_libraries='$x_libraries'"
9215 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9216 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9219 if test "$no_x" = yes; then
9225 if test "${x_libraries}" != NONE; then
9226 if test -n "${x_libraries}"; then
9227 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9228 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9230 x_default_search_path=""
9231 x_search_path=${x_libraries}
9232 if test -z "${x_search_path}"; then
9233 x_search_path=/usr/lib
9235 for x_library in `echo ${x_search_path}: | \
9236 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9238 ${x_library}/X11/%L/%T/%N%C%S:\
9239 ${x_library}/X11/%l/%T/%N%C%S:\
9240 ${x_library}/X11/%T/%N%C%S:\
9241 ${x_library}/X11/%L/%T/%N%S:\
9242 ${x_library}/X11/%l/%T/%N%S:\
9243 ${x_library}/X11/%T/%N%S"
9244 if test x"${x_default_search_path}" = x; then
9245 x_default_search_path=${x_search_path}
9247 x_default_search_path="${x_search_path}:${x_default_search_path}"
9251 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9252 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9255 if test x"${x_includes}" = x; then
9256 bitmapdir=/usr/include/X11/bitmaps
9258 # accumulate include directories that have X11 bitmap subdirectories
9260 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9261 if test -d "${bmd}/X11/bitmaps"; then
9262 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9264 if test -d "${bmd}/bitmaps"; then
9265 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9268 if test ${bmd_acc} != "dummyval"; then
9269 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9274 if test "${with_carbon}" != no; then
9275 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9276 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9277 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9278 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9282 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9284 # Is the header compilable?
9285 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9286 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9287 cat >conftest.$ac_ext <<_ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 #include <Carbon/Carbon.h>
9296 rm -f conftest.$ac_objext
9297 if { (ac_try="$ac_compile"
9299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9300 *) ac_try_echo
=$ac_try;;
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_compile") 2>conftest.er1
9305 grep -v '^ *+' conftest.er1
>conftest.err
9307 cat conftest.err
>&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest.
$ac_objext; then
9313 ac_header_compiler
=yes
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.
$ac_ext >&5
9318 ac_header_compiler
=no
9321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6; }
9325 # Is the header present?
9326 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9327 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 #include <Carbon/Carbon.h>
9336 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1 >conftest.err
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } >/dev/null && {
9349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9352 ac_header_preproc=yes
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_header_preproc=no
9360 rm -f conftest.err conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9362 echo "${ECHO_T}$ac_header_preproc" >&6; }
9364 # So? What about this header?
9365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9368 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9370 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9371 ac_header_preproc=yes
9374 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9375 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9377 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9379 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9381 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9383 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9385 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9389 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9390 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9391 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9396 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9397 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9400 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9406 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9407 if test "${with_carbon+set}" != set \
9408 && test "${carbon_appdir_x+set}" != set; then
9409 for var in with_x with_x_toolkit with_gtk with_xim \
9410 with_xpm with_jpeg with_tiff with_gif with_png; do
9411 if eval test \"\${$var+set}\" = set; then
9418 if test "${HAVE_CARBON}" = yes; then
9422 case "${window_system}" in
9426 case "${with_x_toolkit}" in
9427 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9428 motif ) USE_X_TOOLKIT=MOTIF ;;
9430 USE_X_TOOLKIT=none ;;
9431 no ) USE_X_TOOLKIT=none ;;
9432 * ) USE_X_TOOLKIT=maybe ;;
9442 ### If we're using X11, we should use the X menu package.
9445 yes ) HAVE_MENUS=yes ;;
9448 if test "${opsys}" = "hpux9"; then
9449 case "${x_libraries}" in
9451 opsysfile="s/hpux9-x11r4.h"
9456 if test "${opsys}" = "hpux9shr"; then
9457 case "${x_libraries}" in
9459 opsysfile="s/hpux9shxr4.h"
9464 ### Compute the unexec source name from the object name.
9465 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9467 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9468 # Assume not, until told otherwise.
9471 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9472 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9473 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484 #define malloc_get_state innocuous_malloc_get_state
9486 /* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char malloc_get_state (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9492 # include <limits.h>
9494 # include <assert.h>
9497 #undef malloc_get_state
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9505 char malloc_get_state ();
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9516 return malloc_get_state ();
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9525 *) ac_try_echo
=$ac_try;;
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_link") 2>conftest.er1
9530 grep -v '^ *+' conftest.er1
>conftest.err
9532 cat conftest.err
>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest
$ac_exeext &&
9538 $as_test_x conftest
$ac_exeext; then
9539 ac_cv_func_malloc_get_state
=yes
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.
$ac_ext >&5
9544 ac_cv_func_malloc_get_state
=no
9547 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9548 conftest
$ac_exeext conftest.
$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9551 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9552 if test $ac_cv_func_malloc_get_state = yes; then
9558 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9559 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9560 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 cat >conftest.
$ac_ext <<_ACEOF
9566 cat confdefs.h
>>conftest.
$ac_ext
9567 cat >>conftest.
$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define malloc_set_state innocuous_malloc_set_state
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char malloc_set_state (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9579 # include <limits.h>
9581 # include <assert.h>
9584 #undef malloc_set_state
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9592 char malloc_set_state ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9603 return malloc_set_state ();
9608 rm -f conftest.
$ac_objext conftest
$ac_exeext
9609 if { (ac_try
="$ac_link"
9611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9617 grep -v '^ *+' conftest.er1 >conftest.err
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest$ac_exeext &&
9625 $as_test_x conftest$ac_exeext; then
9626 ac_cv_func_malloc_set_state=yes
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_cv_func_malloc_set_state=no
9634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9635 conftest$ac_exeext conftest.$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9638 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9639 if test $ac_cv_func_malloc_set_state = yes; then
9645 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9646 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9647 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 extern void (* __after_morecore_hook)();
9660 __after_morecore_hook = 0
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9669 *) ac_try_echo
=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9674 grep -v '^ *+' conftest.er1
>conftest.err
9676 cat conftest.err
>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest
$ac_exeext &&
9682 $as_test_x conftest
$ac_exeext; then
9683 emacs_cv_var___after_morecore_hook
=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.
$ac_ext >&5
9688 emacs_cv_var___after_morecore_hook
=no
9691 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9692 conftest
$ac_exeext conftest.
$ac_ext
9694 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9695 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9696 if test $emacs_cv_var___after_morecore_hook = no
; then
9699 if test "${system_malloc}" = "yes"; then
9702 (The GNU allocators don't work with this system configuration.)"
9704 if test "$doug_lea_malloc" = "yes" ; then
9705 if test "$GNU_MALLOC" = yes ; then
9707 (Using Doug Lea's new malloc from the GNU C Library.)"
9710 cat >>confdefs.h
<<\_ACEOF
9711 #define DOUG_LEA_MALLOC 1
9716 if test x
"${REL_ALLOC}" = x
; then
9717 REL_ALLOC
=${GNU_MALLOC}
9723 for ac_header
in stdlib.h unistd.h
9725 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9729 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_res
=`eval echo '${'$as_ac_Header'}'`
9733 { echo "$as_me:$LINENO: result: $ac_res" >&5
9734 echo "${ECHO_T}$ac_res" >&6; }
9736 # Is the header compilable?
9737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9739 cat >conftest.
$ac_ext <<_ACEOF
9742 cat confdefs.h
>>conftest.
$ac_ext
9743 cat >>conftest.
$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745 $ac_includes_default
9746 #include <$ac_header>
9748 rm -f conftest.
$ac_objext
9749 if { (ac_try
="$ac_compile"
9751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 echo "${ECHO_T}$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <$ac_header>
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9791 *) ac_try_echo
=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1
>conftest.err
9798 cat conftest.err
>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } >/dev
/null
&& {
9801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9804 ac_header_preproc
=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9809 ac_header_preproc
=no
9812 rm -f conftest.err conftest.
$ac_ext
9813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 echo "${ECHO_T}$ac_header_preproc" >&6; }
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc
=yes
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9843 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res
=`eval echo '${'$as_ac_Header'}'`
9849 { echo "$as_me:$LINENO: result: $ac_res" >&5
9850 echo "${ECHO_T}$ac_res" >&6; }
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854 cat >>confdefs.h
<<_ACEOF
9855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9863 for ac_func
in getpagesize
9865 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9868 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 cat >conftest.
$ac_ext <<_ACEOF
9874 cat confdefs.h
>>conftest.
$ac_ext
9875 cat >>conftest.
$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9879 #define $ac_func innocuous_$ac_func
9881 /* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char $ac_func (); below.
9883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9884 <limits.h> exists even on freestanding compilers. */
9887 # include <limits.h>
9889 # include <assert.h>
9894 /* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
9901 /* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
9904 #if defined __stub_$ac_func || defined __stub___$ac_func
9916 rm -f conftest.
$ac_objext conftest
$ac_exeext
9917 if { (ac_try
="$ac_link"
9919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
9925 grep -v '^ *+' conftest.er1 >conftest.err
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext &&
9933 $as_test_x conftest$ac_exeext; then
9934 eval "$as_ac_var=yes"
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 eval "$as_ac_var=no"
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9945 ac_res=`eval echo '${'$as_ac_var'}'`
9946 { echo "$as_me:$LINENO: result: $ac_res" >&5
9947 echo "${ECHO_T}$ac_res" >&6; }
9948 if test `eval echo '${'$as_ac_var'}'` = yes; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9956 { echo "$as_me:$LINENO: checking for working mmap" >&5
9957 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 if test "$cross_compiling" = yes; then
9962 ac_cv_func_mmap_fixed_mapped=no
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 $ac_includes_default
9971 /* malloc might have been renamed as rpl_malloc. */
9974 /* Thanks to Mike Haertel and Jim Avera for this test.
9975 Here is a matrix of mmap possibilities:
9976 mmap private not fixed
9977 mmap private fixed at somewhere currently unmapped
9978 mmap private fixed at somewhere already mapped
9979 mmap shared not fixed
9980 mmap shared fixed at somewhere currently unmapped
9981 mmap shared fixed at somewhere already mapped
9982 For private mappings, we should verify that changes cannot be read()
9983 back from the file, nor mmap's back from the file at a different
9984 address. (There have been systems where private was not correctly
9985 implemented like the infamous i386 svr4.0, and systems where the
9986 VM page cache was not coherent with the file system buffer cache
9987 like early versions of FreeBSD and possibly contemporary NetBSD.)
9988 For shared mappings, we should conversely verify that changes get
9989 propagated back to all the places they're supposed to be.
9991 Grep wants private fixed already mapped.
9992 The main things grep needs to know about mmap are:
9993 * does it exist and is it safe to write into the mmap'd area
9994 * how to use it (BSD variants) */
9997 #include <sys/mman.h>
9999 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10003 /* This mess was copied from the GNU getpagesize.h. */
10004 #ifndef HAVE_GETPAGESIZE
10005 /* Assume that all systems that can run configure have sys/param.h. */
10006 # ifndef HAVE_SYS_PARAM_H
10007 # define HAVE_SYS_PARAM_H 1
10010 # ifdef _SC_PAGESIZE
10011 # define getpagesize() sysconf(_SC_PAGESIZE)
10012 # else /* no _SC_PAGESIZE */
10013 # ifdef HAVE_SYS_PARAM_H
10014 # include <sys/param.h>
10015 # ifdef EXEC_PAGESIZE
10016 # define getpagesize() EXEC_PAGESIZE
10017 # else /* no EXEC_PAGESIZE */
10019 # define getpagesize() NBPG * CLSIZE
10022 # endif /* no CLSIZE */
10023 # else /* no NBPG */
10025 # define getpagesize() NBPC
10026 # else /* no NBPC */
10028 # define getpagesize() PAGESIZE
10029 # endif /* PAGESIZE */
10030 # endif /* no NBPC */
10031 # endif /* no NBPG */
10032 # endif /* no EXEC_PAGESIZE */
10033 # else /* no HAVE_SYS_PARAM_H */
10034 # define getpagesize() 8192 /* punt totally */
10035 # endif /* no HAVE_SYS_PARAM_H */
10036 # endif /* no _SC_PAGESIZE */
10038 #endif /* no HAVE_GETPAGESIZE */
10043 char *data, *data2, *data3;
10047 pagesize = getpagesize ();
10049 /* First, make a file with some known garbage in it. */
10050 data = (char *) malloc (pagesize);
10053 for (i = 0; i < pagesize; ++i)
10054 *(data + i) = rand ();
10056 fd = creat ("conftest.mmap", 0600);
10059 if (write (fd, data, pagesize) != pagesize)
10063 /* Next, try to mmap the file at a fixed address which already has
10064 something else allocated at it. If we can, also make sure that
10065 we see the same garbage. */
10066 fd = open ("conftest.mmap", O_RDWR);
10069 data2 = (char *) malloc (2 * pagesize);
10072 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10073 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10074 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10076 for (i = 0; i < pagesize; ++i)
10077 if (*(data + i) != *(data2 + i))
10080 /* Finally, make sure that changes to the mapped area do not
10081 percolate back to the file as seen by read(). (This is a bug on
10082 some variants of i386 svr4.0.) */
10083 for (i = 0; i < pagesize; ++i)
10084 *(data2 + i) = *(data2 + i) + 1;
10085 data3 = (char *) malloc (pagesize);
10088 if (read (fd, data3, pagesize) != pagesize)
10090 for (i = 0; i < pagesize; ++i)
10091 if (*(data + i) != *(data3 + i))
10097 rm -f conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10101 *) ac_try_echo
=$ac_try;;
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10108 { (case "(($ac_try" in
10109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_func_mmap_fixed_mapped=yes
10119 echo "$as_me: program exited with status $ac_status" >&5
10120 echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ( exit $ac_status )
10124 ac_cv_func_mmap_fixed_mapped=no
10126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10131 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10132 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10133 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10135 cat >>confdefs.h <<\_ACEOF
10136 #define HAVE_MMAP 1
10140 rm -f conftest.mmap
10142 if test $use_mmap_for_buffers = yes; then
10146 LIBS="$libsrc_libs $LIBS"
10149 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10150 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10151 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 ac_check_lib_save_LIBS=$LIBS
10155 LIBS="-ldnet $LIBS"
10156 cat >conftest.$ac_ext <<_ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10173 return dnet_ntoa ();
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10182 *) ac_try_echo
=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10187 grep -v '^ *+' conftest.er1
>conftest.err
10189 cat conftest.err
>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest
$ac_exeext &&
10195 $as_test_x conftest
$ac_exeext; then
10196 ac_cv_lib_dnet_dnet_ntoa
=yes
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.
$ac_ext >&5
10201 ac_cv_lib_dnet_dnet_ntoa
=no
10204 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10205 conftest
$ac_exeext conftest.
$ac_ext
10206 LIBS
=$ac_check_lib_save_LIBS
10208 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10209 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10210 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10211 cat >>confdefs.h
<<_ACEOF
10212 #define HAVE_LIBDNET 1
10215 LIBS
="-ldnet $LIBS"
10220 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10221 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10222 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 ac_check_lib_save_LIBS
=$LIBS
10226 LIBS
="-lXbsd $LIBS"
10227 cat >conftest.
$ac_ext <<_ACEOF
10230 cat confdefs.h
>>conftest.
$ac_ext
10231 cat >>conftest.
$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10243 rm -f conftest.
$ac_objext conftest
$ac_exeext
10244 if { (ac_try
="$ac_link"
10245 case "(($ac_try" in
10246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest$ac_exeext &&
10260 $as_test_x conftest$ac_exeext; then
10261 ac_cv_lib_Xbsd_main=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_Xbsd_main=no
10269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10274 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10275 if test $ac_cv_lib_Xbsd_main = yes; then
10276 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10281 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10282 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10283 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 ac_check_lib_save_LIBS=$LIBS
10287 LIBS="-lpthreads $LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10305 return cma_open ();
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10314 *) ac_try_echo
=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1
>conftest.err
10321 cat conftest.err
>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest
$ac_exeext &&
10327 $as_test_x conftest
$ac_exeext; then
10328 ac_cv_lib_pthreads_cma_open
=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.
$ac_ext >&5
10333 ac_cv_lib_pthreads_cma_open
=no
10336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10337 conftest
$ac_exeext conftest.
$ac_ext
10338 LIBS
=$ac_check_lib_save_LIBS
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10341 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10342 if test $ac_cv_lib_pthreads_cma_open = yes; then
10343 cat >>confdefs.h
<<_ACEOF
10344 #define HAVE_LIBPTHREADS 1
10347 LIBS
="-lpthreads $LIBS"
10352 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10353 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10354 if test -d /usr
/X386
/include
; then
10356 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10360 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10361 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10366 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10367 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10368 if test "${gdb_cv_bigtoc+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10374 *) gdb_cv_bigtoc
=-bbigtoc ;;
10377 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10378 cat >conftest.
$ac_ext <<_ACEOF
10381 cat confdefs.h
>>conftest.
$ac_ext
10382 cat >>conftest.
$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10393 rm -f conftest.
$ac_objext conftest
$ac_exeext
10394 if { (ac_try
="$ac_link"
10395 case "(($ac_try" in
10396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10420 conftest$ac_exeext conftest.$ac_ext
10423 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10424 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10428 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10429 # used for the tests that follow. We set them back to REAL_CFLAGS and
10430 # REAL_CPPFLAGS later on.
10432 REAL_CPPFLAGS="$CPPFLAGS"
10434 if test "${HAVE_X11}" = "yes"; then
10435 DEFS="$C_SWITCH_X_SITE $DEFS"
10436 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10438 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10439 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10441 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10442 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10443 # but it's more convenient here to set LD_RUN_PATH
10444 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10445 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10446 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10450 if test "${opsys}" = "gnu-linux"; then
10451 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10452 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10463 XOpenDisplay ("foo");
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (ac_try="$ac_link"
10470 case "(($ac_try" in
10471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10472 *) ac_try_echo
=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1
>conftest.err
10479 cat conftest.err
>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest
$ac_exeext &&
10485 $as_test_x conftest
$ac_exeext; then
10486 xlinux_first_failure
=no
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.
$ac_ext >&5
10491 xlinux_first_failure
=yes
10494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10495 conftest
$ac_exeext conftest.
$ac_ext
10496 if test "${xlinux_first_failure}" = "yes"; then
10497 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10498 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10499 OLD_CPPFLAGS
="$CPPFLAGS"
10501 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10502 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10503 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10504 LIBS
="$LIBS -b i486-linuxaout"
10505 cat >conftest.
$ac_ext <<_ACEOF
10508 cat confdefs.h
>>conftest.
$ac_ext
10509 cat >>conftest.
$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10515 XOpenDisplay ("foo");
10520 rm -f conftest.
$ac_objext conftest
$ac_exeext
10521 if { (ac_try
="$ac_link"
10522 case "(($ac_try" in
10523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_link") 2>conftest.er1
10529 grep -v '^ *+' conftest.er1 >conftest.err
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest$ac_exeext &&
10537 $as_test_x conftest$ac_exeext; then
10538 xlinux_second_failure=no
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 xlinux_second_failure=yes
10546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10547 conftest$ac_exeext conftest.$ac_ext
10548 if test "${xlinux_second_failure}" = "yes"; then
10549 # If we get the same failure with -b, there is no use adding -b.
10550 # So take it out. This plays safe.
10551 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10552 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10553 CPPFLAGS="$OLD_CPPFLAGS"
10555 { echo "$as_me:$LINENO: result: no" >&5
10556 echo "${ECHO_T}no" >&6; }
10558 { echo "$as_me:$LINENO: result: yes" >&5
10559 echo "${ECHO_T}yes" >&6; }
10562 { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10567 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10568 # header files included from there.
10569 { echo "$as_me:$LINENO: checking for Xkb" >&5
10570 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10571 cat >conftest.$ac_ext <<_ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <X11/Xlib.h>
10578 #include <X11/XKBlib.h>
10582 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10591 *) ac_try_echo
=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1
>conftest.err
10598 cat conftest.err
>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest
$ac_exeext &&
10604 $as_test_x conftest
$ac_exeext; then
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.
$ac_ext >&5
10613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10614 conftest
$ac_exeext conftest.
$ac_ext
10615 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10616 echo "${ECHO_T}$emacs_xkb" >&6; }
10617 if test $emacs_xkb = yes; then
10619 cat >>confdefs.h
<<\_ACEOF
10620 #define HAVE_XKBGETKEYBOARD 1
10629 for ac_func
in XrmSetDatabase XScreenResourceString \
10630 XScreenNumberOfScreen XSetWMProtocols
10632 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10635 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 cat >conftest.
$ac_ext <<_ACEOF
10641 cat confdefs.h
>>conftest.
$ac_ext
10642 cat >>conftest.
$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10646 #define $ac_func innocuous_$ac_func
10648 /* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char $ac_func (); below.
10650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10651 <limits.h> exists even on freestanding compilers. */
10654 # include <limits.h>
10656 # include <assert.h>
10661 /* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10668 /* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671 #if defined __stub_$ac_func || defined __stub___$ac_func
10678 return $ac_func ();
10683 rm -f conftest.
$ac_objext conftest
$ac_exeext
10684 if { (ac_try
="$ac_link"
10685 case "(($ac_try" in
10686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_link") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && {
10697 test -z "$ac_c_werror_flag" ||
10698 test ! -s conftest.err
10699 } && test -s conftest$ac_exeext &&
10700 $as_test_x conftest$ac_exeext; then
10701 eval "$as_ac_var=yes"
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 eval "$as_ac_var=no"
10709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710 conftest$ac_exeext conftest.$ac_ext
10712 ac_res=`eval echo '${'$as_ac_var'}'`
10713 { echo "$as_me:$LINENO: result: $ac_res" >&5
10714 echo "${ECHO_T}$ac_res" >&6; }
10715 if test `eval echo '${'$as_ac_var'}'` = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10725 if test "${window_system}" = "x11"; then
10726 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10727 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10728 if test "${emacs_cv_x11_version_6+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #include <X11/Xlib.h>
10741 #if XlibSpecificationRelease < 6
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10753 *) ac_try_echo
=$ac_try;;
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_link") 2>conftest.er1
10758 grep -v '^ *+' conftest.er1
>conftest.err
10760 cat conftest.err
>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest
$ac_exeext &&
10766 $as_test_x conftest
$ac_exeext; then
10767 emacs_cv_x11_version_6
=yes
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.
$ac_ext >&5
10772 emacs_cv_x11_version_6
=no
10775 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10776 conftest
$ac_exeext conftest.
$ac_ext
10779 if test $emacs_cv_x11_version_6 = yes; then
10780 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10781 echo "${ECHO_T}6 or newer" >&6; }
10783 cat >>confdefs.h
<<\_ACEOF
10784 #define HAVE_X11R6 1
10788 { echo "$as_me:$LINENO: result: before 6" >&5
10789 echo "${ECHO_T}before 6" >&6; }
10793 if test "${window_system}" = "x11"; then
10794 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10795 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10796 if test "${emacs_cv_x11_version_5+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 cat >conftest.
$ac_ext <<_ACEOF
10802 cat confdefs.h
>>conftest.
$ac_ext
10803 cat >>conftest.
$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <X11/Xlib.h>
10809 #if XlibSpecificationRelease < 5
10817 rm -f conftest.
$ac_objext conftest
$ac_exeext
10818 if { (ac_try
="$ac_link"
10819 case "(($ac_try" in
10820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_link") 2>conftest.er1
10826 grep -v '^ *+' conftest.er1 >conftest.err
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } && {
10831 test -z "$ac_c_werror_flag" ||
10832 test ! -s conftest.err
10833 } && test -s conftest$ac_exeext &&
10834 $as_test_x conftest$ac_exeext; then
10835 emacs_cv_x11_version_5=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 emacs_cv_x11_version_5=no
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10847 if test $emacs_cv_x11_version_5 = yes; then
10848 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10849 echo "${ECHO_T}5 or newer" >&6; }
10852 cat >>confdefs.h <<\_ACEOF
10853 #define HAVE_X11R5 1
10858 { echo "$as_me:$LINENO: result: before 5" >&5
10859 echo "${ECHO_T}before 5" >&6; }
10864 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10867 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10868 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10869 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10870 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10871 { (exit 1); exit 1; }; };
10875 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10877 if test "X${with_pkg_config_prog}" != X; then
10878 PKG_CONFIG="${with_pkg_config_prog}"
10883 if test -z "$PKG_CONFIG"; then
10884 # Extract the first word of "pkg-config", so it can be a program name with args.
10885 set dummy pkg-config; ac_word=$2
10886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10888 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 case $PKG_CONFIG in
10893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10903 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10916 if test -n "$PKG_CONFIG"; then
10917 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10918 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10920 { echo "$as_me:$LINENO: result: no" >&5
10921 echo "${ECHO_T}no" >&6; }
10927 if test "$PKG_CONFIG" = "no" ; then
10928 { { echo "$as_me:$LINENO: error:
10929 *** 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
10930 echo "$as_me: error:
10931 *** 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;}
10932 { (exit 1); exit 1; }; }
10934 PKG_CONFIG_MIN_VERSION=0.9.0
10935 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10936 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10937 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10939 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10940 { echo "$as_me:$LINENO: result: yes" >&5
10941 echo "${ECHO_T}yes" >&6; }
10944 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10945 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10946 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10947 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10948 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10950 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10951 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10952 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10953 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10954 echo "${ECHO_T}$GTK_LIBS" >&6; }
10956 { echo "$as_me:$LINENO: result: no" >&5
10957 echo "${ECHO_T}no" >&6; }
10960 ## If we have a custom action on failure, don't print errors, but
10961 ## do set a variable so people can do so.
10962 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10963 echo $GTK_PKG_ERRORS
10969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10974 if test $succeeded = yes; then
10977 { { 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
10978 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;}
10979 { (exit 1); exit 1; }; }
10984 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10985 CFLAGS="$CFLAGS $GTK_CFLAGS"
10986 LIBS="$GTK_LIBS $LIBS"
10989 for ac_func in gtk_main
10991 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11037 return $ac_func ();
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11046 *) ac_try_echo
=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1
>conftest.err
11053 cat conftest.err
>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest
$ac_exeext &&
11059 $as_test_x conftest
$ac_exeext; then
11060 eval "$as_ac_var=yes"
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.
$ac_ext >&5
11065 eval "$as_ac_var=no"
11068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11069 conftest
$ac_exeext conftest.
$ac_ext
11071 ac_res
=`eval echo '${'$as_ac_var'}'`
11072 { echo "$as_me:$LINENO: result: $ac_res" >&5
11073 echo "${ECHO_T}$ac_res" >&6; }
11074 if test `eval echo '${'$as_ac_var'}'` = yes; then
11075 cat >>confdefs.h
<<_ACEOF
11076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11082 if test "${GTK_COMPILES}" != "yes"; then
11083 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11084 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11085 { (exit 1); exit 1; }; };
11090 cat >>confdefs.h
<<\_ACEOF
11096 if test "$with_toolkit_scroll_bars" != no
; then
11097 with_toolkit_scroll_bars
=yes
11100 HAVE_GTK_MULTIDISPLAY
=no
11102 for ac_func
in gdk_display_open
11104 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11107 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.
$ac_ext <<_ACEOF
11113 cat confdefs.h
>>conftest.
$ac_ext
11114 cat >>conftest.
$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define $ac_func innocuous_$ac_func
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char $ac_func (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11126 # include <limits.h>
11128 # include <assert.h>
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11140 /* The GNU C library defines this for functions which it implements
11141 to always fail with ENOSYS. Some functions are actually named
11142 something starting with __ and the normal name is an alias. */
11143 #if defined __stub_$ac_func || defined __stub___$ac_func
11150 return $ac_func ();
11155 rm -f conftest.
$ac_objext conftest
$ac_exeext
11156 if { (ac_try
="$ac_link"
11157 case "(($ac_try" in
11158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_link") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest$ac_exeext &&
11172 $as_test_x conftest$ac_exeext; then
11173 eval "$as_ac_var=yes"
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 eval "$as_ac_var=no"
11181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11182 conftest$ac_exeext conftest.$ac_ext
11184 ac_res=`eval echo '${'$as_ac_var'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11191 HAVE_GTK_MULTIDISPLAY=yes
11195 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define HAVE_GTK_MULTIDISPLAY 1
11202 HAVE_GTK_FILE_SELECTION=no
11204 for ac_func in gtk_file_selection_new
11206 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11220 #define $ac_func innocuous_$ac_func
11222 /* System header to define __stub macros and hopefully few prototypes,
11223 which can conflict with char $ac_func (); below.
11224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11225 <limits.h> exists even on freestanding compilers. */
11228 # include <limits.h>
11230 # include <assert.h>
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11242 /* The GNU C library defines this for functions which it implements
11243 to always fail with ENOSYS. Some functions are actually named
11244 something starting with __ and the normal name is an alias. */
11245 #if defined __stub_$ac_func || defined __stub___$ac_func
11252 return $ac_func ();
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11261 *) ac_try_echo
=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_link") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1
>conftest.err
11268 cat conftest.err
>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest
$ac_exeext &&
11274 $as_test_x conftest
$ac_exeext; then
11275 eval "$as_ac_var=yes"
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.
$ac_ext >&5
11280 eval "$as_ac_var=no"
11283 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11284 conftest
$ac_exeext conftest.
$ac_ext
11286 ac_res
=`eval echo '${'$as_ac_var'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289 if test `eval echo '${'$as_ac_var'}'` = yes; then
11290 cat >>confdefs.h
<<_ACEOF
11291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 HAVE_GTK_FILE_SELECTION
=yes
11298 HAVE_GTK_FILE_CHOOSER
=no
11300 for ac_func
in gtk_file_chooser_dialog_new
11302 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11305 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 cat >conftest.
$ac_ext <<_ACEOF
11311 cat confdefs.h
>>conftest.
$ac_ext
11312 cat >>conftest.
$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11324 # include <limits.h>
11326 # include <assert.h>
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11338 /* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341 #if defined __stub_$ac_func || defined __stub___$ac_func
11348 return $ac_func ();
11353 rm -f conftest.
$ac_objext conftest
$ac_exeext
11354 if { (ac_try
="$ac_link"
11355 case "(($ac_try" in
11356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_link") 2>conftest.er1
11362 grep -v '^ *+' conftest.er1 >conftest.err
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext &&
11370 $as_test_x conftest$ac_exeext; then
11371 eval "$as_ac_var=yes"
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 eval "$as_ac_var=no"
11379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11380 conftest$ac_exeext conftest.$ac_ext
11382 ac_res=`eval echo '${'$as_ac_var'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11385 if test `eval echo '${'$as_ac_var'}'` = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11389 HAVE_GTK_FILE_CHOOSER=yes
11394 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11395 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11397 cat >>confdefs.h <<\_ACEOF
11398 #define HAVE_GTK_FILE_BOTH 1
11403 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11404 HAVE_GTK_AND_PTHREAD=no
11406 for ac_header in pthread.h
11408 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 ac_res=`eval echo '${'$as_ac_Header'}'`
11416 { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11419 # Is the header compilable?
11420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11422 cat >conftest.$ac_ext <<_ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11429 #include <$ac_header>
11431 rm -f conftest.$ac_objext
11432 if { (ac_try="$ac_compile"
11433 case "(($ac_try" in
11434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11435 *) ac_try_echo
=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_compile") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1
>conftest.err
11442 cat conftest.err
>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest.
$ac_objext; then
11448 ac_header_compiler
=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 ac_header_compiler
=no
11456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11458 echo "${ECHO_T}$ac_header_compiler" >&6; }
11460 # Is the header present?
11461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11463 cat >conftest.
$ac_ext <<_ACEOF
11466 cat confdefs.h
>>conftest.
$ac_ext
11467 cat >>conftest.
$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 #include <$ac_header>
11471 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11472 case "(($ac_try" in
11473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } >/dev/null && {
11484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11487 ac_header_preproc=yes
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_header_preproc=no
11495 rm -f conftest.err conftest.$ac_ext
11496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11497 echo "${ECHO_T}$ac_header_preproc" >&6; }
11499 # So? What about this header?
11500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11506 ac_header_preproc=yes
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 eval "$as_ac_Header=\$ac_header_preproc"
11531 ac_res=`eval echo '${'$as_ac_Header'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11537 cat >>confdefs.h <<_ACEOF
11538 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11545 if test "$ac_cv_header_pthread_h"; then
11546 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11547 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11548 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-lpthread $LIBS"
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11566 char pthread_self ();
11570 return pthread_self ();
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11579 *) ac_try_echo
=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1
>conftest.err
11586 cat conftest.err
>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest
$ac_exeext &&
11592 $as_test_x conftest
$ac_exeext; then
11593 ac_cv_lib_pthread_pthread_self
=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.
$ac_ext >&5
11598 ac_cv_lib_pthread_pthread_self
=no
11601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11602 conftest
$ac_exeext conftest.
$ac_ext
11603 LIBS
=$ac_check_lib_save_LIBS
11605 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11606 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11607 if test $ac_cv_lib_pthread_pthread_self = yes; then
11608 HAVE_GTK_AND_PTHREAD
=yes
11612 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11613 GTK_LIBS
="$GTK_LIBS -lpthread"
11615 cat >>confdefs.h
<<\_ACEOF
11616 #define HAVE_GTK_AND_PTHREAD 1
11623 ### Link with -lXft if available to work around a bug.
11625 if test "${HAVE_GTK}" = "yes"; then
11626 if test "X${with_pkg_config_prog}" != X
; then
11627 PKG_CONFIG
="${with_pkg_config_prog}"
11633 if test -z "$PKG_CONFIG"; then
11634 # Extract the first word of "pkg-config", so it can be a program name with args.
11635 set dummy pkg-config
; ac_word
=$2
11636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11638 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 case $PKG_CONFIG in
11643 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11647 for as_dir
in $PATH
11650 test -z "$as_dir" && as_dir
=.
11651 for ac_exec_ext
in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11665 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11666 if test -n "$PKG_CONFIG"; then
11667 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11668 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11670 { echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6; }
11677 if test "$PKG_CONFIG" = "no" ; then
11680 PKG_CONFIG_MIN_VERSION
=0.9.0
11681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11683 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11685 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11686 { echo "$as_me:$LINENO: result: yes" >&5
11687 echo "${ECHO_T}yes" >&6; }
11690 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11691 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11692 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11693 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11694 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11696 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11697 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11698 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11699 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11700 echo "${ECHO_T}$XFT_LIBS" >&6; }
11702 { echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6; }
11706 ## If we have a custom action on failure, don't print errors, but
11707 ## do set a variable so people can do so.
11708 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11720 if test $succeeded = yes; then
11726 if test "$HAVE_XFT" != no
; then
11727 OLD_CFLAGS
="$CPPFLAGS"
11728 OLD_CFLAGS
="$CFLAGS"
11730 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11731 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11732 LIBS
="$XFT_LIBS $LIBS"
11733 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11734 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11735 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11736 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11740 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11742 # Is the header compilable?
11743 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11744 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11745 cat >conftest.
$ac_ext <<_ACEOF
11748 cat confdefs.h
>>conftest.
$ac_ext
11749 cat >>conftest.
$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 $ac_includes_default
11752 #include <X11/Xft/Xft.h>
11754 rm -f conftest.
$ac_objext
11755 if { (ac_try
="$ac_compile"
11756 case "(($ac_try" in
11757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_compile") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest.$ac_objext; then
11771 ac_header_compiler=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_header_compiler=no
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6; }
11783 # Is the header present?
11784 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11785 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <X11/Xft/Xft.h>
11794 if { (ac_try="$ac_cpp conftest.$ac_ext"
11795 case "(($ac_try" in
11796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11797 *) ac_try_echo
=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1
>conftest.err
11804 cat conftest.err
>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev
/null
&& {
11807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11810 ac_header_preproc
=yes
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.
$ac_ext >&5
11815 ac_header_preproc
=no
11818 rm -f conftest.err conftest.
$ac_ext
11819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11820 echo "${ECHO_T}$ac_header_preproc" >&6; }
11822 # So? What about this header?
11823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11826 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11828 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11829 ac_header_preproc
=yes
11832 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11833 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11835 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11837 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11838 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11839 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11840 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11841 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11842 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11843 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11847 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11848 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11849 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11854 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11855 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11858 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11859 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11860 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11861 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_check_lib_save_LIBS
=$LIBS
11865 LIBS
="-lXft $XFT_LIBS $LIBS"
11866 cat >conftest.
$ac_ext <<_ACEOF
11869 cat confdefs.h
>>conftest.
$ac_ext
11870 cat >>conftest.
$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11879 char XftFontOpen ();
11883 return XftFontOpen ();
11888 rm -f conftest.
$ac_objext conftest
$ac_exeext
11889 if { (ac_try
="$ac_link"
11890 case "(($ac_try" in
11891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } && {
11902 test -z "$ac_c_werror_flag" ||
11903 test ! -s conftest.err
11904 } && test -s conftest$ac_exeext &&
11905 $as_test_x conftest$ac_exeext; then
11906 ac_cv_lib_Xft_XftFontOpen=yes
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 ac_cv_lib_Xft_XftFontOpen=no
11914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11918 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11919 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11920 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11928 if test "${HAVE_XFT}" = "yes"; then
11930 cat >>confdefs.h <<\_ACEOF
11935 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11937 CFLAGS="$OLD_CPPFLAGS"
11938 CFLAGS="$OLD_CFLAGS"
11944 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11945 if test x"${HAVE_X11R5}" = xyes; then
11946 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11947 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11948 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 cat >conftest.$ac_ext <<_ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 #include <X11/Intrinsic.h>
11959 #include <X11/Xaw/Simple.h>
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11972 *) ac_try_echo
=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11977 grep -v '^ *+' conftest.er1
>conftest.err
11979 cat conftest.err
>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest
$ac_exeext &&
11985 $as_test_x conftest
$ac_exeext; then
11986 emacs_cv_x11_version_5_with_xaw
=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.
$ac_ext >&5
11991 emacs_cv_x11_version_5_with_xaw
=no
11994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11995 conftest
$ac_exeext conftest.
$ac_ext
11998 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11999 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12000 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12001 USE_X_TOOLKIT
=LUCID
12003 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12004 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12012 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12014 if test "${USE_X_TOOLKIT}" != "none"; then
12015 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12016 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12017 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >conftest.
$ac_ext <<_ACEOF
12023 cat confdefs.h
>>conftest.
$ac_ext
12024 cat >>conftest.
$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #include <X11/Intrinsic.h>
12030 #if XtSpecificationRelease < 6
12038 rm -f conftest.
$ac_objext conftest
$ac_exeext
12039 if { (ac_try
="$ac_link"
12040 case "(($ac_try" in
12041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest$ac_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 emacs_cv_x11_toolkit_version_6=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 emacs_cv_x11_toolkit_version_6=no
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12068 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12069 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12070 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12071 echo "${ECHO_T}6 or newer" >&6; }
12073 cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_X11XTR6 1
12078 { echo "$as_me:$LINENO: result: before 6" >&5
12079 echo "${ECHO_T}before 6" >&6; }
12083 if test x$HAVE_X11XTR6 = xyes; then
12084 LIBS="-lXt -lSM -lICE $LIBS"
12089 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12090 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 ac_check_lib_save_LIBS=$LIBS
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12109 char XmuConvertStandardSelection ();
12113 return XmuConvertStandardSelection ();
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12122 *) ac_try_echo
=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1
>conftest.err
12129 cat conftest.err
>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest
$ac_exeext &&
12135 $as_test_x conftest
$ac_exeext; then
12136 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.
$ac_ext >&5
12141 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12145 conftest
$ac_exeext conftest.
$ac_ext
12146 LIBS
=$ac_check_lib_save_LIBS
12148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12149 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12150 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12151 cat >>confdefs.h
<<_ACEOF
12152 #define HAVE_LIBXMU 1
12159 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${USE_X_TOOLKIT}" != "none"; then
12166 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12167 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 ac_check_lib_save_LIBS
=$LIBS
12172 LIBS
="-lXext $LIBS"
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12186 char XShapeQueryExtension ();
12190 return XShapeQueryExtension ();
12195 rm -f conftest.
$ac_objext conftest
$ac_exeext
12196 if { (ac_try
="$ac_link"
12197 case "(($ac_try" in
12198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest$ac_exeext &&
12212 $as_test_x conftest$ac_exeext; then
12213 ac_cv_lib_Xext_XShapeQueryExtension=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_lib_Xext_XShapeQueryExtension=no
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12226 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12227 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_LIBXEXT 1
12232 LIBS="-lXext $LIBS"
12239 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12240 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12241 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12242 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12255 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12258 Motif version prior to 2.1.
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12268 *) ac_try_echo
=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12273 grep -v '^ *+' conftest.er1
>conftest.err
12275 cat conftest.err
>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.
$ac_objext; then
12281 emacs_cv_motif_version_2_1
=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.
$ac_ext >&5
12286 emacs_cv_motif_version_2_1
=no
12289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12291 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12292 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12293 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12294 if test $emacs_cv_motif_version_2_1 = yes; then
12297 cat >>confdefs.h
<<\_ACEOF
12298 #define HAVE_MOTIF_2_1 1
12301 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12302 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 ac_check_lib_save_LIBS
=$LIBS
12308 cat >conftest.
$ac_ext <<_ACEOF
12311 cat confdefs.h
>>conftest.
$ac_ext
12312 cat >>conftest.
$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12321 char XpCreateContext ();
12325 return XpCreateContext ();
12330 rm -f conftest.
$ac_objext conftest
$ac_exeext
12331 if { (ac_try
="$ac_link"
12332 case "(($ac_try" in
12333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext &&
12347 $as_test_x conftest$ac_exeext; then
12348 ac_cv_lib_Xp_XpCreateContext=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_Xp_XpCreateContext=no
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12361 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12362 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12366 if test ${HAVE_LIBXP} = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_LIBXP 1
12374 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12375 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12376 if test "${emacs_cv_lesstif+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 # We put this in CFLAGS temporarily to precede other -I options
12380 # that might be in CFLAGS temporarily.
12381 # We put this in CPPFLAGS where it precedes the other -I options.
12382 OLD_CPPFLAGS=$CPPFLAGS
12384 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12385 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12405 *) ac_try_echo
=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1
>conftest.err
12412 cat conftest.err
>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.
$ac_objext; then
12418 emacs_cv_lesstif
=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.
$ac_ext >&5
12423 emacs_cv_lesstif
=no
12426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12428 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12429 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12430 if test $emacs_cv_lesstif = yes; then
12431 # Make sure this -I option remains in CPPFLAGS after it is set
12432 # back to REAL_CPPFLAGS.
12433 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12434 # have those other -I options anyway. Ultimately, having this
12435 # directory ultimately in CPPFLAGS will be enough.
12436 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12437 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12440 CPPFLAGS
=$OLD_CPPFLAGS
12445 ### Is -lXaw3d available?
12447 if test "${HAVE_X11}" = "yes"; then
12448 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12449 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12450 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12451 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12454 cat >conftest.
$ac_ext <<_ACEOF
12457 cat confdefs.h
>>conftest.
$ac_ext
12458 cat >>conftest.
$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include <X11/Xaw3d/Scrollbar.h>
12462 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12463 case "(($ac_try" in
12464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } >/dev/null && {
12475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12478 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12486 rm -f conftest.err conftest.$ac_ext
12488 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12489 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12490 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12491 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12492 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12493 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lXaw3d $LIBS"
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12511 char XawScrollbarSetThumb ();
12515 return XawScrollbarSetThumb ();
12520 rm -f conftest.$ac_objext conftest$ac_exeext
12521 if { (ac_try="$ac_link"
12522 case "(($ac_try" in
12523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12524 *) ac_try_echo
=$ac_try;;
12526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527 (eval "$ac_link") 2>conftest.er1
12529 grep -v '^ *+' conftest.er1
>conftest.err
12531 cat conftest.err
>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && {
12534 test -z "$ac_c_werror_flag" ||
12535 test ! -s conftest.err
12536 } && test -s conftest
$ac_exeext &&
12537 $as_test_x conftest
$ac_exeext; then
12538 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.
$ac_ext >&5
12543 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12546 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12547 conftest
$ac_exeext conftest.
$ac_ext
12548 LIBS
=$ac_check_lib_save_LIBS
12550 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12551 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12552 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12559 if test "${HAVE_XAW3D}" = "yes"; then
12561 cat >>confdefs.h
<<\_ACEOF
12562 #define HAVE_XAW3D 1
12571 USE_TOOLKIT_SCROLL_BARS
=no
12572 if test "${with_toolkit_scroll_bars}" != "no"; then
12573 if test "${USE_X_TOOLKIT}" != "none"; then
12574 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12575 cat >>confdefs.h
<<\_ACEOF
12576 #define USE_TOOLKIT_SCROLL_BARS 1
12580 USE_TOOLKIT_SCROLL_BARS
=yes
12581 elif test "${HAVE_XAW3D}" = "yes"; then
12582 cat >>confdefs.h
<<\_ACEOF
12583 #define USE_TOOLKIT_SCROLL_BARS 1
12586 USE_TOOLKIT_SCROLL_BARS
=yes
12588 elif test "${HAVE_GTK}" = "yes"; then
12589 cat >>confdefs.h
<<\_ACEOF
12590 #define USE_TOOLKIT_SCROLL_BARS 1
12593 USE_TOOLKIT_SCROLL_BARS
=yes
12594 elif test "${HAVE_CARBON}" = "yes"; then
12595 cat >>confdefs.h
<<\_ACEOF
12596 #define USE_TOOLKIT_SCROLL_BARS 1
12599 USE_TOOLKIT_SCROLL_BARS
=yes
12603 cat >conftest.
$ac_ext <<_ACEOF
12606 cat confdefs.h
>>conftest.
$ac_ext
12607 cat >>conftest.
$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 #include <X11/Xlib.h>
12611 #include <X11/Xresource.h>
12620 rm -f conftest.
$ac_objext
12621 if { (ac_try
="$ac_compile"
12622 case "(($ac_try" in
12623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_compile") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest.$ac_objext; then
12639 cat >>confdefs.h <<\_ACEOF
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 if test "${with_xim}" != "no"; then
12655 cat >>confdefs.h <<\_ACEOF
12662 if test "${HAVE_XIM}" != "no"; then
12663 late_CFLAGS=$CFLAGS
12664 if test "$GCC" = yes; then
12665 CFLAGS="$CFLAGS --pedantic-errors"
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 #include <X11/Xlib.h>
12675 #include <X11/Xresource.h>
12684 XPointer *client_data;
12686 /* If we're not using GCC, it's probably not XFree86, and this is
12687 probably right, but we can't use something like --pedantic-errors. */
12688 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12689 char*, XIMProc, XPointer*);
12691 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12697 rm -f conftest.$ac_objext
12698 if { (ac_try="$ac_compile"
12699 case "(($ac_try" in
12700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12701 *) ac_try_echo
=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_compile") 2>conftest.er1
12706 grep -v '^ *+' conftest.er1
>conftest.err
12708 cat conftest.err
>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && {
12711 test -z "$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12713 } && test -s conftest.
$ac_objext; then
12714 emacs_cv_arg6_star
=yes
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.
$ac_ext >&5
12722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12724 if test "$emacs_cv_arg6_star" = yes; then
12725 cat >>confdefs.h
<<\_ACEOF
12726 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12730 cat >>confdefs.h
<<\_ACEOF
12731 #define XRegisterIMInstantiateCallback_arg6 XPointer
12735 CFLAGS
=$late_CFLAGS
12738 ### Use -lXpm if available, unless `--with-xpm=no'.
12740 if test "${HAVE_X11}" = "yes"; then
12741 if test "${with_xpm}" != "no"; then
12742 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12743 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12744 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12745 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12749 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12751 # Is the header compilable?
12752 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12753 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12754 cat >conftest.
$ac_ext <<_ACEOF
12757 cat confdefs.h
>>conftest.
$ac_ext
12758 cat >>conftest.
$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 $ac_includes_default
12761 #include <X11/xpm.h>
12763 rm -f conftest.
$ac_objext
12764 if { (ac_try
="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12772 grep -v '^ *+' conftest.er1 >conftest.err
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12780 ac_header_compiler=yes
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_header_compiler=no
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12790 echo "${ECHO_T}$ac_header_compiler" >&6; }
12792 # Is the header present?
12793 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12794 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #include <X11/xpm.h>
12803 if { (ac_try="$ac_cpp conftest.$ac_ext"
12804 case "(($ac_try" in
12805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12806 *) ac_try_echo
=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1
>conftest.err
12813 cat conftest.err
>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } >/dev
/null
&& {
12816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12819 ac_header_preproc
=yes
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.
$ac_ext >&5
12824 ac_header_preproc
=no
12827 rm -f conftest.err conftest.
$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12829 echo "${ECHO_T}$ac_header_preproc" >&6; }
12831 # So? What about this header?
12832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12834 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12835 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12837 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12838 ac_header_preproc
=yes
12841 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12842 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12844 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12846 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12848 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12850 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12851 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12852 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12856 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12857 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12858 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12863 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12864 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12867 if test $ac_cv_header_X11_xpm_h = yes; then
12868 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12869 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12870 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 ac_check_lib_save_LIBS
=$LIBS
12874 LIBS
="-lXpm -lX11 $LIBS"
12875 cat >conftest.
$ac_ext <<_ACEOF
12878 cat confdefs.h
>>conftest.
$ac_ext
12879 cat >>conftest.
$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12888 char XpmReadFileToPixmap ();
12892 return XpmReadFileToPixmap ();
12897 rm -f conftest.
$ac_objext conftest
$ac_exeext
12898 if { (ac_try
="$ac_link"
12899 case "(($ac_try" in
12900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_link") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest$ac_exeext &&
12914 $as_test_x conftest$ac_exeext; then
12915 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12924 conftest$ac_exeext conftest.$ac_ext
12925 LIBS=$ac_check_lib_save_LIBS
12927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12928 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12929 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12936 if test "${HAVE_XPM}" = "yes"; then
12937 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12938 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12939 cat >conftest.$ac_ext <<_ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945 #include "X11/xpm.h"
12946 #ifndef XpmReturnAllocPixels
12947 no_return_alloc_pixels
12951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12952 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12960 if test "${HAVE_XPM}" = "yes"; then
12961 { echo "$as_me:$LINENO: result: yes" >&5
12962 echo "${ECHO_T}yes" >&6; }
12964 { echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6; }
12970 if test "${HAVE_XPM}" = "yes"; then
12972 cat >>confdefs.h <<\_ACEOF
12979 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
12981 if test "${HAVE_X11}" = "yes"; then
12982 if test "${with_jpeg}" != "no"; then
12983 if test "${ac_cv_header_jerror_h+set}" = set; then
12984 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12985 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12986 if test "${ac_cv_header_jerror_h+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12990 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12992 # Is the header compilable?
12993 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12994 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13001 $ac_includes_default
13002 #include <jerror.h>
13004 rm -f conftest.$ac_objext
13005 if { (ac_try="$ac_compile"
13006 case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_compile") 2>conftest.er1
13013 grep -v '^
*+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest.$ac_objext; then
13021 ac_header_compiler=yes
13023 echo "$as_me: failed program was:" >&5
13024 sed 's
/^
/|
/' conftest.$ac_ext >&5
13026 ac_header_compiler=no
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 echo "${ECHO_T}$ac_header_compiler" >&6; }
13033 # Is the header present?
13034 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13035 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <jerror.h>
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052 grep -v '^
*+' conftest.er1 >conftest.err
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } >/dev/null && {
13057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13058 test ! -s conftest.err
13060 ac_header_preproc=yes
13062 echo "$as_me: failed program was:" >&5
13063 sed 's
/^
/|
/' conftest.$ac_ext >&5
13065 ac_header_preproc=no
13068 rm -f conftest.err conftest.$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13070 echo "${ECHO_T}$ac_header_preproc" >&6; }
13072 # So? What about this header?
13073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13075 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13076 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13077 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13078 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13079 ac_header_preproc=yes
13082 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13083 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13084 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13085 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13087 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13089 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13091 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13093 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13097 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13098 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13099 if test "${ac_cv_header_jerror_h+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_cv_header_jerror_h=$ac_header_preproc
13104 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13105 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13108 if test $ac_cv_header_jerror_h = yes; then
13109 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13110 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13111 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-ljpeg $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13129 char jpeg_destroy_compress ();
13133 return jpeg_destroy_compress ();
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_link") 2>conftest.er1
13147 grep -v '^
*+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest$ac_exeext &&
13155 $as_test_x conftest$ac_exeext; then
13156 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13158 echo "$as_me: failed program was:" >&5
13159 sed 's
/^
/|
/' conftest.$ac_ext >&5
13161 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13168 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13169 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13170 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13180 if test "${HAVE_JPEG}" = "yes"; then
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAVE_JPEG 1
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <jpeglib.h>
13192 version=JPEG_LIB_VERSION
13195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13196 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13197 cat >>confdefs.h <<\_ACEOF
13198 #define HAVE_JPEG 1
13202 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13203 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13211 ### Use -lpng if available, unless `--with-png=no'.
13213 if test "${HAVE_X11}" = "yes"; then
13214 if test "${with_png}" != "no"; then
13215 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13216 # in /usr/include/libpng.
13219 for ac_header
in png.h libpng
/png.h
13221 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_res
=`eval echo '${'$as_ac_Header'}'`
13229 { echo "$as_me:$LINENO: result: $ac_res" >&5
13230 echo "${ECHO_T}$ac_res" >&6; }
13232 # Is the header compilable?
13233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13235 cat >conftest.
$ac_ext <<_ACEOF
13238 cat confdefs.h
>>conftest.
$ac_ext
13239 cat >>conftest.
$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 #include <$ac_header>
13244 rm -f conftest.
$ac_objext
13245 if { (ac_try
="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_header_compiler=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_compiler=no
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6; }
13273 # Is the header present?
13274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <$ac_header>
13284 if { (ac_try="$ac_cpp conftest.$ac_ext"
13285 case "(($ac_try" in
13286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13287 *) ac_try_echo
=$ac_try;;
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13292 grep -v '^ *+' conftest.er1
>conftest.err
13294 cat conftest.err
>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev
/null
&& {
13297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13300 ac_header_preproc
=yes
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.
$ac_ext >&5
13305 ac_header_preproc
=no
13308 rm -f conftest.err conftest.
$ac_ext
13309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310 echo "${ECHO_T}$ac_header_preproc" >&6; }
13312 # So? What about this header?
13313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13319 ac_header_preproc
=yes
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 ac_res
=`eval echo '${'$as_ac_Header'}'`
13345 { echo "$as_me:$LINENO: result: $ac_res" >&5
13346 echo "${ECHO_T}$ac_res" >&6; }
13349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13350 cat >>confdefs.h
<<_ACEOF
13351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13358 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13359 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13360 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13361 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 ac_check_lib_save_LIBS
=$LIBS
13365 LIBS
="-lpng -lz -lm $LIBS"
13366 cat >conftest.
$ac_ext <<_ACEOF
13369 cat confdefs.h
>>conftest.
$ac_ext
13370 cat >>conftest.
$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply. */
13379 char png_get_channels ();
13383 return png_get_channels ();
13388 rm -f conftest.
$ac_objext conftest
$ac_exeext
13389 if { (ac_try
="$ac_link"
13390 case "(($ac_try" in
13391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_link") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext &&
13405 $as_test_x conftest$ac_exeext; then
13406 ac_cv_lib_png_png_get_channels=yes
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 ac_cv_lib_png_png_get_channels=no
13414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13415 conftest$ac_exeext conftest.$ac_ext
13416 LIBS=$ac_check_lib_save_LIBS
13418 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13419 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13420 if test $ac_cv_lib_png_png_get_channels = yes; then
13427 if test "${HAVE_PNG}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF
13436 ### Use -ltiff if available, unless `--with-tiff=no
'.
13438 if test "${HAVE_X11}" = "yes"; then
13439 if test "${with_tiff}" != "no"; then
13440 if test "${ac_cv_header_tiffio_h+set}" = set; then
13441 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13442 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13443 if test "${ac_cv_header_tiffio_h+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13447 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13449 # Is the header compilable?
13450 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13451 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13452 cat >conftest.$ac_ext <<_ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 $ac_includes_default
13459 #include <tiffio.h>
13461 rm -f conftest.$ac_objext
13462 if { (ac_try="$ac_compile"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_compile") 2>conftest.er1
13470 grep -v '^
*+' conftest.er1 >conftest.err
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } && {
13475 test -z "$ac_c_werror_flag" ||
13476 test ! -s conftest.err
13477 } && test -s conftest.$ac_objext; then
13478 ac_header_compiler=yes
13480 echo "$as_me: failed program was:" >&5
13481 sed 's
/^
/|
/' conftest.$ac_ext >&5
13483 ac_header_compiler=no
13486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13488 echo "${ECHO_T}$ac_header_compiler" >&6; }
13490 # Is the header present?
13491 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13492 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 #include <tiffio.h>
13501 if { (ac_try="$ac_cpp conftest.$ac_ext"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13509 grep -v '^
*+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } >/dev/null && {
13514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13517 ac_header_preproc=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's
/^
/|
/' conftest.$ac_ext >&5
13522 ac_header_preproc=no
13525 rm -f conftest.err conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13527 echo "${ECHO_T}$ac_header_preproc" >&6; }
13529 # So? What about this header?
13530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13532 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13533 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13534 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13535 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13536 ac_header_preproc=yes
13539 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13540 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13542 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13544 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13546 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13548 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13550 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13554 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13555 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13556 if test "${ac_cv_header_tiffio_h+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 ac_cv_header_tiffio_h=$ac_header_preproc
13561 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13565 if test $ac_cv_header_tiffio_h = yes; then
13567 # At least one tiff package requires the jpeg library.
13568 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13569 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13570 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13571 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 ac_check_lib_save_LIBS=$LIBS
13575 LIBS="-ltiff $tifflibs $LIBS"
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13583 /* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13589 char TIFFGetVersion ();
13593 return TIFFGetVersion ();
13598 rm -f conftest.$ac_objext conftest$ac_exeext
13599 if { (ac_try="$ac_link"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_link") 2>conftest.er1
13607 grep -v '^
*+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } && {
13612 test -z "$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 } && test -s conftest$ac_exeext &&
13615 $as_test_x conftest$ac_exeext; then
13616 ac_cv_lib_tiff_TIFFGetVersion=yes
13618 echo "$as_me: failed program was:" >&5
13619 sed 's
/^
/|
/' conftest.$ac_ext >&5
13621 ac_cv_lib_tiff_TIFFGetVersion=no
13624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13628 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13629 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13630 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13639 if test "${HAVE_TIFF}" = "yes"; then
13641 cat >>confdefs.h <<\_ACEOF
13642 #define HAVE_TIFF 1
13648 ### Use -lgif if available, unless `--with-gif=no'.
13650 if test "${HAVE_X11}" = "yes"; then
13651 if test "${with_gif}" != "no"; then
13652 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13653 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13654 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13655 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13659 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13661 # Is the header compilable?
13662 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13663 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13664 cat >conftest.
$ac_ext <<_ACEOF
13667 cat confdefs.h
>>conftest.
$ac_ext
13668 cat >>conftest.
$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 $ac_includes_default
13671 #include <gif_lib.h>
13673 rm -f conftest.
$ac_objext
13674 if { (ac_try
="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 ac_header_compiler=yes
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_header_compiler=no
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13700 echo "${ECHO_T}$ac_header_compiler" >&6; }
13702 # Is the header present?
13703 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13704 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13705 cat >conftest.$ac_ext <<_ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 #include <gif_lib.h>
13713 if { (ac_try="$ac_cpp conftest.$ac_ext"
13714 case "(($ac_try" in
13715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13716 *) ac_try_echo
=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1
>conftest.err
13723 cat conftest.err
>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev
/null
&& {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13729 ac_header_preproc
=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.
$ac_ext >&5
13734 ac_header_preproc
=no
13737 rm -f conftest.err conftest.
$ac_ext
13738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 echo "${ECHO_T}$ac_header_preproc" >&6; }
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13744 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13745 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13747 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc
=yes
13751 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13752 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13754 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13756 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13758 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13760 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13762 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13766 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13767 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13768 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 ac_cv_header_gif_lib_h
=$ac_header_preproc
13773 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13774 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13777 if test $ac_cv_header_gif_lib_h = yes; then
13778 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13779 # Earlier versions can crash Emacs.
13780 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13781 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_check_lib_save_LIBS
=$LIBS
13786 LIBS
="-lungif $LIBS"
13787 cat >conftest.
$ac_ext <<_ACEOF
13790 cat confdefs.h
>>conftest.
$ac_ext
13791 cat >>conftest.
$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13800 char EGifPutExtensionLast ();
13804 return EGifPutExtensionLast ();
13809 rm -f conftest.
$ac_objext conftest
$ac_exeext
13810 if { (ac_try
="$ac_link"
13811 case "(($ac_try" in
13812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_lib_ungif_EGifPutExtensionLast=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13840 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13841 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13850 if test "${HAVE_GIF}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13859 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13860 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13861 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13862 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13866 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13868 # Is the header compilable?
13869 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13870 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 $ac_includes_default
13878 #include <malloc/malloc.h>
13880 rm -f conftest.$ac_objext
13881 if { (ac_try="$ac_compile"
13882 case "(($ac_try" in
13883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13884 *) ac_try_echo
=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13889 grep -v '^ *+' conftest.er1
>conftest.err
13891 cat conftest.err
>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } && {
13894 test -z "$ac_c_werror_flag" ||
13895 test ! -s conftest.err
13896 } && test -s conftest.
$ac_objext; then
13897 ac_header_compiler
=yes
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.
$ac_ext >&5
13902 ac_header_compiler
=no
13905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6; }
13909 # Is the header present?
13910 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13911 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13912 cat >conftest.
$ac_ext <<_ACEOF
13915 cat confdefs.h
>>conftest.
$ac_ext
13916 cat >>conftest.
$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <malloc/malloc.h>
13920 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13921 case "(($ac_try" in
13922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } >/dev/null && {
13933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13936 ac_header_preproc=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_header_preproc=no
13944 rm -f conftest.err conftest.$ac_ext
13945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13946 echo "${ECHO_T}$ac_header_preproc" >&6; }
13948 # So? What about this header?
13949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13952 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13954 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13955 ac_header_preproc=yes
13958 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13959 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13961 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13963 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13965 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13967 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13969 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13973 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13974 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13975 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13980 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13981 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13984 if test $ac_cv_header_malloc_malloc_h = yes; then
13986 cat >>confdefs.h <<\_ACEOF
13987 #define HAVE_MALLOC_MALLOC_H 1
13994 ### Use Mac OS X Carbon API to implement GUI.
13995 if test "${HAVE_CARBON}" = "yes"; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_CARBON 1
14001 ## Specify the install directory
14003 if test "${carbon_appdir_x}" != ""; then
14004 case ${carbon_appdir_x} in
14005 y | ye | yes) carbon_appdir=/Applications ;;
14006 * ) carbon_appdir=${carbon_appdir_x} ;;
14009 # We also have mouse menus.
14013 ### Use session management (-lSM -lICE) if available
14015 if test "${HAVE_X11}" = "yes"; then
14016 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14017 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14018 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14019 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14023 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14025 # Is the header compilable?
14026 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14027 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14035 #include <X11/SM/SMlib.h>
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14041 *) ac_try_echo
=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1
>conftest.err
14048 cat conftest.err
>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.
$ac_objext; then
14054 ac_header_compiler
=yes
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.
$ac_ext >&5
14059 ac_header_compiler
=no
14062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14064 echo "${ECHO_T}$ac_header_compiler" >&6; }
14066 # Is the header present?
14067 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14068 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14069 cat >conftest.
$ac_ext <<_ACEOF
14072 cat confdefs.h
>>conftest.
$ac_ext
14073 cat >>conftest.
$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 #include <X11/SM/SMlib.h>
14077 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14078 case "(($ac_try" in
14079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } >/dev/null && {
14090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14091 test ! -s conftest.err
14093 ac_header_preproc=yes
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_header_preproc=no
14101 rm -f conftest.err conftest.$ac_ext
14102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14103 echo "${ECHO_T}$ac_header_preproc" >&6; }
14105 # So? What about this header?
14106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14108 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14109 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14111 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14112 ac_header_preproc=yes
14115 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14116 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14118 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14120 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14122 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14124 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14126 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14130 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14131 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14132 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14137 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14138 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14141 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14142 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14143 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-lSM -lICE $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14162 char SmcOpenConnection ();
14166 return SmcOpenConnection ();
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14175 *) ac_try_echo
=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1
>conftest.err
14182 cat conftest.err
>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest
$ac_exeext &&
14188 $as_test_x conftest
$ac_exeext; then
14189 ac_cv_lib_SM_SmcOpenConnection
=yes
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.
$ac_ext >&5
14194 ac_cv_lib_SM_SmcOpenConnection
=no
14197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14198 conftest
$ac_exeext conftest.
$ac_ext
14199 LIBS
=$ac_check_lib_save_LIBS
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14202 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14203 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14211 if test "${HAVE_X_SM}" = "yes"; then
14213 cat >>confdefs.h
<<\_ACEOF
14214 #define HAVE_X_SM 1
14219 *) LIBS
="-lSM -lICE $LIBS" ;;
14224 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14225 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14226 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14227 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 cat >conftest.
$ac_ext <<_ACEOF
14233 cat confdefs.h
>>conftest.
$ac_ext
14234 cat >>conftest.
$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14245 rm -f conftest.
$ac_objext conftest
$ac_exeext
14246 if { (ac_try
="$ac_link"
14247 case "(($ac_try" in
14248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_link") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest$ac_exeext &&
14262 $as_test_x conftest$ac_exeext; then
14263 emacs_cv_netdb_declares_h_errno=yes
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 emacs_cv_netdb_declares_h_errno=no
14271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14272 conftest$ac_exeext conftest.$ac_ext
14274 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14275 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14276 if test $emacs_cv_netdb_declares_h_errno = yes; then
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_H_ERRNO 1
14284 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14285 # for constant arguments. Useless!
14286 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14287 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14288 if test "${ac_cv_working_alloca_h+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 cat >conftest.$ac_ext <<_ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <alloca.h>
14301 char *p = (char *) alloca (2 * sizeof (int));
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14311 *) ac_try_echo
=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1
>conftest.err
14318 cat conftest.err
>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest
$ac_exeext &&
14324 $as_test_x conftest
$ac_exeext; then
14325 ac_cv_working_alloca_h
=yes
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.
$ac_ext >&5
14330 ac_cv_working_alloca_h
=no
14333 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14334 conftest
$ac_exeext conftest.
$ac_ext
14336 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14337 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14338 if test $ac_cv_working_alloca_h = yes; then
14340 cat >>confdefs.h
<<\_ACEOF
14341 #define HAVE_ALLOCA_H 1
14346 { echo "$as_me:$LINENO: checking for alloca" >&5
14347 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14348 if test "${ac_cv_func_alloca_works+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.
$ac_ext <<_ACEOF
14354 cat confdefs.h
>>conftest.
$ac_ext
14355 cat >>conftest.
$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 # define alloca __builtin_alloca
14361 # include <malloc.h>
14362 # define alloca _alloca
14364 # ifdef HAVE_ALLOCA_H
14365 # include <alloca.h>
14370 # ifndef alloca /* predefined by HP cc +Olibcalls */
14381 char *p = (char *) alloca (1);
14387 rm -f conftest.
$ac_objext conftest
$ac_exeext
14388 if { (ac_try
="$ac_link"
14389 case "(($ac_try" in
14390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_link") 2>conftest.er1
14396 grep -v '^ *+' conftest.er1 >conftest.err
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && {
14401 test -z "$ac_c_werror_flag" ||
14402 test ! -s conftest.err
14403 } && test -s conftest$ac_exeext &&
14404 $as_test_x conftest$ac_exeext; then
14405 ac_cv_func_alloca_works=yes
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_func_alloca_works=no
14413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14414 conftest$ac_exeext conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14417 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14419 if test $ac_cv_func_alloca_works = yes; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_ALLOCA 1
14426 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14427 # that cause trouble. Some versions do not even contain alloca or
14428 # contain a buggy version. If you still want to use their alloca,
14429 # use ar to extract alloca.o from them instead of compiling alloca.c.
14431 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14433 cat >>confdefs.h <<\_ACEOF
14438 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14439 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14440 if test "${ac_cv_os_cray+set}" = set; then
14441 echo $ECHO_N "(cached
) $ECHO_C" >&6
14443 cat >conftest.$ac_ext <<_ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 #if defined CRAY && ! defined CRAY2
14456 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14457 $EGREP "webecray
" >/dev/null 2>&1; then
14465 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14466 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14467 if test $ac_cv_os_cray = yes; then
14468 for ac_func in _getb67 GETB67 getb67; do
14469 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14470 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14471 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14472 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached
) $ECHO_C" >&6
14475 cat >conftest.$ac_ext <<_ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14483 #define $ac_func innocuous_$ac_func
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below.
14487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14488 <limits.h> exists even on freestanding compilers. */
14491 # include <limits.h>
14493 # include <assert.h>
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14505 /* The GNU C library defines this for functions which it implements
14506 to always fail with ENOSYS. Some functions are actually named
14507 something starting with __ and the normal name is an alias. */
14508 #if defined __stub_$ac_func || defined __stub___$ac_func
14515 return $ac_func ();
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest$ac_exeext &&
14537 $as_test_x conftest$ac_exeext; then
14538 eval "$as_ac_var=yes"
14540 echo "$as_me: failed program was
:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 eval "$as_ac_var=no
"
14546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14547 conftest$ac_exeext conftest.$ac_ext
14549 ac_res=`eval echo '${'$as_ac_var'}'`
14550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14552 if test `eval echo '${'$as_ac_var'}'` = yes; then
14554 cat >>confdefs.h <<_ACEOF
14555 #define CRAY_STACKSEG_END $ac_func
14564 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14565 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14566 if test "${ac_cv_c_stack_direction+set}" = set; then
14567 echo $ECHO_N "(cached
) $ECHO_C" >&6
14569 if test "$cross_compiling" = yes; then
14570 ac_cv_c_stack_direction=0
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14580 find_stack_direction ()
14582 static char *addr = 0;
14587 return find_stack_direction ();
14590 return (&dummy > addr) ? 1 : -1;
14596 return find_stack_direction () < 0;
14599 rm -f conftest$ac_exeext
14600 if { (ac_try="$ac_link"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>&5
14608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_c_stack_direction=1
14621 echo "$as_me: program exited with status
$ac_status" >&5
14622 echo "$as_me: failed program was
:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ( exit $ac_status )
14626 ac_cv_c_stack_direction=-1
14628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14634 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14636 cat >>confdefs.h <<_ACEOF
14637 #define STACK_DIRECTION $ac_cv_c_stack_direction
14644 # fmod, logb, and frexp are found in -lm on most systems.
14645 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14647 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14648 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14649 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14650 echo $ECHO_N "(cached
) $ECHO_C" >&6
14652 ac_check_lib_save_LIBS=$LIBS
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14661 /* Override any GCC internal prototype to avoid an error.
14662 Use char because int might match the return type of a GCC
14663 builtin and then its argument prototype would still apply. */
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (ac_try="$ac_link"
14678 case "(($ac_try" in
14679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680 *) ac_try_echo=$ac_try;;
14682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14683 (eval "$ac_link") 2>conftest.er1
14685 grep -v '^ *+' conftest.er1 >conftest.err
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14689 (exit $ac_status); } && {
14690 test -z "$ac_c_werror_flag" ||
14691 test ! -s conftest.err
14692 } && test -s conftest$ac_exeext &&
14693 $as_test_x conftest$ac_exeext; then
14694 ac_cv_lib_m_sqrt=yes
14696 echo "$as_me: failed program was
:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 ac_cv_lib_m_sqrt=no
14702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14703 conftest$ac_exeext conftest.$ac_ext
14704 LIBS=$ac_check_lib_save_LIBS
14706 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14707 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14708 if test $ac_cv_lib_m_sqrt = yes; then
14709 cat >>confdefs.h <<_ACEOF
14710 #define HAVE_LIBM 1
14718 # Check for mail-locking functions in a "mail" library. Probably this should
14719 # have the same check as for liblockfile below.
14721 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14722 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14723 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14724 echo $ECHO_N "(cached
) $ECHO_C" >&6
14726 ac_check_lib_save_LIBS=$LIBS
14727 LIBS="-lmail $LIBS"
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14735 /* Override any GCC internal prototype to avoid an error.
14736 Use char because int might match the return type of a GCC
14737 builtin and then its argument prototype would still apply. */
14745 return maillock ();
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
14768 ac_cv_lib_mail_maillock=yes
14770 echo "$as_me: failed program was
:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_cv_lib_mail_maillock=no
14776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14777 conftest$ac_exeext conftest.$ac_ext
14778 LIBS=$ac_check_lib_save_LIBS
14780 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14781 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14782 if test $ac_cv_lib_mail_maillock = yes; then
14783 cat >>confdefs.h <<_ACEOF
14784 #define HAVE_LIBMAIL 1
14787 LIBS="-lmail $LIBS"
14792 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14793 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14794 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14795 echo $ECHO_N "(cached
) $ECHO_C" >&6
14797 ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-llockfile $LIBS"
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14806 /* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14816 return maillock ();
14821 rm -f conftest.$ac_objext conftest$ac_exeext
14822 if { (ac_try="$ac_link"
14823 case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_link") 2>conftest.er1
14830 grep -v '^ *+' conftest.er1 >conftest.err
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest$ac_exeext &&
14838 $as_test_x conftest$ac_exeext; then
14839 ac_cv_lib_lockfile_maillock=yes
14841 echo "$as_me: failed program was
:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_cv_lib_lockfile_maillock=no
14847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14848 conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_check_lib_save_LIBS
14851 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14852 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14853 if test $ac_cv_lib_lockfile_maillock = yes; then
14854 cat >>confdefs.h <<_ACEOF
14855 #define HAVE_LIBLOCKFILE 1
14858 LIBS="-llockfile $LIBS"
14862 # If we have the shared liblockfile, assume we must use it for mail
14863 # locking (e.g. Debian). If we couldn't link against liblockfile
14864 # (no liblockfile.a installed), ensure that we don't need to.
14865 if test "$ac_cv_lib_lockfile_maillock" = no; then
14866 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14867 set dummy liblockfile.so; ac_word=$2
14868 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14869 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14870 if test "${ac_cv_prog_liblockfile+set}" = set; then
14871 echo $ECHO_N "(cached
) $ECHO_C" >&6
14873 if test -n "$liblockfile"; then
14874 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14877 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14878 for as_dir in $as_dummy
14881 test -z "$as_dir" && as_dir=.
14882 for ac_exec_ext in '' $ac_executable_extensions; do
14883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14884 ac_cv_prog_liblockfile="yes"
14885 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14892 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14895 liblockfile=$ac_cv_prog_liblockfile
14896 if test -n "$liblockfile"; then
14897 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14898 echo "${ECHO_T}$liblockfile" >&6; }
14900 { echo "$as_me:$LINENO: result
: no
" >&5
14901 echo "${ECHO_T}no
" >&6; }
14905 if test $ac_cv_prog_liblockfile = yes; then
14906 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14907 This probably means that movemail could lose mail.
14908 There may be a \`development' package to
install containing liblockfile.
" >&5
14909 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14910 This probably means that movemail could lose mail.
14911 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14912 { (exit 1); exit 1; }; }
14917 for ac_func in touchlock
14919 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14920 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14921 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14922 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14923 echo $ECHO_N "(cached
) $ECHO_C" >&6
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14933 #define $ac_func innocuous_$ac_func
14935 /* System header to define __stub macros and hopefully few prototypes,
14936 which can conflict with char $ac_func (); below.
14937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14938 <limits.h> exists even on freestanding compilers. */
14941 # include <limits.h>
14943 # include <assert.h>
14948 /* Override any GCC internal prototype to avoid an error.
14949 Use char because int might match the return type of a GCC
14950 builtin and then its argument prototype would still apply. */
14955 /* The GNU C library defines this for functions which it implements
14956 to always fail with ENOSYS. Some functions are actually named
14957 something starting with __ and the normal name is an alias. */
14958 #if defined __stub_$ac_func || defined __stub___$ac_func
14965 return $ac_func ();
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext &&
14987 $as_test_x conftest$ac_exeext; then
14988 eval "$as_ac_var=yes"
14990 echo "$as_me: failed program was
:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 eval "$as_ac_var=no
"
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14999 ac_res=`eval echo '${'$as_ac_var'}'`
15000 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15002 if test `eval echo '${'$as_ac_var'}'` = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15011 for ac_header in maillock.h
15013 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15015 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15016 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15018 echo $ECHO_N "(cached
) $ECHO_C" >&6
15020 ac_res=`eval echo '${'$as_ac_Header'}'`
15021 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15022 echo "${ECHO_T}$ac_res" >&6; }
15024 # Is the header compilable?
15025 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15026 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 $ac_includes_default
15034 #include <$ac_header>
15036 rm -f conftest.$ac_objext
15037 if { (ac_try="$ac_compile"
15038 case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_compile") 2>conftest.er1
15045 grep -v '^ *+' conftest.er1 >conftest.err
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15049 (exit $ac_status); } && {
15050 test -z "$ac_c_werror_flag" ||
15051 test ! -s conftest.err
15052 } && test -s conftest.$ac_objext; then
15053 ac_header_compiler=yes
15055 echo "$as_me: failed program was
:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_header_compiler=no
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15062 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15063 echo "${ECHO_T}$ac_header_compiler" >&6; }
15065 # Is the header present?
15066 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15067 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15068 cat >conftest.$ac_ext <<_ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 #include <$ac_header>
15076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15077 case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15088 (exit $ac_status); } >/dev/null && {
15089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15092 ac_header_preproc=yes
15094 echo "$as_me: failed program was
:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_header_preproc=no
15100 rm -f conftest.err conftest.$ac_ext
15101 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15102 echo "${ECHO_T}$ac_header_preproc" >&6; }
15104 # So? What about this header?
15105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15108 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15109 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15111 ac_header_preproc=yes
15114 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15115 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15116 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15117 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15118 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15119 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15120 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15121 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15124 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15125 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15129 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15130 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached
) $ECHO_C" >&6
15134 eval "$as_ac_Header=\
$ac_header_preproc"
15136 ac_res=`eval echo '${'$as_ac_Header'}'`
15137 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15138 echo "${ECHO_T}$ac_res" >&6; }
15141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15142 cat >>confdefs.h <<_ACEOF
15143 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15220 for ac_func in gethostname getdomainname dup2 \
15221 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15222 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15223 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15224 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15225 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15226 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15227 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15228 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15230 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15231 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15232 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15233 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15234 echo $ECHO_N "(cached
) $ECHO_C" >&6
15236 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15244 #define $ac_func innocuous_$ac_func
15246 /* System header to define __stub macros and hopefully few prototypes,
15247 which can conflict with char $ac_func (); below.
15248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15249 <limits.h> exists even on freestanding compilers. */
15252 # include <limits.h>
15254 # include <assert.h>
15259 /* Override any GCC internal prototype to avoid an error.
15260 Use char because int might match the return type of a GCC
15261 builtin and then its argument prototype would still apply. */
15266 /* The GNU C library defines this for functions which it implements
15267 to always fail with ENOSYS. Some functions are actually named
15268 something starting with __ and the normal name is an alias. */
15269 #if defined __stub_$ac_func || defined __stub___$ac_func
15276 return $ac_func ();
15281 rm -f conftest.$ac_objext conftest$ac_exeext
15282 if { (ac_try="$ac_link"
15283 case "(($ac_try" in
15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_link") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest$ac_exeext &&
15298 $as_test_x conftest$ac_exeext; then
15299 eval "$as_ac_var=yes"
15301 echo "$as_me: failed program was
:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 eval "$as_ac_var=no
"
15307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15310 ac_res=`eval echo '${'$as_ac_var'}'`
15311 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15312 echo "${ECHO_T}$ac_res" >&6; }
15313 if test `eval echo '${'$as_ac_var'}'` = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15323 for ac_header in sys/un.h
15325 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15326 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15327 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15328 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached
) $ECHO_C" >&6
15332 ac_res=`eval echo '${'$as_ac_Header'}'`
15333 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15334 echo "${ECHO_T}$ac_res" >&6; }
15336 # Is the header compilable?
15337 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15338 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15339 cat >conftest.$ac_ext <<_ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 $ac_includes_default
15346 #include <$ac_header>
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest.$ac_objext; then
15365 ac_header_compiler=yes
15367 echo "$as_me: failed program was
:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_header_compiler=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15375 echo "${ECHO_T}$ac_header_compiler" >&6; }
15377 # Is the header present?
15378 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15379 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <$ac_header>
15388 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15400 (exit $ac_status); } >/dev/null && {
15401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15402 test ! -s conftest.err
15404 ac_header_preproc=yes
15406 echo "$as_me: failed program was
:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_header_preproc=no
15412 rm -f conftest.err conftest.$ac_ext
15413 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15414 echo "${ECHO_T}$ac_header_preproc" >&6; }
15416 # So? What about this header?
15417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15419 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15420 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15421 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15423 ac_header_preproc=yes
15426 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15427 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15428 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15429 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15430 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15431 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15432 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15433 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15434 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15436 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15437 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15441 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15442 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15444 echo $ECHO_N "(cached
) $ECHO_C" >&6
15446 eval "$as_ac_Header=\
$ac_header_preproc"
15448 ac_res=`eval echo '${'$as_ac_Header'}'`
15449 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15450 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15467 for ac_header in $ac_header_list
15469 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15471 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15472 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached
) $ECHO_C" >&6
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15480 # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15482 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 $ac_includes_default
15490 #include <$ac_header>
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest.$ac_objext; then
15509 ac_header_compiler=yes
15511 echo "$as_me: failed program was
:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_header_compiler=no
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15519 echo "${ECHO_T}$ac_header_compiler" >&6; }
15521 # Is the header present?
15522 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15523 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <$ac_header>
15532 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15544 (exit $ac_status); } >/dev/null && {
15545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15548 ac_header_preproc=yes
15550 echo "$as_me: failed program was
:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_preproc=no
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15564 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15567 ac_header_preproc=yes
15570 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15571 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15572 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15573 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15574 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15575 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15576 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15577 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15580 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15581 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15585 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15586 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15588 echo $ECHO_N "(cached
) $ECHO_C" >&6
15590 eval "$as_ac_Header=\
$ac_header_preproc"
15592 ac_res=`eval echo '${'$as_ac_Header'}'`
15593 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15594 echo "${ECHO_T}$ac_res" >&6; }
15597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15614 for ac_func in $ac_func_list
15616 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15617 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15618 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15619 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached
) $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15630 #define $ac_func innocuous_$ac_func
15632 /* System header to define __stub macros and hopefully few prototypes,
15633 which can conflict with char $ac_func (); below.
15634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15635 <limits.h> exists even on freestanding compilers. */
15638 # include <limits.h>
15640 # include <assert.h>
15645 /* Override any GCC internal prototype to avoid an error.
15646 Use char because int might match the return type of a GCC
15647 builtin and then its argument prototype would still apply. */
15652 /* The GNU C library defines this for functions which it implements
15653 to always fail with ENOSYS. Some functions are actually named
15654 something starting with __ and the normal name is an alias. */
15655 #if defined __stub_$ac_func || defined __stub___$ac_func
15662 return $ac_func ();
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_link") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext &&
15684 $as_test_x conftest$ac_exeext; then
15685 eval "$as_ac_var=yes"
15687 echo "$as_me: failed program was
:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 eval "$as_ac_var=no
"
15693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15694 conftest$ac_exeext conftest.$ac_ext
15696 ac_res=`eval echo '${'$as_ac_var'}'`
15697 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15698 echo "${ECHO_T}$ac_res" >&6; }
15699 if test `eval echo '${'$as_ac_var'}'` = yes; then
15700 cat >>confdefs.h <<_ACEOF
15701 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15723 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15724 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15725 if test "${ac_cv_func_working_mktime+set}" = set; then
15726 echo $ECHO_N "(cached
) $ECHO_C" >&6
15728 if test "$cross_compiling" = yes; then
15729 ac_cv_func_working_mktime=no
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 /* Test program from Paul Eggert and Tony Leneis. */
15738 #ifdef TIME_WITH_SYS_TIME
15739 # include <sys/time.h>
15742 # ifdef HAVE_SYS_TIME_H
15743 # include <sys/time.h>
15749 #include <stdlib.h>
15751 #ifdef HAVE_UNISTD_H
15752 # include <unistd.h>
15756 # define alarm(X) /* empty */
15759 /* Work around redefinition to rpl_putenv by other config tests. */
15762 static time_t time_t_max;
15763 static time_t time_t_min;
15765 /* Values we'll use to set the TZ environment variable. */
15766 static char *tz_strings[] = {
15767 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15768 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15770 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15772 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15773 Based on a problem report from Andreas Jaeger. */
15775 spring_forward_gap ()
15777 /* glibc (up to about 1998-10-07) failed this test. */
15780 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15781 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15782 on systems that don't support the Olson extension, or don't have the
15783 full zoneinfo tables installed. */
15784 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15793 return mktime (&tm) != (time_t) -1;
15801 return ! (lt = localtime (&now)) || mktime (lt) == now;
15808 return (mktime_test1 (now)
15809 && mktime_test1 ((time_t) (time_t_max - now))
15810 && mktime_test1 ((time_t) (time_t_min + now)));
15816 /* Based on code from Ariel Faigon. */
15826 return tm.tm_mon == 2 && tm.tm_mday == 31;
15835 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15836 now = mktime (&tm);
15837 if (now != (time_t) -1)
15839 struct tm *lt = localtime (&now);
15841 && lt->tm_year == tm.tm_year
15842 && lt->tm_mon == tm.tm_mon
15843 && lt->tm_mday == tm.tm_mday
15844 && lt->tm_hour == tm.tm_hour
15845 && lt->tm_min == tm.tm_min
15846 && lt->tm_sec == tm.tm_sec
15847 && lt->tm_yday == tm.tm_yday
15848 && lt->tm_wday == tm.tm_wday
15849 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15850 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15859 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15860 ignoring leap seconds. */
15861 unsigned long int answer = 2527315200UL;
15865 tm.tm_year = 2050 - 1900;
15868 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15871 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15872 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15873 on systems that don't support the Olson extension, or don't have the
15874 full zoneinfo tables installed. */
15875 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15879 /* Check that the result is either a failure, or close enough
15880 to the correct answer that we can assume the discrepancy is
15881 due to leap seconds. */
15882 return (t == (time_t) -1
15883 || (0 < t && answer - 120 <= t && t <= answer + 120));
15892 /* This test makes some buggy mktime implementations loop.
15893 Give up after 60 seconds; a mktime slower than that
15894 isn't worth using anyway. */
15897 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15900 if ((time_t) -1 < 0)
15901 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15903 delta = time_t_max / 997; /* a suitable prime number */
15904 for (i = 0; i < N_STRINGS; i++)
15907 putenv (tz_strings[i]);
15909 for (t = 0; t <= time_t_max - delta; t += delta)
15910 if (! mktime_test (t))
15912 if (! (mktime_test ((time_t) 1)
15913 && mktime_test ((time_t) (60 * 60))
15914 && mktime_test ((time_t) (60 * 60 * 24))))
15917 for (j = 1; 0 < j; j *= 2)
15918 if (! bigtime_test (j))
15920 if (! bigtime_test (j - 1))
15923 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15926 rm -f conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_link") 2>&5
15935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15937 { (case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_try") 2>&5
15944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_cv_func_working_mktime=yes
15948 echo "$as_me: program exited with status
$ac_status" >&5
15949 echo "$as_me: failed program was
:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ( exit $ac_status )
15953 ac_cv_func_working_mktime=no
15955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15960 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15961 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15962 if test $ac_cv_func_working_mktime = no; then
15963 case " $LIBOBJS " in
15964 *" mktime.
$ac_objext "* ) ;;
15965 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15971 if test "$ac_cv_func_working_mktime" = no; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define BROKEN_MKTIME 1
15979 ac_have_func=no # yes means we've found a way to get the load average.
15981 # Make sure getloadavg.c is where it belongs, at configure-time.
15982 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15983 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15984 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15985 { (exit 1); exit 1; }; }
15989 # Check for getloadavg, but be sure not to touch the cache variable.
15990 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
15991 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
15992 if test "${ac_cv_func_getloadavg+set}" = set; then
15993 echo $ECHO_N "(cached
) $ECHO_C" >&6
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16003 #define getloadavg innocuous_getloadavg
16005 /* System header to define __stub macros and hopefully few prototypes,
16006 which can conflict with char getloadavg (); below.
16007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16008 <limits.h> exists even on freestanding compilers. */
16011 # include <limits.h>
16013 # include <assert.h>
16018 /* Override any GCC internal prototype to avoid an error.
16019 Use char because int might match the return type of a GCC
16020 builtin and then its argument prototype would still apply. */
16024 char getloadavg ();
16025 /* The GNU C library defines this for functions which it implements
16026 to always fail with ENOSYS. Some functions are actually named
16027 something starting with __ and the normal name is an alias. */
16028 #if defined __stub_getloadavg || defined __stub___getloadavg
16035 return getloadavg ();
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_link") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest$ac_exeext &&
16057 $as_test_x conftest$ac_exeext; then
16058 ac_cv_func_getloadavg=yes
16060 echo "$as_me: failed program was
:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_cv_func_getloadavg=no
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067 conftest$ac_exeext conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16070 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16071 if test $ac_cv_func_getloadavg = yes; then
16076 ) && ac_have_func=yes
16078 # On HPUX9, an unprivileged user can get load averages through this function.
16080 for ac_func in pstat_getdynamic
16082 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16083 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16084 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16085 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached
) $ECHO_C" >&6
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16096 #define $ac_func innocuous_$ac_func
16098 /* System header to define __stub macros and hopefully few prototypes,
16099 which can conflict with char $ac_func (); below.
16100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16101 <limits.h> exists even on freestanding compilers. */
16104 # include <limits.h>
16106 # include <assert.h>
16111 /* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
16118 /* The GNU C library defines this for functions which it implements
16119 to always fail with ENOSYS. Some functions are actually named
16120 something starting with __ and the normal name is an alias. */
16121 #if defined __stub_$ac_func || defined __stub___$ac_func
16128 return $ac_func ();
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_link") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest$ac_exeext &&
16150 $as_test_x conftest$ac_exeext; then
16151 eval "$as_ac_var=yes"
16153 echo "$as_me: failed program was
:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 eval "$as_ac_var=no
"
16159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16160 conftest$ac_exeext conftest.$ac_ext
16162 ac_res=`eval echo '${'$as_ac_var'}'`
16163 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16164 echo "${ECHO_T}$ac_res" >&6; }
16165 if test `eval echo '${'$as_ac_var'}'` = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16174 # Solaris has libkstat which does not require root.
16176 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16177 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16178 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16179 echo $ECHO_N "(cached
) $ECHO_C" >&6
16181 ac_check_lib_save_LIBS=$LIBS
16182 LIBS="-lkstat $LIBS"
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16190 /* Override any GCC internal prototype to avoid an error.
16191 Use char because int might match the return type of a GCC
16192 builtin and then its argument prototype would still apply. */
16196 char kstat_open ();
16200 return kstat_open ();
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_link") 2>conftest.er1
16214 grep -v '^ *+' conftest.er1 >conftest.err
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest$ac_exeext &&
16222 $as_test_x conftest$ac_exeext; then
16223 ac_cv_lib_kstat_kstat_open=yes
16225 echo "$as_me: failed program was
:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 ac_cv_lib_kstat_kstat_open=no
16231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16232 conftest$ac_exeext conftest.$ac_ext
16233 LIBS=$ac_check_lib_save_LIBS
16235 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16236 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16237 if test $ac_cv_lib_kstat_kstat_open = yes; then
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_LIBKSTAT 1
16242 LIBS="-lkstat $LIBS"
16246 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16248 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16249 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16250 # to get the right answer into the cache.
16251 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16252 if test $ac_have_func = no; then
16253 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16254 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16255 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16256 echo $ECHO_N "(cached
) $ECHO_C" >&6
16258 ac_check_lib_save_LIBS=$LIBS
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16267 /* Override any GCC internal prototype to avoid an error.
16268 Use char because int might match the return type of a GCC
16269 builtin and then its argument prototype would still apply. */
16277 return elf_begin ();
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext &&
16299 $as_test_x conftest$ac_exeext; then
16300 ac_cv_lib_elf_elf_begin=yes
16302 echo "$as_me: failed program was
:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ac_cv_lib_elf_elf_begin=no
16308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309 conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16312 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16313 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16314 if test $ac_cv_lib_elf_elf_begin = yes; then
16319 if test $ac_have_func = no; then
16320 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16321 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16322 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16323 echo $ECHO_N "(cached
) $ECHO_C" >&6
16325 ac_check_lib_save_LIBS=$LIBS
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16334 /* Override any GCC internal prototype to avoid an error.
16335 Use char because int might match the return type of a GCC
16336 builtin and then its argument prototype would still apply. */
16344 return kvm_open ();
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (ac_try="$ac_link"
16351 case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_link") 2>conftest.er1
16358 grep -v '^ *+' conftest.er1 >conftest.err
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16362 (exit $ac_status); } && {
16363 test -z "$ac_c_werror_flag" ||
16364 test ! -s conftest.err
16365 } && test -s conftest$ac_exeext &&
16366 $as_test_x conftest$ac_exeext; then
16367 ac_cv_lib_kvm_kvm_open=yes
16369 echo "$as_me: failed program was
:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_cv_lib_kvm_kvm_open=no
16375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16379 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16380 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16381 if test $ac_cv_lib_kvm_kvm_open = yes; then
16385 # Check for the 4.4BSD definition of getloadavg.
16386 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16387 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16388 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16389 echo $ECHO_N "(cached
) $ECHO_C" >&6
16391 ac_check_lib_save_LIBS=$LIBS
16392 LIBS="-lutil $LIBS"
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply. */
16406 char getloadavg ();
16410 return getloadavg ();
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_link") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest$ac_exeext &&
16432 $as_test_x conftest$ac_exeext; then
16433 ac_cv_lib_util_getloadavg=yes
16435 echo "$as_me: failed program was
:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ac_cv_lib_util_getloadavg=no
16441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16442 conftest$ac_exeext conftest.$ac_ext
16443 LIBS=$ac_check_lib_save_LIBS
16445 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16446 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16447 if test $ac_cv_lib_util_getloadavg = yes; then
16448 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16453 if test $ac_have_func = no; then
16454 # There is a commonly available library for RS/6000 AIX.
16455 # Since it is not a standard part of AIX, it might be installed locally.
16456 ac_getloadavg_LIBS=$LIBS
16457 LIBS="-L/usr
/local
/lib
$LIBS"
16458 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16459 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16460 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16461 echo $ECHO_N "(cached
) $ECHO_C" >&6
16463 ac_check_lib_save_LIBS=$LIBS
16464 LIBS="-lgetloadavg $LIBS"
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16472 /* Override any GCC internal prototype to avoid an error.
16473 Use char because int might match the return type of a GCC
16474 builtin and then its argument prototype would still apply. */
16478 char getloadavg ();
16482 return getloadavg ();
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (ac_try="$ac_link"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_link") 2>conftest.er1
16496 grep -v '^ *+' conftest.er1 >conftest.err
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16500 (exit $ac_status); } && {
16501 test -z "$ac_c_werror_flag" ||
16502 test ! -s conftest.err
16503 } && test -s conftest$ac_exeext &&
16504 $as_test_x conftest$ac_exeext; then
16505 ac_cv_lib_getloadavg_getloadavg=yes
16507 echo "$as_me: failed program was
:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_lib_getloadavg_getloadavg=no
16513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16514 conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16517 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16518 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16519 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16520 LIBS="-lgetloadavg $LIBS"
16522 LIBS=$ac_getloadavg_LIBS
16527 # Make sure it is really in the library, if we think we found it,
16528 # otherwise set up the replacement function.
16530 for ac_func in getloadavg
16532 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16533 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16534 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16535 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16536 echo $ECHO_N "(cached
) $ECHO_C" >&6
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16546 #define $ac_func innocuous_$ac_func
16548 /* System header to define __stub macros and hopefully few prototypes,
16549 which can conflict with char $ac_func (); below.
16550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16551 <limits.h> exists even on freestanding compilers. */
16554 # include <limits.h>
16556 # include <assert.h>
16561 /* Override any GCC internal prototype to avoid an error.
16562 Use char because int might match the return type of a GCC
16563 builtin and then its argument prototype would still apply. */
16568 /* The GNU C library defines this for functions which it implements
16569 to always fail with ENOSYS. Some functions are actually named
16570 something starting with __ and the normal name is an alias. */
16571 #if defined __stub_$ac_func || defined __stub___$ac_func
16578 return $ac_func ();
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_link") 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16596 (exit $ac_status); } && {
16597 test -z "$ac_c_werror_flag" ||
16598 test ! -s conftest.err
16599 } && test -s conftest$ac_exeext &&
16600 $as_test_x conftest$ac_exeext; then
16601 eval "$as_ac_var=yes"
16603 echo "$as_me: failed program was
:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 eval "$as_ac_var=no
"
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16612 ac_res=`eval echo '${'$as_ac_var'}'`
16613 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16614 echo "${ECHO_T}$ac_res" >&6; }
16615 if test `eval echo '${'$as_ac_var'}'` = yes; then
16616 cat >>confdefs.h <<_ACEOF
16617 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16621 case " $LIBOBJS " in
16622 *" getloadavg.
$ac_objext "* ) ;;
16623 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16628 cat >>confdefs.h <<\_ACEOF
16629 #define C_GETLOADAVG 1
16632 # Figure out what our getloadavg.c needs.
16634 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16635 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16636 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16637 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16638 echo $ECHO_N "(cached
) $ECHO_C" >&6
16640 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16641 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16643 # Is the header compilable?
16644 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16645 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 $ac_includes_default
16653 #include <sys/dg_sys_info.h>
16655 rm -f conftest.$ac_objext
16656 if { (ac_try="$ac_compile"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_compile") 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest.$ac_objext; then
16672 ac_header_compiler=yes
16674 echo "$as_me: failed program was
:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_header_compiler=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16682 echo "${ECHO_T}$ac_header_compiler" >&6; }
16684 # Is the header present?
16685 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16686 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <sys/dg_sys_info.h>
16695 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16703 grep -v '^ *+' conftest.er1 >conftest.err
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16707 (exit $ac_status); } >/dev/null && {
16708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16711 ac_header_preproc=yes
16713 echo "$as_me: failed program was
:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_header_preproc=no
16719 rm -f conftest.err conftest.$ac_ext
16720 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6; }
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16726 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16727 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16729 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16730 ac_header_preproc=yes
16733 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16734 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16735 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16736 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16737 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16738 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16739 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16740 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16742 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16743 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16744 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16748 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16749 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16750 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16751 echo $ECHO_N "(cached
) $ECHO_C" >&6
16753 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16755 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16756 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16759 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16762 cat >>confdefs.h <<\_ACEOF
16767 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16768 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16769 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16770 echo $ECHO_N "(cached
) $ECHO_C" >&6
16772 ac_check_lib_save_LIBS=$LIBS
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16787 char dg_sys_info ();
16791 return dg_sys_info ();
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext &&
16813 $as_test_x conftest$ac_exeext; then
16814 ac_cv_lib_dgc_dg_sys_info=yes
16816 echo "$as_me: failed program was
:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_lib_dgc_dg_sys_info=no
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16827 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16828 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define HAVE_LIBDGC 1
16841 if test "${ac_cv_header_locale_h+set}" = set; then
16842 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16843 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16844 if test "${ac_cv_header_locale_h+set}" = set; then
16845 echo $ECHO_N "(cached
) $ECHO_C" >&6
16847 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16848 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16850 # Is the header compilable?
16851 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16852 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 $ac_includes_default
16860 #include <locale.h>
16862 rm -f conftest.$ac_objext
16863 if { (ac_try="$ac_compile"
16864 case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_compile") 2>conftest.er1
16871 grep -v '^ *+' conftest.er1 >conftest.err
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_c_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest.$ac_objext; then
16879 ac_header_compiler=yes
16881 echo "$as_me: failed program was
:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_header_compiler=no
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16888 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16889 echo "${ECHO_T}$ac_header_compiler" >&6; }
16891 # Is the header present?
16892 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16893 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <locale.h>
16902 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16908 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16910 grep -v '^ *+' conftest.er1 >conftest.err
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16914 (exit $ac_status); } >/dev/null && {
16915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16918 ac_header_preproc=yes
16920 echo "$as_me: failed program was
:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_header_preproc=no
16926 rm -f conftest.err conftest.$ac_ext
16927 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16928 echo "${ECHO_T}$ac_header_preproc" >&6; }
16930 # So? What about this header?
16931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16933 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16934 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16935 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16936 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16937 ac_header_preproc=yes
16940 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16941 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16942 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16943 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16944 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16945 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16946 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16947 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16948 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16949 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16950 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16951 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16955 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16956 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16957 if test "${ac_cv_header_locale_h+set}" = set; then
16958 echo $ECHO_N "(cached
) $ECHO_C" >&6
16960 ac_cv_header_locale_h=$ac_header_preproc
16962 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16963 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16969 for ac_func in setlocale
16971 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16972 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16973 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16974 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16975 echo $ECHO_N "(cached
) $ECHO_C" >&6
16977 cat >conftest.$ac_ext <<_ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16985 #define $ac_func innocuous_$ac_func
16987 /* System header to define __stub macros and hopefully few prototypes,
16988 which can conflict with char $ac_func (); below.
16989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16990 <limits.h> exists even on freestanding compilers. */
16993 # include <limits.h>
16995 # include <assert.h>
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17007 /* The GNU C library defines this for functions which it implements
17008 to always fail with ENOSYS. Some functions are actually named
17009 something starting with __ and the normal name is an alias. */
17010 #if defined __stub_$ac_func || defined __stub___$ac_func
17017 return $ac_func ();
17022 rm -f conftest.$ac_objext conftest$ac_exeext
17023 if { (ac_try="$ac_link"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_link") 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17035 (exit $ac_status); } && {
17036 test -z "$ac_c_werror_flag" ||
17037 test ! -s conftest.err
17038 } && test -s conftest$ac_exeext &&
17039 $as_test_x conftest$ac_exeext; then
17040 eval "$as_ac_var=yes"
17042 echo "$as_me: failed program was
:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 eval "$as_ac_var=no
"
17048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17049 conftest$ac_exeext conftest.$ac_ext
17051 ac_res=`eval echo '${'$as_ac_var'}'`
17052 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17053 echo "${ECHO_T}$ac_res" >&6; }
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17063 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17064 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17065 # Irix 4.0.5F has the header but not the library.
17066 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17069 cat >>confdefs.h <<\_ACEOF
17075 if test $ac_have_func = no; then
17076 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17077 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17078 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17079 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17080 echo $ECHO_N "(cached
) $ECHO_C" >&6
17082 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17083 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17085 # Is the header compilable?
17086 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17087 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 $ac_includes_default
17095 #include <inq_stats/cpustats.h>
17097 rm -f conftest.$ac_objext
17098 if { (ac_try="$ac_compile"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_compile") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest.$ac_objext; then
17114 ac_header_compiler=yes
17116 echo "$as_me: failed program was
:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_header_compiler=no
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17124 echo "${ECHO_T}$ac_header_compiler" >&6; }
17126 # Is the header present?
17127 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17128 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17129 cat >conftest.$ac_ext <<_ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 #include <inq_stats/cpustats.h>
17137 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17145 grep -v '^ *+' conftest.er1 >conftest.err
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17149 (exit $ac_status); } >/dev/null && {
17150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17151 test ! -s conftest.err
17153 ac_header_preproc=yes
17155 echo "$as_me: failed program was
:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_header_preproc=no
17161 rm -f conftest.err conftest.$ac_ext
17162 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17163 echo "${ECHO_T}$ac_header_preproc" >&6; }
17165 # So? What about this header?
17166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17168 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17169 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17170 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17171 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17172 ac_header_preproc=yes
17175 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17176 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17177 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17178 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17179 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17180 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17181 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17182 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17183 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17184 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17185 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17186 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17190 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17191 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17192 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17193 echo $ECHO_N "(cached
) $ECHO_C" >&6
17195 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17197 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17198 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17201 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17204 cat >>confdefs.h <<\_ACEOF
17209 cat >>confdefs.h <<\_ACEOF
17218 if test $ac_have_func = no; then
17219 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17220 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17221 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17222 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17223 echo $ECHO_N "(cached
) $ECHO_C" >&6
17225 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17226 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17228 # Is the header compilable?
17229 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17230 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17231 cat >conftest.$ac_ext <<_ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17238 #include <sys/cpustats.h>
17240 rm -f conftest.$ac_objext
17241 if { (ac_try="$ac_compile"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_compile") 2>conftest.er1
17249 grep -v '^ *+' conftest.er1 >conftest.err
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17253 (exit $ac_status); } && {
17254 test -z "$ac_c_werror_flag" ||
17255 test ! -s conftest.err
17256 } && test -s conftest.$ac_objext; then
17257 ac_header_compiler=yes
17259 echo "$as_me: failed program was
:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17262 ac_header_compiler=no
17265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17267 echo "${ECHO_T}$ac_header_compiler" >&6; }
17269 # Is the header present?
17270 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17271 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 #include <sys/cpustats.h>
17280 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17292 (exit $ac_status); } >/dev/null && {
17293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17296 ac_header_preproc=yes
17298 echo "$as_me: failed program was
:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_header_preproc=no
17304 rm -f conftest.err conftest.$ac_ext
17305 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6; }
17308 # So? What about this header?
17309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17311 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17312 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17314 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17315 ac_header_preproc=yes
17318 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17319 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17320 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17321 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17322 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17323 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17324 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17325 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17327 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17328 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17329 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17333 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17334 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17335 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17336 echo $ECHO_N "(cached
) $ECHO_C" >&6
17338 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17340 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17341 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17344 if test $ac_cv_header_sys_cpustats_h = yes; then
17345 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17354 if test $ac_have_func = no; then
17356 for ac_header in mach/mach.h
17358 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17359 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17360 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17361 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17362 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17363 echo $ECHO_N "(cached
) $ECHO_C" >&6
17365 ac_res=`eval echo '${'$as_ac_Header'}'`
17366 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17369 # Is the header compilable?
17370 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17371 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17372 cat >conftest.$ac_ext <<_ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17379 #include <$ac_header>
17381 rm -f conftest.$ac_objext
17382 if { (ac_try="$ac_compile"
17383 case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_compile") 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17394 (exit $ac_status); } && {
17395 test -z "$ac_c_werror_flag" ||
17396 test ! -s conftest.err
17397 } && test -s conftest.$ac_objext; then
17398 ac_header_compiler=yes
17400 echo "$as_me: failed program was
:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ac_header_compiler=no
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17408 echo "${ECHO_T}$ac_header_compiler" >&6; }
17410 # Is the header present?
17411 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17412 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 #include <$ac_header>
17421 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17433 (exit $ac_status); } >/dev/null && {
17434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17437 ac_header_preproc=yes
17439 echo "$as_me: failed program was
:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_header_preproc=no
17445 rm -f conftest.err conftest.$ac_ext
17446 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17447 echo "${ECHO_T}$ac_header_preproc" >&6; }
17449 # So? What about this header?
17450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17452 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17453 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17454 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17456 ac_header_preproc=yes
17459 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17460 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17461 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17462 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17463 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17464 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17465 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17466 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17467 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17469 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17470 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17474 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17475 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17477 echo $ECHO_N "(cached
) $ECHO_C" >&6
17479 eval "$as_ac_Header=\
$ac_header_preproc"
17481 ac_res=`eval echo '${'$as_ac_Header'}'`
17482 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17483 echo "${ECHO_T}$ac_res" >&6; }
17486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17498 for ac_header in nlist.h
17500 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17502 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17503 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17505 echo $ECHO_N "(cached
) $ECHO_C" >&6
17507 ac_res=`eval echo '${'$as_ac_Header'}'`
17508 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17509 echo "${ECHO_T}$ac_res" >&6; }
17511 # Is the header compilable?
17512 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17513 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17514 cat >conftest.$ac_ext <<_ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 $ac_includes_default
17521 #include <$ac_header>
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_compile") 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest.$ac_objext; then
17540 ac_header_compiler=yes
17542 echo "$as_me: failed program was
:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_header_compiler=no
17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17550 echo "${ECHO_T}$ac_header_compiler" >&6; }
17552 # Is the header present?
17553 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17554 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 #include <$ac_header>
17563 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17575 (exit $ac_status); } >/dev/null && {
17576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17579 ac_header_preproc=yes
17581 echo "$as_me: failed program was
:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 ac_header_preproc=no
17587 rm -f conftest.err conftest.$ac_ext
17588 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17589 echo "${ECHO_T}$ac_header_preproc" >&6; }
17591 # So? What about this header?
17592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17594 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17595 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17596 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17598 ac_header_preproc=yes
17601 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17602 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17603 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17604 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17605 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17606 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17607 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17608 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17609 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17611 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17612 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17616 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17617 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17618 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17619 echo $ECHO_N "(cached
) $ECHO_C" >&6
17621 eval "$as_ac_Header=\
$ac_header_preproc"
17623 ac_res=`eval echo '${'$as_ac_Header'}'`
17624 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17629 cat >>confdefs.h <<_ACEOF
17630 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17632 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17633 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17634 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17635 echo $ECHO_N "(cached
) $ECHO_C" >&6
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17648 static struct nlist ac_aggr;
17649 if (ac_aggr.n_un.n_name)
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_compile") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest.$ac_objext; then
17672 ac_cv_member_struct_nlist_n_un_n_name=yes
17674 echo "$as_me: failed program was
:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17688 static struct nlist ac_aggr;
17689 if (sizeof ac_aggr.n_un.n_name)
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17704 grep -v '^ *+' conftest.er1 >conftest.err
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17708 (exit $ac_status); } && {
17709 test -z "$ac_c_werror_flag" ||
17710 test ! -s conftest.err
17711 } && test -s conftest.$ac_objext; then
17712 ac_cv_member_struct_nlist_n_un_n_name=yes
17714 echo "$as_me: failed program was
:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_member_struct_nlist_n_un_n_name=no
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17726 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17727 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17729 cat >>confdefs.h <<_ACEOF
17730 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17734 cat >>confdefs.h <<\_ACEOF
17735 #define NLIST_NAME_UNION 1
17749 # Some definitions of getloadavg require that the program be installed setgid.
17750 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17751 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17752 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17753 echo $ECHO_N "(cached
) $ECHO_C" >&6
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17762 #ifdef LDAV_PRIVILEGED
17763 Yowza Am I SETGID yet
17766 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17767 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17768 ac_cv_func_getloadavg_setgid=yes
17770 ac_cv_func_getloadavg_setgid=no
17775 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17776 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17777 if test $ac_cv_func_getloadavg_setgid = yes; then
17780 cat >>confdefs.h <<\_ACEOF
17781 #define GETLOADAVG_PRIVILEGED 1
17788 if test $ac_cv_func_getloadavg_setgid = yes; then
17789 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17790 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17791 if test "${ac_cv_group_kmem+set}" = set; then
17792 echo $ECHO_N "(cached
) $ECHO_C" >&6
17794 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17795 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17796 # If we got an error (system does not support symlinks), try without -L.
17797 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17798 ac_cv_group_kmem=`echo $ac_ls_output \
17799 | sed -ne 's/[ ][ ]*/ /g;
17800 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17804 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17805 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17806 KMEM_GROUP=$ac_cv_group_kmem
17808 if test "x
$ac_save_LIBS" = x; then
17809 GETLOADAVG_LIBS=$LIBS
17811 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17817 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17818 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17819 if test "${ac_cv_sys_largefile_source+set}" = set; then
17820 echo $ECHO_N "(cached
) $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17833 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_link") 2>conftest.er1
17847 grep -v '^ *+' conftest.er1 >conftest.err
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17851 (exit $ac_status); } && {
17852 test -z "$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17854 } && test -s conftest$ac_exeext &&
17855 $as_test_x conftest$ac_exeext; then
17856 ac_cv_sys_largefile_source=no; break
17858 echo "$as_me: failed program was
:" >&5
17859 sed 's/^/| /' conftest.$ac_ext >&5
17864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17865 conftest$ac_exeext conftest.$ac_ext
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 #define _LARGEFILE_SOURCE 1
17877 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 ac_cv_sys_largefile_source=1; break
17902 echo "$as_me: failed program was
:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17910 ac_cv_sys_largefile_source=unknown
17914 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17915 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17916 case $ac_cv_sys_largefile_source in #(
17919 cat >>confdefs.h <<_ACEOF
17920 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17926 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17927 # in glibc 2.1.3, but that breaks too many other things.
17928 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17929 if test $ac_cv_sys_largefile_source != unknown; then
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE_FSEEKO 1
17938 # Configure getopt.
17939 # getopt.m4 serial 10
17941 # The getopt module assume you want GNU getopt, with getopt_long etc,
17942 # rather than vanilla POSIX getopt. This means your your code should
17943 # always include <getopt.h> for the getopt prototypes.
17955 # Prerequisites of lib/getopt*.
17962 for ac_header in getopt.h
17964 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17965 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17966 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17967 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17968 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached
) $ECHO_C" >&6
17971 ac_res=`eval echo '${'$as_ac_Header'}'`
17972 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17973 echo "${ECHO_T}$ac_res" >&6; }
17975 # Is the header compilable?
17976 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17977 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 $ac_includes_default
17985 #include <$ac_header>
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_header_compiler=yes
18006 echo "$as_me: failed program was
:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_header_compiler=no
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18014 echo "${ECHO_T}$ac_header_compiler" >&6; }
18016 # Is the header present?
18017 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18018 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18019 cat >conftest.$ac_ext <<_ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 #include <$ac_header>
18027 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18039 (exit $ac_status); } >/dev/null && {
18040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18043 ac_header_preproc=yes
18045 echo "$as_me: failed program was
:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ac_header_preproc=no
18051 rm -f conftest.err conftest.$ac_ext
18052 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18053 echo "${ECHO_T}$ac_header_preproc" >&6; }
18055 # So? What about this header?
18056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18058 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18059 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18060 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18062 ac_header_preproc=yes
18065 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18066 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18067 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18068 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18069 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18070 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18071 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18072 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18073 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18075 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18076 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18080 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18081 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18083 echo $ECHO_N "(cached
) $ECHO_C" >&6
18085 eval "$as_ac_Header=\
$ac_header_preproc"
18087 ac_res=`eval echo '${'$as_ac_Header'}'`
18088 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18103 if test -z "$GETOPT_H"; then
18105 for ac_func in getopt_long_only
18107 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18108 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18109 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18110 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18111 echo $ECHO_N "(cached
) $ECHO_C" >&6
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18121 #define $ac_func innocuous_$ac_func
18123 /* System header to define __stub macros and hopefully few prototypes,
18124 which can conflict with char $ac_func (); below.
18125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18126 <limits.h> exists even on freestanding compilers. */
18129 # include <limits.h>
18131 # include <assert.h>
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18143 /* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146 #if defined __stub_$ac_func || defined __stub___$ac_func
18153 return $ac_func ();
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18171 (exit $ac_status); } && {
18172 test -z "$ac_c_werror_flag" ||
18173 test ! -s conftest.err
18174 } && test -s conftest$ac_exeext &&
18175 $as_test_x conftest$ac_exeext; then
18176 eval "$as_ac_var=yes"
18178 echo "$as_me: failed program was
:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 eval "$as_ac_var=no
"
18184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18185 conftest$ac_exeext conftest.$ac_ext
18187 ac_res=`eval echo '${'$as_ac_var'}'`
18188 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18189 echo "${ECHO_T}$ac_res" >&6; }
18190 if test `eval echo '${'$as_ac_var'}'` = yes; then
18191 cat >>confdefs.h <<_ACEOF
18192 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18202 if test -z "$GETOPT_H"; then
18203 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18204 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18205 if test "${ac_cv_have_decl_optreset+set}" = set; then
18206 echo $ECHO_N "(cached
) $ECHO_C" >&6
18208 cat >conftest.$ac_ext <<_ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 #include <getopt.h>
18227 rm -f conftest.$ac_objext
18228 if { (ac_try="$ac_compile"
18229 case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_compile") 2>conftest.er1
18236 grep -v '^ *+' conftest.er1 >conftest.err
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18240 (exit $ac_status); } && {
18241 test -z "$ac_c_werror_flag" ||
18242 test ! -s conftest.err
18243 } && test -s conftest.$ac_objext; then
18244 ac_cv_have_decl_optreset=yes
18246 echo "$as_me: failed program was
:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_cv_have_decl_optreset=no
18252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18255 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18256 if test $ac_cv_have_decl_optreset = yes; then
18262 if test -z "$GETOPT_H"; then
18263 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18264 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18265 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18266 echo $ECHO_N "(cached
) $ECHO_C" >&6
18268 if test "$cross_compiling" = yes; then
18269 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18270 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18271 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18272 echo $ECHO_N "(cached
) $ECHO_C" >&6
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 #include <getopt.h>
18285 #ifndef getopt_clip
18286 (void) getopt_clip;
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_compile") 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest.$ac_objext; then
18310 ac_cv_have_decl_getopt_clip=yes
18312 echo "$as_me: failed program was
:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_cv_have_decl_getopt_clip=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18321 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18322 if test $ac_cv_have_decl_getopt_clip = yes; then
18323 gl_cv_func_gnu_getopt=no
18325 gl_cv_func_gnu_getopt=yes
18329 cat >conftest.$ac_ext <<_ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18335 #include <getopt.h>
18341 myargv[0] = "conftest
";
18344 return getopt (2, myargv, "+a
") != '?';
18350 rm -f conftest$ac_exeext
18351 if { (ac_try="$ac_link"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_link") 2>&5
18359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361 { (case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_try") 2>&5
18368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 gl_cv_func_gnu_getopt=yes
18372 echo "$as_me: program exited with status
$ac_status" >&5
18373 echo "$as_me: failed program was
:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ( exit $ac_status )
18377 gl_cv_func_gnu_getopt=no
18379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18384 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18385 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18386 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18393 if test -n "$GETOPT_H"; then
18398 cat >>confdefs.h <<\_ACEOF
18399 #define __GETOPT_PREFIX rpl_
18405 GETOPTOBJS='getopt.o getopt1.o'
18412 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18413 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18414 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18415 echo $ECHO_N "(cached
) $ECHO_C" >&6
18417 # Use it with a single arg.
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 $ac_includes_default
18433 rm -f conftest.$ac_objext
18434 if { (ac_try="$ac_compile"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_compile") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest.$ac_objext; then
18450 ac_cv_func_getpgrp_void=no
18452 echo "$as_me: failed program was
:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ac_cv_func_getpgrp_void=yes
18458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18462 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18463 if test $ac_cv_func_getpgrp_void = yes; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define GETPGRP_VOID 1
18473 for ac_func in strftime
18475 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18476 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18477 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18478 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18479 echo $ECHO_N "(cached
) $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18489 #define $ac_func innocuous_$ac_func
18491 /* System header to define __stub macros and hopefully few prototypes,
18492 which can conflict with char $ac_func (); below.
18493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18494 <limits.h> exists even on freestanding compilers. */
18497 # include <limits.h>
18499 # include <assert.h>
18504 /* Override any GCC internal prototype to avoid an error.
18505 Use char because int might match the return type of a GCC
18506 builtin and then its argument prototype would still apply. */
18511 /* The GNU C library defines this for functions which it implements
18512 to always fail with ENOSYS. Some functions are actually named
18513 something starting with __ and the normal name is an alias. */
18514 #if defined __stub_$ac_func || defined __stub___$ac_func
18521 return $ac_func ();
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 eval "$as_ac_var=yes"
18546 echo "$as_me: failed program was
:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no
"
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18564 # strftime is in -lintl on SCO UNIX.
18565 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18566 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18567 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18568 echo $ECHO_N "(cached
) $ECHO_C" >&6
18570 ac_check_lib_save_LIBS=$LIBS
18571 LIBS="-lintl $LIBS"
18572 cat >conftest.$ac_ext <<_ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18579 /* Override any GCC internal prototype to avoid an error.
18580 Use char because int might match the return type of a GCC
18581 builtin and then its argument prototype would still apply. */
18589 return strftime ();
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest$ac_exeext &&
18611 $as_test_x conftest$ac_exeext; then
18612 ac_cv_lib_intl_strftime=yes
18614 echo "$as_me: failed program was
:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_lib_intl_strftime=no
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_lib_save_LIBS
18624 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18625 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18626 if test $ac_cv_lib_intl_strftime = yes; then
18627 cat >>confdefs.h <<\_ACEOF
18628 #define HAVE_STRFTIME 1
18631 LIBS="-lintl $LIBS"
18640 for ac_func in grantpt
18642 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18643 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18644 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18645 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18646 echo $ECHO_N "(cached
) $ECHO_C" >&6
18648 cat >conftest.$ac_ext <<_ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18656 #define $ac_func innocuous_$ac_func
18658 /* System header to define __stub macros and hopefully few prototypes,
18659 which can conflict with char $ac_func (); below.
18660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18661 <limits.h> exists even on freestanding compilers. */
18664 # include <limits.h>
18666 # include <assert.h>
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18678 /* The GNU C library defines this for functions which it implements
18679 to always fail with ENOSYS. Some functions are actually named
18680 something starting with __ and the normal name is an alias. */
18681 #if defined __stub_$ac_func || defined __stub___$ac_func
18688 return $ac_func ();
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
18711 eval "$as_ac_var=yes"
18713 echo "$as_me: failed program was
:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 eval "$as_ac_var=no
"
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18722 ac_res=`eval echo '${'$as_ac_var'}'`
18723 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18724 echo "${ECHO_T}$ac_res" >&6; }
18725 if test `eval echo '${'$as_ac_var'}'` = yes; then
18726 cat >>confdefs.h <<_ACEOF
18727 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18734 # PTY-related GNU extensions.
18736 for ac_func in getpt
18738 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18739 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18740 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18741 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18742 echo $ECHO_N "(cached
) $ECHO_C" >&6
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18752 #define $ac_func innocuous_$ac_func
18754 /* System header to define __stub macros and hopefully few prototypes,
18755 which can conflict with char $ac_func (); below.
18756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18757 <limits.h> exists even on freestanding compilers. */
18760 # include <limits.h>
18762 # include <assert.h>
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18774 /* The GNU C library defines this for functions which it implements
18775 to always fail with ENOSYS. Some functions are actually named
18776 something starting with __ and the normal name is an alias. */
18777 #if defined __stub_$ac_func || defined __stub___$ac_func
18784 return $ac_func ();
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_link") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1 >conftest.err
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest$ac_exeext &&
18806 $as_test_x conftest$ac_exeext; then
18807 eval "$as_ac_var=yes"
18809 echo "$as_me: failed program was
:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 eval "$as_ac_var=no
"
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18818 ac_res=`eval echo '${'$as_ac_var'}'`
18819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18820 echo "${ECHO_T}$ac_res" >&6; }
18821 if test `eval echo '${'$as_ac_var'}'` = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18830 # Check this now, so that we will NOT find the above functions in ncurses.
18831 # That is because we have not set up to link ncurses in lib-src.
18832 # It's better to believe a function is not available
18833 # than to expect to find it in ncurses.
18835 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18836 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18837 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18838 echo $ECHO_N "(cached
) $ECHO_C" >&6
18840 ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lncurses $LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18864 rm -f conftest.$ac_objext conftest$ac_exeext
18865 if { (ac_try="$ac_link"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest$ac_exeext &&
18881 $as_test_x conftest$ac_exeext; then
18882 ac_cv_lib_ncurses_tparm=yes
18884 echo "$as_me: failed program was
:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_lib_ncurses_tparm=no
18890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891 conftest$ac_exeext conftest.$ac_ext
18892 LIBS=$ac_check_lib_save_LIBS
18894 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18895 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18896 if test $ac_cv_lib_ncurses_tparm = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_LIBNCURSES 1
18901 LIBS="-lncurses $LIBS"
18906 # Do we need the Hesiod library to provide the support routines?
18907 if test "$with_hesiod" = yes ; then
18908 # Don't set $LIBS here -- see comments above.
18910 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18911 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18912 if test "${ac_cv_func_res_send+set}" = set; then
18913 echo $ECHO_N "(cached
) $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18923 #define res_send innocuous_res_send
18925 /* System header to define __stub macros and hopefully few prototypes,
18926 which can conflict with char res_send (); below.
18927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18928 <limits.h> exists even on freestanding compilers. */
18931 # include <limits.h>
18933 # include <assert.h>
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18945 /* The GNU C library defines this for functions which it implements
18946 to always fail with ENOSYS. Some functions are actually named
18947 something starting with __ and the normal name is an alias. */
18948 #if defined __stub_res_send || defined __stub___res_send
18955 return res_send ();
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_func_res_send=yes
18980 echo "$as_me: failed program was
:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_func_res_send=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18989 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
18990 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18991 if test $ac_cv_func_res_send = yes; then
18994 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
18995 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
18996 if test "${ac_cv_func___res_send+set}" = set; then
18997 echo $ECHO_N "(cached
) $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19007 #define __res_send innocuous___res_send
19009 /* System header to define __stub macros and hopefully few prototypes,
19010 which can conflict with char __res_send (); below.
19011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012 <limits.h> exists even on freestanding compilers. */
19015 # include <limits.h>
19017 # include <assert.h>
19022 /* Override any GCC internal prototype to avoid an error.
19023 Use char because int might match the return type of a GCC
19024 builtin and then its argument prototype would still apply. */
19028 char __res_send ();
19029 /* The GNU C library defines this for functions which it implements
19030 to always fail with ENOSYS. Some functions are actually named
19031 something starting with __ and the normal name is an alias. */
19032 #if defined __stub___res_send || defined __stub_____res_send
19039 return __res_send ();
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext &&
19061 $as_test_x conftest$ac_exeext; then
19062 ac_cv_func___res_send=yes
19064 echo "$as_me: failed program was
:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_cv_func___res_send=no
19070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19071 conftest$ac_exeext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19074 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19075 if test $ac_cv_func___res_send = yes; then
19078 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19079 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19080 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19081 echo $ECHO_N "(cached
) $ECHO_C" >&6
19083 ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-lresolv $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19092 /* Override any GCC internal prototype to avoid an error.
19093 Use char because int might match the return type of a GCC
19094 builtin and then its argument prototype would still apply. */
19102 return res_send ();
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (ac_try="$ac_link"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_link") 2>conftest.er1
19116 grep -v '^ *+' conftest.er1 >conftest.err
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest$ac_exeext &&
19124 $as_test_x conftest$ac_exeext; then
19125 ac_cv_lib_resolv_res_send=yes
19127 echo "$as_me: failed program was
:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 ac_cv_lib_resolv_res_send=no
19133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19134 conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19137 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19138 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19139 if test $ac_cv_lib_resolv_res_send = yes; then
19142 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19143 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19144 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19145 echo $ECHO_N "(cached
) $ECHO_C" >&6
19147 ac_check_lib_save_LIBS=$LIBS
19148 LIBS="-lresolv $LIBS"
19149 cat >conftest.$ac_ext <<_ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19162 char __res_send ();
19166 return __res_send ();
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19180 grep -v '^ *+' conftest.er1 >conftest.err
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19184 (exit $ac_status); } && {
19185 test -z "$ac_c_werror_flag" ||
19186 test ! -s conftest.err
19187 } && test -s conftest$ac_exeext &&
19188 $as_test_x conftest$ac_exeext; then
19189 ac_cv_lib_resolv___res_send=yes
19191 echo "$as_me: failed program was
:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_cv_lib_resolv___res_send=no
19197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19201 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19202 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19203 if test $ac_cv_lib_resolv___res_send = yes; then
19213 if test "$resolv" = yes ; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_LIBRESOLV 1
19223 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19224 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19225 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19226 echo $ECHO_N "(cached
) $ECHO_C" >&6
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19236 #define hes_getmailhost innocuous_hes_getmailhost
19238 /* System header to define __stub macros and hopefully few prototypes,
19239 which can conflict with char hes_getmailhost (); below.
19240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19241 <limits.h> exists even on freestanding compilers. */
19244 # include <limits.h>
19246 # include <assert.h>
19249 #undef hes_getmailhost
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19257 char hes_getmailhost ();
19258 /* The GNU C library defines this for functions which it implements
19259 to always fail with ENOSYS. Some functions are actually named
19260 something starting with __ and the normal name is an alias. */
19261 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19268 return hes_getmailhost ();
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_link") 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19286 (exit $ac_status); } && {
19287 test -z "$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 } && test -s conftest$ac_exeext &&
19290 $as_test_x conftest$ac_exeext; then
19291 ac_cv_func_hes_getmailhost=yes
19293 echo "$as_me: failed program was
:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_func_hes_getmailhost=no
19299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19300 conftest$ac_exeext conftest.$ac_ext
19302 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19303 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19304 if test $ac_cv_func_hes_getmailhost = yes; then
19307 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19308 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19309 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19310 echo $ECHO_N "(cached
) $ECHO_C" >&6
19312 ac_check_lib_save_LIBS=$LIBS
19313 LIBS="-lhesiod $RESOLVLIB $LIBS"
19314 cat >conftest.$ac_ext <<_ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19327 char hes_getmailhost ();
19331 return hes_getmailhost ();
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19354 ac_cv_lib_hesiod_hes_getmailhost=yes
19356 echo "$as_me: failed program was
:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 ac_cv_lib_hesiod_hes_getmailhost=no
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19364 LIBS=$ac_check_lib_save_LIBS
19366 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19367 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19368 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_LIBHESIOD 1
19382 # These tell us which Kerberos-related libraries to use.
19383 if test "${with_kerberos+set}" = set; then
19385 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19386 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19387 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19388 echo $ECHO_N "(cached
) $ECHO_C" >&6
19390 ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-lcom_err $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext &&
19431 $as_test_x conftest$ac_exeext; then
19432 ac_cv_lib_com_err_com_err=yes
19434 echo "$as_me: failed program was
:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_com_err_com_err=no
19440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19441 conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19444 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19445 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19446 if test $ac_cv_lib_com_err_com_err = yes; then
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_LIBCOM_ERR 1
19451 LIBS="-lcom_err $LIBS"
19456 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19457 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19458 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19459 echo $ECHO_N "(cached
) $ECHO_C" >&6
19461 ac_check_lib_save_LIBS=$LIBS
19462 LIBS="-lk5crypto $LIBS"
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19470 /* Override any GCC internal prototype to avoid an error.
19471 Use char because int might match the return type of a GCC
19472 builtin and then its argument prototype would still apply. */
19476 char mit_des_cbc_encrypt ();
19480 return mit_des_cbc_encrypt ();
19485 rm -f conftest.$ac_objext conftest$ac_exeext
19486 if { (ac_try="$ac_link"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_link") 2>conftest.er1
19494 grep -v '^ *+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest$ac_exeext &&
19502 $as_test_x conftest$ac_exeext; then
19503 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19505 echo "$as_me: failed program was
:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19516 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19517 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19518 cat >>confdefs.h <<_ACEOF
19519 #define HAVE_LIBK5CRYPTO 1
19522 LIBS="-lk5crypto $LIBS"
19527 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19528 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19529 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19530 echo $ECHO_N "(cached
) $ECHO_C" >&6
19532 ac_check_lib_save_LIBS=$LIBS
19533 LIBS="-lcrypto $LIBS"
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 /* Override any GCC internal prototype to avoid an error.
19542 Use char because int might match the return type of a GCC
19543 builtin and then its argument prototype would still apply. */
19547 char mit_des_cbc_encrypt ();
19551 return mit_des_cbc_encrypt ();
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext &&
19573 $as_test_x conftest$ac_exeext; then
19574 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19576 echo "$as_me: failed program was
:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19586 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19587 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19588 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19589 cat >>confdefs.h <<_ACEOF
19590 #define HAVE_LIBCRYPTO 1
19593 LIBS="-lcrypto $LIBS"
19598 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19599 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19600 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19601 echo $ECHO_N "(cached
) $ECHO_C" >&6
19603 ac_check_lib_save_LIBS=$LIBS
19604 LIBS="-lkrb5 $LIBS"
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19612 /* Override any GCC internal prototype to avoid an error.
19613 Use char because int might match the return type of a GCC
19614 builtin and then its argument prototype would still apply. */
19618 char krb5_init_context ();
19622 return krb5_init_context ();
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_link") 2>conftest.er1
19636 grep -v '^ *+' conftest.er1 >conftest.err
19638 cat conftest.err >&5
19639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest$ac_exeext &&
19644 $as_test_x conftest$ac_exeext; then
19645 ac_cv_lib_krb5_krb5_init_context=yes
19647 echo "$as_me: failed program was
:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19650 ac_cv_lib_krb5_krb5_init_context=no
19653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19654 conftest$ac_exeext conftest.$ac_ext
19655 LIBS=$ac_check_lib_save_LIBS
19657 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19658 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19659 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19660 cat >>confdefs.h <<_ACEOF
19661 #define HAVE_LIBKRB5 1
19664 LIBS="-lkrb5 $LIBS"
19668 if test "${with_kerberos5+set}" != set; then
19670 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19671 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19672 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19673 echo $ECHO_N "(cached
) $ECHO_C" >&6
19675 ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-ldes425 $LIBS"
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19684 /* Override any GCC internal prototype to avoid an error.
19685 Use char because int might match the return type of a GCC
19686 builtin and then its argument prototype would still apply. */
19690 char des_cbc_encrypt ();
19694 return des_cbc_encrypt ();
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest$ac_exeext &&
19716 $as_test_x conftest$ac_exeext; then
19717 ac_cv_lib_des425_des_cbc_encrypt=yes
19719 echo "$as_me: failed program was
:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ac_cv_lib_des425_des_cbc_encrypt=no
19725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19726 conftest$ac_exeext conftest.$ac_ext
19727 LIBS=$ac_check_lib_save_LIBS
19729 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19730 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19731 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733 #define HAVE_LIBDES425 1
19736 LIBS="-ldes425 $LIBS"
19740 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19741 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19742 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19743 echo $ECHO_N "(cached
) $ECHO_C" >&6
19745 ac_check_lib_save_LIBS=$LIBS
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19760 char des_cbc_encrypt ();
19764 return des_cbc_encrypt ();
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest$ac_exeext &&
19786 $as_test_x conftest$ac_exeext; then
19787 ac_cv_lib_des_des_cbc_encrypt=yes
19789 echo "$as_me: failed program was
:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_des_des_cbc_encrypt=no
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19799 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19800 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19801 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19802 cat >>confdefs.h <<_ACEOF
19803 #define HAVE_LIBDES 1
19813 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19814 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19815 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19816 echo $ECHO_N "(cached
) $ECHO_C" >&6
19818 ac_check_lib_save_LIBS=$LIBS
19819 LIBS="-lkrb4 $LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* Override any GCC internal prototype to avoid an error.
19828 Use char because int might match the return type of a GCC
19829 builtin and then its argument prototype would still apply. */
19833 char krb_get_cred ();
19837 return krb_get_cred ();
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (ac_try="$ac_link"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_link") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest$ac_exeext &&
19859 $as_test_x conftest$ac_exeext; then
19860 ac_cv_lib_krb4_krb_get_cred=yes
19862 echo "$as_me: failed program was
:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_cv_lib_krb4_krb_get_cred=no
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19873 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19874 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_LIBKRB4 1
19879 LIBS="-lkrb4 $LIBS"
19883 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19884 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19885 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19886 echo $ECHO_N "(cached
) $ECHO_C" >&6
19888 ac_check_lib_save_LIBS=$LIBS
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19903 char krb_get_cred ();
19907 return krb_get_cred ();
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest$ac_exeext &&
19929 $as_test_x conftest$ac_exeext; then
19930 ac_cv_lib_krb_krb_get_cred=yes
19932 echo "$as_me: failed program was
:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_lib_krb_krb_get_cred=no
19938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19939 conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19942 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19943 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19944 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_LIBKRB 1
19957 if test "${with_kerberos5+set}" = set; then
19959 for ac_header in krb5.h
19961 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19962 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19963 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19964 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19965 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19966 echo $ECHO_N "(cached
) $ECHO_C" >&6
19968 ac_res=`eval echo '${'$as_ac_Header'}'`
19969 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19970 echo "${ECHO_T}$ac_res" >&6; }
19972 # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19974 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <$ac_header>
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20003 echo "$as_me: failed program was
:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20015 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
20024 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20036 (exit $ac_status); } >/dev/null && {
20037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20040 ac_header_preproc=yes
20042 echo "$as_me: failed program was
:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_preproc=no
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20055 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20056 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20057 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20059 ac_header_preproc=yes
20062 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20063 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20064 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20065 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20066 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20067 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20068 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20069 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20070 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20072 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20073 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20077 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20078 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached
) $ECHO_C" >&6
20082 eval "$as_ac_Header=\
$ac_header_preproc"
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20100 for ac_header in des.h
20102 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20104 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20105 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20107 echo $ECHO_N "(cached
) $ECHO_C" >&6
20109 ac_res=`eval echo '${'$as_ac_Header'}'`
20110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20113 # Is the header compilable?
20114 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20115 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20123 #include <$ac_header>
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_header_compiler=yes
20144 echo "$as_me: failed program was
:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_header_compiler=no
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20152 echo "${ECHO_T}$ac_header_compiler" >&6; }
20154 # Is the header present?
20155 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20156 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <$ac_header>
20165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20173 grep -v '^ *+' conftest.er1 >conftest.err
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20177 (exit $ac_status); } >/dev/null && {
20178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20181 ac_header_preproc=yes
20183 echo "$as_me: failed program was
:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_header_preproc=no
20189 rm -f conftest.err conftest.$ac_ext
20190 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20191 echo "${ECHO_T}$ac_header_preproc" >&6; }
20193 # So? What about this header?
20194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20196 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20197 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20198 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20200 ac_header_preproc=yes
20203 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20204 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20205 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20206 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20207 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20208 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20209 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20210 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20213 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20214 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20218 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20219 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20221 echo $ECHO_N "(cached
) $ECHO_C" >&6
20223 eval "$as_ac_Header=\
$ac_header_preproc"
20225 ac_res=`eval echo '${'$as_ac_Header'}'`
20226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20227 echo "${ECHO_T}$ac_res" >&6; }
20230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20237 for ac_header in kerberosIV/des.h
20239 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20240 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20241 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20242 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20243 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20244 echo $ECHO_N "(cached
) $ECHO_C" >&6
20246 ac_res=`eval echo '${'$as_ac_Header'}'`
20247 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20248 echo "${ECHO_T}$ac_res" >&6; }
20250 # Is the header compilable?
20251 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20252 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 $ac_includes_default
20260 #include <$ac_header>
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20275 (exit $ac_status); } && {
20276 test -z "$ac_c_werror_flag" ||
20277 test ! -s conftest.err
20278 } && test -s conftest.$ac_objext; then
20279 ac_header_compiler=yes
20281 echo "$as_me: failed program was
:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_header_compiler=no
20287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20288 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20289 echo "${ECHO_T}$ac_header_compiler" >&6; }
20291 # Is the header present?
20292 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20293 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20294 cat >conftest.$ac_ext <<_ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <$ac_header>
20302 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20314 (exit $ac_status); } >/dev/null && {
20315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20318 ac_header_preproc=yes
20320 echo "$as_me: failed program was
:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20323 ac_header_preproc=no
20326 rm -f conftest.err conftest.$ac_ext
20327 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20328 echo "${ECHO_T}$ac_header_preproc" >&6; }
20330 # So? What about this header?
20331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20333 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20334 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20335 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20337 ac_header_preproc=yes
20340 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20341 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20342 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20343 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20344 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20345 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20346 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20347 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20348 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20350 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20351 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20358 echo $ECHO_N "(cached
) $ECHO_C" >&6
20360 eval "$as_ac_Header=\
$ac_header_preproc"
20362 ac_res=`eval echo '${'$as_ac_Header'}'`
20363 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20364 echo "${ECHO_T}$ac_res" >&6; }
20367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20374 for ac_header in kerberos/des.h
20376 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20378 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20379 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20381 echo $ECHO_N "(cached
) $ECHO_C" >&6
20383 ac_res=`eval echo '${'$as_ac_Header'}'`
20384 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20385 echo "${ECHO_T}$ac_res" >&6; }
20387 # Is the header compilable?
20388 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20389 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20397 #include <$ac_header>
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20416 ac_header_compiler=yes
20418 echo "$as_me: failed program was
:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_header_compiler=no
20424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6; }
20428 # Is the header present?
20429 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20430 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20431 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <$ac_header>
20439 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20451 (exit $ac_status); } >/dev/null && {
20452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20455 ac_header_preproc=yes
20457 echo "$as_me: failed program was
:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 ac_header_preproc=no
20463 rm -f conftest.err conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20465 echo "${ECHO_T}$ac_header_preproc" >&6; }
20467 # So? What about this header?
20468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20470 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20471 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20472 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20474 ac_header_preproc=yes
20477 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20478 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20479 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20480 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20481 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20482 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20483 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20484 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20485 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20487 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20488 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20492 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20493 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached
) $ECHO_C" >&6
20497 eval "$as_ac_Header=\
$ac_header_preproc"
20499 ac_res=`eval echo '${'$as_ac_Header'}'`
20500 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20501 echo "${ECHO_T}$ac_res" >&6; }
20504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20522 for ac_header in krb.h
20524 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20525 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20526 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20527 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20529 echo $ECHO_N "(cached
) $ECHO_C" >&6
20531 ac_res=`eval echo '${'$as_ac_Header'}'`
20532 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20533 echo "${ECHO_T}$ac_res" >&6; }
20535 # Is the header compilable?
20536 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20537 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 $ac_includes_default
20545 #include <$ac_header>
20547 rm -f conftest.$ac_objext
20548 if { (ac_try="$ac_compile"
20549 case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_compile") 2>conftest.er1
20556 grep -v '^ *+' conftest.er1 >conftest.err
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20560 (exit $ac_status); } && {
20561 test -z "$ac_c_werror_flag" ||
20562 test ! -s conftest.err
20563 } && test -s conftest.$ac_objext; then
20564 ac_header_compiler=yes
20566 echo "$as_me: failed program was
:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ac_header_compiler=no
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20574 echo "${ECHO_T}$ac_header_compiler" >&6; }
20576 # Is the header present?
20577 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20578 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 #include <$ac_header>
20587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20595 grep -v '^ *+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20599 (exit $ac_status); } >/dev/null && {
20600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20603 ac_header_preproc=yes
20605 echo "$as_me: failed program was
:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_header_preproc=no
20611 rm -f conftest.err conftest.$ac_ext
20612 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20613 echo "${ECHO_T}$ac_header_preproc" >&6; }
20615 # So? What about this header?
20616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20618 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20619 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20620 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20622 ac_header_preproc=yes
20625 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20626 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20627 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20628 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20629 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20630 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20631 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20632 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20633 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20635 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20636 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20640 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20641 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20642 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20643 echo $ECHO_N "(cached
) $ECHO_C" >&6
20645 eval "$as_ac_Header=\
$ac_header_preproc"
20647 ac_res=`eval echo '${'$as_ac_Header'}'`
20648 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20649 echo "${ECHO_T}$ac_res" >&6; }
20652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20653 cat >>confdefs.h <<_ACEOF
20654 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20659 for ac_header in kerberosIV/krb.h
20661 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20663 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20664 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20666 echo $ECHO_N "(cached
) $ECHO_C" >&6
20668 ac_res=`eval echo '${'$as_ac_Header'}'`
20669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20670 echo "${ECHO_T}$ac_res" >&6; }
20672 # Is the header compilable?
20673 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20674 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 $ac_includes_default
20682 #include <$ac_header>
20684 rm -f conftest.$ac_objext
20685 if { (ac_try="$ac_compile"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_compile") 2>conftest.er1
20693 grep -v '^ *+' conftest.er1 >conftest.err
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20697 (exit $ac_status); } && {
20698 test -z "$ac_c_werror_flag" ||
20699 test ! -s conftest.err
20700 } && test -s conftest.$ac_objext; then
20701 ac_header_compiler=yes
20703 echo "$as_me: failed program was
:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ac_header_compiler=no
20709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20710 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20711 echo "${ECHO_T}$ac_header_compiler" >&6; }
20713 # Is the header present?
20714 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20715 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 #include <$ac_header>
20724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20736 (exit $ac_status); } >/dev/null && {
20737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20740 ac_header_preproc=yes
20742 echo "$as_me: failed program was
:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_header_preproc=no
20748 rm -f conftest.err conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20750 echo "${ECHO_T}$ac_header_preproc" >&6; }
20752 # So? What about this header?
20753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20755 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20756 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20757 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20759 ac_header_preproc=yes
20762 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20763 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20764 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20765 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20766 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20767 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20768 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20769 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20772 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20773 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20780 echo $ECHO_N "(cached
) $ECHO_C" >&6
20782 eval "$as_ac_Header=\
$ac_header_preproc"
20784 ac_res=`eval echo '${'$as_ac_Header'}'`
20785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20786 echo "${ECHO_T}$ac_res" >&6; }
20789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20790 cat >>confdefs.h <<_ACEOF
20791 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20796 for ac_header in kerberos/krb.h
20798 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20799 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20800 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20801 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20803 echo $ECHO_N "(cached
) $ECHO_C" >&6
20805 ac_res=`eval echo '${'$as_ac_Header'}'`
20806 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20809 # Is the header compilable?
20810 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20811 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 $ac_includes_default
20819 #include <$ac_header>
20821 rm -f conftest.$ac_objext
20822 if { (ac_try="$ac_compile"
20823 case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_compile") 2>conftest.er1
20830 grep -v '^ *+' conftest.er1 >conftest.err
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20834 (exit $ac_status); } && {
20835 test -z "$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 } && test -s conftest.$ac_objext; then
20838 ac_header_compiler=yes
20840 echo "$as_me: failed program was
:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_header_compiler=no
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20848 echo "${ECHO_T}$ac_header_compiler" >&6; }
20850 # Is the header present?
20851 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20852 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <$ac_header>
20861 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20873 (exit $ac_status); } >/dev/null && {
20874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20877 ac_header_preproc=yes
20879 echo "$as_me: failed program was
:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ac_header_preproc=no
20885 rm -f conftest.err conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20887 echo "${ECHO_T}$ac_header_preproc" >&6; }
20889 # So? What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20892 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20893 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20894 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20896 ac_header_preproc=yes
20899 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20900 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20901 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20902 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20903 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20904 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20905 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20906 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20907 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20909 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20910 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20914 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20915 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20917 echo $ECHO_N "(cached
) $ECHO_C" >&6
20919 eval "$as_ac_Header=\
$ac_header_preproc"
20921 ac_res=`eval echo '${'$as_ac_Header'}'`
20922 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20923 echo "${ECHO_T}$ac_res" >&6; }
20926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20927 cat >>confdefs.h <<_ACEOF
20928 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20945 for ac_header in com_err.h
20947 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20948 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20949 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20950 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20951 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20952 echo $ECHO_N "(cached
) $ECHO_C" >&6
20954 ac_res=`eval echo '${'$as_ac_Header'}'`
20955 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20956 echo "${ECHO_T}$ac_res" >&6; }
20958 # Is the header compilable?
20959 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20960 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20961 cat >conftest.$ac_ext <<_ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 $ac_includes_default
20968 #include <$ac_header>
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20983 (exit $ac_status); } && {
20984 test -z "$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20986 } && test -s conftest.$ac_objext; then
20987 ac_header_compiler=yes
20989 echo "$as_me: failed program was
:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_header_compiler=no
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20997 echo "${ECHO_T}$ac_header_compiler" >&6; }
20999 # Is the header present?
21000 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21001 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <$ac_header>
21010 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21022 (exit $ac_status); } >/dev/null && {
21023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21024 test ! -s conftest.err
21026 ac_header_preproc=yes
21028 echo "$as_me: failed program was
:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ac_header_preproc=no
21034 rm -f conftest.err conftest.$ac_ext
21035 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21036 echo "${ECHO_T}$ac_header_preproc" >&6; }
21038 # So? What about this header?
21039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21041 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21042 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21043 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21045 ac_header_preproc=yes
21048 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21049 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21050 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21051 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21052 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21053 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21054 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21055 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21056 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21058 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21059 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21063 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21064 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21066 echo $ECHO_N "(cached
) $ECHO_C" >&6
21068 eval "$as_ac_Header=\
$ac_header_preproc"
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076 cat >>confdefs.h <<_ACEOF
21077 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21086 # Solaris requires -lintl if you want strerror (which calls dgettext)
21087 # to return localized messages.
21089 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21090 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21091 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21092 echo $ECHO_N "(cached
) $ECHO_C" >&6
21094 ac_check_lib_save_LIBS=$LIBS
21095 LIBS="-lintl $LIBS"
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 /* Override any GCC internal prototype to avoid an error.
21104 Use char because int might match the return type of a GCC
21105 builtin and then its argument prototype would still apply. */
21113 return dgettext ();
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_link") 2>conftest.er1
21127 grep -v '^ *+' conftest.er1 >conftest.err
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest$ac_exeext &&
21135 $as_test_x conftest$ac_exeext; then
21136 ac_cv_lib_intl_dgettext=yes
21138 echo "$as_me: failed program was
:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 ac_cv_lib_intl_dgettext=no
21144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21145 conftest$ac_exeext conftest.$ac_ext
21146 LIBS=$ac_check_lib_save_LIBS
21148 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21149 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21150 if test $ac_cv_lib_intl_dgettext = yes; then
21151 cat >>confdefs.h <<_ACEOF
21152 #define HAVE_LIBINTL 1
21155 LIBS="-lintl $LIBS"
21160 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21161 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21162 if test "${emacs_cv_localtime_cache+set}" = set; then
21163 echo $ECHO_N "(cached
) $ECHO_C" >&6
21165 if test x$ac_cv_func_tzset = xyes; then
21166 if test "$cross_compiling" = yes; then
21167 # If we have tzset, assume the worst when cross-compiling.
21168 emacs_cv_localtime_cache=yes
21170 cat >conftest.$ac_ext <<_ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 extern char **environ;
21181 for (to = from = environ; (*to = *from); from++)
21182 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21185 char TZ_GMT0[] = "TZ
=GMT0
";
21186 char TZ_PST8[] = "TZ
=PST8
";
21189 time_t now = time ((time_t *) 0);
21190 int hour_GMT0, hour_unset;
21191 if (putenv (TZ_GMT0) != 0)
21193 hour_GMT0 = localtime (&now)->tm_hour;
21195 hour_unset = localtime (&now)->tm_hour;
21196 if (putenv (TZ_PST8) != 0)
21198 if (localtime (&now)->tm_hour == hour_GMT0)
21201 if (localtime (&now)->tm_hour != hour_unset)
21206 rm -f conftest$ac_exeext
21207 if { (ac_try="$ac_link"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_link") 2>&5
21215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21217 { (case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_try") 2>&5
21224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 emacs_cv_localtime_cache=no
21228 echo "$as_me: program exited with status
$ac_status" >&5
21229 echo "$as_me: failed program was
:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 ( exit $ac_status )
21233 emacs_cv_localtime_cache=yes
21235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21240 # If we lack tzset, report that localtime does not cache TZ,
21241 # since we can't invalidate the cache if we don't have tzset.
21242 emacs_cv_localtime_cache=no
21245 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21246 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21247 if test $emacs_cv_localtime_cache = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define LOCALTIME_CACHE 1
21255 if test "x
$HAVE_TIMEVAL" = xyes; then
21257 for ac_func in gettimeofday
21259 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21260 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21261 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21262 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21263 echo $ECHO_N "(cached
) $ECHO_C" >&6
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define $ac_func innocuous_$ac_func
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char $ac_func (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21281 # include <limits.h>
21283 # include <assert.h>
21288 /* Override any GCC internal prototype to avoid an error.
21289 Use char because int might match the return type of a GCC
21290 builtin and then its argument prototype would still apply. */
21295 /* The GNU C library defines this for functions which it implements
21296 to always fail with ENOSYS. Some functions are actually named
21297 something starting with __ and the normal name is an alias. */
21298 #if defined __stub_$ac_func || defined __stub___$ac_func
21305 return $ac_func ();
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (ac_try="$ac_link"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_link") 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext &&
21327 $as_test_x conftest$ac_exeext; then
21328 eval "$as_ac_var=yes"
21330 echo "$as_me: failed program was
:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 eval "$as_ac_var=no
"
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337 conftest$ac_exeext conftest.$ac_ext
21339 ac_res=`eval echo '${'$as_ac_var'}'`
21340 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21341 echo "${ECHO_T}$ac_res" >&6; }
21342 if test `eval echo '${'$as_ac_var'}'` = yes; then
21343 cat >>confdefs.h <<_ACEOF
21344 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21350 if test $ac_cv_func_gettimeofday = yes; then
21351 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21352 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21353 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21354 echo $ECHO_N "(cached
) $ECHO_C" >&6
21356 cat >conftest.$ac_ext <<_ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21363 #ifdef TIME_WITH_SYS_TIME
21364 #include <sys/time.h>
21367 #ifdef HAVE_SYS_TIME_H
21368 #include <sys/time.h>
21376 struct timeval time;
21377 gettimeofday (&time, 0);
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 emacs_cv_gettimeofday_two_arguments=yes
21401 echo "$as_me: failed program was
:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 emacs_cv_gettimeofday_two_arguments=no
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21410 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21411 if test $emacs_cv_gettimeofday_two_arguments = no; then
21413 cat >>confdefs.h <<\_ACEOF
21414 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21422 { echo "$as_me:$LINENO: checking
for socket
" >&5
21423 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21424 if test "${ac_cv_func_socket+set}" = set; then
21425 echo $ECHO_N "(cached
) $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21435 #define socket innocuous_socket
21437 /* System header to define __stub macros and hopefully few prototypes,
21438 which can conflict with char socket (); below.
21439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21440 <limits.h> exists even on freestanding compilers. */
21443 # include <limits.h>
21445 # include <assert.h>
21450 /* Override any GCC internal prototype to avoid an error.
21451 Use char because int might match the return type of a GCC
21452 builtin and then its argument prototype would still apply. */
21457 /* The GNU C library defines this for functions which it implements
21458 to always fail with ENOSYS. Some functions are actually named
21459 something starting with __ and the normal name is an alias. */
21460 #if defined __stub_socket || defined __stub___socket
21472 rm -f conftest.$ac_objext conftest$ac_exeext
21473 if { (ac_try="$ac_link"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_link") 2>conftest.er1
21481 grep -v '^ *+' conftest.er1 >conftest.err
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest$ac_exeext &&
21489 $as_test_x conftest$ac_exeext; then
21490 ac_cv_func_socket=yes
21492 echo "$as_me: failed program was
:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_cv_func_socket=no
21498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21499 conftest$ac_exeext conftest.$ac_ext
21501 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21502 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21503 if test $ac_cv_func_socket = yes; then
21509 if test $ok_so_far = yes; then
21510 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21511 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21512 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21513 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21514 echo $ECHO_N "(cached
) $ECHO_C" >&6
21516 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21517 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21519 # Is the header compilable?
21520 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21521 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 $ac_includes_default
21529 #include <netinet/in.h>
21531 rm -f conftest.$ac_objext
21532 if { (ac_try="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21540 grep -v '^ *+' conftest.er1 >conftest.err
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest.$ac_objext; then
21548 ac_header_compiler=yes
21550 echo "$as_me: failed program was
:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_header_compiler=no
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21558 echo "${ECHO_T}$ac_header_compiler" >&6; }
21560 # Is the header present?
21561 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21562 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 #include <netinet/in.h>
21571 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21579 grep -v '^ *+' conftest.er1 >conftest.err
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21583 (exit $ac_status); } >/dev/null && {
21584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21587 ac_header_preproc=yes
21589 echo "$as_me: failed program was
:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6; }
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21602 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21603 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21604 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21605 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21606 ac_header_preproc=yes
21609 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21610 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21611 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21612 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21613 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21614 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21615 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21616 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21617 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21618 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21619 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21620 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21624 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21625 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21626 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21627 echo $ECHO_N "(cached
) $ECHO_C" >&6
21629 ac_cv_header_netinet_in_h=$ac_header_preproc
21631 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21632 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21635 if test $ac_cv_header_netinet_in_h = yes; then
21643 if test $ok_so_far = yes; then
21644 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21645 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21646 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21648 echo $ECHO_N "(cached
) $ECHO_C" >&6
21650 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21651 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21653 # Is the header compilable?
21654 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21655 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 $ac_includes_default
21663 #include <arpa/inet.h>
21665 rm -f conftest.$ac_objext
21666 if { (ac_try="$ac_compile"
21667 case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_compile") 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21678 (exit $ac_status); } && {
21679 test -z "$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 } && test -s conftest.$ac_objext; then
21682 ac_header_compiler=yes
21684 echo "$as_me: failed program was
:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_header_compiler=no
21690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21692 echo "${ECHO_T}$ac_header_compiler" >&6; }
21694 # Is the header present?
21695 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21696 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <arpa/inet.h>
21705 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21717 (exit $ac_status); } >/dev/null && {
21718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21721 ac_header_preproc=yes
21723 echo "$as_me: failed program was
:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_header_preproc=no
21729 rm -f conftest.err conftest.$ac_ext
21730 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21731 echo "${ECHO_T}$ac_header_preproc" >&6; }
21733 # So? What about this header?
21734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21736 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21737 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21738 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21739 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21740 ac_header_preproc=yes
21743 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21744 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21745 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21746 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21747 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21748 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21749 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21750 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21751 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21752 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21753 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21754 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21758 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21759 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21760 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21761 echo $ECHO_N "(cached
) $ECHO_C" >&6
21763 ac_cv_header_arpa_inet_h=$ac_header_preproc
21765 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21766 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21769 if test $ac_cv_header_arpa_inet_h = yes; then
21777 if test $ok_so_far = yes; then
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_INET_SOCKETS 1
21786 for ac_header in sys/ioctl.h
21788 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21790 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21791 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21793 echo $ECHO_N "(cached
) $ECHO_C" >&6
21795 ac_res=`eval echo '${'$as_ac_Header'}'`
21796 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21797 echo "${ECHO_T}$ac_res" >&6; }
21799 # Is the header compilable?
21800 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21801 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 $ac_includes_default
21809 #include <$ac_header>
21811 rm -f conftest.$ac_objext
21812 if { (ac_try="$ac_compile"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_compile") 2>conftest.er1
21820 grep -v '^ *+' conftest.er1 >conftest.err
21822 cat conftest.err >&5
21823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21824 (exit $ac_status); } && {
21825 test -z "$ac_c_werror_flag" ||
21826 test ! -s conftest.err
21827 } && test -s conftest.$ac_objext; then
21828 ac_header_compiler=yes
21830 echo "$as_me: failed program was
:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 ac_header_compiler=no
21836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21837 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21838 echo "${ECHO_T}$ac_header_compiler" >&6; }
21840 # Is the header present?
21841 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21842 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21843 cat >conftest.$ac_ext <<_ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21849 #include <$ac_header>
21851 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21863 (exit $ac_status); } >/dev/null && {
21864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21867 ac_header_preproc=yes
21869 echo "$as_me: failed program was
:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 ac_header_preproc=no
21875 rm -f conftest.err conftest.$ac_ext
21876 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21877 echo "${ECHO_T}$ac_header_preproc" >&6; }
21879 # So? What about this header?
21880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21882 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21883 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21884 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21886 ac_header_preproc=yes
21889 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21890 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21891 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21892 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21893 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21894 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21895 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21896 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21897 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21899 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21900 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21904 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21905 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21906 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21907 echo $ECHO_N "(cached
) $ECHO_C" >&6
21909 eval "$as_ac_Header=\
$ac_header_preproc"
21911 ac_res=`eval echo '${'$as_ac_Header'}'`
21912 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21913 echo "${ECHO_T}$ac_res" >&6; }
21916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21917 cat >>confdefs.h <<_ACEOF
21918 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21926 if test -f /usr/lpp/X11/bin/smt.exp; then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_AIX_SMT_EXP 1
21934 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21935 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21936 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21937 { echo "$as_me:$LINENO: result
: yes" >&5
21938 echo "${ECHO_T}yes" >&6; }
21940 cat >>confdefs.h <<\_ACEOF
21941 #define HAVE_DEV_PTMX 1
21945 { echo "$as_me:$LINENO: result
: no
" >&5
21946 echo "${ECHO_T}no
" >&6; }
21949 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21950 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21951 if test "${ac_cv_type_pid_t+set}" = set; then
21952 echo $ECHO_N "(cached
) $ECHO_C" >&6
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 $ac_includes_default
21961 typedef pid_t ac__type_new_;
21965 if ((ac__type_new_ *) 0)
21967 if (sizeof (ac__type_new_))
21973 rm -f conftest.$ac_objext
21974 if { (ac_try="$ac_compile"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_compile") 2>conftest.er1
21982 grep -v '^ *+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21986 (exit $ac_status); } && {
21987 test -z "$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21989 } && test -s conftest.$ac_objext; then
21990 ac_cv_type_pid_t=yes
21992 echo "$as_me: failed program was
:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_cv_type_pid_t=no
21998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22001 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22002 if test $ac_cv_type_pid_t = yes; then
22006 cat >>confdefs.h <<_ACEOF
22013 for ac_header in vfork.h
22015 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22016 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22017 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22018 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22019 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22020 echo $ECHO_N "(cached
) $ECHO_C" >&6
22022 ac_res=`eval echo '${'$as_ac_Header'}'`
22023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22024 echo "${ECHO_T}$ac_res" >&6; }
22026 # Is the header compilable?
22027 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22028 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22029 cat >conftest.$ac_ext <<_ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 $ac_includes_default
22036 #include <$ac_header>
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22051 (exit $ac_status); } && {
22052 test -z "$ac_c_werror_flag" ||
22053 test ! -s conftest.err
22054 } && test -s conftest.$ac_objext; then
22055 ac_header_compiler=yes
22057 echo "$as_me: failed program was
:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 ac_header_compiler=no
22063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22065 echo "${ECHO_T}$ac_header_compiler" >&6; }
22067 # Is the header present?
22068 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22069 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #include <$ac_header>
22078 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22090 (exit $ac_status); } >/dev/null && {
22091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22094 ac_header_preproc=yes
22096 echo "$as_me: failed program was
:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_preproc=no
22102 rm -f conftest.err conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22104 echo "${ECHO_T}$ac_header_preproc" >&6; }
22106 # So? What about this header?
22107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22109 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22110 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22111 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22113 ac_header_preproc=yes
22116 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22117 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22118 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22119 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22120 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22121 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22122 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22123 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22124 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22126 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22127 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22131 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22132 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22134 echo $ECHO_N "(cached
) $ECHO_C" >&6
22136 eval "$as_ac_Header=\
$ac_header_preproc"
22138 ac_res=`eval echo '${'$as_ac_Header'}'`
22139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22140 echo "${ECHO_T}$ac_res" >&6; }
22143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22144 cat >>confdefs.h <<_ACEOF
22145 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22154 for ac_func in fork vfork
22156 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22157 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22158 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22159 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22160 echo $ECHO_N "(cached
) $ECHO_C" >&6
22162 cat >conftest.$ac_ext <<_ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h. */
22168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22170 #define $ac_func innocuous_$ac_func
22172 /* System header to define __stub macros and hopefully few prototypes,
22173 which can conflict with char $ac_func (); below.
22174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22175 <limits.h> exists even on freestanding compilers. */
22178 # include <limits.h>
22180 # include <assert.h>
22185 /* Override any GCC internal prototype to avoid an error.
22186 Use char because int might match the return type of a GCC
22187 builtin and then its argument prototype would still apply. */
22192 /* The GNU C library defines this for functions which it implements
22193 to always fail with ENOSYS. Some functions are actually named
22194 something starting with __ and the normal name is an alias. */
22195 #if defined __stub_$ac_func || defined __stub___$ac_func
22202 return $ac_func ();
22207 rm -f conftest.$ac_objext conftest$ac_exeext
22208 if { (ac_try="$ac_link"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_link") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest$ac_exeext &&
22224 $as_test_x conftest$ac_exeext; then
22225 eval "$as_ac_var=yes"
22227 echo "$as_me: failed program was
:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 eval "$as_ac_var=no
"
22233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22234 conftest$ac_exeext conftest.$ac_ext
22236 ac_res=`eval echo '${'$as_ac_var'}'`
22237 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22238 echo "${ECHO_T}$ac_res" >&6; }
22239 if test `eval echo '${'$as_ac_var'}'` = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22247 if test "x
$ac_cv_func_fork" = xyes; then
22248 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22249 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22250 if test "${ac_cv_func_fork_works+set}" = set; then
22251 echo $ECHO_N "(cached
) $ECHO_C" >&6
22253 if test "$cross_compiling" = yes; then
22254 ac_cv_func_fork_works=cross
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22267 /* By Ruediger Kuhlmann. */
22268 return fork () < 0;
22274 rm -f conftest$ac_exeext
22275 if { (ac_try="$ac_link"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_link") 2>&5
22283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22285 { (case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_try") 2>&5
22292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 ac_cv_func_fork_works=yes
22296 echo "$as_me: program exited with status
$ac_status" >&5
22297 echo "$as_me: failed program was
:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ( exit $ac_status )
22301 ac_cv_func_fork_works=no
22303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22309 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22312 ac_cv_func_fork_works=$ac_cv_func_fork
22314 if test "x
$ac_cv_func_fork_works" = xcross; then
22316 *-*-amigaos* | *-*-msdosdjgpp*)
22317 # Override, as these systems have only a dummy fork() stub
22318 ac_cv_func_fork_works=no
22321 ac_cv_func_fork_works=yes
22324 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22325 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22327 ac_cv_func_vfork_works=$ac_cv_func_vfork
22328 if test "x
$ac_cv_func_vfork" = xyes; then
22329 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22330 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22331 if test "${ac_cv_func_vfork_works+set}" = set; then
22332 echo $ECHO_N "(cached
) $ECHO_C" >&6
22334 if test "$cross_compiling" = yes; then
22335 ac_cv_func_vfork_works=cross
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 /* Thanks to Paul Eggert for this test. */
22344 $ac_includes_default
22345 #include <sys/wait.h>
22346 #ifdef HAVE_VFORK_H
22347 # include <vfork.h>
22349 /* On some sparc systems, changes by the child to local and incoming
22350 argument registers are propagated back to the parent. The compiler
22351 is told about this with #include <vfork.h>, but some compilers
22352 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22353 static variable whose address is put into a register that is
22354 clobbered by the vfork. */
22357 sparc_address_test (int arg)
22359 sparc_address_test (arg) int arg;
22362 static pid_t child;
22380 pid_t parent = getpid ();
22383 sparc_address_test (0);
22388 /* Here is another test for sparc vfork register problems. This
22389 test uses lots of local variables, at least as many local
22390 variables as main has allocated so far including compiler
22391 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22392 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22393 reuse the register of parent for one of the local variables,
22394 since it will think that parent can't possibly be used any more
22395 in this routine. Assigning to the local variable will thus
22396 munge parent in the parent process. */
22398 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22399 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22400 /* Convince the compiler that p..p7 are live; otherwise, it might
22401 use the same hardware register for all 8 local variables. */
22402 if (p != p1 || p != p2 || p != p3 || p != p4
22403 || p != p5 || p != p6 || p != p7)
22406 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22407 from child file descriptors. If the child closes a descriptor
22408 before it execs or exits, this munges the parent's descriptor
22409 as well. Test for this by closing stdout in the child. */
22410 _exit(close(fileno(stdout)) != 0);
22415 while (wait(&status) != child)
22418 /* Was there some problem with vforking? */
22421 /* Did the child fail? (This shouldn't happen.) */
22424 /* Did the vfork/compiler bug occur? */
22425 || parent != getpid()
22427 /* Did the file descriptor bug occur? */
22428 || fstat(fileno(stdout), &st) != 0
22433 rm -f conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22440 (eval "$ac_link") 2>&5
22442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
22451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_cv_func_vfork_works=yes
22455 echo "$as_me: program exited with status
$ac_status" >&5
22456 echo "$as_me: failed program was
:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ( exit $ac_status )
22460 ac_cv_func_vfork_works=no
22462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22468 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22471 if test "x
$ac_cv_func_fork_works" = xcross; then
22472 ac_cv_func_vfork_works=$ac_cv_func_vfork
22473 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22474 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22477 if test "x
$ac_cv_func_vfork_works" = xyes; then
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_WORKING_VFORK 1
22485 cat >>confdefs.h <<\_ACEOF
22490 if test "x
$ac_cv_func_fork_works" = xyes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_WORKING_FORK 1
22499 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22500 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22501 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22502 echo $ECHO_N "(cached
) $ECHO_C" >&6
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <langinfo.h>
22514 char* cs = nl_langinfo(CODESET);
22519 rm -f conftest.$ac_objext conftest$ac_exeext
22520 if { (ac_try="$ac_link"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_link") 2>conftest.er1
22528 grep -v '^ *+' conftest.er1 >conftest.err
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest$ac_exeext &&
22536 $as_test_x conftest$ac_exeext; then
22537 emacs_cv_langinfo_codeset=yes
22539 echo "$as_me: failed program was
:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 emacs_cv_langinfo_codeset=no
22545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22546 conftest$ac_exeext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22550 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22551 if test $emacs_cv_langinfo_codeset = yes; then
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_LANGINFO_CODESET 1
22559 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22560 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22561 if test "${ac_cv_type_size_t+set}" = set; then
22562 echo $ECHO_N "(cached
) $ECHO_C" >&6
22564 cat >conftest.$ac_ext <<_ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 typedef size_t ac__type_new_;
22575 if ((ac__type_new_ *) 0)
22577 if (sizeof (ac__type_new_))
22583 rm -f conftest.$ac_objext
22584 if { (ac_try="$ac_compile"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_compile") 2>conftest.er1
22592 grep -v '^ *+' conftest.er1 >conftest.err
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22596 (exit $ac_status); } && {
22597 test -z "$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 } && test -s conftest.$ac_objext; then
22600 ac_cv_type_size_t=yes
22602 echo "$as_me: failed program was
:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_cv_type_size_t=no
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22611 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22612 if test $ac_cv_type_size_t = yes; then
22614 cat >>confdefs.h <<_ACEOF
22615 #define HAVE_SIZE_T 1
22622 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22623 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22624 if test "${ac_cv_type_mbstate_t+set}" = set; then
22625 echo $ECHO_N "(cached
) $ECHO_C" >&6
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 $ac_includes_default
22634 # include <wchar.h>
22638 mbstate_t x; return sizeof x;
22643 rm -f conftest.$ac_objext
22644 if { (ac_try="$ac_compile"
22645 case "(($ac_try" in
22646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22650 (eval "$ac_compile") 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest.$ac_objext; then
22660 ac_cv_type_mbstate_t=yes
22662 echo "$as_me: failed program was
:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22665 ac_cv_type_mbstate_t=no
22668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22671 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22672 if test $ac_cv_type_mbstate_t = yes; then
22674 cat >>confdefs.h <<\_ACEOF
22675 #define HAVE_MBSTATE_T 1
22680 cat >>confdefs.h <<\_ACEOF
22681 #define mbstate_t int
22686 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22687 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22688 if test "${emacs_cv_c_restrict+set}" = set; then
22689 echo $ECHO_N "(cached
) $ECHO_C" >&6
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 void fred (int *restrict x);
22706 rm -f conftest.$ac_objext
22707 if { (ac_try="$ac_compile"
22708 case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22715 grep -v '^ *+' conftest.er1 >conftest.err
22717 cat conftest.err >&5
22718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22723 emacs_cv_c_restrict=yes
22725 echo "$as_me: failed program was
:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 cat >conftest.$ac_ext <<_ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h. */
22734 void fred (int *__restrict x);
22743 rm -f conftest.$ac_objext
22744 if { (ac_try="$ac_compile"
22745 case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_compile") 2>conftest.er1
22752 grep -v '^ *+' conftest.er1 >conftest.err
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest.$ac_objext; then
22760 emacs_cv_c_restrict=__restrict
22762 echo "$as_me: failed program was
:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 emacs_cv_c_restrict=no
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22774 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22775 case "$emacs_cv_c_restrict" in
22776 yes) emacs_restrict=restrict;;
22777 no) emacs_restrict="";;
22778 *) emacs_restrict="$emacs_cv_c_restrict";;
22780 if test "$emacs_restrict" != __restrict; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define __restrict $emacs_restrict
22788 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22789 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22790 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22791 echo $ECHO_N "(cached
) $ECHO_C" >&6
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 void fred (int x[__restrict]);
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 emacs_cv_c_restrict_arr=yes
22827 echo "$as_me: failed program was
:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22830 emacs_cv_c_restrict_arr=no
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22836 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22837 if test "$emacs_cv_c_restrict_arr" = yes; then
22839 cat >>confdefs.h <<\_ACEOF
22840 #define __restrict_arr __restrict
22847 # Set up the CFLAGS for real compilation, so we can substitute it.
22848 CFLAGS="$REAL_CFLAGS"
22849 CPPFLAGS="$REAL_CPPFLAGS"
22851 #### Find out which version of Emacs this is.
22852 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22853 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22854 if test x"${version}" = x; then
22855 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22856 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22857 { (exit 1); exit 1; }; }
22860 ### Specify what sort of things we'll be editing into Makefile and config.h.
22861 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22897 cat >>confdefs.h <<_ACEOF
22898 #define EMACS_CONFIGURATION "${canonical}"
22902 cat >>confdefs.h <<_ACEOF
22903 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22907 cat >>confdefs.h <<_ACEOF
22908 #define config_machfile "${machfile}"
22912 cat >>confdefs.h <<_ACEOF
22913 #define config_opsysfile "${opsysfile}"
22917 cat >>confdefs.h <<_ACEOF
22918 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22922 cat >>confdefs.h <<_ACEOF
22923 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22927 cat >>confdefs.h <<_ACEOF
22928 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22932 cat >>confdefs.h <<_ACEOF
22933 #define UNEXEC_SRC ${UNEXEC_SRC}
22937 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22939 cat >>confdefs.h <<\_ACEOF
22940 #define HAVE_X_WINDOWS 1
22944 if test "${USE_X_TOOLKIT}" != "none
" ; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define USE_X_TOOLKIT 1
22951 if test "${HAVE_X11}" = "yes" ; then
22953 cat >>confdefs.h <<\_ACEOF
22958 if test "${HAVE_XFREE386}" = "yes" ; then
22960 cat >>confdefs.h <<\_ACEOF
22961 #define HAVE_XFREE386 1
22965 if test "${HAVE_MENUS}" = "yes" ; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_MENUS 1
22972 if test "${GNU_MALLOC}" = "yes" ; then
22974 cat >>confdefs.h <<\_ACEOF
22975 #define GNU_MALLOC 1
22979 if test "${REL_ALLOC}" = "yes" ; then
22981 cat >>confdefs.h <<\_ACEOF
22982 #define REL_ALLOC 1
22991 #### Report on what we decided to do.
22992 #### Report GTK as a toolkit, even if it doesn't use Xt.
22993 #### It makes printing result more understandable as using GTK sets
22994 #### toolkit_scroll_bars to yes by default.
22995 if test "${HAVE_GTK}" = "yes"; then
23000 Configured
for \
`${canonical}'.
23002 Where should the build process find the source code? ${srcdir}
23003 What operating system and machine description files should Emacs use?
23004 \`${opsysfile}' and \`${machfile}'
23005 What compiler should emacs be built with?
${CC} ${CFLAGS}
23006 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23007 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23008 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23009 What window system should Emacs use?
${window_system}
23010 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23012 if test -n "${x_includes}"; then
23013 echo " Where
do we
find X Windows header files?
${x_includes}"
23015 echo " Where
do we
find X Windows header files? Standard
dirs"
23017 if test -n "${x_libraries}"; then
23018 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23020 echo " Where
do we
find X Windows libraries? Standard
dirs"
23023 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23024 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23025 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23026 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23027 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23028 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23029 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23032 if test $USE_XASSERTS = yes; then
23033 echo " Compiling with asserts turned on.
"
23034 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23040 # Remove any trailing slashes in these variables.
23041 test "${prefix}" != NONE &&
23042 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23043 test "${exec_prefix}" != NONE &&
23044 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23046 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23047 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23048 ## from Makefile.c can correctly provide the arg `-traditional' to the
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23059 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23060 $EGREP "yes..
yes" >/dev/null 2>&1; then
23061 CPP_NEED_TRADITIONAL=no
23063 CPP_NEED_TRADITIONAL=yes
23068 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
"
23070 ac_config_commands="$ac_config_commands default
"
23072 cat >confcache <<\_ACEOF
23073 # This file is a shell script that caches the results of configure
23074 # tests run on this system so they can be shared between configure
23075 # scripts and configure runs, see configure's option --config-cache.
23076 # It is not useful on other systems. If it contains results you don't
23077 # want to keep, you may remove or edit it.
23079 # config.status only pays attention to the cache file if you give it
23080 # the --recheck option to rerun configure.
23082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23084 # following values.
23088 # The following way of writing the cache mishandles newlines in values,
23089 # but we know of no workaround that is simple, portable, and efficient.
23090 # So, we kill variables containing newlines.
23091 # Ultrix sh set writes to stderr and can't be redirected directly,
23092 # and sets the high bit in the cache file unless we assign to the vars.
23094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23095 eval ac_val=\$$ac_var
23099 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23100 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23103 _ | IFS | as_nl) ;; #(
23104 *) $as_unset $ac_var ;;
23110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23111 *${as_nl}ac_space=\ *)
23112 # `set' does not quote correctly, so add quotes (double-quote
23113 # substitution turns \\\\ into \\, and sed turns \\ into \).
23116 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23119 # `set' quotes correctly as required by POSIX, so do not add quotes.
23120 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23134 if test -w "$cache_file"; then
23135 test "x
$cache_file" != "x
/dev
/null
" &&
23136 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23137 echo "$as_me: updating cache
$cache_file" >&6;}
23138 cat confcache >$cache_file
23140 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23141 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23146 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23147 # Let make expand exec_prefix.
23148 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23150 DEFS=-DHAVE_CONFIG_H
23154 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23155 # 1. Remove the extension, and $U if already installed.
23156 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23157 ac_i=`echo "$ac_i" | sed "$ac_script"`
23158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23159 # will be set to the directory where LIBOBJS objects are built.
23160 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23161 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23163 LIBOBJS=$ac_libobjs
23165 LTLIBOBJS=$ac_ltlibobjs
23169 : ${CONFIG_STATUS=./config.status}
23170 ac_clean_files_save=$ac_clean_files
23171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23172 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23173 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23174 cat >$CONFIG_STATUS <<_ACEOF
23176 # Generated by $as_me.
23177 # Run this file to recreate the current configuration.
23178 # Compiler output produced by configure, useful for debugging
23179 # configure, is in config.log if it exists.
23182 ac_cs_recheck=false
23184 SHELL=\${CONFIG_SHELL-$SHELL}
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23188 ## --------------------- ##
23189 ## M4sh Initialization. ##
23190 ## --------------------- ##
23192 # Be more Bourne compatible
23193 DUALCASE=1; export DUALCASE # for MKS sh
23194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23197 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23198 # is contrary to our usage. Disable this feature.
23199 alias -g '${1+"$@"}'='"$@
"'
23200 setopt NO_GLOB_SUBST
23202 case `(set -o) 2>/dev/null` in
23203 *posix*) set -o posix ;;
23212 # Avoid depending upon Character Ranges.
23213 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23214 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23215 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23216 as_cr_digits='0123456789'
23217 as_cr_alnum=$as_cr_Letters$as_cr_digits
23219 # The user is always right.
23220 if test "${PATH_SEPARATOR+set}" != set; then
23221 echo "#! /bin/sh" >conf$$.sh
23222 echo "exit 0" >>conf$$.sh
23224 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23232 # Support unset when possible.
23233 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23241 # We need space, tab and new line, in precisely that order. Quoting is
23242 # there to prevent editors from complaining about space-tab.
23243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23244 # splitting by setting IFS to empty value.)
23249 # Find who we are. Look in the path if we contain no directory separator.
23251 *[\\/]* ) as_myself
=$0 ;;
23252 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23253 for as_dir
in $PATH
23256 test -z "$as_dir" && as_dir
=.
23257 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23263 # We did not find ourselves, most probably we were run as `sh COMMAND'
23264 # in which case we are not to be found in the path.
23265 if test "x$as_myself" = x
; then
23268 if test ! -f "$as_myself"; then
23269 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23270 { (exit 1); exit 1; }
23273 # Work around bugs in pre-3.0 UWIN ksh.
23274 for as_var
in ENV MAIL MAILPATH
23275 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23283 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23284 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23285 LC_TELEPHONE LC_TIME
23287 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23288 eval $as_var=C
; export $as_var
23290 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23294 # Required to use basename.
23295 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23296 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23302 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23303 as_basename
=basename
23309 # Name of the executable.
23310 as_me
=`$as_basename -- "$0" ||
23311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23312 X"$0" : 'X\(//\)$' \| \
23313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23315 sed '/^.*\/\([^/][^/]*\)\/*$/{
23334 as_lineno_1
=$LINENO
23335 as_lineno_2
=$LINENO
23336 test "x$as_lineno_1" != "x$as_lineno_2" &&
23337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23340 # uniformly replaced by the line number. The first 'sed' inserts a
23341 # line-number line after each line using $LINENO; the second 'sed'
23342 # does the real work. The second script uses 'N' to pair each
23343 # line-number line with the line containing $LINENO, and appends
23344 # trailing '-' during substitution so that $LINENO is not a special
23345 # case at line end.
23346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23347 # scripts with optimization help from Paolo Bonzini. Blame Lee
23348 # E. McMahon (1931-1989) for sed's syntax. :-)
23360 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23363 ' >$as_me.lineno
&&
23364 chmod +x
"$as_me.lineno" ||
23365 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23366 { (exit 1); exit 1; }; }
23368 # Don't try to exec as it changes $[0], causing all sort of problems
23369 # (the dirname of $[0] is not the place where we might find the
23370 # original and so on. Autoconf is especially sensitive to this).
23371 .
"./$as_me.lineno"
23372 # Exit status is that of the last command.
23377 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23383 ECHO_C
= ECHO_N
= ECHO_T
=
23384 case `echo -n x` in
23386 case `echo 'x\c'` in
23387 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23394 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23395 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23401 rm -f conf$$ conf$$.exe conf$$.
file
23402 if test -d conf$$.dir
; then
23403 rm -f conf$$.dir
/conf$$.
file
23409 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23411 # ... but there are two gotchas:
23412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23414 # In both cases, we have to default to `cp -p'.
23415 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23417 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23422 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23423 rmdir conf$$.dir
2>/dev
/null
23425 if mkdir
-p .
2>/dev
/null
; then
23428 test -d .
/-p && rmdir .
/-p
23432 if test -x / >/dev
/null
2>&1; then
23433 as_test_x
='test -x'
23435 if ls -dL / >/dev
/null
2>&1; then
23442 if test -d "$1"; then
23448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23449 ???[sx]*):;;*)false;;esac;fi
23453 as_executable_p
=$as_test_x
23455 # Sed expression to map a string onto a valid CPP name.
23456 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23458 # Sed expression to map a string onto a valid variable name.
23459 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23464 # Save the log message, to keep $[0] and so on meaningful, and to
23465 # report actual input values of CONFIG_FILES etc. instead of their
23466 # values after options handling.
23468 This file was extended by $as_me, which was
23469 generated by GNU Autoconf 2.61. Invocation command line was
23471 CONFIG_FILES = $CONFIG_FILES
23472 CONFIG_HEADERS = $CONFIG_HEADERS
23473 CONFIG_LINKS = $CONFIG_LINKS
23474 CONFIG_COMMANDS = $CONFIG_COMMANDS
23477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23482 cat >>$CONFIG_STATUS <<_ACEOF
23483 # Files that config.status was made for.
23484 config_files="$ac_config_files"
23485 config_headers="$ac_config_headers"
23486 config_commands="$ac_config_commands"
23490 cat >>$CONFIG_STATUS <<\_ACEOF
23492 \`$as_me' instantiates files from templates according to the
23493 current configuration.
23495 Usage: $0 [OPTIONS] [FILE]...
23497 -h, --help print this help, then exit
23498 -V, --version print version number and configuration settings, then exit
23499 -q, --quiet do not print progress messages
23500 -d, --debug don't remove temporary files
23501 --recheck update $as_me by reconfiguring in the same conditions
23502 --file=FILE[:TEMPLATE]
23503 instantiate the configuration file FILE
23504 --header=FILE[:TEMPLATE]
23505 instantiate the configuration header FILE
23507 Configuration files:
23510 Configuration headers:
23513 Configuration commands:
23516 Report bugs to <bug-autoconf@gnu.org>."
23519 cat >>$CONFIG_STATUS <<_ACEOF
23522 configured by $0, generated by GNU Autoconf 2.61,
23523 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23525 Copyright (C) 2006 Free Software Foundation, Inc.
23526 This config.status script is free software; the Free Software Foundation
23527 gives unlimited permission to copy, distribute and modify it."
23534 cat >>$CONFIG_STATUS <<\_ACEOF
23535 # If no file are specified by the user, then we need to provide default
23536 # value. By we need to know if files were specified by the user.
23542 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23543 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23554 # Handling of the options.
23555 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23557 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23558 echo "$ac_cs_version"; exit ;;
23559 --debug |
--debu |
--deb |
--de |
--d |
-d )
23561 --file |
--fil |
--fi |
--f )
23563 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23564 ac_need_defaults
=false
;;
23565 --header |
--heade |
--head |
--hea )
23567 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23568 ac_need_defaults
=false
;;
23570 # Conflict between --help and --header
23571 { echo "$as_me: error: ambiguous option: $1
23572 Try \`$0 --help' for more information." >&2
23573 { (exit 1); exit 1; }; };;
23574 --help |
--hel |
-h )
23575 echo "$ac_cs_usage"; exit ;;
23576 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23577 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23580 # This is an error.
23581 -*) { echo "$as_me: error: unrecognized option: $1
23582 Try \`$0 --help' for more information." >&2
23583 { (exit 1); exit 1; }; } ;;
23585 *) ac_config_targets
="$ac_config_targets $1"
23586 ac_need_defaults
=false
;;
23592 ac_configure_extra_args
=
23594 if $ac_cs_silent; then
23596 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23600 cat >>$CONFIG_STATUS <<_ACEOF
23601 if \$ac_cs_recheck; then
23602 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23603 CONFIG_SHELL=$SHELL
23604 export CONFIG_SHELL
23605 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23609 cat >>$CONFIG_STATUS <<\_ACEOF
23613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23614 ## Running $as_me. ##
23620 cat >>$CONFIG_STATUS <<_ACEOF
23624 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23630 # Handling of arguments.
23631 for ac_config_target
in $ac_config_targets
23633 case $ac_config_target in
23634 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23635 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23636 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23637 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23638 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23639 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23640 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23641 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23642 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23643 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23644 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23645 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23647 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23648 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23649 { (exit 1); exit 1; }; };;
23654 # If the user did not use the arguments to specify the items to instantiate,
23655 # then the envvar interface is used. Set only those that are not.
23656 # We use the long form for the default assignment because of an extremely
23657 # bizarre bug on SunOS 4.1.3.
23658 if $ac_need_defaults; then
23659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23664 # Have a temporary directory for convenience. Make it in the build tree
23665 # simply because there is no reason against having it here, and in addition,
23666 # creating and moving files from /tmp can sometimes cause problems.
23667 # Hook for its removal unless debugging.
23668 # Note that there is a small window in which the directory will not be cleaned:
23669 # after its creation but before its name has been assigned to `$tmp'.
23673 trap 'exit_status=$?
23674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23676 trap '{ (exit 1); exit 1; }' 1 2 13 15
23678 # Create a (secure) tmp directory for tmp files.
23681 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23682 test -n "$tmp" && test -d "$tmp"
23685 tmp
=.
/conf$$
-$RANDOM
23686 (umask 077 && mkdir
"$tmp")
23689 echo "$me: cannot create a temporary directory in ." >&2
23690 { (exit 1); exit 1; }
23694 # Set up the sed scripts for CONFIG_FILES section.
23697 # No need to generate the scripts if there are no CONFIG_FILES.
23698 # This happens for instance when ./config.status config.h
23699 if test -n "$CONFIG_FILES"; then
23706 for ac_last_try
in false false false false false
:; do
23707 cat >conf$
$subs.
sed <<_ACEOF
23708 SHELL!$SHELL$ac_delim
23709 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23710 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23711 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23712 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23713 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23714 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23715 exec_prefix!$exec_prefix$ac_delim
23716 prefix!$prefix$ac_delim
23717 program_transform_name!$program_transform_name$ac_delim
23718 bindir!$bindir$ac_delim
23719 sbindir!$sbindir$ac_delim
23720 libexecdir!$libexecdir$ac_delim
23721 datarootdir!$datarootdir$ac_delim
23722 datadir!$datadir$ac_delim
23723 sysconfdir!$sysconfdir$ac_delim
23724 sharedstatedir!$sharedstatedir$ac_delim
23725 localstatedir!$localstatedir$ac_delim
23726 includedir!$includedir$ac_delim
23727 oldincludedir!$oldincludedir$ac_delim
23728 docdir!$docdir$ac_delim
23729 infodir!$infodir$ac_delim
23730 htmldir!$htmldir$ac_delim
23731 dvidir!$dvidir$ac_delim
23732 pdfdir!$pdfdir$ac_delim
23733 psdir!$psdir$ac_delim
23734 libdir!$libdir$ac_delim
23735 localedir!$localedir$ac_delim
23736 mandir!$mandir$ac_delim
23737 DEFS!$DEFS$ac_delim
23738 ECHO_C!$ECHO_C$ac_delim
23739 ECHO_N!$ECHO_N$ac_delim
23740 ECHO_T!$ECHO_T$ac_delim
23741 LIBS!$LIBS$ac_delim
23742 build_alias!$build_alias$ac_delim
23743 host_alias!$host_alias$ac_delim
23744 target_alias!$target_alias$ac_delim
23745 MAINT!$MAINT$ac_delim
23746 build!$build$ac_delim
23747 build_cpu!$build_cpu$ac_delim
23748 build_vendor!$build_vendor$ac_delim
23749 build_os!$build_os$ac_delim
23750 host!$host$ac_delim
23751 host_cpu!$host_cpu$ac_delim
23752 host_vendor!$host_vendor$ac_delim
23753 host_os!$host_os$ac_delim
23755 CFLAGS!$CFLAGS$ac_delim
23756 LDFLAGS!$LDFLAGS$ac_delim
23757 CPPFLAGS!$CPPFLAGS$ac_delim
23758 ac_ct_CC!$ac_ct_CC$ac_delim
23759 EXEEXT!$EXEEXT$ac_delim
23760 OBJEXT!$OBJEXT$ac_delim
23762 GREP!$GREP$ac_delim
23763 EGREP!$EGREP$ac_delim
23764 LN_S!$LN_S$ac_delim
23765 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23766 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23767 INSTALL_DATA!$INSTALL_DATA$ac_delim
23768 RANLIB!$RANLIB$ac_delim
23769 INSTALL_INFO!$INSTALL_INFO$ac_delim
23770 GZIP_PROG!$GZIP_PROG$ac_delim
23771 LIBSOUND!$LIBSOUND$ac_delim
23772 PKG_CONFIG!$PKG_CONFIG$ac_delim
23773 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23774 ALSA_LIBS!$ALSA_LIBS$ac_delim
23775 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23776 SET_MAKE!$SET_MAKE$ac_delim
23777 XMKMF!$XMKMF$ac_delim
23778 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23779 GTK_LIBS!$GTK_LIBS$ac_delim
23780 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23781 XFT_LIBS!$XFT_LIBS$ac_delim
23782 ALLOCA!$ALLOCA$ac_delim
23783 liblockfile!$liblockfile$ac_delim
23784 LIBOBJS!$LIBOBJS$ac_delim
23785 NEED_SETGID!$NEED_SETGID$ac_delim
23786 KMEM_GROUP!$KMEM_GROUP$ac_delim
23787 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23788 GETOPT_H!$GETOPT_H$ac_delim
23789 GETOPTOBJS!$GETOPTOBJS$ac_delim
23790 version!$version$ac_delim
23791 configuration!$configuration$ac_delim
23792 canonical!$canonical$ac_delim
23793 srcdir!$srcdir$ac_delim
23794 lispdir!$lispdir$ac_delim
23795 locallisppath!$locallisppath$ac_delim
23796 lisppath!$lisppath$ac_delim
23797 x_default_search_path!$x_default_search_path$ac_delim
23798 etcdir!$etcdir$ac_delim
23799 archlibdir!$archlibdir$ac_delim
23800 bitmapdir!$bitmapdir$ac_delim
23801 gamedir!$gamedir$ac_delim
23802 gameuser!$gameuser$ac_delim
23803 c_switch_system!$c_switch_system$ac_delim
23804 c_switch_machine!$c_switch_machine$ac_delim
23807 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23809 elif $ac_last_try; then
23810 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23811 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23812 { (exit 1); exit 1; }; }
23814 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23818 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23819 if test -n "$ac_eof"; then
23820 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23821 ac_eof
=`expr $ac_eof + 1`
23824 cat >>$CONFIG_STATUS <<_ACEOF
23825 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23829 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23830 s/^/s,@/; s/!/@,|#_!!_#|/
23833 s/'"$ac_delim"'$/,g/; t
23835 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23836 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23837 rm -f conf$
$subs.
sed
23838 cat >>$CONFIG_STATUS <<_ACEOF
23844 for ac_last_try
in false false false false false
:; do
23845 cat >conf$
$subs.
sed <<_ACEOF
23846 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23847 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23848 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23849 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23850 machfile!$machfile$ac_delim
23851 opsysfile!$opsysfile$ac_delim
23852 carbon_appdir!$carbon_appdir$ac_delim
23853 LTLIBOBJS!$LTLIBOBJS$ac_delim
23856 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23858 elif $ac_last_try; then
23859 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23860 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23861 { (exit 1); exit 1; }; }
23863 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23867 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23868 if test -n "$ac_eof"; then
23869 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23870 ac_eof
=`expr $ac_eof + 1`
23873 cat >>$CONFIG_STATUS <<_ACEOF
23874 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23878 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23879 s/^/s,@/; s/!/@,|#_!!_#|/
23882 s/'"$ac_delim"'$/,g/; t
23884 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23885 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23886 rm -f conf$
$subs.
sed
23887 cat >>$CONFIG_STATUS <<_ACEOF
23894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23896 # trailing colons and then remove the whole line if VPATH becomes empty
23897 # (actually we leave an empty line to preserve line numbers).
23898 if test "x$srcdir" = x.
; then
23899 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23900 s/:*\$(srcdir):*/:/
23901 s/:*\${srcdir}:*/:/
23903 s/^\([^=]*=[ ]*\):*/\1/
23909 cat >>$CONFIG_STATUS <<\_ACEOF
23910 fi # test -n "$CONFIG_FILES"
23913 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23916 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23918 case $ac_mode$ac_tag in
23920 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23921 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23922 { (exit 1); exit 1; }; };;
23923 :[FH
]-) ac_tag
=-:-;;
23924 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23941 -) ac_f
="$tmp/stdin";;
23942 *) # Look for the file first in the build tree, then in the source tree
23943 # (if the path is not absolute). The absolute path cannot be DOS-style,
23944 # because $ac_f cannot contain `:'.
23948 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23950 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23951 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23952 { (exit 1); exit 1; }; };;
23954 ac_file_inputs
="$ac_file_inputs $ac_f"
23957 # Let's still pretend it is `configure' which instantiates (i.e., don't
23958 # use $as_me), people would be surprised to read:
23959 # /* config.h. Generated by config.status. */
23960 configure_input
="Generated from "`IFS=:
23961 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23962 if test x
"$ac_file" != x-
; then
23963 configure_input
="$ac_file. $configure_input"
23964 { echo "$as_me:$LINENO: creating $ac_file" >&5
23965 echo "$as_me: creating $ac_file" >&6;}
23969 *:-:* |
*:-) cat >"$tmp/stdin";;
23974 ac_dir
=`$as_dirname -- "$ac_file" ||
23975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23976 X"$ac_file" : 'X\(//\)[^/]' \| \
23977 X"$ac_file" : 'X\(//\)$' \| \
23978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23984 /^X\(\/\/\)[^/].*/{
23999 -*) as_dir
=.
/$as_dir;;
24001 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24005 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24006 *) as_qdir
=$as_dir;;
24008 as_dirs
="'$as_qdir' $as_dirs"
24009 as_dir
=`$as_dirname -- "$as_dir" ||
24010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011 X"$as_dir" : 'X\(//\)[^/]' \| \
24012 X"$as_dir" : 'X\(//\)$' \| \
24013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24019 /^X\(\/\/\)[^/].*/{
24032 test -d "$as_dir" && break
24034 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24035 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24036 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24037 { (exit 1); exit 1; }; }; }
24041 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24043 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24044 # A ".." for each directory in $ac_dir_suffix.
24045 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24046 case $ac_top_builddir_sub in
24047 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24048 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24051 ac_abs_top_builddir
=$ac_pwd
24052 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24053 # for backward compatibility:
24054 ac_top_builddir
=$ac_top_build_prefix
24057 .
) # We are building in place.
24059 ac_top_srcdir
=$ac_top_builddir_sub
24060 ac_abs_top_srcdir
=$ac_pwd ;;
24061 [\\/]* | ?
:[\\/]* ) # Absolute name.
24062 ac_srcdir
=$srcdir$ac_dir_suffix;
24063 ac_top_srcdir
=$srcdir
24064 ac_abs_top_srcdir
=$srcdir ;;
24065 *) # Relative name.
24066 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24067 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24068 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24070 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24080 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24081 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24085 cat >>$CONFIG_STATUS <<\_ACEOF
24086 # If the template does not know about datarootdir, expand it.
24087 # FIXME: This hack should be removed a few years after 2.60.
24088 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24090 case `sed -n '/datarootdir/ {
24099 ' $ac_file_inputs` in
24100 *datarootdir
*) ac_datarootdir_seen
=yes;;
24101 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24102 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24103 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24105 cat >>$CONFIG_STATUS <<_ACEOF
24106 ac_datarootdir_hack='
24107 s&@datadir@&$datadir&g
24108 s&@docdir@&$docdir&g
24109 s&@infodir@&$infodir&g
24110 s&@localedir@&$localedir&g
24111 s&@mandir@&$mandir&g
24112 s&\\\${datarootdir}&$datarootdir&g' ;;
24116 # Neutralize VPATH when `$srcdir' = `.'.
24117 # Shell code in configure.ac might set extrasub.
24118 # FIXME: do we really want to maintain this feature?
24119 cat >>$CONFIG_STATUS <<_ACEOF
24123 cat >>$CONFIG_STATUS <<\_ACEOF
24125 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24126 s
&@configure_input@
&$configure_input&;t t
24127 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24128 s
&@srcdir@
&$ac_srcdir&;t t
24129 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24130 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24131 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24132 s
&@builddir@
&$ac_builddir&;t t
24133 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24134 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24135 s
&@INSTALL@
&$ac_INSTALL&;t t
24136 $ac_datarootdir_hack
24137 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24140 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24142 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24143 which seems to be undefined. Please make sure it is defined." >&5
24144 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24145 which seems to be undefined. Please make sure it is defined." >&2;}
24149 -) cat "$tmp/out"; rm -f "$tmp/out";;
24150 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24159 # Transform confdefs.h into a sed script `conftest.defines', that
24160 # substitutes the proper values into config.h.in to produce config.h.
24161 rm -f conftest.defines conftest.
tail
24162 # First, append a space to every undef/define line, to ease matching.
24163 echo 's/$/ /' >conftest.defines
24164 # Then, protect against being on the right side of a sed subst, or in
24165 # an unquoted here document, in config.status. If some macros were
24166 # called several times there might be several #defines for the same
24167 # symbol, which is useless. But do not sort them, since the last
24168 # AC_DEFINE must be honored.
24169 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24170 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24171 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24172 # PARAMS is the parameter list in the macro definition--in most cases, it's
24173 # just an empty string.
24174 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24175 ac_dB
='\\)[ (].*,\\1define\\2'
24183 s/^[ ]*#[ ]*define[ ][ ]*//
24188 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24189 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24190 ' >>conftest.defines
24192 # Remove the space that was appended to ease matching.
24193 # Then replace #undef with comments. This is necessary, for
24194 # example, in the case of _POSIX_SOURCE, which is predefined and required
24195 # on some systems where configure will not decide to define it.
24196 # (The regexp can be short, since the line contains either #define or #undef.)
24198 s,^[ #]*u.*,/* & */,' >>conftest.defines
24200 # Break up conftest.defines:
24201 ac_max_sed_lines
=50
24203 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24204 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24205 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24207 ac_in
='$ac_file_inputs'
24208 ac_out
='"$tmp/out1"'
24209 ac_nxt
='"$tmp/out2"'
24213 # Write a here document:
24214 cat >>$CONFIG_STATUS <<_ACEOF
24215 # First, check the format of the line:
24216 cat >"\$tmp/defines.sed" <<\\CEOF
24217 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24218 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24222 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24224 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24225 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24226 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24227 grep . conftest.
tail >/dev
/null ||
break
24228 rm -f conftest.defines
24229 mv conftest.
tail conftest.defines
24231 rm -f conftest.defines conftest.
tail
24233 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24234 cat >>$CONFIG_STATUS <<\_ACEOF
24235 if test x
"$ac_file" != x-
; then
24236 echo "/* $configure_input */" >"$tmp/config.h"
24237 cat "$ac_result" >>"$tmp/config.h"
24238 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24239 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24240 echo "$as_me: $ac_file is unchanged" >&6;}
24243 mv "$tmp/config.h" $ac_file
24246 echo "/* $configure_input */"
24252 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24253 echo "$as_me: executing $ac_file commands" >&6;}
24258 case $ac_file$ac_mode in
24261 ### Make the necessary directories, if they don't exist.
24262 for dir
in etc lisp
; do
24263 test -d ${dir} || mkdir
${dir}
24266 # Build src/Makefile from ${srcdir}/src/Makefile.c
24267 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24268 # This must be done after src/config.h is built, since we rely on that file.
24270 # Now get this: Some word that is part of the ${srcdir} directory name
24271 # or the ${configuration} value might, just might, happen to be an
24272 # identifier like `sun4' or `i386' or something, and be predefined by
24273 # the C preprocessor to some helpful value like 1, or maybe the empty
24274 # string. Needless to say consequent macro substitutions are less
24275 # than conducive to the makefile finding the correct directory.
24276 undefs
="`echo $top_srcdir $configuration $canonical |
24277 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24278 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24281 echo creating src
/epaths.h
24282 ${MAKE-make} epaths-force
24284 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24285 # `..' to `. .' unless invoked with -traditional
24287 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24288 CPPFLAGS
="$CPPFLAGS -traditional"
24291 echo creating lib-src
/Makefile
24293 rm -f junk.c junk1.c junk2.c
24294 sed -e '/start of cpp stuff/q' \
24295 < Makefile.c
> junk1.c
24296 sed -e '1,/start of cpp stuff/d'\
24297 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24298 < Makefile.c
> junk.c
24299 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24300 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24301 cat junk1.c junk2.c
> Makefile.new
24302 rm -f junk.c junk1.c junk2.c
24303 chmod 444 Makefile.new
24304 mv -f Makefile.new Makefile
24307 echo creating src
/Makefile
24309 rm -f junk.c junk1.c junk2.c
24310 sed -e '/start of cpp stuff/q' \
24311 < Makefile.c
> junk1.c
24312 sed -e '1,/start of cpp stuff/d'\
24313 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24314 < Makefile.c
> junk.c
24315 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24316 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24317 cat junk1.c junk2.c
> Makefile.new
24318 rm -f junk.c junk1.c junk2.c
24319 chmod 444 Makefile.new
24320 mv -f Makefile.new Makefile
24323 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24324 echo creating src
/.gdbinit
24325 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24328 # This is how we know whether to re-run configure in certain cases.
24329 touch src
/config.stamp
24337 { (exit 0); exit 0; }
24339 chmod +x
$CONFIG_STATUS
24340 ac_clean_files
=$ac_clean_files_save
24343 # configure is writing to config.log, and then calls config.status.
24344 # config.status does its own redirection, appending to config.log.
24345 # Unfortunately, on DOS this fails, as config.log is still kept open
24346 # by configure, so config.status won't be able to write to it; its
24347 # output is simply discarded. So we exec the FD to /dev/null,
24348 # effectively closing config.log, so it can be properly (re)opened and
24349 # appended to by config.status. When coming back to configure, we
24350 # need to make the FD available again.
24351 if test "$no_create" != yes; then
24353 ac_config_status_args
=
24354 test "$silent" = yes &&
24355 ac_config_status_args
="$ac_config_status_args --quiet"
24357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24360 # would make configure fail if this is the last instruction.
24361 $ac_cs_success ||
{ (exit 1); exit 1; }