2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
709 x_default_search_path
726 ac_precious_vars
='build_alias
738 # Initialize some variables set by options.
740 ac_init_version
=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
750 program_transform_name
=s
,x
,x
,
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir
='${exec_prefix}/bin'
765 sbindir
='${exec_prefix}/sbin'
766 libexecdir
='${exec_prefix}/libexec'
767 datarootdir
='${prefix}/share'
768 datadir
='${datarootdir}'
769 sysconfdir
='${prefix}/etc'
770 sharedstatedir
='${prefix}/com'
771 localstatedir
='${prefix}/var'
772 includedir
='${prefix}/include'
773 oldincludedir
='/usr/include'
774 docdir
='${datarootdir}/doc/${PACKAGE}'
775 infodir
='${datarootdir}/info'
780 libdir
='${exec_prefix}/lib'
781 localedir
='${datarootdir}/locale'
782 mandir
='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\
$ac_option
796 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=no
;;
847 -docdir |
--docdir |
--docdi |
--doc |
--do)
849 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
852 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
854 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
857 -enable-* |
--enable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_
$ac_package=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val
=\$
$ac_var
1129 [\\/$
]* | ?
:[\\/]* ) continue;;
1130 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target
=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x
; then
1145 if test "x$build_alias" = x
; then
1146 cross_compiling
=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1157 test "$silent" = yes && exec 6>/dev
/null
1160 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di
=`ls -di .` &&
1162 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1222 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 for ac_var
in $ac_precious_vars; do
1225 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1227 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1301 --x-includes=DIR X include files are
in DIR
1302 --x-libraries=DIR X library files are
in DIR
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1318 specify
install directory
for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing
) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search
for lisp files
1324 specific to this site
1325 --disable-largefile omit support
for large files
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc don
't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP
mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version
5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server
host
1335 --without-sound don
't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1857 cat >>confdefs.h <<\_ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1902 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1903 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1905 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1906 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It
's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2030 srcdir
="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2059 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2062 ac_install_sh
="$ac_aux_dir/install-sh -c"
2064 elif test -f "$ac_dir/install.sh"; then
2066 ac_install_sh
="$ac_aux_dir/install.sh -c"
2068 elif test -f "$ac_dir/shtool"; then
2070 ac_install_sh
="$ac_aux_dir/shtool install -c"
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_build_alias
=$build_alias
2101 test "x$ac_build_alias" = x
&&
2102 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x
&&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS
=$IFS; IFS
='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test "x$host_alias" = x
; then
2141 ac_cv_host
=$ac_cv_build
2143 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS
=$IFS; IFS
='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173 configuration
=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine
='' opsys
='' unported
=no
2201 case "${canonical}" in
2206 case "${canonical}" in
2207 alpha
*-*-freebsd*) machine
=alpha
;;
2208 ia64-
*-freebsd*) machine
=ia64
;;
2209 sparc64-
*-freebsd*) machine
=sparc
;;
2210 powerpc-
*-freebsd*) machine
=macppc
;;
2211 i
[3456]86-*-freebsd*) machine
=intel386
;;
2212 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2219 if test -f /usr
/lib
/crti.o
; then
2221 cat >>confdefs.h
<<\_ACEOF
2227 case "${canonical}" in
2228 alpha
*-*-netbsd*) machine
=alpha
;;
2229 i
[3456]86-*-netbsd*) machine
=intel386
;;
2231 # This is somewhat bogus.
2232 machine
=hp9000s300
;;
2233 mips-
*-netbsd*) machine
=pmax
;;
2234 mipsel-
*-netbsd*) machine
=pmax
;;
2235 mipseb-
*-netbsd*) machine
=pmax
;;
2236 ns32k-
*-netbsd*) machine
=ns32000
;;
2237 powerpc-
*-netbsd*) machine
=macppc
;;
2238 sparc
*-*-netbsd*) machine
=sparc
;;
2239 vax-
*-netbsd*) machine
=vax
;;
2240 arm-
*-netbsd*) machine
=arm
;;
2241 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2242 hppa-
*-netbsd*) machine
=hp800
;;
2243 shle-
*-netbsd*) machine
=sh3el
;;
2250 case "${canonical}" in
2251 alpha
*-*-openbsd*) machine
=alpha
;;
2252 i386-
*-openbsd*) machine
=intel386
;;
2253 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2254 m68k-
*-openbsd*) machine
=hp9000s300
;;
2255 mipsel-
*-openbsd*) machine
=pmax
;;
2256 ns32k-
*-openbsd*) machine
=ns32000
;;
2257 sparc-
*-openbsd*) machine
=sparc
;;
2258 vax-
*-openbsd*) machine
=vax
;;
2265 case "${canonical}" in
2266 i
[3456]86-*-lynxos*) machine
=intel386
;;
2267 powerpc-
*-lynxos*) machine
=powerpc
;;
2272 arm-acorn-riscix1.1
* )
2273 machine
=acorn opsys
=riscix1-1
2275 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2276 ## This name is riscix12 instead of riscix1.2
2277 ## to avoid a file name conflict on MSDOS.
2278 machine
=acorn opsys
=riscix12
2284 case "${canonical}" in
2285 i
[345]86-*-bsdi*) machine
=intel386
;;
2286 sparc-
*-bsdi*) machine
=sparc
;;
2287 powerpc-
*-bsdi*) machine
=macppc
;;
2289 case "${canonical}" in
2290 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2291 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2292 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2293 *-*-bsdi3* ) opsys
=bsdos3
;;
2294 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2299 ## Strictly speaking, we need the version of the alliant operating
2300 ## system to choose the right machine file, but currently the
2301 ## configuration name doesn't tell us enough to choose the right
2302 ## one; we need to give alliants their own operating system name to
2303 ## do this right. When someone cares, they can help us.
2305 machine
=alliant4 opsys
=bsd4-2
2308 machine
=alliant-2800 opsys
=bsd4-3
2311 ## Alpha (DEC) machines.
2313 machine
=alpha opsys
=osf1
2314 # This is needed to find X11R6.1 libraries for certain tests.
2315 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2316 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2317 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2318 # due to non-traditional preprocessing with the current compiler
2319 # defaults. OSF 4 can also have that compiler version, and there
2320 # seems always to have been a usable /usr/bin/cpp.
2321 NON_GNU_CPP
=/usr
/bin
/cpp
2322 case "${canonical}" in
2323 alpha
*-dec-osf[5-9]*)
2328 alpha
*-*-linux-gnu* )
2329 machine
=alpha opsys
=gnu-linux
2333 machine
=arm opsys
=gnu-linux
2338 machine
=altos opsys
=usg5-2
2343 machine
=amdahl opsys
=usg5-2-2
2346 ## Apollo, Domain/OS
2348 machine
=apollo opsys
=bsd4-3
2351 ## Apple Darwin / Mac OS X
2353 case "${canonical}" in
2354 i
[3456]86-* ) machine
=intel386
;;
2355 powerpc-
* ) machine
=powermac
;;
2359 # Define CPP as follows to make autoconf work correctly.
2360 CPP
="${CC-cc} -E -no-cpp-precomp"
2361 # Use fink packages if available.
2362 if test -d /sw
/include
&& test -d /sw
/lib
; then
2363 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2364 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2365 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2369 ## AT&T 3b2, 3b5, 3b15, 3b20
2371 machine
=att3b opsys
=usg5-2-2
2374 ## AT&T 3b1 - The Mighty Unix PC!
2376 machine
=7300 opsys
=usg5-2-2
2381 machine
=ibmrs6000 opsys
=aix3-2
2386 machine
=dpx2 opsys
=usg5-3
2391 machine
=sps7 opsys
=usg5-2
2394 ## CCI 5/32, 6/32 -- see "Tahoe".
2397 ## I don't know what configuration name to use for this; config.sub
2398 ## doesn't seem to know anything about it. Hey, Celerity users, get
2399 ## in touch with us!
2400 celerity-celerity-bsd
* )
2401 machine
=celerity opsys
=bsd4-2
2405 ## What operating systems does this chip run that Emacs has been
2409 ## We'll use the catch-all code at the bottom to guess the
2410 ## operating system.
2414 mips-compaq-nonstopux
* )
2415 machine
=nonstopux opsys
=nonstopux
2419 *-convex-bsd* |
*-convex-convexos* )
2420 machine
=convex opsys
=bsd4-3
2421 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2422 NON_GNU_CPP
="cc -E -P"
2426 i
[3456]86-cubix-sysv* )
2427 machine
=intel386 opsys
=usg5-3
2431 cydra
*-cydrome-sysv* )
2432 machine
=cydra5 opsys
=usg5-3
2435 ## Data General AViiON Machines
2436 ## DG changed naming conventions with the release of 5.4.4.10, they
2437 ## dropped the initial 5.4 but left the intervening R. Because of the
2438 ## R this shouldn't conflict with older versions of the OS (which I
2439 ## think were named like dgux4.*). In addition, DG new AViiONs series
2440 ## uses either Motorola M88k or Intel Pentium CPUs.
2441 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2442 machine
=aviion opsys
=dgux4
2444 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2445 ## This name is dgux5-4-3 instead of dgux5-4r3
2446 ## to avoid a file name conflict on MSDOS.
2447 machine
=aviion opsys
=dgux5-4-3
2449 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2450 machine
=aviion opsys
=dgux5-4r2
2453 machine
=aviion opsys
=dgux
2456 ## Data General AViiON Intel (x86) Machines
2457 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2458 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2459 i
[345]86-dg-dguxR4* )
2460 machine
=aviion-intel opsys
=dgux4
2464 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2465 machine
=pmax opsys
=bsd4-2
2467 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2468 machine
=pmax opsys
=bsd4-3
2471 machine
=pmax opsys
=ultrix4-3
2474 machine
=pmax opsys
=osf1
2476 mips-dec-mach_bsd4.3
* )
2477 machine
=pmax opsys
=mach-bsd4-3
2480 ## Motorola Delta machines
2481 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2482 machine
=delta opsys
=usg5-3
2483 if test -z "`type gnucc | grep 'not found'`"
2485 if test -s /etc
/167config
2486 then CC
="gnucc -m68040"
2487 else CC
="gnucc -m68881"
2490 if test -z "`type gcc | grep 'not found'`"
2496 m88k-motorola-sysv4
* )
2497 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2498 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2499 # I hope there are not other 4.0 versions for this machine
2500 # which really need usg5-4 instead.
2501 machine
=delta88k opsys
=usg5-4-2
2503 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2504 machine
=delta88k opsys
=usg5-3
2509 machine
=dual opsys
=usg5-2
2511 m68
*-dual-uniplus* )
2512 machine
=dual opsys
=unipl5-2
2517 machine
=elxsi opsys
=usg5-2
2522 machine
=ns16000 opsys
=umax
2525 ## The GEC 63 - apparently, this port isn't really finished yet.
2526 # I'm sure we finished off the last of the machines, though. -- fx
2528 ## Gould Power Node and NP1
2530 machine
=gould opsys
=bsd4-2
2533 machine
=gould opsys
=bsd4-3
2536 machine
=gould-np1 opsys
=bsd4-3
2539 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2540 ## as far as Emacs is concerned).
2542 # Build needs to be different on 7.0 and later releases
2543 case "`uname -r`" in
2544 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2545 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2547 NON_GNU_CPP
="/lib/cpp"
2549 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2551 machine
=nh3000 opsys
=cxux
2553 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2554 powerpc-harris-powerunix
)
2555 machine
=nh6000 opsys
=powerunix
2556 NON_GNU_CPP
="cc -Xo -E -P"
2559 xps
*-honeywell-sysv* )
2560 machine
=xps100 opsys
=usg5-2
2563 ## HP 9000 series 200 or 300
2565 machine
=hp9000s300 opsys
=bsd4-3
2567 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2569 case "`uname -r`" in
2570 ## Someone's system reports A.B8.05 for this.
2571 ## I wonder what other possibilities there are.
2572 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2573 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2574 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2575 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2576 *) machine
=hp9000s300 opsys
=hpux
;;
2580 hppa
*-*-linux-gnu* )
2581 machine
=hp800 opsys
=gnu-linux
2585 machine
=hp800 opsys
=nextstep
2590 machine
=orion opsys
=bsd4-2
2592 clipper-orion-bsd
* )
2593 machine
=orion105 opsys
=bsd4-2
2597 i
[3456]86-ibm-aix1.1
* )
2598 machine
=ibmps2-aix opsys
=usg5-2-2
2600 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2601 machine
=ibmps2-aix opsys
=usg5-3
2604 machine
=ibm370aix opsys
=usg5-3
2607 machine
=ibms390 opsys
=gnu-linux
2609 s390x-
*-linux-gnu* )
2610 machine
=ibms390x opsys
=gnu-linux
2612 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2613 machine
=ibmrs6000 opsys
=aix3-1
2615 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2616 machine
=ibmrs6000 opsys
=aix3-2-5
2618 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2619 machine
=ibmrs6000 opsys
=aix4-1
2621 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2622 machine
=ibmrs6000 opsys
=aix4-2
2624 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2625 machine
=ibmrs6000 opsys
=aix4-2
2627 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2628 machine
=ibmrs6000 opsys
=aix4
2630 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2631 machine
=ibmrs6000 opsys
=aix4-1
2633 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2634 machine
=ibmrs6000 opsys
=aix3-2
2637 machine
=ibmrt opsys
=bsd4-3
2640 machine
=ibmrt opsys
=bsd4-2
2643 machine
=ibmrt opsys
=bsd4-3
2646 machine
=ibmrt opsys
=bsd4-2
2649 machine
=ibmrt opsys
=bsd4-3
2652 machine
=ibmrt opsys
=bsd4-3
2655 machine
=ibmrt-aix opsys
=usg5-2-2
2658 ## Integrated Solutions `Optimum V'
2660 machine
=isi-ov opsys
=bsd4-2
2663 machine
=isi-ov opsys
=bsd4-3
2666 ## Intel 386 machines where we do care about the manufacturer
2667 i
[3456]86-intsys-sysv* )
2668 machine
=is386 opsys
=usg5-2-2
2672 i
[3456]86-prime-sysv* )
2673 machine
=i386 opsys
=usg5-3
2676 ## Sequent Symmetry running Dynix
2677 i
[3456]86-sequent-bsd* )
2678 machine
=symmetry opsys
=bsd4-3
2681 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2682 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2683 machine
=sequent-ptx opsys
=ptx4
2684 NON_GNU_CPP
=/lib
/cpp
2687 ## Sequent Symmetry running DYNIX/ptx
2688 ## Use the old cpp rather than the newer ANSI one.
2689 i
[3456]86-sequent-ptx* )
2690 machine
=sequent-ptx opsys
=ptx
2691 NON_GNU_CPP
="/lib/cpp"
2694 ## ncr machine running svr4.3.
2695 i
[3456]86-ncr-sysv4.3
)
2696 machine
=ncr386 opsys
=usg5-4-3
2699 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2700 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2701 i
[3456]86-ncr-sysv* )
2702 machine
=ncr386 opsys
=usg5-4-2
2705 ## Intel Paragon OSF/1
2707 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2712 machine
=i860 opsys
=usg5-4
2713 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2714 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2717 ## Macintosh PowerPC
2718 powerpc
*-*-linux-gnu* )
2719 machine
=macppc opsys
=gnu-linux
2722 ## Masscomp machines
2723 m68
*-masscomp-rtu* )
2724 machine
=masscomp opsys
=rtu
2727 ## Megatest machines
2728 m68
*-megatest-bsd* )
2729 machine
=mega68 opsys
=bsd4-2
2732 ## Workstations sold by MIPS
2733 ## This is not necessarily all workstations using the MIPS processor -
2734 ## Irises are produced by SGI, and DECstations by DEC.
2736 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2737 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2738 ## it gives for choosing between the alternatives seems to be "Use
2739 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2740 ## the BSD world." I'll assume that these are instructions for
2741 ## handling two odd situations, and that every other situation
2742 ## should use mips.h and usg5-2-2, they being listed first.
2745 ## Fall through to the general code at the bottom to decide on the OS.
2747 mips-mips-riscos4
* )
2748 machine
=mips4 opsys
=bsd4-3
2749 NON_GNU_CC
="cc -systype bsd43"
2750 NON_GNU_CPP
="cc -systype bsd43 -E"
2752 mips-mips-riscos5
* )
2753 machine
=mips4 opsys
=riscos5
2754 NON_GNU_CC
="cc -systype bsd43"
2755 NON_GNU_CPP
="cc -systype bsd43 -E"
2758 machine
=mips opsys
=bsd4-3
2761 machine
=mips opsys
=usg5-2-2
2765 m68
*-next-* | m68k-
*-nextstep* )
2766 machine
=m68k opsys
=nextstep
2769 ## The complete machine from National Semiconductor
2771 machine
=ns32000 opsys
=usg5-2
2775 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2776 machine
=tower32 opsys
=usg5-2-2
2778 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2779 machine
=tower32v3 opsys
=usg5-3
2784 machine
=ews4800 opsys
=ux4800
2787 ## Nixdorf Targon 31
2788 m68
*-nixdorf-sysv* )
2789 machine
=targon31 opsys
=usg5-2-2
2794 machine
=nu opsys
=usg5-2
2799 machine
=plexus opsys
=usg5-2
2803 ## I don't really have any idea what sort of processor the Pyramid has,
2804 ## so I'm assuming it is its own architecture.
2805 pyramid-pyramid-bsd
* )
2806 machine
=pyramid opsys
=bsd4-2
2810 ns32k-sequent-bsd4.2
* )
2811 machine
=sequent opsys
=bsd4-2
2813 ns32k-sequent-bsd4.3
* )
2814 machine
=sequent opsys
=bsd4-3
2818 mips-siemens-sysv
* | mips-sni-sysv
*)
2819 machine
=mips-siemens opsys
=usg5-4
2820 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2821 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2824 ## Silicon Graphics machines
2825 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2827 machine
=irist opsys
=iris3-5
2829 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2830 machine
=irist opsys
=iris3-6
2834 machine
=iris4d opsys
=irix3-3
2837 machine
=iris4d opsys
=irix4-0
2840 machine
=iris4d opsys
=irix6-5
2841 # Without defining _LANGUAGE_C, things get masked out in the headers
2842 # so that, for instance, grepping for `free' in stdlib.h fails and
2843 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2844 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2845 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2848 machine
=iris4d opsys
=irix6-0
2849 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2850 # but presumably it does no harm.
2851 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2852 # -32 probably isn't necessary in later v.6s -- anyone know which?
2853 NON_GCC_TEST_OPTIONS
=-32
2855 mips-sgi-irix5.
[01]* )
2856 machine
=iris4d opsys
=irix5-0
2858 mips-sgi-irix5
* | mips-sgi-irix
* )
2859 machine
=iris4d opsys
=irix5-2
2864 machine
=news opsys
=bsd4-2
2867 machine
=news opsys
=bsd4-3
2869 m68
*-sony-newsos3* | m68
*-sony-news3*)
2870 machine
=news opsys
=bsd4-3
2872 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2873 machine
=news-risc opsys
=bsd4-3
2875 mips-sony-newsos6
* )
2876 machine
=news-r6 opsys
=newsos6
2879 machine
=news-risc opsys
=newsos5
2884 machine
=stride opsys
=usg5-2
2888 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2889 machine
=sparc opsys
=gnu-linux
2892 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2893 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2894 | rs6000-
*-solaris2*)
2895 case "${canonical}" in
2896 m68
*-sunos1* ) machine
=sun1
;;
2897 m68
*-sunos2* ) machine
=sun2
;;
2898 m68
* ) machine
=sun3
;;
2899 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2900 i
[3456]86-*-* ) machine
=intel386
;;
2901 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2902 powerpcle
* ) machine
=powerpcle
;;
2903 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2904 sparc
* ) machine
=sparc
;;
2907 case "${canonical}" in
2908 ## The Sun386 didn't get past 4.0.
2909 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2910 *-sunos4.0
* ) opsys
=sunos4-0
;;
2911 *-sunos4.1.
[3-9]*noshare
)
2912 ## This name is sunos413 instead of sunos4-1-3
2913 ## to avoid a file name conflict on MSDOS.
2915 NON_GNU_CPP
=/usr
/lib
/cpp
2916 NON_GCC_TEST_OPTIONS
=-Bstatic
2917 GCC_TEST_OPTIONS
=-static
2919 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2921 NON_GNU_CPP
=/usr
/lib
/cpp
2923 *-sunos4* |
*-sunos )
2925 NON_GCC_TEST_OPTIONS
=-Bstatic
2926 GCC_TEST_OPTIONS
=-static
2928 *-sunos5.3
* |
*-solaris2.3
* )
2930 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2932 *-sunos5.4
* |
*-solaris2.4
* )
2934 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2937 *-sunos5.5
* |
*-solaris2.5
* )
2939 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2942 *-sunos5.6
* |
*-solaris2.6
* )
2944 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2947 *-sunos5* |
*-solaris* )
2949 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2953 ## Watch out for a compiler that we know will not work.
2954 case "${canonical}" in
2955 *-solaris* |
*-sunos5* )
2956 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2957 ## /usr/ucb/cc doesn't work;
2958 ## we should find some other compiler that does work.
2966 machine
=sparc opsys
=nextstep
2970 m68
*-tadpole-sysv* )
2971 machine
=tad68k opsys
=usg5-3
2975 tahoe-tahoe-bsd4.2
* )
2976 machine
=tahoe opsys
=bsd4-2
2978 tahoe-tahoe-bsd4.3
* )
2979 machine
=tahoe opsys
=bsd4-3
2982 ## Tandem Integrity S2
2984 machine
=tandem-s2 opsys
=usg5-3
2988 m88k-tektronix-sysv3
* )
2989 machine
=tekxd88 opsys
=usg5-3
2992 ## Tektronix 16000 box (6130?)
2993 ns16k-tektronix-bsd
* )
2994 machine
=ns16000 opsys
=bsd4-2
2997 ## src/m/tek4300.h hints that this is a m68k machine.
2998 m68
*-tektronix-bsd* )
2999 machine
=tek4300 opsys
=bsd4-3
3003 ## We seem to have lost the machine-description file titan.h!
3005 machine
=titan opsys
=usg5-3
3008 ## Ustation E30 (SS5E)
3009 m68
*-unisys-uniplus* )
3010 machine
=ustation opsystem
=unipl5-2
3016 case "${canonical}" in
3017 *-bsd4.1
* ) opsys
=bsd4-1
;;
3018 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3019 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3020 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3021 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3022 *-vms* ) opsys
=vms
;;
3028 ns16k-whitechapel-
* )
3030 ## We don't know what sort of OS runs on these; we'll let the
3031 ## operating system guessing code below try.
3036 machine
=wicat opsys
=usg5-2
3041 machine
=ia64 opsys
=gnu-linux
3044 ## Intel 386 machines where we don't care about the manufacturer
3047 case "${canonical}" in
3048 *-cygwin ) opsys
=cygwin
;;
3049 *-darwin* ) opsys
=darwin
3050 CPP
="${CC-cc} -E -no-cpp-precomp"
3052 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3053 *-isc2.2
* ) opsys
=isc2-2
;;
3054 *-isc4.0
* ) opsys
=isc4-0
;;
3055 *-isc4.
* ) opsys
=isc4-1
3056 GCC_TEST_OPTIONS
=-posix
3057 NON_GCC_TEST_OPTIONS
=-Xp
3059 *-isc* ) opsys
=isc3-0
;;
3060 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3061 *-esix* ) opsys
=esix
;;
3062 *-xenix* ) opsys
=xenix
;;
3063 *-linux-gnu* ) opsys
=gnu-linux
;;
3064 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3065 *-sco3.2v5
* ) opsys
=sco5
3066 NON_GNU_CPP
=/lib
/cpp
3067 # Prevent -belf from being passed to $CPP.
3068 # /lib/cpp does not accept it.
3069 OVERRIDE_CPPFLAGS
=" "
3071 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3072 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3073 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3074 *-386bsd* ) opsys
=386bsd
;;
3075 *-nextstep* ) opsys
=nextstep
;;
3076 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3080 ## m68k Linux-based GNU system
3082 machine
=m68k opsys
=gnu-linux
3085 ## Mips Linux-based GNU system
3086 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3087 machine
=mips opsys
=gnu-linux
3091 sparc-fujitsu-sysv4
* )
3092 machine
=sparc opsys
=uxpds
3093 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3098 f301-fujitsu-uxpv4.1
)
3099 machine
=f301 opsys
=uxpv
3102 ## AMD x86-64 Linux-based GNU system
3103 x86_64-
*-linux-gnu* )
3104 machine
=amdx86-64 opsys
=gnu-linux
3107 ## Tensilica Xtensa Linux-based GNU system
3108 xtensa-
*-linux-gnu* )
3109 machine
=xtensa opsys
=gnu-linux
3117 ### If the code above didn't choose an operating system, just choose
3118 ### an operating system based on the configuration name. You really
3119 ### only want to use this when you have no idea what the right
3120 ### operating system is; if you know what operating systems a machine
3121 ### runs, it's cleaner to make it explicit in the case statement
3123 if test x
"${opsys}" = x
; then
3124 case "${canonical}" in
3125 *-gnu* ) opsys
=gnu
;;
3126 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3127 *-bsd4.2
) opsys
=bsd4-2
;;
3128 *-bsd4.3
) opsys
=bsd4-3
;;
3129 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3130 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3131 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3132 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3133 *-sysv4.2uw
* ) opsys
=unixware
;;
3134 *-sysv5uw* ) opsys
=unixware
;;
3135 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3136 *-sysv4.1
* |
*-sysvr4.1
* )
3137 NON_GNU_CPP
=/usr
/lib
/cpp
3139 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3140 if [ x
$NON_GNU_CPP = x
]; then
3141 if [ -f /usr
/ccs
/lib
/cpp
]; then
3142 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3144 NON_GNU_CPP
=/lib
/cpp
3148 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3157 if test $unported = yes; then
3158 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3159 Check \`etc/MACHINES' for recognized configuration names." >&5
3160 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3161 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3162 { (exit 1); exit 1; }; }
3165 machfile
="m/${machine}.h"
3166 opsysfile
="s/${opsys}.h"
3169 #### Choose a compiler.
3170 test -n "$CC" && cc_specified
=yes
3172 # Save the value of CFLAGS that the user specified.
3173 SPECIFIED_CFLAGS
="$CFLAGS"
3176 "yes" ) CC
="gcc" GCC
=yes ;;
3177 "no" ) : ${CC=cc} ;;
3181 ac_cpp
='$CPP $CPPFLAGS'
3182 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3187 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC
="$CC" # Let the user override the test.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test -n "$CC"; then
3215 { echo "$as_me:$LINENO: result: $CC" >&5
3216 echo "${ECHO_T}$CC" >&6; }
3218 { echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6; }
3224 if test -z "$ac_cv_prog_CC"; then
3226 # Extract the first word of "gcc", so it can be a program name with args.
3227 set dummy gcc
; ac_word
=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 if test -n "$ac_ct_CC"; then
3234 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_ac_ct_CC
="gcc"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3256 echo "${ECHO_T}$ac_ct_CC" >&6; }
3258 { echo "$as_me:$LINENO: result: no" >&5
3259 echo "${ECHO_T}no" >&6; }
3262 if test "x$ac_ct_CC" = x
; then
3265 case $cross_compiling:$ac_tool_warned in
3267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3268 whose name does not start with the host triplet. If you think this
3269 configuration is useful to you, please write to autoconf@gnu.org." >&5
3270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3271 whose name does not start with the host triplet. If you think this
3272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3273 ac_tool_warned
=yes ;;
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC
="$CC" # Let the user override the test.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { echo "$as_me:$LINENO: result: $CC" >&5
3313 echo "${ECHO_T}$CC" >&6; }
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3322 if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc
; ac_word
=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC
="$CC" # Let the user override the test.
3334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir
=.
3339 for ac_exec_ext
in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected
=yes
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy
$ac_cv_prog_CC
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3362 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3368 if test -n "$CC"; then
3369 { echo "$as_me:$LINENO: result: $CC" >&5
3370 echo "${ECHO_T}$CC" >&6; }
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog
in cl.exe
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC
="$CC" # Let the user override the test.
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir
=.
3397 for ac_exec_ext
in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$CC"; then
3411 { echo "$as_me:$LINENO: result: $CC" >&5
3412 echo "${ECHO_T}$CC" >&6; }
3414 { echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6; }
3419 test -n "$CC" && break
3422 if test -z "$CC"; then
3424 for ac_prog
in cl.exe
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy
$ac_prog; ac_word
=$2
3428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir
=.
3441 for ac_exec_ext
in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC
="$ac_prog"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456 echo "${ECHO_T}$ac_ct_CC" >&6; }
3458 { echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6; }
3463 test -n "$ac_ct_CC" && break
3466 if test "x$ac_ct_CC" = x
; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3472 whose name does not start with the host triplet. If you think this
3473 configuration is useful to you, please write to autoconf@gnu.org." >&5
3474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet. If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3477 ac_tool_warned
=yes ;;
3486 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3492 # Provide some information about the compiler.
3493 echo "$as_me:$LINENO: checking for C compiler version" >&5
3494 ac_compiler
=`set X $ac_compile; echo $2`
3495 { (ac_try
="$ac_compiler --version >&5"
3497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compiler --version >&5") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 { (ac_try="$ac_compiler -v >&5"
3507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3508 *) ac_try_echo
=$ac_try;;
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_compiler -v >&5") 2>&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3515 { (ac_try
="$ac_compiler -V >&5"
3517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compiler -V >&5") 2>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 ac_clean_files_save=$ac_clean_files
3542 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3543 # Try to create an executable without -o first, disregard a.out.
3544 # It will help us diagnose broken compilers, and finding out an intuition
3546 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3547 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3548 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3550 # List of possible output files, starting from the most likely.
3551 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3552 # only as a last resort. b.out is created by i960 compilers.
3553 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3555 # The IRIX 6 linker writes into existing files which may not be
3556 # executable, retaining their permissions. Remove them first so a
3557 # subsequent execution test works.
3559 for ac_file in $ac_files
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3568 if { (ac_try="$ac_link_default"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_link_default") 2>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; then
3578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3579 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3580 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3581 # so that the user can short-circuit this test for compilers unknown to
3583 for ac_file
in $ac_files ''
3585 test -f "$ac_file" ||
continue
3587 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3590 # We found the default executable, but exeext='' is most
3594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3596 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598 # We set ac_cv_exeext here because the later test for it is not
3599 # safe: cross compilers may not add the suffix if given an `-o'
3600 # argument, so we may need to know it at that point already.
3601 # Even if this section looks crufty: it has the advantage of
3608 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3614 { echo "$as_me:$LINENO: result: $ac_file" >&5
3615 echo "${ECHO_T}$ac_file" >&6; }
3616 if test -z "$ac_file"; then
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3620 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3621 See \`config.log' for more details." >&5
3622 echo "$as_me: error: C compiler cannot create executables
3623 See \`config.log' for more details." >&2;}
3624 { (exit 77); exit 77; }; }
3627 ac_exeext
=$ac_cv_exeext
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3632 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3633 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3634 # If not cross compiling, check that we can run a simple program.
3635 if test "$cross_compiling" != yes; then
3636 if { ac_try
='./$ac_file'
3637 { (case "(($ac_try" in
3638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3648 if test "$cross_compiling" = maybe; then
3651 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3652 If you meant to cross compile, use \`--host'.
3653 See \`config.log' for more details.
" >&5
3654 echo "$as_me: error
: cannot run C compiled programs.
3655 If you meant to cross compile
, use \
`--host'.
3656 See \`config.log
' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3661 { echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6; }
3664 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3665 ac_clean_files=$ac_clean_files_save
3666 # Check that the compiler produces executables we can run. If not, either
3667 # the compiler is broken, or we cross compile.
3668 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3669 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3670 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3671 echo "${ECHO_T}$cross_compiling" >&6; }
3673 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3674 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3675 if { (ac_try="$ac_link"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_link") 2>&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; then
3685 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3686 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3687 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3689 for ac_file
in conftest.exe conftest conftest.
*; do
3690 test -f "$ac_file" ||
continue
3692 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3693 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3699 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3700 See \`config.log' for more details." >&5
3701 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3702 See \`config.log' for more details." >&2;}
3703 { (exit 1); exit 1; }; }
3706 rm -f conftest
$ac_cv_exeext
3707 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3708 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3710 rm -f conftest.
$ac_ext
3711 EXEEXT
=$ac_cv_exeext
3713 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3714 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3715 if test "${ac_cv_objext+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 cat >conftest.
$ac_ext <<_ACEOF
3721 cat confdefs.h
>>conftest.
$ac_ext
3722 cat >>conftest.
$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3733 rm -f conftest.o conftest.obj
3734 if { (ac_try
="$ac_compile"
3736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_compile") 2>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; then
3744 for ac_file in conftest.o conftest.obj conftest.*; do
3745 test -f "$ac_file" || continue;
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3757 See \`config.log
' for more details." >&5
3758 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3759 See \`config.log' for more details.
" >&2;}
3760 { (exit 1); exit 1; }; }
3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3765 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3766 echo "${ECHO_T}$ac_cv_objext" >&6; }
3767 OBJEXT=$ac_cv_objext
3769 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3770 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3771 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3772 echo $ECHO_N "(cached
) $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3811 echo "$as_me: failed program was
:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3821 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3823 GCC=`test $ac_compiler_gnu = yes && echo yes`
3824 ac_test_CFLAGS=${CFLAGS+set}
3825 ac_save_CFLAGS=$CFLAGS
3826 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3827 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3828 if test "${ac_cv_prog_cc_g+set}" = set; then
3829 echo $ECHO_N "(cached
) $ECHO_C" >&6
3831 ac_save_c_werror_flag=$ac_c_werror_flag
3832 ac_c_werror_flag=yes
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3869 echo "$as_me: failed program was
:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_compile") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest.$ac_objext; then
3907 echo "$as_me: failed program was
:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3946 echo "$as_me: failed program was
:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_c_werror_flag=$ac_save_c_werror_flag
3961 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3962 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3963 if test "$ac_test_CFLAGS" = set; then
3964 CFLAGS=$ac_save_CFLAGS
3965 elif test $ac_cv_prog_cc_g = yes; then
3966 if test "$GCC" = yes; then
3972 if test "$GCC" = yes; then
3978 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3979 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3980 if test "${ac_cv_prog_cc_c89+set}" = set; then
3981 echo $ECHO_N "(cached
) $ECHO_C" >&6
3983 ac_cv_prog_cc_c89=no
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3993 #include <sys/types.h>
3994 #include <sys/stat.h>
3995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3996 struct buf { int x; };
3997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998 static char *e (p, i)
4004 static char *f (char * (*g) (char **, int), char **p, ...)
4009 s = g (p, va_arg (v,int));
4014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4015 function prototypes and stuff, but not '\xHH' hex character constants.
4016 These don't provoke an error unfortunately, instead are silently treated
4017 as 'x'. The following induces an error, until -std is added to get
4018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4019 array size at least. It's necessary to write '\x00'==0 to get something
4020 that's true only with -std. */
4021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024 inside strings and character constants. */
4026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028 int test (int i, double x);
4029 struct s1 {int (*f) (int a);};
4030 struct s2 {int (*f) (double a);};
4031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 CC="$ac_save_CC $ac_arg"
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4059 (exit $ac_status); } && {
4060 test -z "$ac_c_werror_flag" ||
4061 test ! -s conftest.err
4062 } && test -s conftest.$ac_objext; then
4063 ac_cv_prog_cc_c89=$ac_arg
4065 echo "$as_me: failed program was
:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4071 rm -f core conftest.err conftest.$ac_objext
4072 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4074 rm -f conftest.$ac_ext
4079 case "x
$ac_cv_prog_cc_c89" in
4081 { echo "$as_me:$LINENO: result
: none needed
" >&5
4082 echo "${ECHO_T}none needed
" >&6; } ;;
4084 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4085 echo "${ECHO_T}unsupported
" >&6; } ;;
4087 CC="$CC $ac_cv_prog_cc_c89"
4088 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4089 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100 # On Suns, sometimes $CPP names a directory.
4101 if test -n "$CPP" && test -d "$CPP"; then
4105 #### Some systems specify a CPP to use unless we are using GCC.
4106 #### Now that we know whether we are using GCC, we can decide whether
4107 #### to use that one.
4108 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4113 #### Some systems specify a CC to use unless we are using GCC.
4114 #### Now that we know whether we are using GCC, we can decide whether
4115 #### to use that one.
4116 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4117 test x$cc_specified != xyes
4122 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4124 CC="$CC $GCC_TEST_OPTIONS"
4127 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4129 CC="$CC $NON_GCC_TEST_OPTIONS"
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4139 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4140 # On Suns, sometimes $CPP names a directory.
4141 if test -n "$CPP" && test -d "$CPP"; then
4144 if test -z "$CPP"; then
4145 if test "${ac_cv_prog_CPP+set}" = set; then
4146 echo $ECHO_N "(cached
) $ECHO_C" >&6
4148 # Double quotes because CPP needs to be expanded
4149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4152 for ac_c_preproc_warn_flag in '' yes
4154 # Use a header file that comes with gcc, so configuring glibc
4155 # with a fresh cross-compiler works.
4156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4157 # <limits.h> exists even on freestanding compilers.
4158 # On the NeXT, cc -E runs the code through the compiler's parser,
4159 # not just through cpp. "Syntax error
" is here to catch this case.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4167 # include <limits.h>
4169 # include <assert.h>
4173 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4185 (exit $ac_status); } >/dev/null && {
4186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4191 echo "$as_me: failed program was
:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 # Broken: fails on valid input.
4198 rm -f conftest.err conftest.$ac_ext
4200 # OK, works on sane cases. Now check whether nonexistent headers
4201 # can be detected and how.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #include <ac_nonexistent.h>
4210 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4222 (exit $ac_status); } >/dev/null && {
4223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4226 # Broken: success on invalid input.
4229 echo "$as_me: failed program was
:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4232 # Passes both tests.
4237 rm -f conftest.err conftest.$ac_ext
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then
4254 { echo "$as_me:$LINENO: result
: $CPP" >&5
4255 echo "${ECHO_T}$CPP" >&6; }
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error
" is here to catch this case.
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4272 # include <limits.h>
4274 # include <assert.h>
4278 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4290 (exit $ac_status); } >/dev/null && {
4291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4296 echo "$as_me: failed program was
:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 # Broken: fails on valid input.
4303 rm -f conftest.err conftest.$ac_ext
4305 # OK, works on sane cases. Now check whether nonexistent headers
4306 # can be detected and how.
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #include <ac_nonexistent.h>
4315 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4323 grep -v '^ *+' conftest.er1 >conftest.err
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4327 (exit $ac_status); } >/dev/null && {
4328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4331 # Broken: success on invalid input.
4334 echo "$as_me: failed program was
:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4337 # Passes both tests.
4342 rm -f conftest.err conftest.$ac_ext
4345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346 rm -f conftest.err conftest.$ac_ext
4347 if $ac_preproc_ok; then
4350 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4351 See \
`config.log' for more details." >&5
4352 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4353 See \`config.log
' for more details." >&2;}
4354 { (exit 1); exit 1; }; }
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4360 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4365 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_GREP+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 # Extract the first word of "grep ggrep" to use in msg output
4370 if test -z "$GREP"; then
4371 set dummy grep ggrep; ac_prog_name=$2
4372 if test "${ac_cv_path_GREP+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_path_GREP_found=false
4376 # Loop through the user's path and
test for each of PROGNAME-LIST
4377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4378 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4381 test -z "$as_dir" && as_dir
=.
4382 for ac_prog
in grep ggrep
; do
4383 for ac_exec_ext
in '' $ac_executable_extensions; do
4384 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4386 # Check for GNU ac_path_GREP and select it if it is found.
4387 # Check for GNU $ac_path_GREP
4388 case `"$ac_path_GREP" --version 2>&1` in
4390 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 echo 'GREP' >> "conftest.nl"
4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4401 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4402 ac_count
=`expr $ac_count + 1`
4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_GREP
="$ac_path_GREP"
4406 ac_path_GREP_max
=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4411 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4415 $ac_path_GREP_found && break 3
4425 GREP
="$ac_cv_path_GREP"
4426 if test -z "$GREP"; then
4427 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4428 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4429 { (exit 1); exit 1; }; }
4433 ac_cv_path_GREP
=$GREP
4438 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4439 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4440 GREP
="$ac_cv_path_GREP"
4443 { echo "$as_me:$LINENO: checking for egrep" >&5
4444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4445 if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4449 then ac_cv_path_EGREP
="$GREP -E"
4451 # Extract the first word of "egrep" to use in msg output
4452 if test -z "$EGREP"; then
4453 set dummy
egrep; ac_prog_name
=$2
4454 if test "${ac_cv_path_EGREP+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_path_EGREP_found
=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4463 test -z "$as_dir" && as_dir
=.
4464 for ac_prog
in egrep; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4468 # Check for GNU ac_path_EGREP and select it if it is found.
4469 # Check for GNU $ac_path_EGREP
4470 case `"$ac_path_EGREP" --version 2>&1` in
4472 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4475 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 echo 'EGREP' >> "conftest.nl"
4482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4483 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4484 ac_count
=`expr $ac_count + 1`
4485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_EGREP
="$ac_path_EGREP"
4488 ac_path_EGREP_max
=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4493 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4497 $ac_path_EGREP_found && break 3
4507 EGREP
="$ac_cv_path_EGREP"
4508 if test -z "$EGREP"; then
4509 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4510 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4511 { (exit 1); exit 1; }; }
4515 ac_cv_path_EGREP
=$EGREP
4521 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4522 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4523 EGREP
="$ac_cv_path_EGREP"
4527 { echo "$as_me:$LINENO: checking for AIX" >&5
4528 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4529 cat >conftest.
$ac_ext <<_ACEOF
4532 cat confdefs.h
>>conftest.
$ac_ext
4533 cat >>conftest.
$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 $EGREP "yes" >/dev
/null
2>&1; then
4542 { echo "$as_me:$LINENO: result: yes" >&5
4543 echo "${ECHO_T}yes" >&6; }
4544 cat >>confdefs.h
<<\_ACEOF
4545 #define _ALL_SOURCE 1
4549 { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4556 cat >>confdefs.h
<<\_ACEOF
4557 #define _GNU_SOURCE 1
4562 ### Use -Wno-pointer-sign if the compiler supports it
4563 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4564 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4565 SAVE_CFLAGS
="$CFLAGS"
4566 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4567 cat >conftest.
$ac_ext <<_ACEOF
4570 cat confdefs.h
>>conftest.
$ac_ext
4571 cat >>conftest.
$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4582 rm -f conftest.
$ac_objext
4583 if { (ac_try
="$ac_compile"
4585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_compile") 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } && {
4596 test -z "$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 } && test -s conftest.$ac_objext; then
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 if test $has_option = yes; then
4609 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4611 { echo "$as_me:$LINENO: result: $has_option" >&5
4612 echo "${ECHO_T}$has_option" >&6; }
4613 CFLAGS="$SAVE_CFLAGS"
4617 #### Some other nice autoconf tests.
4619 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4620 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4622 if test "$LN_S" = "ln -s"; then
4623 { echo "$as_me:$LINENO: result: yes" >&5
4624 echo "${ECHO_T}yes" >&6; }
4626 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4627 echo "${ECHO_T}no, using $LN_S" >&6; }
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4637 # On Suns, sometimes $CPP names a directory.
4638 if test -n "$CPP" && test -d "$CPP"; then
4641 if test -z "$CPP"; then
4642 if test "${ac_cv_prog_CPP+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 # Double quotes because CPP needs to be expanded
4646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4649 for ac_c_preproc_warn_flag in '' yes
4651 # Use a header file that comes with gcc, so configuring glibc
4652 # with a fresh cross-compiler works.
4653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4654 # <limits.h> exists even on freestanding compilers.
4655 # On the NeXT, cc -E runs the code through the compiler's parser,
4656 # not just through cpp. "Syntax error" is here to catch this case.
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4664 # include <limits.h>
4666 # include <assert.h>
4670 if { (ac_try="$ac_cpp conftest.$ac_ext"
4672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4673 *) ac_try_echo
=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1
>conftest.err
4680 cat conftest.err
>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } >/dev
/null
&& {
4683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.
$ac_ext >&5
4691 # Broken: fails on valid input.
4695 rm -f conftest.err conftest.
$ac_ext
4697 # OK, works on sane cases. Now check whether nonexistent headers
4698 # can be detected and how.
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #include <ac_nonexistent.h>
4707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } >/dev/null && {
4720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4723 # Broken: success on invalid input.
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 # Passes both tests.
4734 rm -f conftest.err conftest.$ac_ext
4737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4738 rm -f conftest.err conftest.
$ac_ext
4739 if $ac_preproc_ok; then
4751 { echo "$as_me:$LINENO: result: $CPP" >&5
4752 echo "${ECHO_T}$CPP" >&6; }
4754 for ac_c_preproc_warn_flag
in '' yes
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.
$ac_ext <<_ACEOF
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4769 # include <limits.h>
4771 # include <assert.h>
4775 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null && {
4788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 # Broken: fails on valid input.
4800 rm -f conftest.err conftest.$ac_ext
4802 # OK, works on sane cases. Now check whether nonexistent headers
4803 # can be detected and how.
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #include <ac_nonexistent.h>
4812 if { (ac_try="$ac_cpp conftest.$ac_ext"
4814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4815 *) ac_try_echo
=$ac_try;;
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4820 grep -v '^ *+' conftest.er1
>conftest.err
4822 cat conftest.err
>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev
/null
&& {
4825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4828 # Broken: success on invalid input.
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.
$ac_ext >&5
4834 # Passes both tests.
4839 rm -f conftest.err conftest.
$ac_ext
4842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843 rm -f conftest.err conftest.
$ac_ext
4844 if $ac_preproc_ok; then
4847 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4848 See \`config.log' for more details." >&5
4849 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4850 See \`config.log' for more details." >&2;}
4851 { (exit 1); exit 1; }; }
4855 ac_cpp
='$CPP $CPPFLAGS'
4856 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4860 # Find a good install program. We prefer a C program (faster),
4861 # so one script is as good as another. But avoid the broken or
4862 # incompatible versions:
4863 # SysV /etc/install, /usr/sbin/install
4864 # SunOS /usr/etc/install
4865 # IRIX /sbin/install
4867 # AmigaOS /C/install, which installs bootblocks on floppy discs
4868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4871 # OS/2's system install, which has a completely different semantic
4872 # ./install, which can be erroneously created by make from ./install.sh.
4873 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4874 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4875 if test -z "$INSTALL"; then
4876 if test "${ac_cv_path_install+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 # Account for people who put trailing slashes in PATH elements.
4886 .
/ | .
// |
/cC
/* | \
4887 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4888 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4891 # OSF1 and SCO ODT 3.0 have their own names for install.
4892 # Don't use installbsd from OSF since it installs stuff as root
4894 for ac_prog
in ginstall scoinst
install; do
4895 for ac_exec_ext
in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4897 if test $ac_prog = install &&
4898 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4899 # AIX install. It has an incompatible calling convention.
4901 elif test $ac_prog = install &&
4902 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4903 # program-specific install script used by HP pwplus--don't use.
4906 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4919 if test "${ac_cv_path_install+set}" = set; then
4920 INSTALL
=$ac_cv_path_install
4922 # As a last resort, use the slow shell script. Don't cache a
4923 # value for INSTALL within a source directory, because that will
4924 # break other packages using the cache if that directory is
4925 # removed, or if the value is a relative name.
4926 INSTALL
=$ac_install_sh
4929 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4930 echo "${ECHO_T}$INSTALL" >&6; }
4932 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4933 # It thinks the first close brace ends the variable substitution.
4934 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4936 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4938 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4940 if test "x$RANLIB" = x
; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4943 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_prog_RANLIB+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 if test -n "$RANLIB"; then
4950 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir
=.
4957 for ac_exec_ext
in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 RANLIB
=$ac_cv_prog_RANLIB
4970 if test -n "$RANLIB"; then
4971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4972 echo "${ECHO_T}$RANLIB" >&6; }
4974 { echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6; }
4980 if test -z "$ac_cv_prog_RANLIB"; then
4981 ac_ct_RANLIB
=$RANLIB
4982 # Extract the first word of "ranlib", so it can be a program name with args.
4983 set dummy ranlib
; ac_word
=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 if test -n "$ac_ct_RANLIB"; then
4990 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir
=.
4997 for ac_exec_ext
in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5010 if test -n "$ac_ct_RANLIB"; then
5011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5018 if test "x$ac_ct_RANLIB" = x
; then
5021 case $cross_compiling:$ac_tool_warned in
5023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5024 whose name does not start with the host triplet. If you think this
5025 configuration is useful to you, please write to autoconf@gnu.org." >&5
5026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5027 whose name does not start with the host triplet. If you think this
5028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5029 ac_tool_warned
=yes ;;
5031 RANLIB
=$ac_ct_RANLIB
5034 RANLIB
="$ac_cv_prog_RANLIB"
5038 # Extract the first word of "install-info", so it can be a program name with args.
5039 set dummy install-info
; ac_word
=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 case $INSTALL_INFO in
5047 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5069 if test -n "$INSTALL_INFO"; then
5070 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5071 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5073 { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5078 # Extract the first word of "install-info", so it can be a program name with args.
5079 set dummy install-info
; ac_word
=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 case $INSTALL_INFO in
5087 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5091 for as_dir
in /usr
/sbin
5094 test -z "$as_dir" && as_dir
=.
5095 for ac_exec_ext
in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5109 if test -n "$INSTALL_INFO"; then
5110 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5111 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5113 { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5118 # Extract the first word of "install-info", so it can be a program name with args.
5119 set dummy install-info
; ac_word
=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 case $INSTALL_INFO in
5127 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir
=.
5135 for ac_exec_ext
in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5149 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5150 if test -n "$INSTALL_INFO"; then
5151 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5152 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5159 # Extract the first word of "gzip", so it can be a program name with args.
5160 set dummy
gzip; ac_word
=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir
=.
5176 for ac_exec_ext
in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5190 if test -n "$GZIP_PROG"; then
5191 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5192 echo "${ECHO_T}$GZIP_PROG" >&6; }
5194 { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5201 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5203 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5206 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5208 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5212 late_LDFLAGS
=$LDFLAGS
5213 if test "$GCC" = yes; then
5214 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5216 LDFLAGS
="$LDFLAGS -znocombreloc"
5219 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5220 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5221 cat >conftest.
$ac_ext <<_ACEOF
5224 rm -f conftest.
$ac_objext conftest
$ac_exeext
5225 if { (ac_try
="$ac_link"
5227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_link") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest$ac_exeext &&
5241 $as_test_x conftest$ac_exeext; then
5242 { echo "$as_me:$LINENO: result: yes" >&5
5243 echo "${ECHO_T}yes" >&6; }
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 LDFLAGS=$late_LDFLAGS
5249 { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5254 conftest$ac_exeext conftest.$ac_ext
5256 #### Extract some information from the operating system and machine files.
5258 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5259 - which libraries the lib-src programs will want, and
5260 - whether the GNU malloc routines are usable..." >&5
5261 echo "$as_me: checking the machine- and system-dependent files to find out
5262 - which libraries the lib-src programs will want, and
5263 - whether the GNU malloc routines are usable..." >&6;}
5265 ### First figure out CFLAGS (which we use for running the compiler here)
5266 ### and REAL_CFLAGS (which we use for real compilation).
5267 ### The two are the same except on a few systems, where they are made
5268 ### different to work around various lossages. For example,
5269 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5270 ### as implying static linking.
5272 ### If the CFLAGS env var is specified, we use that value
5273 ### instead of the default.
5275 ### It's not important that this name contain the PID; you can't run
5276 ### two configures in the same directory and have anything work
5278 tempcname="conftest.c"
5281 #include "'${srcdir}'/src/'${opsysfile}'"
5282 #include "'${srcdir}'/src/'${machfile}'"
5283 #ifndef LIBS_MACHINE
5284 #define LIBS_MACHINE
5289 #ifndef C_SWITCH_SYSTEM
5290 #define C_SWITCH_SYSTEM
5292 #ifndef C_SWITCH_MACHINE
5293 #define C_SWITCH_MACHINE
5295 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5296 configure___ c_switch_system=C_SWITCH_SYSTEM
5297 configure___ c_switch_machine=C_SWITCH_MACHINE
5300 #define LIB_X11_LIB -lX11
5303 #ifndef LIBX11_MACHINE
5304 #define LIBX11_MACHINE
5307 #ifndef LIBX11_SYSTEM
5308 #define LIBX11_SYSTEM
5310 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5313 configure___ unexec=UNEXEC
5315 configure___ unexec=unexec.o
5318 #ifdef SYSTEM_MALLOC
5319 configure___ system_malloc=yes
5321 configure___ system_malloc=no
5324 #ifdef USE_MMAP_FOR_BUFFERS
5325 configure___ use_mmap_for_buffers=yes
5327 configure___ use_mmap_for_buffers=no
5330 #ifndef C_DEBUG_SWITCH
5331 #define C_DEBUG_SWITCH -g
5334 #ifndef C_OPTIMIZE_SWITCH
5336 #define C_OPTIMIZE_SWITCH -O2
5338 #define C_OPTIMIZE_SWITCH -O
5342 #ifndef C_WARNINGS_SWITCH
5343 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5346 #ifndef LD_SWITCH_MACHINE
5347 #define LD_SWITCH_MACHINE
5350 #ifndef LD_SWITCH_SYSTEM
5351 #define LD_SWITCH_SYSTEM
5354 #ifndef LD_SWITCH_X_SITE_AUX
5355 #define LD_SWITCH_X_SITE_AUX
5358 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5359 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5361 #ifdef THIS_IS_CONFIGURE
5363 /* Get the CFLAGS for tests in configure. */
5365 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5367 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5370 #else /* not THIS_IS_CONFIGURE */
5372 /* Get the CFLAGS for real compilation. */
5374 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5376 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5379 #endif /* not THIS_IS_CONFIGURE */
5382 # The value of CPP is a quoted variable reference, so we need to do this
5383 # to get its actual value...
5384 CPP=`eval "echo $CPP"`
5385 eval `${CPP} -Isrc ${tempcname} \
5386 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5387 if test "x$SPECIFIED_CFLAGS" = x; then
5388 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5389 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5391 REAL_CFLAGS="$CFLAGS"
5395 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5397 ### Make sure subsequent tests use flags consistent with the build flags.
5399 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5400 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5402 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5407 # Check whether --enable-largefile was given.
5408 if test "${enable_largefile+set}" = set; then
5409 enableval=$enable_largefile;
5412 if test "$enable_largefile" != no; then
5414 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5415 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5416 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 ac_cv_sys_largefile_CC=no
5420 if test "$GCC" != yes; then
5423 # IRIX 6.2 and later do not support large files by default,
5424 # so use the C compiler's -n32 option if that helps.
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 /* Check that off_t can represent 2**63 - 1 correctly.
5433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434 since some C++ compilers masquerading as C compilers
5435 incorrectly reject 9223372036854775807. */
5436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438 && LARGE_OFF_T % 2147483647 == 1)
5448 rm -f conftest.$ac_objext
5449 if { (ac_try="$ac_compile"
5451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5452 *) ac_try_echo
=$ac_try;;
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_compile") 2>conftest.er1
5457 grep -v '^ *+' conftest.er1
>conftest.err
5459 cat conftest.err
>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && {
5462 test -z "$ac_c_werror_flag" ||
5463 test ! -s conftest.err
5464 } && test -s conftest.
$ac_objext; then
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.
$ac_ext >&5
5473 rm -f core conftest.err conftest.
$ac_objext
5475 rm -f conftest.
$ac_objext
5476 if { (ac_try
="$ac_compile"
5478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 ac_cv_sys_largefile_CC=' -n32'; break
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5500 rm -f core conftest.err conftest.$ac_objext
5504 rm -f conftest.$ac_ext
5507 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5508 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5509 if test "$ac_cv_sys_largefile_CC" != no; then
5510 CC=$CC$ac_cv_sys_largefile_CC
5513 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5514 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 /* Check that off_t can represent 2**63 - 1 correctly.
5527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5528 since some C++ compilers masquerading as C compilers
5529 incorrectly reject 9223372036854775807. */
5530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5532 && LARGE_OFF_T % 2147483647 == 1)
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5546 *) ac_try_echo
=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1
>conftest.err
5553 cat conftest.err
>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.
$ac_objext; then
5559 ac_cv_sys_file_offset_bits
=no
; break
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.
$ac_ext >&5
5567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #define _FILE_OFFSET_BITS 64
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5592 rm -f conftest.
$ac_objext
5593 if { (ac_try
="$ac_compile"
5595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.$ac_objext; then
5609 ac_cv_sys_file_offset_bits=64; break
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618 ac_cv_sys_file_offset_bits=unknown
5622 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5623 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5624 case $ac_cv_sys_file_offset_bits in #(
5627 cat >>confdefs.h <<_ACEOF
5628 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5633 if test $ac_cv_sys_file_offset_bits = unknown; then
5634 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5635 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5636 if test "${ac_cv_sys_large_files+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #include <sys/types.h>
5647 /* Check that off_t can represent 2**63 - 1 correctly.
5648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5649 since some C++ compilers masquerading as C compilers
5650 incorrectly reject 9223372036854775807. */
5651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5653 && LARGE_OFF_T % 2147483647 == 1)
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5667 *) ac_try_echo
=$ac_try;;
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5672 grep -v '^ *+' conftest.er1
>conftest.err
5674 cat conftest.err
>&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.
$ac_objext; then
5680 ac_cv_sys_large_files
=no
; break
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.
$ac_ext >&5
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 cat >conftest.
$ac_ext <<_ACEOF
5692 cat confdefs.h
>>conftest.
$ac_ext
5693 cat >>conftest.
$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 #define _LARGE_FILES 1
5696 #include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5713 rm -f conftest.
$ac_objext
5714 if { (ac_try
="$ac_compile"
5716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5722 grep -v '^ *+' conftest.er1 >conftest.err
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_c_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 ac_cv_sys_large_files=1; break
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 ac_cv_sys_large_files=unknown
5743 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5744 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5745 case $ac_cv_sys_large_files in #(
5748 cat >>confdefs.h <<_ACEOF
5749 #define _LARGE_FILES $ac_cv_sys_large_files
5759 ### The standard library on x86-64 GNU/Linux distributions can
5760 ### be located in either /usr/lib64 or /usr/lib.
5761 case "${canonical}" in
5762 x86_64-*-linux-gnu* )
5763 if test -d /usr/lib64; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAVE_X86_64_LIB64_DIR 1
5775 if test "${with_sound}" != "no"; then
5776 # Sound support for GNU/Linux and the free BSDs.
5777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5779 if test "${ac_cv_header_stdc+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5805 *) ac_try_echo
=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1
>conftest.err
5812 cat conftest.err
>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.
$ac_objext; then
5818 ac_cv_header_stdc
=yes
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.
$ac_ext >&5
5823 ac_cv_header_stdc
=no
5826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 if test $ac_cv_header_stdc = yes; then
5829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5830 cat >conftest.
$ac_ext <<_ACEOF
5833 cat confdefs.h
>>conftest.
$ac_ext
5834 cat >>conftest.
$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5840 $EGREP "memchr" >/dev
/null
2>&1; then
5843 ac_cv_header_stdc
=no
5849 if test $ac_cv_header_stdc = yes; then
5850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5851 cat >conftest.
$ac_ext <<_ACEOF
5854 cat confdefs.h
>>conftest.
$ac_ext
5855 cat >>conftest.
$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP "free" >/dev
/null
2>&1; then
5864 ac_cv_header_stdc
=no
5870 if test $ac_cv_header_stdc = yes; then
5871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5872 if test "$cross_compiling" = yes; then
5875 cat >conftest.
$ac_ext <<_ACEOF
5878 cat confdefs.h
>>conftest.
$ac_ext
5879 cat >>conftest.
$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5883 #if ((' ' & 0x0FF) == 0x020)
5884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5887 # define ISLOWER(c) \
5888 (('a' <= (c) && (c) <= 'i') \
5889 || ('j' <= (c) && (c) <= 'r') \
5890 || ('s' <= (c) && (c) <= 'z'))
5891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5899 for (i = 0; i < 256; i++)
5900 if (XOR (islower (i), ISLOWER (i))
5901 || toupper (i) != TOUPPER (i))
5906 rm -f conftest
$ac_exeext
5907 if { (ac_try
="$ac_link"
5909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_link") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5917 { (case "(($ac_try" in
5918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5919 *) ac_try_echo
=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_try") 2>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5928 echo "$as_me: program exited with status $ac_status" >&5
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.
$ac_ext >&5
5933 ac_cv_header_stdc
=no
5935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5941 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5942 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5943 if test $ac_cv_header_stdc = yes; then
5945 cat >>confdefs.h
<<\_ACEOF
5946 #define STDC_HEADERS 1
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5961 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5962 inttypes.h stdint.h unistd.h
5964 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5967 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 cat >conftest.
$ac_ext <<_ACEOF
5973 cat confdefs.h
>>conftest.
$ac_ext
5974 cat >>conftest.
$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 $ac_includes_default
5978 #include <$ac_header>
5980 rm -f conftest.
$ac_objext
5981 if { (ac_try
="$ac_compile"
5983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 eval "$as_ac_Header=yes"
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 eval "$as_ac_Header=no"
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 ac_res=`eval echo '${'$as_ac_Header'}'`
6008 { echo "$as_me:$LINENO: result: $ac_res" >&5
6009 echo "${ECHO_T}$ac_res" >&6; }
6010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6011 cat >>confdefs.h <<_ACEOF
6012 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6023 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6025 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_res=`eval echo '${'$as_ac_Header'}'`
6033 { echo "$as_me:$LINENO: result: $ac_res" >&5
6034 echo "${ECHO_T}$ac_res" >&6; }
6036 # Is the header compilable?
6037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6039 cat >conftest.$ac_ext <<_ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6046 #include <$ac_header>
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6052 *) ac_try_echo
=$ac_try;;
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6057 grep -v '^ *+' conftest.er1
>conftest.err
6059 cat conftest.err
>&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest.
$ac_objext; then
6065 ac_header_compiler
=yes
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.
$ac_ext >&5
6070 ac_header_compiler
=no
6073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6; }
6077 # Is the header present?
6078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6080 cat >conftest.
$ac_ext <<_ACEOF
6083 cat confdefs.h
>>conftest.
$ac_ext
6084 cat >>conftest.
$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <$ac_header>
6088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null && {
6101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6104 ac_header_preproc=yes
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_header_preproc=no
6112 rm -f conftest.err conftest.$ac_ext
6113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114 echo "${ECHO_T}$ac_header_preproc" >&6; }
6116 # So? What about this header?
6117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6123 ac_header_preproc=yes
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 eval "$as_ac_Header=\$ac_header_preproc"
6148 ac_res=`eval echo '${'$as_ac_Header'}'`
6149 { echo "$as_me:$LINENO: result: $ac_res" >&5
6150 echo "${ECHO_T}$ac_res" >&6; }
6153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6154 cat >>confdefs.h <<_ACEOF
6155 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6162 # Emulation library used on NetBSD.
6163 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6164 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6165 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 ac_check_lib_save_LIBS=$LIBS
6169 LIBS="-lossaudio $LIBS"
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 /* Override any GCC internal prototype to avoid an error.
6178 Use char because int might match the return type of a GCC
6179 builtin and then its argument prototype would still apply. */
6187 return _oss_ioctl ();
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (ac_try="$ac_link"
6195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6196 *) ac_try_echo
=$ac_try;;
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_link") 2>conftest.er1
6201 grep -v '^ *+' conftest.er1
>conftest.err
6203 cat conftest.err
>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest
$ac_exeext &&
6209 $as_test_x conftest
$ac_exeext; then
6210 ac_cv_lib_ossaudio__oss_ioctl
=yes
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.
$ac_ext >&5
6215 ac_cv_lib_ossaudio__oss_ioctl
=no
6218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6219 conftest
$ac_exeext conftest.
$ac_ext
6220 LIBS
=$ac_check_lib_save_LIBS
6222 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6223 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6224 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6233 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6234 if test "X${with_pkg_config_prog}" != X
; then
6235 PKG_CONFIG
="${with_pkg_config_prog}"
6240 if test -z "$PKG_CONFIG"; then
6241 # Extract the first word of "pkg-config", so it can be a program name with args.
6242 set dummy pkg-config
; ac_word
=$2
6243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir
=.
6258 for ac_exec_ext
in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6272 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6273 if test -n "$PKG_CONFIG"; then
6274 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6275 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6277 { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6284 if test "$PKG_CONFIG" = "no" ; then
6287 PKG_CONFIG_MIN_VERSION
=0.9.0
6288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6289 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6290 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6292 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6293 { echo "$as_me:$LINENO: result: yes" >&5
6294 echo "${ECHO_T}yes" >&6; }
6297 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6298 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6299 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6300 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6301 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6303 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6304 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6305 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6306 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6307 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6313 ## If we have a custom action on failure, don't print errors, but
6314 ## do set a variable so people can do so.
6315 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6327 if test $succeeded = yes; then
6333 if test $HAVE_ALSA = yes; then
6334 SAVE_CFLAGS
="$CFLAGS"
6335 SAVE_LDFLAGS
="$LDFLAGS"
6336 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6337 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6338 cat >conftest.
$ac_ext <<_ACEOF
6341 cat confdefs.h
>>conftest.
$ac_ext
6342 cat >>conftest.
$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <asoundlib.h>
6348 snd_lib_error_set_handler (0);
6353 rm -f conftest.
$ac_objext
6354 if { (ac_try
="$ac_compile"
6356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6370 emacs_alsa_normal=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 emacs_alsa_normal=no
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 if test "$emacs_alsa_normal" != yes; then
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 #include <alsa/asoundlib.h>
6390 snd_lib_error_set_handler (0);
6395 rm -f conftest.$ac_objext
6396 if { (ac_try="$ac_compile"
6398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6399 *) ac_try_echo
=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1
>conftest.err
6406 cat conftest.err
>&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.
$ac_objext; then
6412 emacs_alsa_subdir
=yes
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.
$ac_ext >&5
6417 emacs_alsa_subdir
=no
6420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6421 if test "$emacs_alsa_subdir" != yes; then
6422 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6423 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6424 { (exit 1); exit 1; }; }
6426 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6429 CFLAGS
="$SAVE_CFLAGS"
6430 LDFLAGS
="$SAVE_LDFLAGS"
6431 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6432 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6434 cat >>confdefs.h
<<\_ACEOF
6468 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6469 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6470 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6471 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_res
=`eval echo '${'$as_ac_Header'}'`
6482 { echo "$as_me:$LINENO: result: $ac_res" >&5
6483 echo "${ECHO_T}$ac_res" >&6; }
6485 # Is the header compilable?
6486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6488 cat >conftest.
$ac_ext <<_ACEOF
6491 cat confdefs.h
>>conftest.
$ac_ext
6492 cat >>conftest.
$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6495 #include <$ac_header>
6497 rm -f conftest.
$ac_objext
6498 if { (ac_try
="$ac_compile"
6500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_compile") 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest.$ac_objext; then
6514 ac_header_compiler=yes
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_header_compiler=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6524 echo "${ECHO_T}$ac_header_compiler" >&6; }
6526 # Is the header present?
6527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 #include <$ac_header>
6537 if { (ac_try="$ac_cpp conftest.$ac_ext"
6539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6540 *) ac_try_echo
=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6545 grep -v '^ *+' conftest.er1
>conftest.err
6547 cat conftest.err
>&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } >/dev
/null
&& {
6550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6553 ac_header_preproc
=yes
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.
$ac_ext >&5
6558 ac_header_preproc
=no
6561 rm -f conftest.err conftest.
$ac_ext
6562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6563 echo "${ECHO_T}$ac_header_preproc" >&6; }
6565 # So? What about this header?
6566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6572 ac_header_preproc
=yes
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 eval "$as_ac_Header=\$ac_header_preproc"
6597 ac_res
=`eval echo '${'$as_ac_Header'}'`
6598 { echo "$as_me:$LINENO: result: $ac_res" >&5
6599 echo "${ECHO_T}$ac_res" >&6; }
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h
<<_ACEOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6613 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6614 cat >conftest.
$ac_ext <<_ACEOF
6617 cat confdefs.h
>>conftest.
$ac_ext
6618 cat >>conftest.
$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <sys/personality.h>
6624 personality (PER_LINUX32)
6629 rm -f conftest.
$ac_objext
6630 if { (ac_try
="$ac_compile"
6632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_compile") 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && {
6643 test -z "$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 } && test -s conftest.$ac_objext; then
6646 emacs_cv_personality_linux32=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 emacs_cv_personality_linux32=no
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6656 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6658 if test $emacs_cv_personality_linux32 = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661 #define HAVE_PERSONALITY_LINUX32 1
6667 for ac_header in term.h
6669 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <$ac_header>
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6686 *) ac_try_echo
=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1
>conftest.err
6693 cat conftest.err
>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } >/dev
/null
&& {
6696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6699 eval "$as_ac_Header=yes"
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.
$ac_ext >&5
6704 eval "$as_ac_Header=no"
6707 rm -f conftest.err conftest.
$ac_ext
6709 ac_res
=`eval echo '${'$as_ac_Header'}'`
6710 { echo "$as_me:$LINENO: result: $ac_res" >&5
6711 echo "${ECHO_T}$ac_res" >&6; }
6712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6713 cat >>confdefs.h
<<_ACEOF
6714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6721 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6723 if test "${ac_cv_header_stdc+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 cat >conftest.
$ac_ext <<_ACEOF
6729 cat confdefs.h
>>conftest.
$ac_ext
6730 cat >>conftest.
$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6745 rm -f conftest.
$ac_objext
6746 if { (ac_try
="$ac_compile"
6748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_compile") 2>conftest.er1
6754 grep -v '^ *+' conftest.er1 >conftest.err
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && {
6759 test -z "$ac_c_werror_flag" ||
6760 test ! -s conftest.err
6761 } && test -s conftest.$ac_objext; then
6762 ac_cv_header_stdc=yes
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_header_stdc=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 if test $ac_cv_header_stdc = yes; then
6773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6774 cat >conftest.$ac_ext <<_ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6784 $EGREP "memchr" >/dev/null 2>&1; then
6787 ac_cv_header_stdc=no
6793 if test $ac_cv_header_stdc = yes; then
6794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805 $EGREP "free" >/dev/null 2>&1; then
6808 ac_cv_header_stdc=no
6814 if test $ac_cv_header_stdc = yes; then
6815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6816 if test "$cross_compiling" = yes; then
6819 cat >conftest.$ac_ext <<_ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6827 #if ((' ' & 0x0FF) == 0x020)
6828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6831 # define ISLOWER(c) \
6832 (('a' <= (c) && (c) <= 'i') \
6833 || ('j' <= (c) && (c) <= 'r') \
6834 || ('s' <= (c) && (c) <= 'z'))
6835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6843 for (i = 0; i < 256; i++)
6844 if (XOR (islower (i), ISLOWER (i))
6845 || toupper (i) != TOUPPER (i))
6850 rm -f conftest$ac_exeext
6851 if { (ac_try="$ac_link"
6853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6854 *) ac_try_echo
=$ac_try;;
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_link") 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6861 { (case "(($ac_try" in
6862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_try") 2>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6872 echo "$as_me: program exited with status $ac_status" >&5
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_header_stdc=no
6879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6887 if test $ac_cv_header_stdc = yes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define STDC_HEADERS 1
6895 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6896 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6897 if test "${ac_cv_header_time+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <sys/types.h>
6907 #include <sys/time.h>
6913 if ((struct tm *) 0)
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6923 *) ac_try_echo
=$ac_try;;
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6928 grep -v '^ *+' conftest.er1
>conftest.err
6930 cat conftest.err
>&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.
$ac_objext; then
6936 ac_cv_header_time
=yes
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.
$ac_ext >&5
6941 ac_cv_header_time
=no
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6946 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6947 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6948 if test $ac_cv_header_time = yes; then
6950 cat >>confdefs.h
<<\_ACEOF
6951 #define TIME_WITH_SYS_TIME 1
6956 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6957 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6958 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 cat >conftest.
$ac_ext <<_ACEOF
6964 cat confdefs.h
>>conftest.
$ac_ext
6965 cat >>conftest.
$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 $ac_includes_default
6979 rm -f conftest.
$ac_objext
6980 if { (ac_try
="$ac_compile"
6982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_have_decl_sys_siglist=yes
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_have_decl_sys_siglist=no
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7007 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7008 if test $ac_cv_have_decl_sys_siglist = yes; then
7010 cat >>confdefs.h <<_ACEOF
7011 #define HAVE_DECL_SYS_SIGLIST 1
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_DECL_SYS_SIGLIST 0
7024 if test $ac_cv_have_decl_sys_siglist != yes; then
7025 # For Tru64, at least:
7026 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7027 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7028 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 $ac_includes_default
7041 #ifndef __sys_siglist
7042 (void) __sys_siglist;
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7053 *) ac_try_echo
=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.
$ac_objext; then
7066 ac_cv_have_decl___sys_siglist
=yes
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.
$ac_ext >&5
7071 ac_cv_have_decl___sys_siglist
=no
7074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7077 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7078 if test $ac_cv_have_decl___sys_siglist = yes; then
7080 cat >>confdefs.h
<<_ACEOF
7081 #define HAVE_DECL___SYS_SIGLIST 1
7086 cat >>confdefs.h
<<_ACEOF
7087 #define HAVE_DECL___SYS_SIGLIST 0
7094 if test $ac_cv_have_decl___sys_siglist = yes; then
7096 cat >>confdefs.h
<<\_ACEOF
7097 #define sys_siglist __sys_siglist
7102 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7103 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7104 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 cat >conftest.
$ac_ext <<_ACEOF
7110 cat confdefs.h
>>conftest.
$ac_ext
7111 cat >>conftest.
$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <sys/types.h>
7114 #include <sys/wait.h>
7116 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7119 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7132 rm -f conftest.
$ac_objext
7133 if { (ac_try
="$ac_compile"
7135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7141 grep -v '^ *+' conftest.er1 >conftest.err
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_c_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 ac_cv_header_sys_wait_h=yes
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_cv_header_sys_wait_h=no
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7161 if test $ac_cv_header_sys_wait_h = yes; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_SYS_WAIT_H 1
7170 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7171 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7172 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #ifdef TIME_WITH_SYS_TIME
7182 #include <sys/time.h>
7185 #ifdef HAVE_SYS_TIME_H
7186 #include <sys/time.h>
7197 static struct utimbuf x; x.actime = x.modtime;
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7206 *) ac_try_echo
=$ac_try;;
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_compile") 2>conftest.er1
7211 grep -v '^ *+' conftest.er1
>conftest.err
7213 cat conftest.err
>&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && {
7216 test -z "$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 } && test -s conftest.
$ac_objext; then
7219 emacs_cv_struct_utimbuf
=yes
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.
$ac_ext >&5
7224 emacs_cv_struct_utimbuf
=no
7227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7229 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7230 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7231 if test $emacs_cv_struct_utimbuf = yes; then
7233 cat >>confdefs.h
<<\_ACEOF
7234 #define HAVE_STRUCT_UTIMBUF 1
7239 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7240 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7241 if test "${ac_cv_type_signal+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 cat >conftest.
$ac_ext <<_ACEOF
7247 cat confdefs.h
>>conftest.
$ac_ext
7248 cat >>conftest.
$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #include <sys/types.h>
7256 return *(signal (0, 0)) (0) == 1;
7261 rm -f conftest.
$ac_objext
7262 if { (ac_try
="$ac_compile"
7264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 ac_cv_type_signal=int
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_cv_type_signal=void
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7289 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7291 cat >>confdefs.h <<_ACEOF
7292 #define RETSIGTYPE $ac_cv_type_signal
7297 { echo "$as_me:$LINENO: checking for speed_t" >&5
7298 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7299 if test "${emacs_cv_speed_t+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #include <termios.h>
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7321 *) ac_try_echo
=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.
$ac_objext; then
7334 emacs_cv_speed_t
=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.
$ac_ext >&5
7342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7345 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7346 if test $emacs_cv_speed_t = yes; then
7348 cat >>confdefs.h
<<\_ACEOF
7349 #define HAVE_SPEED_T 1
7354 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7355 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7356 if test "${emacs_cv_struct_timeval+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 cat >conftest.
$ac_ext <<_ACEOF
7362 cat confdefs.h
>>conftest.
$ac_ext
7363 cat >>conftest.
$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #ifdef TIME_WITH_SYS_TIME
7366 #include <sys/time.h>
7369 #ifdef HAVE_SYS_TIME_H
7370 #include <sys/time.h>
7378 static struct timeval x; x.tv_sec = x.tv_usec;
7383 rm -f conftest.
$ac_objext
7384 if { (ac_try
="$ac_compile"
7386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 emacs_cv_struct_timeval=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 emacs_cv_struct_timeval=no
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7411 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7412 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7413 if test $emacs_cv_struct_timeval = yes; then
7415 cat >>confdefs.h <<\_ACEOF
7416 #define HAVE_TIMEVAL 1
7421 { echo "$as_me:$LINENO: checking for struct exception" >&5
7422 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7423 if test "${emacs_cv_struct_exception+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 cat >conftest.$ac_ext <<_ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7436 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7441 rm -f conftest.$ac_objext
7442 if { (ac_try="$ac_compile"
7444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7445 *) ac_try_echo
=$ac_try;;
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_compile") 2>conftest.er1
7450 grep -v '^ *+' conftest.er1
>conftest.err
7452 cat conftest.err
>&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && {
7455 test -z "$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 } && test -s conftest.
$ac_objext; then
7458 emacs_cv_struct_exception
=yes
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.
$ac_ext >&5
7463 emacs_cv_struct_exception
=no
7466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7468 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7469 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7470 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7471 if test $emacs_cv_struct_exception != yes; then
7473 cat >>confdefs.h
<<\_ACEOF
7474 #define NO_MATHERR 1
7480 for ac_header
in sys
/socket.h
7482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7486 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_res
=`eval echo '${'$as_ac_Header'}'`
7490 { echo "$as_me:$LINENO: result: $ac_res" >&5
7491 echo "${ECHO_T}$ac_res" >&6; }
7493 # Is the header compilable?
7494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7496 cat >conftest.
$ac_ext <<_ACEOF
7499 cat confdefs.h
>>conftest.
$ac_ext
7500 cat >>conftest.
$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 $ac_includes_default
7503 #include <$ac_header>
7505 rm -f conftest.
$ac_objext
7506 if { (ac_try
="$ac_compile"
7508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7514 grep -v '^ *+' conftest.er1 >conftest.err
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 ac_header_compiler=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_header_compiler=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7532 echo "${ECHO_T}$ac_header_compiler" >&6; }
7534 # Is the header present?
7535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 #include <$ac_header>
7545 if { (ac_try="$ac_cpp conftest.$ac_ext"
7547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7548 *) ac_try_echo
=$ac_try;;
7550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7553 grep -v '^ *+' conftest.er1
>conftest.err
7555 cat conftest.err
>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } >/dev
/null
&& {
7558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7561 ac_header_preproc
=yes
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.
$ac_ext >&5
7566 ac_header_preproc
=no
7569 rm -f conftest.err conftest.
$ac_ext
7570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7571 echo "${ECHO_T}$ac_header_preproc" >&6; }
7573 # So? What about this header?
7574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7580 ac_header_preproc
=yes
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 eval "$as_ac_Header=\$ac_header_preproc"
7605 ac_res
=`eval echo '${'$as_ac_Header'}'`
7606 { echo "$as_me:$LINENO: result: $ac_res" >&5
7607 echo "${ECHO_T}$ac_res" >&6; }
7610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7611 cat >>confdefs.h
<<_ACEOF
7612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620 for ac_header
in net
/if.h
7622 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 cat >conftest.
$ac_ext <<_ACEOF
7631 cat confdefs.h
>>conftest.
$ac_ext
7632 cat >>conftest.
$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 #if HAVE_SYS_SOCKET_H
7636 #include <sys/socket.h>
7639 #include <$ac_header>
7641 rm -f conftest.
$ac_objext
7642 if { (ac_try
="$ac_compile"
7644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7650 grep -v '^ *+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 eval "$as_ac_Header=yes"
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 eval "$as_ac_Header=no"
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 ac_res=`eval echo '${'$as_ac_Header'}'`
7669 { echo "$as_me:$LINENO: result: $ac_res" >&5
7670 echo "${ECHO_T}$ac_res" >&6; }
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7681 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7682 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7683 if test "${ac_cv_struct_tm+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 #include <sys/types.h>
7699 int *p = &tm.tm_sec;
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7709 *) ac_try_echo
=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7714 grep -v '^ *+' conftest.er1
>conftest.err
7716 cat conftest.err
>&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.
$ac_objext; then
7722 ac_cv_struct_tm
=time.h
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.
$ac_ext >&5
7727 ac_cv_struct_tm
=sys
/time.h
7730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7732 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7733 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7734 if test $ac_cv_struct_tm = sys
/time.h
; then
7736 cat >>confdefs.h
<<\_ACEOF
7737 #define TM_IN_SYS_TIME 1
7742 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7743 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7744 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 cat >conftest.
$ac_ext <<_ACEOF
7750 cat confdefs.h
>>conftest.
$ac_ext
7751 cat >>conftest.
$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <sys/types.h>
7754 #include <$ac_cv_struct_tm>
7760 static struct tm ac_aggr;
7761 if (ac_aggr.tm_zone)
7767 rm -f conftest.
$ac_objext
7768 if { (ac_try
="$ac_compile"
7770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_member_struct_tm_tm_zone=yes
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <sys/types.h>
7796 #include <$ac_cv_struct_tm>
7802 static struct tm ac_aggr;
7803 if (sizeof ac_aggr.tm_zone)
7809 rm -f conftest.$ac_objext
7810 if { (ac_try="$ac_compile"
7812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7813 *) ac_try_echo
=$ac_try;;
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_compile") 2>conftest.er1
7818 grep -v '^ *+' conftest.er1
>conftest.err
7820 cat conftest.err
>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest.
$ac_objext; then
7826 ac_cv_member_struct_tm_tm_zone
=yes
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.
$ac_ext >&5
7831 ac_cv_member_struct_tm_tm_zone
=no
7834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7840 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7841 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7843 cat >>confdefs.h
<<_ACEOF
7844 #define HAVE_STRUCT_TM_TM_ZONE 1
7850 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7852 cat >>confdefs.h
<<\_ACEOF
7853 #define HAVE_TM_ZONE 1
7857 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7858 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7859 if test "${ac_cv_have_decl_tzname+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 cat >conftest.
$ac_ext <<_ACEOF
7865 cat confdefs.h
>>conftest.
$ac_ext
7866 cat >>conftest.
$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7881 rm -f conftest.
$ac_objext
7882 if { (ac_try
="$ac_compile"
7884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_compile") 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && {
7895 test -z "$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7897 } && test -s conftest.$ac_objext; then
7898 ac_cv_have_decl_tzname=yes
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 ac_cv_have_decl_tzname=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7909 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7910 if test $ac_cv_have_decl_tzname = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_DECL_TZNAME 1
7918 cat >>confdefs.h <<_ACEOF
7919 #define HAVE_DECL_TZNAME 0
7926 { echo "$as_me:$LINENO: checking for tzname" >&5
7927 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7928 if test "${ac_cv_var_tzname+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7938 #if !HAVE_DECL_TZNAME
7939 extern char *tzname[];
7945 return tzname[0][0];
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7954 *) ac_try_echo
=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_link") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1
>conftest.err
7961 cat conftest.err
>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest
$ac_exeext &&
7967 $as_test_x conftest
$ac_exeext; then
7968 ac_cv_var_tzname
=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.
$ac_ext >&5
7976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7977 conftest
$ac_exeext conftest.
$ac_ext
7979 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7980 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7981 if test $ac_cv_var_tzname = yes; then
7983 cat >>confdefs.h
<<\_ACEOF
7984 #define HAVE_TZNAME 1
7990 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7991 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7992 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cat >conftest.
$ac_ext <<_ACEOF
7998 cat confdefs.h
>>conftest.
$ac_ext
7999 cat >>conftest.
$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8006 static struct tm ac_aggr;
8007 if (ac_aggr.tm_gmtoff)
8013 rm -f conftest.
$ac_objext
8014 if { (ac_try
="$ac_compile"
8016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
8022 grep -v '^ *+' conftest.er1 >conftest.err
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && {
8027 test -z "$ac_c_werror_flag" ||
8028 test ! -s conftest.err
8029 } && test -s conftest.$ac_objext; then
8030 ac_cv_member_struct_tm_tm_gmtoff=yes
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8046 static struct tm ac_aggr;
8047 if (sizeof ac_aggr.tm_gmtoff)
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8057 *) ac_try_echo
=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1
>conftest.err
8064 cat conftest.err
>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.
$ac_objext; then
8070 ac_cv_member_struct_tm_tm_gmtoff
=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.
$ac_ext >&5
8075 ac_cv_member_struct_tm_tm_gmtoff
=no
8078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8083 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8085 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8087 cat >>confdefs.h
<<\_ACEOF
8088 #define HAVE_TM_GMTOFF 1
8093 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8094 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8095 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.
$ac_ext <<_ACEOF
8101 cat confdefs.h
>>conftest.
$ac_ext
8102 cat >>conftest.
$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 #if HAVE_SYS_SOCKET_H
8106 #include <sys/socket.h>
8115 static struct ifreq ac_aggr;
8116 if (ac_aggr.ifr_flags)
8122 rm -f conftest.
$ac_objext
8123 if { (ac_try
="$ac_compile"
8125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8131 grep -v '^ *+' conftest.er1 >conftest.err
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.$ac_objext; then
8139 ac_cv_member_struct_ifreq_ifr_flags=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8151 #if HAVE_SYS_SOCKET_H
8152 #include <sys/socket.h>
8161 static struct ifreq ac_aggr;
8162 if (sizeof ac_aggr.ifr_flags)
8168 rm -f conftest.$ac_objext
8169 if { (ac_try="$ac_compile"
8171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8172 *) ac_try_echo
=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_compile") 2>conftest.er1
8177 grep -v '^ *+' conftest.er1
>conftest.err
8179 cat conftest.err
>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest.
$ac_objext; then
8185 ac_cv_member_struct_ifreq_ifr_flags
=yes
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.
$ac_ext >&5
8190 ac_cv_member_struct_ifreq_ifr_flags
=no
8193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8199 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8200 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8202 cat >>confdefs.h
<<_ACEOF
8203 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8208 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8209 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8210 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 cat >conftest.
$ac_ext <<_ACEOF
8216 cat confdefs.h
>>conftest.
$ac_ext
8217 cat >>conftest.
$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8220 #if HAVE_SYS_SOCKET_H
8221 #include <sys/socket.h>
8230 static struct ifreq ac_aggr;
8231 if (ac_aggr.ifr_hwaddr)
8237 rm -f conftest.
$ac_objext
8238 if { (ac_try
="$ac_compile"
8240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8246 grep -v '^ *+' conftest.er1 >conftest.err
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8254 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #if HAVE_SYS_SOCKET_H
8267 #include <sys/socket.h>
8276 static struct ifreq ac_aggr;
8277 if (sizeof ac_aggr.ifr_hwaddr)
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8287 *) ac_try_echo
=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1
>conftest.err
8294 cat conftest.err
>&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.
$ac_objext; then
8300 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.
$ac_ext >&5
8305 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8313 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8314 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8315 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8317 cat >>confdefs.h
<<_ACEOF
8318 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8323 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8324 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8325 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 cat >conftest.
$ac_ext <<_ACEOF
8331 cat confdefs.h
>>conftest.
$ac_ext
8332 cat >>conftest.
$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 #if HAVE_SYS_SOCKET_H
8336 #include <sys/socket.h>
8345 static struct ifreq ac_aggr;
8346 if (ac_aggr.ifr_netmask)
8352 rm -f conftest.
$ac_objext
8353 if { (ac_try
="$ac_compile"
8355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8356 *) ac_try_echo=$ac_try;;
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.$ac_objext; then
8369 ac_cv_member_struct_ifreq_ifr_netmask=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #if HAVE_SYS_SOCKET_H
8382 #include <sys/socket.h>
8391 static struct ifreq ac_aggr;
8392 if (sizeof ac_aggr.ifr_netmask)
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8402 *) ac_try_echo
=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8407 grep -v '^ *+' conftest.er1
>conftest.err
8409 cat conftest.err
>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.
$ac_objext; then
8415 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.
$ac_ext >&5
8420 ac_cv_member_struct_ifreq_ifr_netmask
=no
8423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8428 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8429 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8430 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8432 cat >>confdefs.h
<<_ACEOF
8433 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8438 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8439 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8440 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 cat >conftest.
$ac_ext <<_ACEOF
8446 cat confdefs.h
>>conftest.
$ac_ext
8447 cat >>conftest.
$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8460 static struct ifreq ac_aggr;
8461 if (ac_aggr.ifr_broadaddr)
8467 rm -f conftest.
$ac_objext
8468 if { (ac_try
="$ac_compile"
8470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8476 grep -v '^ *+' conftest.er1 >conftest.err
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.$ac_objext; then
8484 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 #if HAVE_SYS_SOCKET_H
8497 #include <sys/socket.h>
8506 static struct ifreq ac_aggr;
8507 if (sizeof ac_aggr.ifr_broadaddr)
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8517 *) ac_try_echo
=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1
>conftest.err
8524 cat conftest.err
>&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.
$ac_objext; then
8530 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.
$ac_ext >&5
8535 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8544 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8545 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8547 cat >>confdefs.h
<<_ACEOF
8548 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8553 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8554 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8555 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 cat >conftest.
$ac_ext <<_ACEOF
8561 cat confdefs.h
>>conftest.
$ac_ext
8562 cat >>conftest.
$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #if HAVE_SYS_SOCKET_H
8566 #include <sys/socket.h>
8575 static struct ifreq ac_aggr;
8576 if (ac_aggr.ifr_addr)
8582 rm -f conftest.
$ac_objext
8583 if { (ac_try
="$ac_compile"
8585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1 >conftest.err
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.$ac_objext; then
8599 ac_cv_member_struct_ifreq_ifr_addr=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 #if HAVE_SYS_SOCKET_H
8612 #include <sys/socket.h>
8621 static struct ifreq ac_aggr;
8622 if (sizeof ac_aggr.ifr_addr)
8628 rm -f conftest.$ac_objext
8629 if { (ac_try="$ac_compile"
8631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8632 *) ac_try_echo
=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_compile") 2>conftest.er1
8637 grep -v '^ *+' conftest.er1
>conftest.err
8639 cat conftest.err
>&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } && {
8642 test -z "$ac_c_werror_flag" ||
8643 test ! -s conftest.err
8644 } && test -s conftest.
$ac_objext; then
8645 ac_cv_member_struct_ifreq_ifr_addr
=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.
$ac_ext >&5
8650 ac_cv_member_struct_ifreq_ifr_addr
=no
8653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8658 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8659 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8660 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8662 cat >>confdefs.h
<<_ACEOF
8663 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8671 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8672 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8673 if test "$ac_cv_prog_cc_c89" != no
; then
8674 { echo "$as_me:$LINENO: result: yes" >&5
8675 echo "${ECHO_T}yes" >&6; }
8677 cat >>confdefs.h
<<\_ACEOF
8678 #define PROTOTYPES 1
8682 cat >>confdefs.h
<<\_ACEOF
8683 #define __PROTOTYPES 1
8687 { echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6; }
8691 { echo "$as_me:$LINENO: checking for working volatile" >&5
8692 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8693 if test "${ac_cv_c_volatile+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8708 int * volatile y = (int *) 0;
8714 rm -f conftest.
$ac_objext
8715 if { (ac_try
="$ac_compile"
8717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_c_volatile=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8742 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8743 if test $ac_cv_c_volatile = no; then
8745 cat >>confdefs.h <<\_ACEOF
8751 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8752 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8753 if test "${ac_cv_c_const+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8766 /* FIXME: Include the comments suggested by Paul. */
8768 /* Ultrix mips cc rejects this. */
8769 typedef int charset[2];
8771 /* SunOS 4.1.1 cc rejects this. */
8772 char const *const *pcpcc;
8774 /* NEC SVR4.0.2 mips cc rejects this. */
8775 struct point {int x, y;};
8776 static struct point const zero = {0,0};
8777 /* AIX XL C 1.02.0.0 rejects this.
8778 It does not let you subtract one const X* pointer from another in
8779 an arm of an if-expression whose if-part is not a constant
8781 const char *g = "string";
8782 pcpcc = &g + (g ? g-g : 0);
8783 /* HPUX 7.0 cc rejects these. */
8785 ppc = (char**) pcpcc;
8786 pcpcc = (char const *const *) ppc;
8787 { /* SCO 3.2v4 cc rejects this. */
8789 char const *s = 0 ? (char *) 0 : (char const *) 0;
8794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8796 const int *foo = &x[0];
8799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8800 typedef const int *iptr;
8804 { /* AIX XL C 1.02.0.0 rejects this saying
8805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8806 struct s { int j; const int *ap[3]; };
8807 struct s *b; b->j = 5;
8809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8813 return !cs[0] && !zero.x;
8820 rm -f conftest.$ac_objext
8821 if { (ac_try="$ac_compile"
8823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8824 *) ac_try_echo
=$ac_try;;
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1
>conftest.err
8831 cat conftest.err
>&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.
$ac_objext; then
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.
$ac_ext >&5
8845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8848 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8849 if test $ac_cv_c_const = no
; then
8851 cat >>confdefs.h
<<\_ACEOF
8857 { echo "$as_me:$LINENO: checking for void * support" >&5
8858 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8859 if test "${emacs_cv_void_star+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 cat >conftest.
$ac_ext <<_ACEOF
8865 cat confdefs.h
>>conftest.
$ac_ext
8866 cat >>conftest.
$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8877 rm -f conftest.
$ac_objext
8878 if { (ac_try
="$ac_compile"
8880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 emacs_cv_void_star=yes
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8899 emacs_cv_void_star=no
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8905 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8906 if test $emacs_cv_void_star = yes; then
8907 cat >>confdefs.h <<\_ACEOF
8908 #define POINTER_TYPE void
8912 cat >>confdefs.h <<\_ACEOF
8913 #define POINTER_TYPE char
8922 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8923 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8924 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8925 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 cat >conftest.make <<\_ACEOF
8931 @echo '@@@%%%=$(MAKE)=@@@%%%'
8933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8936 eval ac_cv_prog_make_${ac_make}_set=yes;;
8938 eval ac_cv_prog_make_${ac_make}_set=no;;
8942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8943 { echo "$as_me:$LINENO: result: yes" >&5
8944 echo "${ECHO_T}yes" >&6; }
8947 { echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6; }
8949 SET_MAKE="MAKE=${MAKE-make}"
8953 { echo "$as_me:$LINENO: checking for long file names" >&5
8954 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8955 if test "${ac_cv_sys_long_file_names+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 ac_cv_sys_long_file_names=yes
8959 # Test for long file names in all the places we know might matter:
8960 # . the current directory, where building will happen
8961 # $prefix/lib where we will be installing things
8962 # $exec_prefix/lib likewise
8963 # $TMPDIR if set, where it might want to write temporary files
8964 # /tmp where it might want to write temporary files
8967 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8968 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8969 # in the usual case where exec_prefix is '${prefix}'.
8971 . | /* | ?:[\\/]*) ;; #(
8974 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8975 ac_xdir=$ac_dir/cf$$
8976 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8977 ac_tf1=$ac_xdir/conftest9012345
8978 ac_tf2=$ac_xdir/conftest9012346
8979 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8980 ac_cv_sys_long_file_names=no
8981 rm -f -r "$ac_xdir" 2>/dev/null
8982 test $ac_cv_sys_long_file_names = no && break
8985 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8986 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8987 if test $ac_cv_sys_long_file_names = yes; then
8989 cat >>confdefs.h <<\_ACEOF
8990 #define HAVE_LONG_FILE_NAMES 1
8996 #### Choose a window system.
8998 { echo "$as_me:$LINENO: checking for X" >&5
8999 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9002 # Check whether --with-x was given.
9003 if test "${with_x+set}" = set; then
9007 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9008 if test "x$with_x" = xno; then
9009 # The user explicitly disabled X.
9012 case $x_includes,$x_libraries in #(
9013 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9014 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9015 { (exit 1); exit 1; }; };; #(
9016 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 # One or both of the vars are not set, and there is no cached value.
9020 ac_x_includes=no ac_x_libraries=no
9021 rm -f -r conftest.dir
9022 if mkdir conftest.dir; then
9024 cat >Imakefile <<'_ACEOF'
9026 @echo incroot='${INCROOT}'
9028 @echo usrlibdir='${USRLIBDIR}'
9030 @echo libdir='${LIBDIR}'
9032 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9034 for ac_var in incroot usrlibdir libdir; do
9035 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9037 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9038 for ac_extension in a so sl; do
9039 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9040 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9041 ac_im_usrlibdir=$ac_im_libdir; break
9044 # Screen out bogus values from the imake configuration. They are
9045 # bogus both because they are the default anyway, and because
9046 # using them would break gcc on systems where it needs fixed includes.
9047 case $ac_im_incroot in
9048 /usr/include) ac_x_includes= ;;
9049 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9051 case $ac_im_usrlibdir in
9053 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9057 rm -f -r conftest.dir
9060 # Standard set of common directories for X headers.
9061 # Check X11 before X11Rn because it is often a symlink to the current release.
9073 /usr/local/X11/include
9074 /usr/local/X11R6/include
9075 /usr/local/X11R5/include
9076 /usr/local/X11R4/include
9078 /usr/local/include/X11
9079 /usr/local/include/X11R6
9080 /usr/local/include/X11R5
9081 /usr/local/include/X11R4
9085 /usr/XFree86/include/X11
9089 /usr/unsupported/include
9091 /usr/local/x11r5/include
9092 /usr/lpp/Xamples/include
9094 /usr/openwin/include
9095 /usr/openwin/share/include'
9097 if test "$ac_x_includes" = no; then
9098 # Guess where to find include files, by looking for Xlib.h.
9099 # First, try using that file with no special directory specified.
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <X11/Xlib.h>
9108 if { (ac_try="$ac_cpp conftest.$ac_ext"
9110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9111 *) ac_try_echo
=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1
>conftest.err
9118 cat conftest.err
>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } >/dev
/null
&& {
9121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9122 test ! -s conftest.err
9124 # We can compile using X headers with no special include directory.
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 for ac_dir
in $ac_x_header_dirs; do
9131 if test -r "$ac_dir/X11/Xlib.h"; then
9132 ac_x_includes
=$ac_dir
9138 rm -f conftest.err conftest.
$ac_ext
9139 fi # $ac_x_includes = no
9141 if test "$ac_x_libraries" = no
; then
9142 # Check for the libraries.
9143 # See if we find them without any special options.
9144 # Don't add to $LIBS permanently.
9147 cat >conftest.
$ac_ext <<_ACEOF
9150 cat confdefs.h
>>conftest.
$ac_ext
9151 cat >>conftest.
$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 #include <X11/Xlib.h>
9162 rm -f conftest.
$ac_objext conftest
$ac_exeext
9163 if { (ac_try
="$ac_link"
9165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_link") 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest$ac_exeext &&
9179 $as_test_x conftest$ac_exeext; then
9181 # We can link X programs with no special library path.
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9188 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9190 # Don't even attempt the hair of trying to link an X program!
9191 for ac_extension in a so sl; do
9192 if test -r "$ac_dir/libX11.$ac_extension"; then
9193 ac_x_libraries=$ac_dir
9200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9201 conftest$ac_exeext conftest.$ac_ext
9202 fi # $ac_x_libraries = no
9204 case $ac_x_includes,$ac_x_libraries in #(
9206 # Didn't find X, or a directory has "'" in its name.
9207 ac_cv_have_x="have_x=no";; #(
9209 # Record where we found X for the cache.
9210 ac_cv_have_x="have_x=yes\
9211 ac_x_includes='$ac_x_includes'\
9212 ac_x_libraries='$ac_x_libraries'"
9218 eval "$ac_cv_have_x"
9221 if test "$have_x" != yes; then
9222 { echo "$as_me:$LINENO: result: $have_x" >&5
9223 echo "${ECHO_T}$have_x" >&6; }
9226 # If each of the values was on the command line, it overrides each guess.
9227 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9228 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9229 # Update the cache value to reflect the command line values.
9230 ac_cv_have_x="have_x=yes\
9231 ac_x_includes='$x_includes'\
9232 ac_x_libraries='$x_libraries'"
9233 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9234 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9237 if test "$no_x" = yes; then
9243 if test "${x_libraries}" != NONE; then
9244 if test -n "${x_libraries}"; then
9245 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9246 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9248 x_default_search_path=""
9249 x_search_path=${x_libraries}
9250 if test -z "${x_search_path}"; then
9251 x_search_path=/usr/lib
9253 for x_library in `echo ${x_search_path}: | \
9254 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9256 ${x_library}/X11/%L/%T/%N%C%S:\
9257 ${x_library}/X11/%l/%T/%N%C%S:\
9258 ${x_library}/X11/%T/%N%C%S:\
9259 ${x_library}/X11/%L/%T/%N%S:\
9260 ${x_library}/X11/%l/%T/%N%S:\
9261 ${x_library}/X11/%T/%N%S"
9262 if test x"${x_default_search_path}" = x; then
9263 x_default_search_path=${x_search_path}
9265 x_default_search_path="${x_search_path}:${x_default_search_path}"
9269 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9270 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9273 if test x"${x_includes}" = x; then
9274 bitmapdir=/usr/include/X11/bitmaps
9276 # accumulate include directories that have X11 bitmap subdirectories
9278 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9279 if test -d "${bmd}/X11/bitmaps"; then
9280 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9282 if test -d "${bmd}/bitmaps"; then
9283 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9286 if test ${bmd_acc} != "dummyval"; then
9287 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9292 if test "${with_carbon}" != no; then
9293 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9294 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9295 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9296 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9300 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9302 # Is the header compilable?
9303 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9304 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9305 cat >conftest.$ac_ext <<_ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 $ac_includes_default
9312 #include <Carbon/Carbon.h>
9314 rm -f conftest.$ac_objext
9315 if { (ac_try="$ac_compile"
9317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9318 *) ac_try_echo
=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_compile") 2>conftest.er1
9323 grep -v '^ *+' conftest.er1
>conftest.err
9325 cat conftest.err
>&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest.
$ac_objext; then
9331 ac_header_compiler
=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.
$ac_ext >&5
9336 ac_header_compiler
=no
9339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9341 echo "${ECHO_T}$ac_header_compiler" >&6; }
9343 # Is the header present?
9344 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9345 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9346 cat >conftest.
$ac_ext <<_ACEOF
9349 cat confdefs.h
>>conftest.
$ac_ext
9350 cat >>conftest.
$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 #include <Carbon/Carbon.h>
9354 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } >/dev/null && {
9367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9370 ac_header_preproc=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_preproc=no
9378 rm -f conftest.err conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6; }
9382 # So? What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9385 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9389 ac_header_preproc=yes
9392 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9407 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9408 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9409 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9414 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9415 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9418 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9424 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9425 if test "${with_carbon+set}" != set \
9426 && test "${carbon_appdir_x+set}" != set; then
9427 for var in with_x with_x_toolkit with_gtk with_xim \
9428 with_xpm with_jpeg with_tiff with_gif with_png; do
9429 if eval test \"\${$var+set}\" = set; then
9436 if test "${HAVE_CARBON}" = yes; then
9440 case "${window_system}" in
9444 case "${with_x_toolkit}" in
9445 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9446 motif ) USE_X_TOOLKIT=MOTIF ;;
9448 USE_X_TOOLKIT=none ;;
9449 no ) USE_X_TOOLKIT=none ;;
9450 * ) USE_X_TOOLKIT=maybe ;;
9460 ### If we're using X11, we should use the X menu package.
9463 yes ) HAVE_MENUS=yes ;;
9466 if test "${opsys}" = "hpux9"; then
9467 case "${x_libraries}" in
9469 opsysfile="s/hpux9-x11r4.h"
9474 if test "${opsys}" = "hpux9shr"; then
9475 case "${x_libraries}" in
9477 opsysfile="s/hpux9shxr4.h"
9482 ### Compute the unexec source name from the object name.
9483 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9485 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9486 # Assume not, until told otherwise.
9489 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9490 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9491 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502 #define malloc_get_state innocuous_malloc_get_state
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char malloc_get_state (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9510 # include <limits.h>
9512 # include <assert.h>
9515 #undef malloc_get_state
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9523 char malloc_get_state ();
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9534 return malloc_get_state ();
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9543 *) ac_try_echo
=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
9548 grep -v '^ *+' conftest.er1
>conftest.err
9550 cat conftest.err
>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest
$ac_exeext &&
9556 $as_test_x conftest
$ac_exeext; then
9557 ac_cv_func_malloc_get_state
=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.
$ac_ext >&5
9562 ac_cv_func_malloc_get_state
=no
9565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9566 conftest
$ac_exeext conftest.
$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9569 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9570 if test $ac_cv_func_malloc_get_state = yes; then
9576 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9577 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.
$ac_ext <<_ACEOF
9584 cat confdefs.h
>>conftest.
$ac_ext
9585 cat >>conftest.
$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_set_state innocuous_malloc_set_state
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_set_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9597 # include <limits.h>
9599 # include <assert.h>
9602 #undef malloc_set_state
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9610 char malloc_set_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9621 return malloc_set_state ();
9626 rm -f conftest.
$ac_objext conftest
$ac_exeext
9627 if { (ac_try
="$ac_link"
9629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_func_malloc_set_state=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_func_malloc_set_state=no
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9657 if test $ac_cv_func_malloc_set_state = yes; then
9663 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9664 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9665 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 extern void (* __after_morecore_hook)();
9678 __after_morecore_hook = 0
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9687 *) ac_try_echo
=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1
>conftest.err
9694 cat conftest.err
>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest
$ac_exeext &&
9700 $as_test_x conftest
$ac_exeext; then
9701 emacs_cv_var___after_morecore_hook
=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.
$ac_ext >&5
9706 emacs_cv_var___after_morecore_hook
=no
9709 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9710 conftest
$ac_exeext conftest.
$ac_ext
9712 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9713 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9714 if test $emacs_cv_var___after_morecore_hook = no
; then
9717 if test "${system_malloc}" = "yes"; then
9720 (The GNU allocators don't work with this system configuration.)"
9722 if test "$doug_lea_malloc" = "yes" ; then
9723 if test "$GNU_MALLOC" = yes ; then
9725 (Using Doug Lea's new malloc from the GNU C Library.)"
9728 cat >>confdefs.h
<<\_ACEOF
9729 #define DOUG_LEA_MALLOC 1
9734 if test x
"${REL_ALLOC}" = x
; then
9735 REL_ALLOC
=${GNU_MALLOC}
9741 for ac_header
in stdlib.h unistd.h
9743 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9744 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9747 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 ac_res
=`eval echo '${'$as_ac_Header'}'`
9751 { echo "$as_me:$LINENO: result: $ac_res" >&5
9752 echo "${ECHO_T}$ac_res" >&6; }
9754 # Is the header compilable?
9755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9757 cat >conftest.
$ac_ext <<_ACEOF
9760 cat confdefs.h
>>conftest.
$ac_ext
9761 cat >>conftest.
$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 #include <$ac_header>
9766 rm -f conftest.
$ac_objext
9767 if { (ac_try
="$ac_compile"
9769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_compile") 2>conftest.er1
9775 grep -v '^ *+' conftest.er1 >conftest.err
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest.$ac_objext; then
9783 ac_header_compiler=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_header_compiler=no
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9793 echo "${ECHO_T}$ac_header_compiler" >&6; }
9795 # Is the header present?
9796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include <$ac_header>
9806 if { (ac_try="$ac_cpp conftest.$ac_ext"
9808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9809 *) ac_try_echo
=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1
>conftest.err
9816 cat conftest.err
>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } >/dev
/null
&& {
9819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9822 ac_header_preproc
=yes
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.
$ac_ext >&5
9827 ac_header_preproc
=no
9830 rm -f conftest.err conftest.
$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 echo "${ECHO_T}$ac_header_preproc" >&6; }
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc
=yes
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 eval "$as_ac_Header=\$ac_header_preproc"
9866 ac_res
=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872 cat >>confdefs.h
<<_ACEOF
9873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9881 for ac_func
in getpagesize
9883 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9886 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.
$ac_ext <<_ACEOF
9892 cat confdefs.h
>>conftest.
$ac_ext
9893 cat >>conftest.
$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9905 # include <limits.h>
9907 # include <assert.h>
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_$ac_func || defined __stub___$ac_func
9934 rm -f conftest.
$ac_objext conftest
$ac_exeext
9935 if { (ac_try
="$ac_link"
9937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 eval "$as_ac_var=yes"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 eval "$as_ac_var=no"
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9963 ac_res=`eval echo '${'$as_ac_var'}'`
9964 { echo "$as_me:$LINENO: result: $ac_res" >&5
9965 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_var'}'` = yes; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9974 { echo "$as_me:$LINENO: checking for working mmap" >&5
9975 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9976 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 if test "$cross_compiling" = yes; then
9980 ac_cv_func_mmap_fixed_mapped=no
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 /* malloc might have been renamed as rpl_malloc. */
9992 /* Thanks to Mike Haertel and Jim Avera for this test.
9993 Here is a matrix of mmap possibilities:
9994 mmap private not fixed
9995 mmap private fixed at somewhere currently unmapped
9996 mmap private fixed at somewhere already mapped
9997 mmap shared not fixed
9998 mmap shared fixed at somewhere currently unmapped
9999 mmap shared fixed at somewhere already mapped
10000 For private mappings, we should verify that changes cannot be read()
10001 back from the file, nor mmap's back from the file at a different
10002 address. (There have been systems where private was not correctly
10003 implemented like the infamous i386 svr4.0, and systems where the
10004 VM page cache was not coherent with the file system buffer cache
10005 like early versions of FreeBSD and possibly contemporary NetBSD.)
10006 For shared mappings, we should conversely verify that changes get
10007 propagated back to all the places they're supposed to be.
10009 Grep wants private fixed already mapped.
10010 The main things grep needs to know about mmap are:
10011 * does it exist and is it safe to write into the mmap'd area
10012 * how to use it (BSD variants) */
10015 #include <sys/mman.h>
10017 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10021 /* This mess was copied from the GNU getpagesize.h. */
10022 #ifndef HAVE_GETPAGESIZE
10023 /* Assume that all systems that can run configure have sys/param.h. */
10024 # ifndef HAVE_SYS_PARAM_H
10025 # define HAVE_SYS_PARAM_H 1
10028 # ifdef _SC_PAGESIZE
10029 # define getpagesize() sysconf(_SC_PAGESIZE)
10030 # else /* no _SC_PAGESIZE */
10031 # ifdef HAVE_SYS_PARAM_H
10032 # include <sys/param.h>
10033 # ifdef EXEC_PAGESIZE
10034 # define getpagesize() EXEC_PAGESIZE
10035 # else /* no EXEC_PAGESIZE */
10037 # define getpagesize() NBPG * CLSIZE
10040 # endif /* no CLSIZE */
10041 # else /* no NBPG */
10043 # define getpagesize() NBPC
10044 # else /* no NBPC */
10046 # define getpagesize() PAGESIZE
10047 # endif /* PAGESIZE */
10048 # endif /* no NBPC */
10049 # endif /* no NBPG */
10050 # endif /* no EXEC_PAGESIZE */
10051 # else /* no HAVE_SYS_PARAM_H */
10052 # define getpagesize() 8192 /* punt totally */
10053 # endif /* no HAVE_SYS_PARAM_H */
10054 # endif /* no _SC_PAGESIZE */
10056 #endif /* no HAVE_GETPAGESIZE */
10061 char *data, *data2, *data3;
10065 pagesize = getpagesize ();
10067 /* First, make a file with some known garbage in it. */
10068 data = (char *) malloc (pagesize);
10071 for (i = 0; i < pagesize; ++i)
10072 *(data + i) = rand ();
10074 fd = creat ("conftest.mmap", 0600);
10077 if (write (fd, data, pagesize) != pagesize)
10081 /* Next, try to mmap the file at a fixed address which already has
10082 something else allocated at it. If we can, also make sure that
10083 we see the same garbage. */
10084 fd = open ("conftest.mmap", O_RDWR);
10087 data2 = (char *) malloc (2 * pagesize);
10090 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10091 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10092 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10094 for (i = 0; i < pagesize; ++i)
10095 if (*(data + i) != *(data2 + i))
10098 /* Finally, make sure that changes to the mapped area do not
10099 percolate back to the file as seen by read(). (This is a bug on
10100 some variants of i386 svr4.0.) */
10101 for (i = 0; i < pagesize; ++i)
10102 *(data2 + i) = *(data2 + i) + 1;
10103 data3 = (char *) malloc (pagesize);
10106 if (read (fd, data3, pagesize) != pagesize)
10108 for (i = 0; i < pagesize; ++i)
10109 if (*(data + i) != *(data3 + i))
10115 rm -f conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10119 *) ac_try_echo
=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10126 { (case "(($ac_try" in
10127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_mmap_fixed_mapped=yes
10137 echo "$as_me: program exited with status $ac_status" >&5
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ( exit $ac_status )
10142 ac_cv_func_mmap_fixed_mapped=no
10144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10150 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10151 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_MMAP 1
10158 rm -f conftest.mmap
10160 if test $use_mmap_for_buffers = yes; then
10164 LIBS="$libsrc_libs $LIBS"
10167 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10168 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 ac_check_lib_save_LIBS=$LIBS
10173 LIBS="-ldnet $LIBS"
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10191 return dnet_ntoa ();
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10200 *) ac_try_echo
=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1
>conftest.err
10207 cat conftest.err
>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest
$ac_exeext &&
10213 $as_test_x conftest
$ac_exeext; then
10214 ac_cv_lib_dnet_dnet_ntoa
=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.
$ac_ext >&5
10219 ac_cv_lib_dnet_dnet_ntoa
=no
10222 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10223 conftest
$ac_exeext conftest.
$ac_ext
10224 LIBS
=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10228 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10229 cat >>confdefs.h
<<_ACEOF
10230 #define HAVE_LIBDNET 1
10233 LIBS
="-ldnet $LIBS"
10238 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10239 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_check_lib_save_LIBS
=$LIBS
10244 LIBS
="-lXbsd $LIBS"
10245 cat >conftest.
$ac_ext <<_ACEOF
10248 cat confdefs.h
>>conftest.
$ac_ext
10249 cat >>conftest.
$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10261 rm -f conftest.
$ac_objext conftest
$ac_exeext
10262 if { (ac_try
="$ac_link"
10263 case "(($ac_try" in
10264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_link") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext &&
10278 $as_test_x conftest$ac_exeext; then
10279 ac_cv_lib_Xbsd_main=yes
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_lib_Xbsd_main=no
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10292 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10293 if test $ac_cv_lib_Xbsd_main = yes; then
10294 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10299 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10300 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10301 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 ac_check_lib_save_LIBS=$LIBS
10305 LIBS="-lpthreads $LIBS"
10306 cat >conftest.$ac_ext <<_ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10323 return cma_open ();
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10332 *) ac_try_echo
=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10337 grep -v '^ *+' conftest.er1
>conftest.err
10339 cat conftest.err
>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest
$ac_exeext &&
10345 $as_test_x conftest
$ac_exeext; then
10346 ac_cv_lib_pthreads_cma_open
=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 ac_cv_lib_pthreads_cma_open
=no
10354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10355 conftest
$ac_exeext conftest.
$ac_ext
10356 LIBS
=$ac_check_lib_save_LIBS
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10359 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10360 if test $ac_cv_lib_pthreads_cma_open = yes; then
10361 cat >>confdefs.h
<<_ACEOF
10362 #define HAVE_LIBPTHREADS 1
10365 LIBS
="-lpthreads $LIBS"
10370 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10371 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10372 if test -d /usr
/X386
/include
; then
10374 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10378 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10379 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10384 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10385 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10386 if test "${gdb_cv_bigtoc+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10392 *) gdb_cv_bigtoc
=-bbigtoc ;;
10395 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10396 cat >conftest.
$ac_ext <<_ACEOF
10399 cat confdefs.h
>>conftest.
$ac_ext
10400 cat >>conftest.
$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10411 rm -f conftest.
$ac_objext conftest
$ac_exeext
10412 if { (ac_try
="$ac_link"
10413 case "(($ac_try" in
10414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438 conftest$ac_exeext conftest.$ac_ext
10441 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10442 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10446 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10447 # used for the tests that follow. We set them back to REAL_CFLAGS and
10448 # REAL_CPPFLAGS later on.
10450 REAL_CPPFLAGS="$CPPFLAGS"
10452 if test "${HAVE_X11}" = "yes"; then
10453 DEFS="$C_SWITCH_X_SITE $DEFS"
10454 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10456 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10457 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10459 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10460 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10461 # but it's more convenient here to set LD_RUN_PATH
10462 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10463 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10464 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10468 if test "${opsys}" = "gnu-linux"; then
10469 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10470 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10481 XOpenDisplay ("foo");
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (ac_try="$ac_link"
10488 case "(($ac_try" in
10489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10490 *) ac_try_echo
=$ac_try;;
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493 (eval "$ac_link") 2>conftest.er1
10495 grep -v '^ *+' conftest.er1
>conftest.err
10497 cat conftest.err
>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && {
10500 test -z "$ac_c_werror_flag" ||
10501 test ! -s conftest.err
10502 } && test -s conftest
$ac_exeext &&
10503 $as_test_x conftest
$ac_exeext; then
10504 xlinux_first_failure
=no
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.
$ac_ext >&5
10509 xlinux_first_failure
=yes
10512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10513 conftest
$ac_exeext conftest.
$ac_ext
10514 if test "${xlinux_first_failure}" = "yes"; then
10515 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10516 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10517 OLD_CPPFLAGS
="$CPPFLAGS"
10519 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10520 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10521 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10522 LIBS
="$LIBS -b i486-linuxaout"
10523 cat >conftest.
$ac_ext <<_ACEOF
10526 cat confdefs.h
>>conftest.
$ac_ext
10527 cat >>conftest.
$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10533 XOpenDisplay ("foo");
10538 rm -f conftest.
$ac_objext conftest
$ac_exeext
10539 if { (ac_try
="$ac_link"
10540 case "(($ac_try" in
10541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest$ac_exeext &&
10555 $as_test_x conftest$ac_exeext; then
10556 xlinux_second_failure=no
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 xlinux_second_failure=yes
10564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10565 conftest$ac_exeext conftest.$ac_ext
10566 if test "${xlinux_second_failure}" = "yes"; then
10567 # If we get the same failure with -b, there is no use adding -b.
10568 # So take it out. This plays safe.
10569 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10570 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10571 CPPFLAGS="$OLD_CPPFLAGS"
10573 { echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6; }
10576 { echo "$as_me:$LINENO: result: yes" >&5
10577 echo "${ECHO_T}yes" >&6; }
10580 { echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6; }
10585 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10586 # header files included from there.
10587 { echo "$as_me:$LINENO: checking for Xkb" >&5
10588 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10589 cat >conftest.$ac_ext <<_ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 #include <X11/Xlib.h>
10596 #include <X11/XKBlib.h>
10600 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10609 *) ac_try_echo
=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>conftest.er1
10614 grep -v '^ *+' conftest.er1
>conftest.err
10616 cat conftest.err
>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest
$ac_exeext &&
10622 $as_test_x conftest
$ac_exeext; then
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.
$ac_ext >&5
10631 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10632 conftest
$ac_exeext conftest.
$ac_ext
10633 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10634 echo "${ECHO_T}$emacs_xkb" >&6; }
10635 if test $emacs_xkb = yes; then
10637 cat >>confdefs.h
<<\_ACEOF
10638 #define HAVE_XKBGETKEYBOARD 1
10647 for ac_func
in XrmSetDatabase XScreenResourceString \
10648 XScreenNumberOfScreen XSetWMProtocols
10650 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10653 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 cat >conftest.
$ac_ext <<_ACEOF
10659 cat confdefs.h
>>conftest.
$ac_ext
10660 cat >>conftest.
$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10664 #define $ac_func innocuous_$ac_func
10666 /* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
10672 # include <limits.h>
10674 # include <assert.h>
10679 /* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10686 /* The GNU C library defines this for functions which it implements
10687 to always fail with ENOSYS. Some functions are actually named
10688 something starting with __ and the normal name is an alias. */
10689 #if defined __stub_$ac_func || defined __stub___$ac_func
10696 return $ac_func ();
10701 rm -f conftest.
$ac_objext conftest
$ac_exeext
10702 if { (ac_try
="$ac_link"
10703 case "(($ac_try" in
10704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_link") 2>conftest.er1
10710 grep -v '^ *+' conftest.er1 >conftest.err
10712 cat conftest.err >&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && {
10715 test -z "$ac_c_werror_flag" ||
10716 test ! -s conftest.err
10717 } && test -s conftest$ac_exeext &&
10718 $as_test_x conftest$ac_exeext; then
10719 eval "$as_ac_var=yes"
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 eval "$as_ac_var=no"
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728 conftest$ac_exeext conftest.$ac_ext
10730 ac_res=`eval echo '${'$as_ac_var'}'`
10731 { echo "$as_me:$LINENO: result: $ac_res" >&5
10732 echo "${ECHO_T}$ac_res" >&6; }
10733 if test `eval echo '${'$as_ac_var'}'` = yes; then
10734 cat >>confdefs.h <<_ACEOF
10735 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10743 if test "${window_system}" = "x11"; then
10744 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10745 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10746 if test "${emacs_cv_x11_version_6+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <X11/Xlib.h>
10759 #if XlibSpecificationRelease < 6
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10771 *) ac_try_echo
=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_link") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1
>conftest.err
10778 cat conftest.err
>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest
$ac_exeext &&
10784 $as_test_x conftest
$ac_exeext; then
10785 emacs_cv_x11_version_6
=yes
10787 echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.
$ac_ext >&5
10790 emacs_cv_x11_version_6
=no
10793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10794 conftest
$ac_exeext conftest.
$ac_ext
10797 if test $emacs_cv_x11_version_6 = yes; then
10798 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10799 echo "${ECHO_T}6 or newer" >&6; }
10801 cat >>confdefs.h
<<\_ACEOF
10802 #define HAVE_X11R6 1
10806 { echo "$as_me:$LINENO: result: before 6" >&5
10807 echo "${ECHO_T}before 6" >&6; }
10811 if test "${window_system}" = "x11"; then
10812 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10813 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10814 if test "${emacs_cv_x11_version_5+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 cat >conftest.
$ac_ext <<_ACEOF
10820 cat confdefs.h
>>conftest.
$ac_ext
10821 cat >>conftest.
$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 #include <X11/Xlib.h>
10827 #if XlibSpecificationRelease < 5
10835 rm -f conftest.
$ac_objext conftest
$ac_exeext
10836 if { (ac_try
="$ac_link"
10837 case "(($ac_try" in
10838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_link") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest$ac_exeext &&
10852 $as_test_x conftest$ac_exeext; then
10853 emacs_cv_x11_version_5=yes
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 emacs_cv_x11_version_5=no
10861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext conftest.$ac_ext
10865 if test $emacs_cv_x11_version_5 = yes; then
10866 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10867 echo "${ECHO_T}5 or newer" >&6; }
10870 cat >>confdefs.h <<\_ACEOF
10871 #define HAVE_X11R5 1
10876 { echo "$as_me:$LINENO: result: before 5" >&5
10877 echo "${ECHO_T}before 5" >&6; }
10882 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10885 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10886 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10887 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10888 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10889 { (exit 1); exit 1; }; };
10893 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10895 if test "X${with_pkg_config_prog}" != X; then
10896 PKG_CONFIG="${with_pkg_config_prog}"
10901 if test -z "$PKG_CONFIG"; then
10902 # Extract the first word of "pkg-config", so it can be a program name with args.
10903 set dummy pkg-config; ac_word=$2
10904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 case $PKG_CONFIG in
10911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in $PATH
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10921 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10934 if test -n "$PKG_CONFIG"; then
10935 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10936 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10938 { echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6; }
10945 if test "$PKG_CONFIG" = "no" ; then
10946 { { echo "$as_me:$LINENO: error:
10947 *** 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
10948 echo "$as_me: error:
10949 *** 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;}
10950 { (exit 1); exit 1; }; }
10952 PKG_CONFIG_MIN_VERSION=0.9.0
10953 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10954 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10955 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10957 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10958 { echo "$as_me:$LINENO: result: yes" >&5
10959 echo "${ECHO_T}yes" >&6; }
10962 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10963 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10964 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10965 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10966 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10968 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10969 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10970 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10971 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10972 echo "${ECHO_T}$GTK_LIBS" >&6; }
10974 { echo "$as_me:$LINENO: result: no" >&5
10975 echo "${ECHO_T}no" >&6; }
10978 ## If we have a custom action on failure, don't print errors, but
10979 ## do set a variable so people can do so.
10980 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10981 echo $GTK_PKG_ERRORS
10987 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10988 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10992 if test $succeeded = yes; then
10995 { { 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
10996 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;}
10997 { (exit 1); exit 1; }; }
11002 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11003 CFLAGS="$CFLAGS $GTK_CFLAGS"
11004 LIBS="$GTK_LIBS $LIBS"
11007 for ac_func in gtk_main
11009 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define $ac_func innocuous_$ac_func
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11031 # include <limits.h>
11033 # include <assert.h>
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_$ac_func || defined __stub___$ac_func
11055 return $ac_func ();
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11064 *) ac_try_echo
=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1
>conftest.err
11071 cat conftest.err
>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest
$ac_exeext &&
11077 $as_test_x conftest
$ac_exeext; then
11078 eval "$as_ac_var=yes"
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.
$ac_ext >&5
11083 eval "$as_ac_var=no"
11086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11087 conftest
$ac_exeext conftest.
$ac_ext
11089 ac_res
=`eval echo '${'$as_ac_var'}'`
11090 { echo "$as_me:$LINENO: result: $ac_res" >&5
11091 echo "${ECHO_T}$ac_res" >&6; }
11092 if test `eval echo '${'$as_ac_var'}'` = yes; then
11093 cat >>confdefs.h
<<_ACEOF
11094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 if test "${GTK_COMPILES}" != "yes"; then
11101 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11102 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11103 { (exit 1); exit 1; }; };
11108 cat >>confdefs.h
<<\_ACEOF
11114 if test "$with_toolkit_scroll_bars" != no
; then
11115 with_toolkit_scroll_bars
=yes
11118 HAVE_GTK_MULTIDISPLAY
=no
11120 for ac_func
in gdk_display_open
11122 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11125 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 cat >conftest.
$ac_ext <<_ACEOF
11131 cat confdefs.h
>>conftest.
$ac_ext
11132 cat >>conftest.
$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11136 #define $ac_func innocuous_$ac_func
11138 /* System header to define __stub macros and hopefully few prototypes,
11139 which can conflict with char $ac_func (); below.
11140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11141 <limits.h> exists even on freestanding compilers. */
11144 # include <limits.h>
11146 # include <assert.h>
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11158 /* The GNU C library defines this for functions which it implements
11159 to always fail with ENOSYS. Some functions are actually named
11160 something starting with __ and the normal name is an alias. */
11161 #if defined __stub_$ac_func || defined __stub___$ac_func
11168 return $ac_func ();
11173 rm -f conftest.
$ac_objext conftest
$ac_exeext
11174 if { (ac_try
="$ac_link"
11175 case "(($ac_try" in
11176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest$ac_exeext &&
11190 $as_test_x conftest$ac_exeext; then
11191 eval "$as_ac_var=yes"
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 eval "$as_ac_var=no"
11199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11200 conftest$ac_exeext conftest.$ac_ext
11202 ac_res=`eval echo '${'$as_ac_var'}'`
11203 { echo "$as_me:$LINENO: result: $ac_res" >&5
11204 echo "${ECHO_T}$ac_res" >&6; }
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11209 HAVE_GTK_MULTIDISPLAY=yes
11213 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_GTK_MULTIDISPLAY 1
11220 HAVE_GTK_FILE_SELECTION=no
11222 for ac_func in gtk_file_selection_new
11224 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11238 #define $ac_func innocuous_$ac_func
11240 /* System header to define __stub macros and hopefully few prototypes,
11241 which can conflict with char $ac_func (); below.
11242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11243 <limits.h> exists even on freestanding compilers. */
11246 # include <limits.h>
11248 # include <assert.h>
11253 /* Override any GCC internal prototype to avoid an error.
11254 Use char because int might match the return type of a GCC
11255 builtin and then its argument prototype would still apply. */
11260 /* The GNU C library defines this for functions which it implements
11261 to always fail with ENOSYS. Some functions are actually named
11262 something starting with __ and the normal name is an alias. */
11263 #if defined __stub_$ac_func || defined __stub___$ac_func
11270 return $ac_func ();
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (ac_try="$ac_link"
11277 case "(($ac_try" in
11278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11279 *) ac_try_echo
=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_link") 2>conftest.er1
11284 grep -v '^ *+' conftest.er1
>conftest.err
11286 cat conftest.err
>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && {
11289 test -z "$ac_c_werror_flag" ||
11290 test ! -s conftest.err
11291 } && test -s conftest
$ac_exeext &&
11292 $as_test_x conftest
$ac_exeext; then
11293 eval "$as_ac_var=yes"
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.
$ac_ext >&5
11298 eval "$as_ac_var=no"
11301 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11302 conftest
$ac_exeext conftest.
$ac_ext
11304 ac_res
=`eval echo '${'$as_ac_var'}'`
11305 { echo "$as_me:$LINENO: result: $ac_res" >&5
11306 echo "${ECHO_T}$ac_res" >&6; }
11307 if test `eval echo '${'$as_ac_var'}'` = yes; then
11308 cat >>confdefs.h
<<_ACEOF
11309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 HAVE_GTK_FILE_SELECTION
=yes
11316 HAVE_GTK_FILE_CHOOSER
=no
11318 for ac_func
in gtk_file_chooser_dialog_new
11320 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 cat >conftest.
$ac_ext <<_ACEOF
11329 cat confdefs.h
>>conftest.
$ac_ext
11330 cat >>conftest.
$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334 #define $ac_func innocuous_$ac_func
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11342 # include <limits.h>
11344 # include <assert.h>
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11366 return $ac_func ();
11371 rm -f conftest.
$ac_objext conftest
$ac_exeext
11372 if { (ac_try
="$ac_link"
11373 case "(($ac_try" in
11374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && {
11385 test -z "$ac_c_werror_flag" ||
11386 test ! -s conftest.err
11387 } && test -s conftest$ac_exeext &&
11388 $as_test_x conftest$ac_exeext; then
11389 eval "$as_ac_var=yes"
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 eval "$as_ac_var=no"
11397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11398 conftest$ac_exeext conftest.$ac_ext
11400 ac_res=`eval echo '${'$as_ac_var'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403 if test `eval echo '${'$as_ac_var'}'` = yes; then
11404 cat >>confdefs.h <<_ACEOF
11405 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11407 HAVE_GTK_FILE_CHOOSER=yes
11412 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11413 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416 #define HAVE_GTK_FILE_BOTH 1
11421 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11422 HAVE_GTK_AND_PTHREAD=no
11424 for ac_header in pthread.h
11426 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 ac_res=`eval echo '${'$as_ac_Header'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11437 # Is the header compilable?
11438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11440 cat >conftest.$ac_ext <<_ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 $ac_includes_default
11447 #include <$ac_header>
11449 rm -f conftest.$ac_objext
11450 if { (ac_try="$ac_compile"
11451 case "(($ac_try" in
11452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11453 *) ac_try_echo
=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11458 grep -v '^ *+' conftest.er1
>conftest.err
11460 cat conftest.err
>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.
$ac_objext; then
11466 ac_header_compiler
=yes
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.
$ac_ext >&5
11471 ac_header_compiler
=no
11474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476 echo "${ECHO_T}$ac_header_compiler" >&6; }
11478 # Is the header present?
11479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11481 cat >conftest.
$ac_ext <<_ACEOF
11484 cat confdefs.h
>>conftest.
$ac_ext
11485 cat >>conftest.
$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 #include <$ac_header>
11489 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11490 case "(($ac_try" in
11491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } >/dev/null && {
11502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11505 ac_header_preproc=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_header_preproc=no
11513 rm -f conftest.err conftest.$ac_ext
11514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515 echo "${ECHO_T}$ac_header_preproc" >&6; }
11517 # So? What about this header?
11518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524 ac_header_preproc=yes
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 eval "$as_ac_Header=\$ac_header_preproc"
11549 ac_res=`eval echo '${'$as_ac_Header'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551 echo "${ECHO_T}$ac_res" >&6; }
11554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11555 cat >>confdefs.h <<_ACEOF
11556 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11563 if test "$ac_cv_header_pthread_h"; then
11564 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11565 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11566 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lpthread $LIBS"
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11584 char pthread_self ();
11588 return pthread_self ();
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11597 *) ac_try_echo
=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_link") 2>conftest.er1
11602 grep -v '^ *+' conftest.er1
>conftest.err
11604 cat conftest.err
>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest
$ac_exeext &&
11610 $as_test_x conftest
$ac_exeext; then
11611 ac_cv_lib_pthread_pthread_self
=yes
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.
$ac_ext >&5
11616 ac_cv_lib_pthread_pthread_self
=no
11619 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11620 conftest
$ac_exeext conftest.
$ac_ext
11621 LIBS
=$ac_check_lib_save_LIBS
11623 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11624 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11625 if test $ac_cv_lib_pthread_pthread_self = yes; then
11626 HAVE_GTK_AND_PTHREAD
=yes
11630 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11631 GTK_LIBS
="$GTK_LIBS -lpthread"
11633 cat >>confdefs.h
<<\_ACEOF
11634 #define HAVE_GTK_AND_PTHREAD 1
11641 ### Link with -lXft if available to work around a bug.
11643 if test "${HAVE_GTK}" = "yes"; then
11644 if test "X${with_pkg_config_prog}" != X
; then
11645 PKG_CONFIG
="${with_pkg_config_prog}"
11651 if test -z "$PKG_CONFIG"; then
11652 # Extract the first word of "pkg-config", so it can be a program name with args.
11653 set dummy pkg-config
; ac_word
=$2
11654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 case $PKG_CONFIG in
11661 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11665 for as_dir
in $PATH
11668 test -z "$as_dir" && as_dir
=.
11669 for ac_exec_ext
in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11683 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11684 if test -n "$PKG_CONFIG"; then
11685 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11686 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11688 { echo "$as_me:$LINENO: result: no" >&5
11689 echo "${ECHO_T}no" >&6; }
11695 if test "$PKG_CONFIG" = "no" ; then
11698 PKG_CONFIG_MIN_VERSION
=0.9.0
11699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11700 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11701 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11703 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11704 { echo "$as_me:$LINENO: result: yes" >&5
11705 echo "${ECHO_T}yes" >&6; }
11708 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11709 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11710 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11711 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11712 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11714 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11715 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11716 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11717 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11718 echo "${ECHO_T}$XFT_LIBS" >&6; }
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11724 ## If we have a custom action on failure, don't print errors, but
11725 ## do set a variable so people can do so.
11726 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11738 if test $succeeded = yes; then
11744 if test "$HAVE_XFT" != no
; then
11745 OLD_CFLAGS
="$CPPFLAGS"
11746 OLD_CPPFLAGS
="$CFLAGS"
11748 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11749 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11750 LIBS
="$XFT_LIBS $LIBS"
11751 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11752 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11753 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11754 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11758 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11760 # Is the header compilable?
11761 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11762 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11763 cat >conftest.
$ac_ext <<_ACEOF
11766 cat confdefs.h
>>conftest.
$ac_ext
11767 cat >>conftest.
$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 #include <X11/Xft/Xft.h>
11772 rm -f conftest.
$ac_objext
11773 if { (ac_try
="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_header_compiler=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_header_compiler=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 echo "${ECHO_T}$ac_header_compiler" >&6; }
11801 # Is the header present?
11802 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11803 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <X11/Xft/Xft.h>
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11815 *) ac_try_echo
=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11820 grep -v '^ *+' conftest.er1
>conftest.err
11822 cat conftest.err
>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev
/null
&& {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11828 ac_header_preproc
=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.
$ac_ext >&5
11833 ac_header_preproc
=no
11836 rm -f conftest.err conftest.
$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838 echo "${ECHO_T}$ac_header_preproc" >&6; }
11840 # So? What about this header?
11841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11844 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11846 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11847 ac_header_preproc
=yes
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11855 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11857 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11859 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11861 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11865 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11866 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11867 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11872 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11873 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11876 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11877 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11878 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11879 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 ac_check_lib_save_LIBS
=$LIBS
11883 LIBS
="-lXft $XFT_LIBS $LIBS"
11884 cat >conftest.
$ac_ext <<_ACEOF
11887 cat confdefs.h
>>conftest.
$ac_ext
11888 cat >>conftest.
$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11897 char XftFontOpen ();
11901 return XftFontOpen ();
11906 rm -f conftest.
$ac_objext conftest
$ac_exeext
11907 if { (ac_try
="$ac_link"
11908 case "(($ac_try" in
11909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_link") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest$ac_exeext &&
11923 $as_test_x conftest$ac_exeext; then
11924 ac_cv_lib_Xft_XftFontOpen=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_Xft_XftFontOpen=no
11932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11936 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11937 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11938 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11946 if test "${HAVE_XFT}" = "yes"; then
11948 cat >>confdefs.h <<\_ACEOF
11953 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11955 CFLAGS="$OLD_CPPFLAGS"
11956 CFLAGS="$OLD_CFLAGS"
11962 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11963 if test x"${HAVE_X11R5}" = xyes; then
11964 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11965 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11966 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11976 #include <X11/Intrinsic.h>
11977 #include <X11/Xaw/Simple.h>
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11990 *) ac_try_echo
=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_link") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1
>conftest.err
11997 cat conftest.err
>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest
$ac_exeext &&
12003 $as_test_x conftest
$ac_exeext; then
12004 emacs_cv_x11_version_5_with_xaw
=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.
$ac_ext >&5
12009 emacs_cv_x11_version_5_with_xaw
=no
12012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12013 conftest
$ac_exeext conftest.
$ac_ext
12016 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12017 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12018 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12019 USE_X_TOOLKIT
=LUCID
12021 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12022 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12030 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12032 if test "${USE_X_TOOLKIT}" != "none"; then
12033 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12034 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12035 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 cat >conftest.
$ac_ext <<_ACEOF
12041 cat confdefs.h
>>conftest.
$ac_ext
12042 cat >>conftest.
$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <X11/Intrinsic.h>
12048 #if XtSpecificationRelease < 6
12056 rm -f conftest.
$ac_objext conftest
$ac_exeext
12057 if { (ac_try
="$ac_link"
12058 case "(($ac_try" in
12059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_link") 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } && {
12070 test -z "$ac_c_werror_flag" ||
12071 test ! -s conftest.err
12072 } && test -s conftest$ac_exeext &&
12073 $as_test_x conftest$ac_exeext; then
12074 emacs_cv_x11_toolkit_version_6=yes
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 emacs_cv_x11_toolkit_version_6=no
12082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12083 conftest$ac_exeext conftest.$ac_ext
12086 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12087 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12088 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12089 echo "${ECHO_T}6 or newer" >&6; }
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_X11XTR6 1
12096 { echo "$as_me:$LINENO: result: before 6" >&5
12097 echo "${ECHO_T}before 6" >&6; }
12101 if test x$HAVE_X11XTR6 = xyes; then
12102 LIBS="-lXt -lSM -lICE $LIBS"
12107 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12108 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12109 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 ac_check_lib_save_LIBS=$LIBS
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12127 char XmuConvertStandardSelection ();
12131 return XmuConvertStandardSelection ();
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12140 *) ac_try_echo
=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1
>conftest.err
12147 cat conftest.err
>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest
$ac_exeext &&
12153 $as_test_x conftest
$ac_exeext; then
12154 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.
$ac_ext >&5
12159 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12163 conftest
$ac_exeext conftest.
$ac_ext
12164 LIBS
=$ac_check_lib_save_LIBS
12166 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12167 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12168 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12169 cat >>confdefs.h
<<_ACEOF
12170 #define HAVE_LIBXMU 1
12177 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12180 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12181 if test "${HAVE_X11}" = "yes"; then
12182 if test "${USE_X_TOOLKIT}" != "none"; then
12184 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12185 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12186 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 ac_check_lib_save_LIBS
=$LIBS
12190 LIBS
="-lXext $LIBS"
12191 cat >conftest.
$ac_ext <<_ACEOF
12194 cat confdefs.h
>>conftest.
$ac_ext
12195 cat >>conftest.
$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12204 char XShapeQueryExtension ();
12208 return XShapeQueryExtension ();
12213 rm -f conftest.
$ac_objext conftest
$ac_exeext
12214 if { (ac_try
="$ac_link"
12215 case "(($ac_try" in
12216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_link") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest$ac_exeext &&
12230 $as_test_x conftest$ac_exeext; then
12231 ac_cv_lib_Xext_XShapeQueryExtension=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_lib_Xext_XShapeQueryExtension=no
12239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12243 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12244 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12245 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12246 cat >>confdefs.h <<_ACEOF
12247 #define HAVE_LIBXEXT 1
12250 LIBS="-lXext $LIBS"
12257 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12258 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12259 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12260 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12273 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12276 Motif version prior to 2.1.
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12286 *) ac_try_echo
=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1
>conftest.err
12293 cat conftest.err
>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.
$ac_objext; then
12299 emacs_cv_motif_version_2_1
=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.
$ac_ext >&5
12304 emacs_cv_motif_version_2_1
=no
12307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12309 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12310 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12311 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12312 if test $emacs_cv_motif_version_2_1 = yes; then
12315 cat >>confdefs.h
<<\_ACEOF
12316 #define HAVE_MOTIF_2_1 1
12319 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12320 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12321 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 ac_check_lib_save_LIBS
=$LIBS
12326 cat >conftest.
$ac_ext <<_ACEOF
12329 cat confdefs.h
>>conftest.
$ac_ext
12330 cat >>conftest.
$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12339 char XpCreateContext ();
12343 return XpCreateContext ();
12348 rm -f conftest.
$ac_objext conftest
$ac_exeext
12349 if { (ac_try
="$ac_link"
12350 case "(($ac_try" in
12351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_link") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && {
12362 test -z "$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12364 } && test -s conftest$ac_exeext &&
12365 $as_test_x conftest$ac_exeext; then
12366 ac_cv_lib_Xp_XpCreateContext=yes
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12371 ac_cv_lib_Xp_XpCreateContext=no
12374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12379 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12380 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12384 if test ${HAVE_LIBXP} = yes; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_LIBXP 1
12392 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12393 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12394 if test "${emacs_cv_lesstif+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 # We put this in CFLAGS temporarily to precede other -I options
12398 # that might be in CFLAGS temporarily.
12399 # We put this in CPPFLAGS where it precedes the other -I options.
12400 OLD_CPPFLAGS=$CPPFLAGS
12402 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12403 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12419 rm -f conftest.$ac_objext
12420 if { (ac_try="$ac_compile"
12421 case "(($ac_try" in
12422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12423 *) ac_try_echo
=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_compile") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1
>conftest.err
12430 cat conftest.err
>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest.
$ac_objext; then
12436 emacs_cv_lesstif
=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.
$ac_ext >&5
12441 emacs_cv_lesstif
=no
12444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12446 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12447 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12448 if test $emacs_cv_lesstif = yes; then
12449 # Make sure this -I option remains in CPPFLAGS after it is set
12450 # back to REAL_CPPFLAGS.
12451 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12452 # have those other -I options anyway. Ultimately, having this
12453 # directory ultimately in CPPFLAGS will be enough.
12454 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12455 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12458 CPPFLAGS
=$OLD_CPPFLAGS
12463 ### Is -lXaw3d available?
12465 if test "${HAVE_X11}" = "yes"; then
12466 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12467 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12468 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12469 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 cat >conftest.
$ac_ext <<_ACEOF
12475 cat confdefs.h
>>conftest.
$ac_ext
12476 cat >>conftest.
$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 #include <X11/Xaw3d/Scrollbar.h>
12480 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12481 case "(($ac_try" in
12482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } >/dev/null && {
12493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12496 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12504 rm -f conftest.err conftest.$ac_ext
12506 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12507 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12508 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12509 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12510 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12511 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lXaw3d $LIBS"
12516 cat >conftest.$ac_ext <<_ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12529 char XawScrollbarSetThumb ();
12533 return XawScrollbarSetThumb ();
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12542 *) ac_try_echo
=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12547 grep -v '^ *+' conftest.er1
>conftest.err
12549 cat conftest.err
>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } && {
12552 test -z "$ac_c_werror_flag" ||
12553 test ! -s conftest.err
12554 } && test -s conftest
$ac_exeext &&
12555 $as_test_x conftest
$ac_exeext; then
12556 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.
$ac_ext >&5
12561 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12564 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12565 conftest
$ac_exeext conftest.
$ac_ext
12566 LIBS
=$ac_check_lib_save_LIBS
12568 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12569 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12570 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12577 if test "${HAVE_XAW3D}" = "yes"; then
12579 cat >>confdefs.h
<<\_ACEOF
12580 #define HAVE_XAW3D 1
12589 USE_TOOLKIT_SCROLL_BARS
=no
12590 if test "${with_toolkit_scroll_bars}" != "no"; then
12591 if test "${USE_X_TOOLKIT}" != "none"; then
12592 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12593 cat >>confdefs.h
<<\_ACEOF
12594 #define USE_TOOLKIT_SCROLL_BARS 1
12598 USE_TOOLKIT_SCROLL_BARS
=yes
12599 elif test "${HAVE_XAW3D}" = "yes"; then
12600 cat >>confdefs.h
<<\_ACEOF
12601 #define USE_TOOLKIT_SCROLL_BARS 1
12604 USE_TOOLKIT_SCROLL_BARS
=yes
12606 elif test "${HAVE_GTK}" = "yes"; then
12607 cat >>confdefs.h
<<\_ACEOF
12608 #define USE_TOOLKIT_SCROLL_BARS 1
12611 USE_TOOLKIT_SCROLL_BARS
=yes
12612 elif test "${HAVE_CARBON}" = "yes"; then
12613 cat >>confdefs.h
<<\_ACEOF
12614 #define USE_TOOLKIT_SCROLL_BARS 1
12617 USE_TOOLKIT_SCROLL_BARS
=yes
12621 cat >conftest.
$ac_ext <<_ACEOF
12624 cat confdefs.h
>>conftest.
$ac_ext
12625 cat >>conftest.
$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 #include <X11/Xlib.h>
12629 #include <X11/Xresource.h>
12638 rm -f conftest.
$ac_objext
12639 if { (ac_try
="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_compile") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && {
12652 test -z "$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 } && test -s conftest.$ac_objext; then
12657 cat >>confdefs.h <<\_ACEOF
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 if test "${with_xim}" != "no"; then
12673 cat >>confdefs.h <<\_ACEOF
12680 if test "${HAVE_XIM}" != "no"; then
12681 late_CFLAGS=$CFLAGS
12682 if test "$GCC" = yes; then
12683 CFLAGS="$CFLAGS --pedantic-errors"
12685 cat >conftest.$ac_ext <<_ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 #include <X11/Xlib.h>
12693 #include <X11/Xresource.h>
12702 XPointer *client_data;
12704 /* If we're not using GCC, it's probably not XFree86, and this is
12705 probably right, but we can't use something like --pedantic-errors. */
12706 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12707 char*, XIMProc, XPointer*);
12709 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12715 rm -f conftest.$ac_objext
12716 if { (ac_try="$ac_compile"
12717 case "(($ac_try" in
12718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12719 *) ac_try_echo
=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_compile") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1
>conftest.err
12726 cat conftest.err
>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } && {
12729 test -z "$ac_c_werror_flag" ||
12730 test ! -s conftest.err
12731 } && test -s conftest.
$ac_objext; then
12732 emacs_cv_arg6_star
=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.
$ac_ext >&5
12740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12742 if test "$emacs_cv_arg6_star" = yes; then
12743 cat >>confdefs.h
<<\_ACEOF
12744 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12748 cat >>confdefs.h
<<\_ACEOF
12749 #define XRegisterIMInstantiateCallback_arg6 XPointer
12753 CFLAGS
=$late_CFLAGS
12756 ### Use -lXpm if available, unless `--with-xpm=no'.
12758 if test "${HAVE_X11}" = "yes"; then
12759 if test "${with_xpm}" != "no"; then
12760 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12761 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12762 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12763 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12767 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12769 # Is the header compilable?
12770 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12771 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12772 cat >conftest.
$ac_ext <<_ACEOF
12775 cat confdefs.h
>>conftest.
$ac_ext
12776 cat >>conftest.
$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 $ac_includes_default
12779 #include <X11/xpm.h>
12781 rm -f conftest.
$ac_objext
12782 if { (ac_try
="$ac_compile"
12783 case "(($ac_try" in
12784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_compile") 2>conftest.er1
12790 grep -v '^ *+' conftest.er1 >conftest.err
12792 cat conftest.err >&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && {
12795 test -z "$ac_c_werror_flag" ||
12796 test ! -s conftest.err
12797 } && test -s conftest.$ac_objext; then
12798 ac_header_compiler=yes
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_header_compiler=no
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12808 echo "${ECHO_T}$ac_header_compiler" >&6; }
12810 # Is the header present?
12811 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12812 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12813 cat >conftest.$ac_ext <<_ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 #include <X11/xpm.h>
12821 if { (ac_try="$ac_cpp conftest.$ac_ext"
12822 case "(($ac_try" in
12823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12824 *) ac_try_echo
=$ac_try;;
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12829 grep -v '^ *+' conftest.er1
>conftest.err
12831 cat conftest.err
>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } >/dev
/null
&& {
12834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12835 test ! -s conftest.err
12837 ac_header_preproc
=yes
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.
$ac_ext >&5
12842 ac_header_preproc
=no
12845 rm -f conftest.err conftest.
$ac_ext
12846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12847 echo "${ECHO_T}$ac_header_preproc" >&6; }
12849 # So? What about this header?
12850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12852 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12853 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12855 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12856 ac_header_preproc
=yes
12859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12860 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12862 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12864 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12866 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12868 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12870 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12874 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12875 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12876 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12881 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12882 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12885 if test $ac_cv_header_X11_xpm_h = yes; then
12886 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12887 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12888 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 ac_check_lib_save_LIBS
=$LIBS
12892 LIBS
="-lXpm -lX11 $LIBS"
12893 cat >conftest.
$ac_ext <<_ACEOF
12896 cat confdefs.h
>>conftest.
$ac_ext
12897 cat >>conftest.
$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12906 char XpmReadFileToPixmap ();
12910 return XpmReadFileToPixmap ();
12915 rm -f conftest.
$ac_objext conftest
$ac_exeext
12916 if { (ac_try
="$ac_link"
12917 case "(($ac_try" in
12918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_link") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest$ac_exeext &&
12932 $as_test_x conftest$ac_exeext; then
12933 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12946 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12947 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12954 if test "${HAVE_XPM}" = "yes"; then
12955 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12956 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include "X11/xpm.h"
12964 #ifndef XpmReturnAllocPixels
12965 no_return_alloc_pixels
12969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12970 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12978 if test "${HAVE_XPM}" = "yes"; then
12979 { echo "$as_me:$LINENO: result: yes" >&5
12980 echo "${ECHO_T}yes" >&6; }
12982 { echo "$as_me:$LINENO: result: no" >&5
12983 echo "${ECHO_T}no" >&6; }
12988 if test "${HAVE_XPM}" = "yes"; then
12990 cat >>confdefs.h <<\_ACEOF
12997 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
12999 if test "${HAVE_X11}" = "yes"; then
13000 if test "${with_jpeg}" != "no"; then
13001 if test "${ac_cv_header_jerror_h+set}" = set; then
13002 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13003 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13004 if test "${ac_cv_header_jerror_h+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13008 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13010 # Is the header compilable?
13011 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13012 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 #include <jerror.h>
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13031 grep -v '^
*+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.$ac_objext; then
13039 ac_header_compiler=yes
13041 echo "$as_me: failed program was:" >&5
13042 sed 's
/^
/|
/' conftest.$ac_ext >&5
13044 ac_header_compiler=no
13047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13049 echo "${ECHO_T}$ac_header_compiler" >&6; }
13051 # Is the header present?
13052 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13053 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13054 cat >conftest.$ac_ext <<_ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 #include <jerror.h>
13062 if { (ac_try="$ac_cpp conftest.$ac_ext"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13070 grep -v '^
*+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } >/dev/null && {
13075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13078 ac_header_preproc=yes
13080 echo "$as_me: failed program was:" >&5
13081 sed 's
/^
/|
/' conftest.$ac_ext >&5
13083 ac_header_preproc=no
13086 rm -f conftest.err conftest.$ac_ext
13087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13088 echo "${ECHO_T}$ac_header_preproc" >&6; }
13090 # So? What about this header?
13091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13093 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13094 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13096 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13097 ac_header_preproc=yes
13100 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13101 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13103 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13105 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13107 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13109 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13111 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13115 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13116 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13117 if test "${ac_cv_header_jerror_h+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 ac_cv_header_jerror_h=$ac_header_preproc
13122 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13123 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13126 if test $ac_cv_header_jerror_h = yes; then
13127 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13128 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-ljpeg $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13147 char jpeg_destroy_compress ();
13151 return jpeg_destroy_compress ();
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_link") 2>conftest.er1
13165 grep -v '^
*+' conftest.er1 >conftest.err
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest$ac_exeext &&
13173 $as_test_x conftest$ac_exeext; then
13174 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13176 echo "$as_me: failed program was:" >&5
13177 sed 's
/^
/|
/' conftest.$ac_ext >&5
13179 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LIBS=$ac_check_lib_save_LIBS
13186 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13187 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13188 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13198 if test "${HAVE_JPEG}" = "yes"; then
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_JPEG 1
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <jpeglib.h>
13210 version=JPEG_LIB_VERSION
13213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13214 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_JPEG 1
13220 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13221 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13229 ### Use -lpng if available, unless `--with-png=no'.
13231 if test "${HAVE_X11}" = "yes"; then
13232 if test "${with_png}" != "no"; then
13233 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13234 # in /usr/include/libpng.
13237 for ac_header
in png.h libpng
/png.h
13239 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13243 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 ac_res
=`eval echo '${'$as_ac_Header'}'`
13247 { echo "$as_me:$LINENO: result: $ac_res" >&5
13248 echo "${ECHO_T}$ac_res" >&6; }
13250 # Is the header compilable?
13251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13253 cat >conftest.
$ac_ext <<_ACEOF
13256 cat confdefs.h
>>conftest.
$ac_ext
13257 cat >>conftest.
$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 $ac_includes_default
13260 #include <$ac_header>
13262 rm -f conftest.
$ac_objext
13263 if { (ac_try
="$ac_compile"
13264 case "(($ac_try" in
13265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_compile") 2>conftest.er1
13271 grep -v '^ *+' conftest.er1 >conftest.err
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } && {
13276 test -z "$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 } && test -s conftest.$ac_objext; then
13279 ac_header_compiler=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_header_compiler=no
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289 echo "${ECHO_T}$ac_header_compiler" >&6; }
13291 # Is the header present?
13292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <$ac_header>
13302 if { (ac_try="$ac_cpp conftest.$ac_ext"
13303 case "(($ac_try" in
13304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13305 *) ac_try_echo
=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13310 grep -v '^ *+' conftest.er1
>conftest.err
13312 cat conftest.err
>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } >/dev
/null
&& {
13315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13316 test ! -s conftest.err
13318 ac_header_preproc
=yes
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.
$ac_ext >&5
13323 ac_header_preproc
=no
13326 rm -f conftest.err conftest.
$ac_ext
13327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328 echo "${ECHO_T}$ac_header_preproc" >&6; }
13330 # So? What about this header?
13331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13337 ac_header_preproc
=yes
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13357 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 eval "$as_ac_Header=\$ac_header_preproc"
13362 ac_res
=`eval echo '${'$as_ac_Header'}'`
13363 { echo "$as_me:$LINENO: result: $ac_res" >&5
13364 echo "${ECHO_T}$ac_res" >&6; }
13367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13368 cat >>confdefs.h
<<_ACEOF
13369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13377 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13378 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13379 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 ac_check_lib_save_LIBS
=$LIBS
13383 LIBS
="-lpng -lz -lm $LIBS"
13384 cat >conftest.
$ac_ext <<_ACEOF
13387 cat confdefs.h
>>conftest.
$ac_ext
13388 cat >>conftest.
$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13397 char png_get_channels ();
13401 return png_get_channels ();
13406 rm -f conftest.
$ac_objext conftest
$ac_exeext
13407 if { (ac_try
="$ac_link"
13408 case "(($ac_try" in
13409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_link") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest$ac_exeext &&
13423 $as_test_x conftest$ac_exeext; then
13424 ac_cv_lib_png_png_get_channels=yes
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_cv_lib_png_png_get_channels=no
13432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433 conftest$ac_exeext conftest.$ac_ext
13434 LIBS=$ac_check_lib_save_LIBS
13436 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13437 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13438 if test $ac_cv_lib_png_png_get_channels = yes; then
13445 if test "${HAVE_PNG}" = "yes"; then
13447 cat >>confdefs.h <<\_ACEOF
13454 ### Use -ltiff if available, unless `--with-tiff=no
'.
13456 if test "${HAVE_X11}" = "yes"; then
13457 if test "${with_tiff}" != "no"; then
13458 if test "${ac_cv_header_tiffio_h+set}" = set; then
13459 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13460 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13461 if test "${ac_cv_header_tiffio_h+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13465 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13467 # Is the header compilable?
13468 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13469 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 $ac_includes_default
13477 #include <tiffio.h>
13479 rm -f conftest.$ac_objext
13480 if { (ac_try="$ac_compile"
13481 case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_compile") 2>conftest.er1
13488 grep -v '^
*+' conftest.er1 >conftest.err
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && {
13493 test -z "$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13495 } && test -s conftest.$ac_objext; then
13496 ac_header_compiler=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's
/^
/|
/' conftest.$ac_ext >&5
13501 ac_header_compiler=no
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13506 echo "${ECHO_T}$ac_header_compiler" >&6; }
13508 # Is the header present?
13509 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13510 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 #include <tiffio.h>
13519 if { (ac_try="$ac_cpp conftest.$ac_ext"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13527 grep -v '^
*+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } >/dev/null && {
13532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13535 ac_header_preproc=yes
13537 echo "$as_me: failed program was:" >&5
13538 sed 's
/^
/|
/' conftest.$ac_ext >&5
13540 ac_header_preproc=no
13543 rm -f conftest.err conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 echo "${ECHO_T}$ac_header_preproc" >&6; }
13547 # So? What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13550 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13551 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13553 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13554 ac_header_preproc=yes
13557 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13558 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13560 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13562 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13564 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13566 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13568 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13572 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13573 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13574 if test "${ac_cv_header_tiffio_h+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 ac_cv_header_tiffio_h=$ac_header_preproc
13579 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13580 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13583 if test $ac_cv_header_tiffio_h = yes; then
13585 # At least one tiff package requires the jpeg library.
13586 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13587 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13588 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_check_lib_save_LIBS=$LIBS
13593 LIBS="-ltiff $tifflibs $LIBS"
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13607 char TIFFGetVersion ();
13611 return TIFFGetVersion ();
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13625 grep -v '^
*+' conftest.er1 >conftest.err
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest$ac_exeext &&
13633 $as_test_x conftest$ac_exeext; then
13634 ac_cv_lib_tiff_TIFFGetVersion=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's
/^
/|
/' conftest.$ac_ext >&5
13639 ac_cv_lib_tiff_TIFFGetVersion=no
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13647 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13648 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13657 if test "${HAVE_TIFF}" = "yes"; then
13659 cat >>confdefs.h <<\_ACEOF
13660 #define HAVE_TIFF 1
13666 ### Use -lgif if available, unless `--with-gif=no'.
13668 if test "${HAVE_X11}" = "yes"; then
13669 if test "${with_gif}" != "no"; then
13670 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13671 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13672 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13673 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13676 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13677 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13679 # Is the header compilable?
13680 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13681 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13682 cat >conftest.
$ac_ext <<_ACEOF
13685 cat confdefs.h
>>conftest.
$ac_ext
13686 cat >>conftest.
$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13689 #include <gif_lib.h>
13691 rm -f conftest.
$ac_objext
13692 if { (ac_try
="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_header_compiler=yes
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_header_compiler=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718 echo "${ECHO_T}$ac_header_compiler" >&6; }
13720 # Is the header present?
13721 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13722 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <gif_lib.h>
13731 if { (ac_try="$ac_cpp conftest.$ac_ext"
13732 case "(($ac_try" in
13733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13734 *) ac_try_echo
=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1
>conftest.err
13741 cat conftest.err
>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } >/dev
/null
&& {
13744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13747 ac_header_preproc
=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.
$ac_ext >&5
13752 ac_header_preproc
=no
13755 rm -f conftest.err conftest.
$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13757 echo "${ECHO_T}$ac_header_preproc" >&6; }
13759 # So? What about this header?
13760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13762 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13763 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13765 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13766 ac_header_preproc
=yes
13769 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13770 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13772 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13774 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13776 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13778 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13780 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13784 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13785 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13786 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 ac_cv_header_gif_lib_h
=$ac_header_preproc
13791 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13792 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13795 if test $ac_cv_header_gif_lib_h = yes; then
13796 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13797 # Earlier versions can crash Emacs.
13798 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13799 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13800 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 ac_check_lib_save_LIBS
=$LIBS
13804 LIBS
="-lungif $LIBS"
13805 cat >conftest.
$ac_ext <<_ACEOF
13808 cat confdefs.h
>>conftest.
$ac_ext
13809 cat >>conftest.
$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13818 char EGifPutExtensionLast ();
13822 return EGifPutExtensionLast ();
13827 rm -f conftest.
$ac_objext conftest
$ac_exeext
13828 if { (ac_try
="$ac_link"
13829 case "(($ac_try" in
13830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_link") 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && {
13841 test -z "$ac_c_werror_flag" ||
13842 test ! -s conftest.err
13843 } && test -s conftest$ac_exeext &&
13844 $as_test_x conftest$ac_exeext; then
13845 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_cv_lib_ungif_EGifPutExtensionLast=no
13853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LIBS=$ac_check_lib_save_LIBS
13857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13858 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13859 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13868 if test "${HAVE_GIF}" = "yes"; then
13870 cat >>confdefs.h <<\_ACEOF
13877 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13878 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13879 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13880 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13886 # Is the header compilable?
13887 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13888 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 $ac_includes_default
13896 #include <malloc/malloc.h>
13898 rm -f conftest.$ac_objext
13899 if { (ac_try="$ac_compile"
13900 case "(($ac_try" in
13901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13902 *) ac_try_echo
=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_compile") 2>conftest.er1
13907 grep -v '^ *+' conftest.er1
>conftest.err
13909 cat conftest.err
>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest.
$ac_objext; then
13915 ac_header_compiler
=yes
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.
$ac_ext >&5
13920 ac_header_compiler
=no
13923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13925 echo "${ECHO_T}$ac_header_compiler" >&6; }
13927 # Is the header present?
13928 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13929 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13930 cat >conftest.
$ac_ext <<_ACEOF
13933 cat confdefs.h
>>conftest.
$ac_ext
13934 cat >>conftest.
$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 #include <malloc/malloc.h>
13938 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13939 case "(($ac_try" in
13940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } >/dev/null && {
13951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13954 ac_header_preproc=yes
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_preproc=no
13962 rm -f conftest.err conftest.$ac_ext
13963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13964 echo "${ECHO_T}$ac_header_preproc" >&6; }
13966 # So? What about this header?
13967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13969 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13970 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13972 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13973 ac_header_preproc=yes
13976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13977 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13979 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13981 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13983 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13984 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13985 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13986 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13987 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13991 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13992 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13993 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13998 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13999 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14002 if test $ac_cv_header_malloc_malloc_h = yes; then
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_MALLOC_MALLOC_H 1
14012 ### Use Mac OS X Carbon API to implement GUI.
14013 if test "${HAVE_CARBON}" = "yes"; then
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_CARBON 1
14019 ## Specify the install directory
14021 if test "${carbon_appdir_x}" != ""; then
14022 case ${carbon_appdir_x} in
14023 y | ye | yes) carbon_appdir=/Applications ;;
14024 * ) carbon_appdir=${carbon_appdir_x} ;;
14027 # We also have mouse menus.
14031 ### Use session management (-lSM -lICE) if available
14033 if test "${HAVE_X11}" = "yes"; then
14034 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14035 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14036 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14041 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14043 # Is the header compilable?
14044 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14045 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 $ac_includes_default
14053 #include <X11/SM/SMlib.h>
14055 rm -f conftest.$ac_objext
14056 if { (ac_try="$ac_compile"
14057 case "(($ac_try" in
14058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14059 *) ac_try_echo
=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_compile") 2>conftest.er1
14064 grep -v '^ *+' conftest.er1
>conftest.err
14066 cat conftest.err
>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest.
$ac_objext; then
14072 ac_header_compiler
=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.
$ac_ext >&5
14077 ac_header_compiler
=no
14080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082 echo "${ECHO_T}$ac_header_compiler" >&6; }
14084 # Is the header present?
14085 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14086 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14087 cat >conftest.
$ac_ext <<_ACEOF
14090 cat confdefs.h
>>conftest.
$ac_ext
14091 cat >>conftest.
$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <X11/SM/SMlib.h>
14095 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14096 case "(($ac_try" in
14097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } >/dev/null && {
14108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14111 ac_header_preproc=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_header_preproc=no
14119 rm -f conftest.err conftest.$ac_ext
14120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14121 echo "${ECHO_T}$ac_header_preproc" >&6; }
14123 # So? What about this header?
14124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14126 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14127 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14129 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14130 ac_header_preproc=yes
14133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14134 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14136 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14138 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14140 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14142 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14144 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14148 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14149 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14156 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14159 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14160 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14161 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14162 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lSM -lICE $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14174 /* Override any GCC internal prototype to avoid an error.
14175 Use char because int might match the return type of a GCC
14176 builtin and then its argument prototype would still apply. */
14180 char SmcOpenConnection ();
14184 return SmcOpenConnection ();
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14193 *) ac_try_echo
=$ac_try;;
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14198 grep -v '^ *+' conftest.er1
>conftest.err
14200 cat conftest.err
>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest
$ac_exeext &&
14206 $as_test_x conftest
$ac_exeext; then
14207 ac_cv_lib_SM_SmcOpenConnection
=yes
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.
$ac_ext >&5
14212 ac_cv_lib_SM_SmcOpenConnection
=no
14215 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14216 conftest
$ac_exeext conftest.
$ac_ext
14217 LIBS
=$ac_check_lib_save_LIBS
14219 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14220 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14221 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14229 if test "${HAVE_X_SM}" = "yes"; then
14231 cat >>confdefs.h
<<\_ACEOF
14232 #define HAVE_X_SM 1
14237 *) LIBS
="-lSM -lICE $LIBS" ;;
14242 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14243 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14244 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14245 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.
$ac_ext <<_ACEOF
14251 cat confdefs.h
>>conftest.
$ac_ext
14252 cat >>conftest.
$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14263 rm -f conftest.
$ac_objext conftest
$ac_exeext
14264 if { (ac_try
="$ac_link"
14265 case "(($ac_try" in
14266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_link") 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest$ac_exeext &&
14280 $as_test_x conftest$ac_exeext; then
14281 emacs_cv_netdb_declares_h_errno=yes
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 emacs_cv_netdb_declares_h_errno=no
14289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14290 conftest$ac_exeext conftest.$ac_ext
14292 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14293 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14294 if test $emacs_cv_netdb_declares_h_errno = yes; then
14296 cat >>confdefs.h <<\_ACEOF
14297 #define HAVE_H_ERRNO 1
14302 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14303 # for constant arguments. Useless!
14304 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14305 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14306 if test "${ac_cv_working_alloca_h+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.$ac_ext <<_ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 #include <alloca.h>
14319 char *p = (char *) alloca (2 * sizeof (int));
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14329 *) ac_try_echo
=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_link") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1
>conftest.err
14336 cat conftest.err
>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest
$ac_exeext &&
14342 $as_test_x conftest
$ac_exeext; then
14343 ac_cv_working_alloca_h
=yes
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.
$ac_ext >&5
14348 ac_cv_working_alloca_h
=no
14351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14352 conftest
$ac_exeext conftest.
$ac_ext
14354 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14355 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14356 if test $ac_cv_working_alloca_h = yes; then
14358 cat >>confdefs.h
<<\_ACEOF
14359 #define HAVE_ALLOCA_H 1
14364 { echo "$as_me:$LINENO: checking for alloca" >&5
14365 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14366 if test "${ac_cv_func_alloca_works+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 cat >conftest.
$ac_ext <<_ACEOF
14372 cat confdefs.h
>>conftest.
$ac_ext
14373 cat >>conftest.
$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14376 # define alloca __builtin_alloca
14379 # include <malloc.h>
14380 # define alloca _alloca
14382 # ifdef HAVE_ALLOCA_H
14383 # include <alloca.h>
14388 # ifndef alloca /* predefined by HP cc +Olibcalls */
14399 char *p = (char *) alloca (1);
14405 rm -f conftest.
$ac_objext conftest
$ac_exeext
14406 if { (ac_try
="$ac_link"
14407 case "(($ac_try" in
14408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 ac_cv_func_alloca_works=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 ac_cv_func_alloca_works=no
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14435 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14437 if test $ac_cv_func_alloca_works = yes; then
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_ALLOCA 1
14444 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14445 # that cause trouble. Some versions do not even contain alloca or
14446 # contain a buggy version. If you still want to use their alloca,
14447 # use ar to extract alloca.o from them instead of compiling alloca.c.
14449 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14451 cat >>confdefs.h <<\_ACEOF
14456 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14457 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14458 if test "${ac_cv_os_cray+set}" = set; then
14459 echo $ECHO_N "(cached
) $ECHO_C" >&6
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #if defined CRAY && ! defined CRAY2
14474 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14475 $EGREP "webecray
" >/dev/null 2>&1; then
14483 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14484 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14485 if test $ac_cv_os_cray = yes; then
14486 for ac_func in _getb67 GETB67 getb67; do
14487 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14488 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14489 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14490 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14491 echo $ECHO_N "(cached
) $ECHO_C" >&6
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14501 #define $ac_func innocuous_$ac_func
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below.
14505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506 <limits.h> exists even on freestanding compilers. */
14509 # include <limits.h>
14511 # include <assert.h>
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14523 /* The GNU C library defines this for functions which it implements
14524 to always fail with ENOSYS. Some functions are actually named
14525 something starting with __ and the normal name is an alias. */
14526 #if defined __stub_$ac_func || defined __stub___$ac_func
14533 return $ac_func ();
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_link") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest$ac_exeext &&
14555 $as_test_x conftest$ac_exeext; then
14556 eval "$as_ac_var=yes"
14558 echo "$as_me: failed program was
:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 eval "$as_ac_var=no
"
14564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14565 conftest$ac_exeext conftest.$ac_ext
14567 ac_res=`eval echo '${'$as_ac_var'}'`
14568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14569 echo "${ECHO_T}$ac_res" >&6; }
14570 if test `eval echo '${'$as_ac_var'}'` = yes; then
14572 cat >>confdefs.h <<_ACEOF
14573 #define CRAY_STACKSEG_END $ac_func
14582 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14583 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14584 if test "${ac_cv_c_stack_direction+set}" = set; then
14585 echo $ECHO_N "(cached
) $ECHO_C" >&6
14587 if test "$cross_compiling" = yes; then
14588 ac_cv_c_stack_direction=0
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14598 find_stack_direction ()
14600 static char *addr = 0;
14605 return find_stack_direction ();
14608 return (&dummy > addr) ? 1 : -1;
14614 return find_stack_direction () < 0;
14617 rm -f conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_link") 2>&5
14626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_cv_c_stack_direction=1
14639 echo "$as_me: program exited with status
$ac_status" >&5
14640 echo "$as_me: failed program was
:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ( exit $ac_status )
14644 ac_cv_c_stack_direction=-1
14646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14652 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14654 cat >>confdefs.h <<_ACEOF
14655 #define STACK_DIRECTION $ac_cv_c_stack_direction
14662 # fmod, logb, and frexp are found in -lm on most systems.
14663 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14665 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14666 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14667 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14668 echo $ECHO_N "(cached
) $ECHO_C" >&6
14670 ac_check_lib_save_LIBS=$LIBS
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712 ac_cv_lib_m_sqrt=yes
14714 echo "$as_me: failed program was
:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_lib_m_sqrt=no
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721 conftest$ac_exeext conftest.$ac_ext
14722 LIBS=$ac_check_lib_save_LIBS
14724 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14725 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14726 if test $ac_cv_lib_m_sqrt = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define HAVE_LIBM 1
14736 # Check for mail-locking functions in a "mail" library. Probably this should
14737 # have the same check as for liblockfile below.
14739 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14740 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14741 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14742 echo $ECHO_N "(cached
) $ECHO_C" >&6
14744 ac_check_lib_save_LIBS=$LIBS
14745 LIBS="-lmail $LIBS"
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14763 return maillock ();
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (ac_try="$ac_link"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext &&
14785 $as_test_x conftest$ac_exeext; then
14786 ac_cv_lib_mail_maillock=yes
14788 echo "$as_me: failed program was
:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14791 ac_cv_lib_mail_maillock=no
14794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14795 conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14798 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14799 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14800 if test $ac_cv_lib_mail_maillock = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_LIBMAIL 1
14805 LIBS="-lmail $LIBS"
14810 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14811 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14812 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14813 echo $ECHO_N "(cached
) $ECHO_C" >&6
14815 ac_check_lib_save_LIBS=$LIBS
14816 LIBS="-llockfile $LIBS"
14817 cat >conftest.$ac_ext <<_ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14834 return maillock ();
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (ac_try="$ac_link"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_link") 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14852 (exit $ac_status); } && {
14853 test -z "$ac_c_werror_flag" ||
14854 test ! -s conftest.err
14855 } && test -s conftest$ac_exeext &&
14856 $as_test_x conftest$ac_exeext; then
14857 ac_cv_lib_lockfile_maillock=yes
14859 echo "$as_me: failed program was
:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_cv_lib_lockfile_maillock=no
14865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14866 conftest$ac_exeext conftest.$ac_ext
14867 LIBS=$ac_check_lib_save_LIBS
14869 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14870 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14871 if test $ac_cv_lib_lockfile_maillock = yes; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_LIBLOCKFILE 1
14876 LIBS="-llockfile $LIBS"
14880 # If we have the shared liblockfile, assume we must use it for mail
14881 # locking (e.g. Debian). If we couldn't link against liblockfile
14882 # (no liblockfile.a installed), ensure that we don't need to.
14883 if test "$ac_cv_lib_lockfile_maillock" = no; then
14884 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14885 set dummy liblockfile.so; ac_word=$2
14886 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14887 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14888 if test "${ac_cv_prog_liblockfile+set}" = set; then
14889 echo $ECHO_N "(cached
) $ECHO_C" >&6
14891 if test -n "$liblockfile"; then
14892 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14895 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14896 for as_dir in $as_dummy
14899 test -z "$as_dir" && as_dir=.
14900 for ac_exec_ext in '' $ac_executable_extensions; do
14901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14902 ac_cv_prog_liblockfile="yes"
14903 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14910 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14913 liblockfile=$ac_cv_prog_liblockfile
14914 if test -n "$liblockfile"; then
14915 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14916 echo "${ECHO_T}$liblockfile" >&6; }
14918 { echo "$as_me:$LINENO: result
: no
" >&5
14919 echo "${ECHO_T}no
" >&6; }
14923 if test $ac_cv_prog_liblockfile = yes; then
14924 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14925 This probably means that movemail could lose mail.
14926 There may be a \`development' package to
install containing liblockfile.
" >&5
14927 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14928 This probably means that movemail could lose mail.
14929 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14930 { (exit 1); exit 1; }; }
14935 for ac_func in touchlock
14937 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14938 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14939 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14940 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14941 echo $ECHO_N "(cached
) $ECHO_C" >&6
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14951 #define $ac_func innocuous_$ac_func
14953 /* System header to define __stub macros and hopefully few prototypes,
14954 which can conflict with char $ac_func (); below.
14955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14956 <limits.h> exists even on freestanding compilers. */
14959 # include <limits.h>
14961 # include <assert.h>
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14973 /* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976 #if defined __stub_$ac_func || defined __stub___$ac_func
14983 return $ac_func ();
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (ac_try="$ac_link"
14990 case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_link") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15001 (exit $ac_status); } && {
15002 test -z "$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15004 } && test -s conftest$ac_exeext &&
15005 $as_test_x conftest$ac_exeext; then
15006 eval "$as_ac_var=yes"
15008 echo "$as_me: failed program was
:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 eval "$as_ac_var=no
"
15014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015 conftest$ac_exeext conftest.$ac_ext
15017 ac_res=`eval echo '${'$as_ac_var'}'`
15018 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15020 if test `eval echo '${'$as_ac_var'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15029 for ac_header in maillock.h
15031 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15032 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15033 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15034 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15036 echo $ECHO_N "(cached
) $ECHO_C" >&6
15038 ac_res=`eval echo '${'$as_ac_Header'}'`
15039 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15040 echo "${ECHO_T}$ac_res" >&6; }
15042 # Is the header compilable?
15043 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15044 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051 $ac_includes_default
15052 #include <$ac_header>
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15063 grep -v '^ *+' conftest.er1 >conftest.err
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15067 (exit $ac_status); } && {
15068 test -z "$ac_c_werror_flag" ||
15069 test ! -s conftest.err
15070 } && test -s conftest.$ac_objext; then
15071 ac_header_compiler=yes
15073 echo "$as_me: failed program was
:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_header_compiler=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15081 echo "${ECHO_T}$ac_header_compiler" >&6; }
15083 # Is the header present?
15084 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15085 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <$ac_header>
15094 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15106 (exit $ac_status); } >/dev/null && {
15107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15110 ac_header_preproc=yes
15112 echo "$as_me: failed program was
:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_header_preproc=no
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15122 # So? What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15126 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15127 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15129 ac_header_preproc=yes
15132 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15133 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15134 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15135 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15136 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15137 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15138 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15139 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15140 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15142 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15143 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15147 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15148 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15150 echo $ECHO_N "(cached
) $ECHO_C" >&6
15152 eval "$as_ac_Header=\
$ac_header_preproc"
15154 ac_res=`eval echo '${'$as_ac_Header'}'`
15155 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15156 echo "${ECHO_T}$ac_res" >&6; }
15159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15160 cat >>confdefs.h <<_ACEOF
15161 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15238 for ac_func in gethostname getdomainname dup2 \
15239 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15240 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15241 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15242 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15243 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15244 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15245 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15246 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15248 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15249 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15250 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15251 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15252 echo $ECHO_N "(cached
) $ECHO_C" >&6
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15262 #define $ac_func innocuous_$ac_func
15264 /* System header to define __stub macros and hopefully few prototypes,
15265 which can conflict with char $ac_func (); below.
15266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15267 <limits.h> exists even on freestanding compilers. */
15270 # include <limits.h>
15272 # include <assert.h>
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15284 /* The GNU C library defines this for functions which it implements
15285 to always fail with ENOSYS. Some functions are actually named
15286 something starting with __ and the normal name is an alias. */
15287 #if defined __stub_$ac_func || defined __stub___$ac_func
15294 return $ac_func ();
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 eval "$as_ac_var=yes"
15319 echo "$as_me: failed program was
:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 eval "$as_ac_var=no
"
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15328 ac_res=`eval echo '${'$as_ac_var'}'`
15329 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15331 if test `eval echo '${'$as_ac_var'}'` = yes; then
15332 cat >>confdefs.h <<_ACEOF
15333 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15341 for ac_header in sys/un.h
15343 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15344 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15345 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15346 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached
) $ECHO_C" >&6
15350 ac_res=`eval echo '${'$as_ac_Header'}'`
15351 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15354 # Is the header compilable?
15355 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15356 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15357 cat >conftest.$ac_ext <<_ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 $ac_includes_default
15364 #include <$ac_header>
15366 rm -f conftest.$ac_objext
15367 if { (ac_try="$ac_compile"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_compile") 2>conftest.er1
15375 grep -v '^ *+' conftest.er1 >conftest.err
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest.$ac_objext; then
15383 ac_header_compiler=yes
15385 echo "$as_me: failed program was
:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_header_compiler=no
15391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15393 echo "${ECHO_T}$ac_header_compiler" >&6; }
15395 # Is the header present?
15396 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15397 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 #include <$ac_header>
15406 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15418 (exit $ac_status); } >/dev/null && {
15419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15422 ac_header_preproc=yes
15424 echo "$as_me: failed program was
:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15427 ac_header_preproc=no
15430 rm -f conftest.err conftest.$ac_ext
15431 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15432 echo "${ECHO_T}$ac_header_preproc" >&6; }
15434 # So? What about this header?
15435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15437 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15438 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15439 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15441 ac_header_preproc=yes
15444 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15445 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15446 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15447 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15448 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15449 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15450 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15451 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15452 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15454 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15455 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15459 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15460 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15462 echo $ECHO_N "(cached
) $ECHO_C" >&6
15464 eval "$as_ac_Header=\
$ac_header_preproc"
15466 ac_res=`eval echo '${'$as_ac_Header'}'`
15467 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15468 echo "${ECHO_T}$ac_res" >&6; }
15471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15485 for ac_header in $ac_header_list
15487 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15488 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15489 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15490 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15491 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15492 echo $ECHO_N "(cached
) $ECHO_C" >&6
15494 ac_res=`eval echo '${'$as_ac_Header'}'`
15495 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15496 echo "${ECHO_T}$ac_res" >&6; }
15498 # Is the header compilable?
15499 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15500 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 $ac_includes_default
15508 #include <$ac_header>
15510 rm -f conftest.$ac_objext
15511 if { (ac_try="$ac_compile"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_compile") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest.$ac_objext; then
15527 ac_header_compiler=yes
15529 echo "$as_me: failed program was
:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_compiler=no
15535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6; }
15539 # Is the header present?
15540 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15541 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 #include <$ac_header>
15550 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15562 (exit $ac_status); } >/dev/null && {
15563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15566 ac_header_preproc=yes
15568 echo "$as_me: failed program was
:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_preproc=no
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15578 # So? What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15582 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15583 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15585 ac_header_preproc=yes
15588 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15589 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15590 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15591 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15592 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15593 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15594 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15595 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15596 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15598 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15599 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15603 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15604 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15605 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached
) $ECHO_C" >&6
15608 eval "$as_ac_Header=\
$ac_header_preproc"
15610 ac_res=`eval echo '${'$as_ac_Header'}'`
15611 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15612 echo "${ECHO_T}$ac_res" >&6; }
15615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15632 for ac_func in $ac_func_list
15634 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15635 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15636 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15637 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached
) $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15648 #define $ac_func innocuous_$ac_func
15650 /* System header to define __stub macros and hopefully few prototypes,
15651 which can conflict with char $ac_func (); below.
15652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15653 <limits.h> exists even on freestanding compilers. */
15656 # include <limits.h>
15658 # include <assert.h>
15663 /* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply. */
15670 /* The GNU C library defines this for functions which it implements
15671 to always fail with ENOSYS. Some functions are actually named
15672 something starting with __ and the normal name is an alias. */
15673 #if defined __stub_$ac_func || defined __stub___$ac_func
15680 return $ac_func ();
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (ac_try="$ac_link"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_link") 2>conftest.er1
15694 grep -v '^ *+' conftest.er1 >conftest.err
15696 cat conftest.err >&5
15697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15698 (exit $ac_status); } && {
15699 test -z "$ac_c_werror_flag" ||
15700 test ! -s conftest.err
15701 } && test -s conftest$ac_exeext &&
15702 $as_test_x conftest$ac_exeext; then
15703 eval "$as_ac_var=yes"
15705 echo "$as_me: failed program was
:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 eval "$as_ac_var=no
"
15711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15712 conftest$ac_exeext conftest.$ac_ext
15714 ac_res=`eval echo '${'$as_ac_var'}'`
15715 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15717 if test `eval echo '${'$as_ac_var'}'` = yes; then
15718 cat >>confdefs.h <<_ACEOF
15719 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15741 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15742 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15743 if test "${ac_cv_func_working_mktime+set}" = set; then
15744 echo $ECHO_N "(cached
) $ECHO_C" >&6
15746 if test "$cross_compiling" = yes; then
15747 ac_cv_func_working_mktime=no
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 /* Test program from Paul Eggert and Tony Leneis. */
15756 #ifdef TIME_WITH_SYS_TIME
15757 # include <sys/time.h>
15760 # ifdef HAVE_SYS_TIME_H
15761 # include <sys/time.h>
15767 #include <stdlib.h>
15769 #ifdef HAVE_UNISTD_H
15770 # include <unistd.h>
15774 # define alarm(X) /* empty */
15777 /* Work around redefinition to rpl_putenv by other config tests. */
15780 static time_t time_t_max;
15781 static time_t time_t_min;
15783 /* Values we'll use to set the TZ environment variable. */
15784 static char *tz_strings[] = {
15785 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15786 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15788 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15790 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15791 Based on a problem report from Andreas Jaeger. */
15793 spring_forward_gap ()
15795 /* glibc (up to about 1998-10-07) failed this test. */
15798 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15799 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15800 on systems that don't support the Olson extension, or don't have the
15801 full zoneinfo tables installed. */
15802 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15811 return mktime (&tm) != (time_t) -1;
15819 return ! (lt = localtime (&now)) || mktime (lt) == now;
15826 return (mktime_test1 (now)
15827 && mktime_test1 ((time_t) (time_t_max - now))
15828 && mktime_test1 ((time_t) (time_t_min + now)));
15834 /* Based on code from Ariel Faigon. */
15844 return tm.tm_mon == 2 && tm.tm_mday == 31;
15853 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15854 now = mktime (&tm);
15855 if (now != (time_t) -1)
15857 struct tm *lt = localtime (&now);
15859 && lt->tm_year == tm.tm_year
15860 && lt->tm_mon == tm.tm_mon
15861 && lt->tm_mday == tm.tm_mday
15862 && lt->tm_hour == tm.tm_hour
15863 && lt->tm_min == tm.tm_min
15864 && lt->tm_sec == tm.tm_sec
15865 && lt->tm_yday == tm.tm_yday
15866 && lt->tm_wday == tm.tm_wday
15867 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15868 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15877 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15878 ignoring leap seconds. */
15879 unsigned long int answer = 2527315200UL;
15883 tm.tm_year = 2050 - 1900;
15886 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15889 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15890 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15891 on systems that don't support the Olson extension, or don't have the
15892 full zoneinfo tables installed. */
15893 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15897 /* Check that the result is either a failure, or close enough
15898 to the correct answer that we can assume the discrepancy is
15899 due to leap seconds. */
15900 return (t == (time_t) -1
15901 || (0 < t && answer - 120 <= t && t <= answer + 120));
15910 /* This test makes some buggy mktime implementations loop.
15911 Give up after 60 seconds; a mktime slower than that
15912 isn't worth using anyway. */
15915 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15918 if ((time_t) -1 < 0)
15919 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15921 delta = time_t_max / 997; /* a suitable prime number */
15922 for (i = 0; i < N_STRINGS; i++)
15925 putenv (tz_strings[i]);
15927 for (t = 0; t <= time_t_max - delta; t += delta)
15928 if (! mktime_test (t))
15930 if (! (mktime_test ((time_t) 1)
15931 && mktime_test ((time_t) (60 * 60))
15932 && mktime_test ((time_t) (60 * 60 * 24))))
15935 for (j = 1; 0 < j; j *= 2)
15936 if (! bigtime_test (j))
15938 if (! bigtime_test (j - 1))
15941 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15944 rm -f conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>&5
15953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_func_working_mktime=yes
15966 echo "$as_me: program exited with status
$ac_status" >&5
15967 echo "$as_me: failed program was
:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ( exit $ac_status )
15971 ac_cv_func_working_mktime=no
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15979 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15980 if test $ac_cv_func_working_mktime = no; then
15981 case " $LIBOBJS " in
15982 *" mktime.
$ac_objext "* ) ;;
15983 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15989 if test "$ac_cv_func_working_mktime" = no; then
15991 cat >>confdefs.h <<\_ACEOF
15992 #define BROKEN_MKTIME 1
15997 ac_have_func=no # yes means we've found a way to get the load average.
15999 # Make sure getloadavg.c is where it belongs, at configure-time.
16000 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16001 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16002 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16003 { (exit 1); exit 1; }; }
16007 # Check for getloadavg, but be sure not to touch the cache variable.
16008 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16009 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16010 if test "${ac_cv_func_getloadavg+set}" = set; then
16011 echo $ECHO_N "(cached
) $ECHO_C" >&6
16013 cat >conftest.$ac_ext <<_ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021 #define getloadavg innocuous_getloadavg
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char getloadavg (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16029 # include <limits.h>
16031 # include <assert.h>
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16042 char getloadavg ();
16043 /* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046 #if defined __stub_getloadavg || defined __stub___getloadavg
16053 return getloadavg ();
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
16067 grep -v '^ *+' conftest.er1 >conftest.err
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest$ac_exeext &&
16075 $as_test_x conftest$ac_exeext; then
16076 ac_cv_func_getloadavg=yes
16078 echo "$as_me: failed program was
:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 ac_cv_func_getloadavg=no
16084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16085 conftest$ac_exeext conftest.$ac_ext
16087 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16088 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16089 if test $ac_cv_func_getloadavg = yes; then
16094 ) && ac_have_func=yes
16096 # On HPUX9, an unprivileged user can get load averages through this function.
16098 for ac_func in pstat_getdynamic
16100 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16101 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16102 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16103 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16104 echo $ECHO_N "(cached
) $ECHO_C" >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16114 #define $ac_func innocuous_$ac_func
16116 /* System header to define __stub macros and hopefully few prototypes,
16117 which can conflict with char $ac_func (); below.
16118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16119 <limits.h> exists even on freestanding compilers. */
16122 # include <limits.h>
16124 # include <assert.h>
16129 /* Override any GCC internal prototype to avoid an error.
16130 Use char because int might match the return type of a GCC
16131 builtin and then its argument prototype would still apply. */
16136 /* The GNU C library defines this for functions which it implements
16137 to always fail with ENOSYS. Some functions are actually named
16138 something starting with __ and the normal name is an alias. */
16139 #if defined __stub_$ac_func || defined __stub___$ac_func
16146 return $ac_func ();
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_link") 2>conftest.er1
16160 grep -v '^ *+' conftest.er1 >conftest.err
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16164 (exit $ac_status); } && {
16165 test -z "$ac_c_werror_flag" ||
16166 test ! -s conftest.err
16167 } && test -s conftest$ac_exeext &&
16168 $as_test_x conftest$ac_exeext; then
16169 eval "$as_ac_var=yes"
16171 echo "$as_me: failed program was
:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16174 eval "$as_ac_var=no
"
16177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16178 conftest$ac_exeext conftest.$ac_ext
16180 ac_res=`eval echo '${'$as_ac_var'}'`
16181 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16182 echo "${ECHO_T}$ac_res" >&6; }
16183 if test `eval echo '${'$as_ac_var'}'` = yes; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16192 # Solaris has libkstat which does not require root.
16194 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16195 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16196 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16197 echo $ECHO_N "(cached
) $ECHO_C" >&6
16199 ac_check_lib_save_LIBS=$LIBS
16200 LIBS="-lkstat $LIBS"
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16208 /* Override any GCC internal prototype to avoid an error.
16209 Use char because int might match the return type of a GCC
16210 builtin and then its argument prototype would still apply. */
16214 char kstat_open ();
16218 return kstat_open ();
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_link") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16236 (exit $ac_status); } && {
16237 test -z "$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 } && test -s conftest$ac_exeext &&
16240 $as_test_x conftest$ac_exeext; then
16241 ac_cv_lib_kstat_kstat_open=yes
16243 echo "$as_me: failed program was
:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_cv_lib_kstat_kstat_open=no
16249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16250 conftest$ac_exeext conftest.$ac_ext
16251 LIBS=$ac_check_lib_save_LIBS
16253 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16254 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16255 if test $ac_cv_lib_kstat_kstat_open = yes; then
16256 cat >>confdefs.h <<_ACEOF
16257 #define HAVE_LIBKSTAT 1
16260 LIBS="-lkstat $LIBS"
16264 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16266 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16267 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16268 # to get the right answer into the cache.
16269 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16270 if test $ac_have_func = no; then
16271 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16272 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16273 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16274 echo $ECHO_N "(cached
) $ECHO_C" >&6
16276 ac_check_lib_save_LIBS=$LIBS
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16295 return elf_begin ();
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16307 (eval "$ac_link") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest$ac_exeext &&
16317 $as_test_x conftest$ac_exeext; then
16318 ac_cv_lib_elf_elf_begin=yes
16320 echo "$as_me: failed program was
:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_cv_lib_elf_elf_begin=no
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16331 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16332 if test $ac_cv_lib_elf_elf_begin = yes; then
16337 if test $ac_have_func = no; then
16338 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16339 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16340 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16341 echo $ECHO_N "(cached
) $ECHO_C" >&6
16343 ac_check_lib_save_LIBS=$LIBS
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16352 /* Override any GCC internal prototype to avoid an error.
16353 Use char because int might match the return type of a GCC
16354 builtin and then its argument prototype would still apply. */
16362 return kvm_open ();
16367 rm -f conftest.$ac_objext conftest$ac_exeext
16368 if { (ac_try="$ac_link"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_link") 2>conftest.er1
16376 grep -v '^ *+' conftest.er1 >conftest.err
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest$ac_exeext &&
16384 $as_test_x conftest$ac_exeext; then
16385 ac_cv_lib_kvm_kvm_open=yes
16387 echo "$as_me: failed program was
:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 ac_cv_lib_kvm_kvm_open=no
16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394 conftest$ac_exeext conftest.$ac_ext
16395 LIBS=$ac_check_lib_save_LIBS
16397 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16398 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16399 if test $ac_cv_lib_kvm_kvm_open = yes; then
16403 # Check for the 4.4BSD definition of getloadavg.
16404 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16405 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16406 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16407 echo $ECHO_N "(cached
) $ECHO_C" >&6
16409 ac_check_lib_save_LIBS=$LIBS
16410 LIBS="-lutil $LIBS"
16411 cat >conftest.$ac_ext <<_ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16418 /* Override any GCC internal prototype to avoid an error.
16419 Use char because int might match the return type of a GCC
16420 builtin and then its argument prototype would still apply. */
16424 char getloadavg ();
16428 return getloadavg ();
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest$ac_exeext &&
16450 $as_test_x conftest$ac_exeext; then
16451 ac_cv_lib_util_getloadavg=yes
16453 echo "$as_me: failed program was
:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_cv_lib_util_getloadavg=no
16459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16460 conftest$ac_exeext conftest.$ac_ext
16461 LIBS=$ac_check_lib_save_LIBS
16463 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16464 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16465 if test $ac_cv_lib_util_getloadavg = yes; then
16466 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16471 if test $ac_have_func = no; then
16472 # There is a commonly available library for RS/6000 AIX.
16473 # Since it is not a standard part of AIX, it might be installed locally.
16474 ac_getloadavg_LIBS=$LIBS
16475 LIBS="-L/usr
/local
/lib
$LIBS"
16476 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16477 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16478 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16479 echo $ECHO_N "(cached
) $ECHO_C" >&6
16481 ac_check_lib_save_LIBS=$LIBS
16482 LIBS="-lgetloadavg $LIBS"
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16496 char getloadavg ();
16500 return getloadavg ();
16505 rm -f conftest.$ac_objext conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_link") 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest$ac_exeext &&
16522 $as_test_x conftest$ac_exeext; then
16523 ac_cv_lib_getloadavg_getloadavg=yes
16525 echo "$as_me: failed program was
:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 ac_cv_lib_getloadavg_getloadavg=no
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532 conftest$ac_exeext conftest.$ac_ext
16533 LIBS=$ac_check_lib_save_LIBS
16535 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16536 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16537 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16538 LIBS="-lgetloadavg $LIBS"
16540 LIBS=$ac_getloadavg_LIBS
16545 # Make sure it is really in the library, if we think we found it,
16546 # otherwise set up the replacement function.
16548 for ac_func in getloadavg
16550 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16551 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16552 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16553 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16554 echo $ECHO_N "(cached
) $ECHO_C" >&6
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16564 #define $ac_func innocuous_$ac_func
16566 /* System header to define __stub macros and hopefully few prototypes,
16567 which can conflict with char $ac_func (); below.
16568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569 <limits.h> exists even on freestanding compilers. */
16572 # include <limits.h>
16574 # include <assert.h>
16579 /* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
16586 /* The GNU C library defines this for functions which it implements
16587 to always fail with ENOSYS. Some functions are actually named
16588 something starting with __ and the normal name is an alias. */
16589 #if defined __stub_$ac_func || defined __stub___$ac_func
16596 return $ac_func ();
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (ac_try="$ac_link"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_link") 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest$ac_exeext &&
16618 $as_test_x conftest$ac_exeext; then
16619 eval "$as_ac_var=yes"
16621 echo "$as_me: failed program was
:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 eval "$as_ac_var=no
"
16627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16628 conftest$ac_exeext conftest.$ac_ext
16630 ac_res=`eval echo '${'$as_ac_var'}'`
16631 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16633 if test `eval echo '${'$as_ac_var'}'` = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16639 case " $LIBOBJS " in
16640 *" getloadavg.
$ac_objext "* ) ;;
16641 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16646 cat >>confdefs.h <<\_ACEOF
16647 #define C_GETLOADAVG 1
16650 # Figure out what our getloadavg.c needs.
16652 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16653 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16654 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16655 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16656 echo $ECHO_N "(cached
) $ECHO_C" >&6
16658 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16659 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16661 # Is the header compilable?
16662 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16663 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16664 cat >conftest.$ac_ext <<_ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $ac_includes_default
16671 #include <sys/dg_sys_info.h>
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest.$ac_objext; then
16690 ac_header_compiler=yes
16692 echo "$as_me: failed program was
:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_header_compiler=no
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16700 echo "${ECHO_T}$ac_header_compiler" >&6; }
16702 # Is the header present?
16703 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16704 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 #include <sys/dg_sys_info.h>
16713 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16721 grep -v '^ *+' conftest.er1 >conftest.err
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16725 (exit $ac_status); } >/dev/null && {
16726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16727 test ! -s conftest.err
16729 ac_header_preproc=yes
16731 echo "$as_me: failed program was
:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_header_preproc=no
16737 rm -f conftest.err conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16739 echo "${ECHO_T}$ac_header_preproc" >&6; }
16741 # So? What about this header?
16742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16744 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16745 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16746 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16747 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16748 ac_header_preproc=yes
16751 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16752 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16753 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16754 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16755 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16756 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16757 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16758 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16759 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16760 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16761 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16762 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16766 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16767 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16768 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16769 echo $ECHO_N "(cached
) $ECHO_C" >&6
16771 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16773 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16774 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16777 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16780 cat >>confdefs.h <<\_ACEOF
16785 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16786 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16787 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16788 echo $ECHO_N "(cached
) $ECHO_C" >&6
16790 ac_check_lib_save_LIBS=$LIBS
16792 cat >conftest.$ac_ext <<_ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16805 char dg_sys_info ();
16809 return dg_sys_info ();
16814 rm -f conftest.$ac_objext conftest$ac_exeext
16815 if { (ac_try="$ac_link"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_link") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest$ac_exeext &&
16831 $as_test_x conftest$ac_exeext; then
16832 ac_cv_lib_dgc_dg_sys_info=yes
16834 echo "$as_me: failed program was
:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 ac_cv_lib_dgc_dg_sys_info=no
16840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16841 conftest$ac_exeext conftest.$ac_ext
16842 LIBS=$ac_check_lib_save_LIBS
16844 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16845 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16846 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16847 cat >>confdefs.h <<_ACEOF
16848 #define HAVE_LIBDGC 1
16859 if test "${ac_cv_header_locale_h+set}" = set; then
16860 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16861 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16862 if test "${ac_cv_header_locale_h+set}" = set; then
16863 echo $ECHO_N "(cached
) $ECHO_C" >&6
16865 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16866 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16868 # Is the header compilable?
16869 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16870 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #include <locale.h>
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest.$ac_objext; then
16897 ac_header_compiler=yes
16899 echo "$as_me: failed program was
:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_header_compiler=no
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16907 echo "${ECHO_T}$ac_header_compiler" >&6; }
16909 # Is the header present?
16910 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16911 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16912 cat >conftest.$ac_ext <<_ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 #include <locale.h>
16920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16928 grep -v '^ *+' conftest.er1 >conftest.err
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16932 (exit $ac_status); } >/dev/null && {
16933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16934 test ! -s conftest.err
16936 ac_header_preproc=yes
16938 echo "$as_me: failed program was
:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 ac_header_preproc=no
16944 rm -f conftest.err conftest.$ac_ext
16945 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16946 echo "${ECHO_T}$ac_header_preproc" >&6; }
16948 # So? What about this header?
16949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16951 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16952 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16953 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16954 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16955 ac_header_preproc=yes
16958 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16959 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16960 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16961 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16962 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16963 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16964 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16965 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16966 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16967 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16968 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16969 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16973 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16974 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16975 if test "${ac_cv_header_locale_h+set}" = set; then
16976 echo $ECHO_N "(cached
) $ECHO_C" >&6
16978 ac_cv_header_locale_h=$ac_header_preproc
16980 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16981 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16987 for ac_func in setlocale
16989 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16990 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16991 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16992 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16993 echo $ECHO_N "(cached
) $ECHO_C" >&6
16995 cat >conftest.$ac_ext <<_ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17003 #define $ac_func innocuous_$ac_func
17005 /* System header to define __stub macros and hopefully few prototypes,
17006 which can conflict with char $ac_func (); below.
17007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17008 <limits.h> exists even on freestanding compilers. */
17011 # include <limits.h>
17013 # include <assert.h>
17018 /* Override any GCC internal prototype to avoid an error.
17019 Use char because int might match the return type of a GCC
17020 builtin and then its argument prototype would still apply. */
17025 /* The GNU C library defines this for functions which it implements
17026 to always fail with ENOSYS. Some functions are actually named
17027 something starting with __ and the normal name is an alias. */
17028 #if defined __stub_$ac_func || defined __stub___$ac_func
17035 return $ac_func ();
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (ac_try="$ac_link"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
17049 grep -v '^ *+' conftest.er1 >conftest.err
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17053 (exit $ac_status); } && {
17054 test -z "$ac_c_werror_flag" ||
17055 test ! -s conftest.err
17056 } && test -s conftest$ac_exeext &&
17057 $as_test_x conftest$ac_exeext; then
17058 eval "$as_ac_var=yes"
17060 echo "$as_me: failed program was
:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17063 eval "$as_ac_var=no
"
17066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17067 conftest$ac_exeext conftest.$ac_ext
17069 ac_res=`eval echo '${'$as_ac_var'}'`
17070 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17071 echo "${ECHO_T}$ac_res" >&6; }
17072 if test `eval echo '${'$as_ac_var'}'` = yes; then
17073 cat >>confdefs.h <<_ACEOF
17074 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17081 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17082 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17083 # Irix 4.0.5F has the header but not the library.
17084 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17087 cat >>confdefs.h <<\_ACEOF
17093 if test $ac_have_func = no; then
17094 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17095 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17096 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17097 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17098 echo $ECHO_N "(cached
) $ECHO_C" >&6
17100 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17101 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17103 # Is the header compilable?
17104 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17105 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17112 $ac_includes_default
17113 #include <inq_stats/cpustats.h>
17115 rm -f conftest.$ac_objext
17116 if { (ac_try="$ac_compile"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_compile") 2>conftest.er1
17124 grep -v '^ *+' conftest.er1 >conftest.err
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17128 (exit $ac_status); } && {
17129 test -z "$ac_c_werror_flag" ||
17130 test ! -s conftest.err
17131 } && test -s conftest.$ac_objext; then
17132 ac_header_compiler=yes
17134 echo "$as_me: failed program was
:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ac_header_compiler=no
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17142 echo "${ECHO_T}$ac_header_compiler" >&6; }
17144 # Is the header present?
17145 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17146 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17147 cat >conftest.$ac_ext <<_ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 #include <inq_stats/cpustats.h>
17155 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17163 grep -v '^ *+' conftest.er1 >conftest.err
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17167 (exit $ac_status); } >/dev/null && {
17168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17169 test ! -s conftest.err
17171 ac_header_preproc=yes
17173 echo "$as_me: failed program was
:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_header_preproc=no
17179 rm -f conftest.err conftest.$ac_ext
17180 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17181 echo "${ECHO_T}$ac_header_preproc" >&6; }
17183 # So? What about this header?
17184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17186 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17187 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17188 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17189 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17190 ac_header_preproc=yes
17193 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17194 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17195 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17196 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17197 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17198 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17199 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17200 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17201 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17202 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17203 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17204 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17208 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17209 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17210 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17211 echo $ECHO_N "(cached
) $ECHO_C" >&6
17213 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17215 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17216 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17219 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17222 cat >>confdefs.h <<\_ACEOF
17227 cat >>confdefs.h <<\_ACEOF
17236 if test $ac_have_func = no; then
17237 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17238 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17239 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17240 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17241 echo $ECHO_N "(cached
) $ECHO_C" >&6
17243 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17244 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17246 # Is the header compilable?
17247 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17248 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 $ac_includes_default
17256 #include <sys/cpustats.h>
17258 rm -f conftest.$ac_objext
17259 if { (ac_try="$ac_compile"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_compile") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17271 (exit $ac_status); } && {
17272 test -z "$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 } && test -s conftest.$ac_objext; then
17275 ac_header_compiler=yes
17277 echo "$as_me: failed program was
:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_header_compiler=no
17283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6; }
17287 # Is the header present?
17288 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17289 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 #include <sys/cpustats.h>
17298 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17310 (exit $ac_status); } >/dev/null && {
17311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17314 ac_header_preproc=yes
17316 echo "$as_me: failed program was
:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_header_preproc=no
17322 rm -f conftest.err conftest.$ac_ext
17323 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17324 echo "${ECHO_T}$ac_header_preproc" >&6; }
17326 # So? What about this header?
17327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17329 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17330 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17331 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17332 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17333 ac_header_preproc=yes
17336 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17337 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17338 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17339 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17340 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17341 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17342 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17343 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17344 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17345 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17346 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17347 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17351 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17352 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17353 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17354 echo $ECHO_N "(cached
) $ECHO_C" >&6
17356 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17358 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17359 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17362 if test $ac_cv_header_sys_cpustats_h = yes; then
17363 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17372 if test $ac_have_func = no; then
17374 for ac_header in mach/mach.h
17376 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17378 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17379 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17380 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17381 echo $ECHO_N "(cached
) $ECHO_C" >&6
17383 ac_res=`eval echo '${'$as_ac_Header'}'`
17384 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17385 echo "${ECHO_T}$ac_res" >&6; }
17387 # Is the header compilable?
17388 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17389 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 $ac_includes_default
17397 #include <$ac_header>
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_compile") 2>conftest.er1
17408 grep -v '^ *+' conftest.er1 >conftest.err
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17412 (exit $ac_status); } && {
17413 test -z "$ac_c_werror_flag" ||
17414 test ! -s conftest.err
17415 } && test -s conftest.$ac_objext; then
17416 ac_header_compiler=yes
17418 echo "$as_me: failed program was
:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_header_compiler=no
17424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17425 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17426 echo "${ECHO_T}$ac_header_compiler" >&6; }
17428 # Is the header present?
17429 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17430 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17431 cat >conftest.$ac_ext <<_ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 #include <$ac_header>
17439 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17451 (exit $ac_status); } >/dev/null && {
17452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17455 ac_header_preproc=yes
17457 echo "$as_me: failed program was
:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_header_preproc=no
17463 rm -f conftest.err conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17465 echo "${ECHO_T}$ac_header_preproc" >&6; }
17467 # So? What about this header?
17468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17470 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17471 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17472 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17474 ac_header_preproc=yes
17477 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17478 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17479 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17480 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17481 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17482 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17483 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17484 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17485 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17487 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17488 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17492 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17493 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17495 echo $ECHO_N "(cached
) $ECHO_C" >&6
17497 eval "$as_ac_Header=\
$ac_header_preproc"
17499 ac_res=`eval echo '${'$as_ac_Header'}'`
17500 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17501 echo "${ECHO_T}$ac_res" >&6; }
17504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17516 for ac_header in nlist.h
17518 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17520 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17521 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17522 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17523 echo $ECHO_N "(cached
) $ECHO_C" >&6
17525 ac_res=`eval echo '${'$as_ac_Header'}'`
17526 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17529 # Is the header compilable?
17530 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17531 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 $ac_includes_default
17539 #include <$ac_header>
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17554 (exit $ac_status); } && {
17555 test -z "$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 } && test -s conftest.$ac_objext; then
17558 ac_header_compiler=yes
17560 echo "$as_me: failed program was
:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_header_compiler=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17568 echo "${ECHO_T}$ac_header_compiler" >&6; }
17570 # Is the header present?
17571 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17572 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <$ac_header>
17581 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17589 grep -v '^ *+' conftest.er1 >conftest.err
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17593 (exit $ac_status); } >/dev/null && {
17594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17595 test ! -s conftest.err
17597 ac_header_preproc=yes
17599 echo "$as_me: failed program was
:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_header_preproc=no
17605 rm -f conftest.err conftest.$ac_ext
17606 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17607 echo "${ECHO_T}$ac_header_preproc" >&6; }
17609 # So? What about this header?
17610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17612 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17613 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17614 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17616 ac_header_preproc=yes
17619 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17620 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17621 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17622 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17623 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17624 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17625 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17626 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17627 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17629 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17630 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17634 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17635 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17636 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17637 echo $ECHO_N "(cached
) $ECHO_C" >&6
17639 eval "$as_ac_Header=\
$ac_header_preproc"
17641 ac_res=`eval echo '${'$as_ac_Header'}'`
17642 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17643 echo "${ECHO_T}$ac_res" >&6; }
17646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17647 cat >>confdefs.h <<_ACEOF
17648 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17650 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17651 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17652 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17653 echo $ECHO_N "(cached
) $ECHO_C" >&6
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17666 static struct nlist ac_aggr;
17667 if (ac_aggr.n_un.n_name)
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17686 (exit $ac_status); } && {
17687 test -z "$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 } && test -s conftest.$ac_objext; then
17690 ac_cv_member_struct_nlist_n_un_n_name=yes
17692 echo "$as_me: failed program was
:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17706 static struct nlist ac_aggr;
17707 if (sizeof ac_aggr.n_un.n_name)
17713 rm -f conftest.$ac_objext
17714 if { (ac_try="$ac_compile"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_compile") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest.$ac_objext; then
17730 ac_cv_member_struct_nlist_n_un_n_name=yes
17732 echo "$as_me: failed program was
:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_member_struct_nlist_n_un_n_name=no
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17744 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17745 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17752 cat >>confdefs.h <<\_ACEOF
17753 #define NLIST_NAME_UNION 1
17767 # Some definitions of getloadavg require that the program be installed setgid.
17768 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17769 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17770 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17771 echo $ECHO_N "(cached
) $ECHO_C" >&6
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17780 #ifdef LDAV_PRIVILEGED
17781 Yowza Am I SETGID yet
17784 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17785 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17786 ac_cv_func_getloadavg_setgid=yes
17788 ac_cv_func_getloadavg_setgid=no
17793 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17794 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17795 if test $ac_cv_func_getloadavg_setgid = yes; then
17798 cat >>confdefs.h <<\_ACEOF
17799 #define GETLOADAVG_PRIVILEGED 1
17806 if test $ac_cv_func_getloadavg_setgid = yes; then
17807 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17808 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17809 if test "${ac_cv_group_kmem+set}" = set; then
17810 echo $ECHO_N "(cached
) $ECHO_C" >&6
17812 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17813 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17814 # If we got an error (system does not support symlinks), try without -L.
17815 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17816 ac_cv_group_kmem=`echo $ac_ls_output \
17817 | sed -ne 's/[ ][ ]*/ /g;
17818 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17822 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17823 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17824 KMEM_GROUP=$ac_cv_group_kmem
17826 if test "x
$ac_save_LIBS" = x; then
17827 GETLOADAVG_LIBS=$LIBS
17829 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17835 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17836 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17837 if test "${ac_cv_sys_largefile_source+set}" = set; then
17838 echo $ECHO_N "(cached
) $ECHO_C" >&6
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17851 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest$ac_exeext &&
17873 $as_test_x conftest$ac_exeext; then
17874 ac_cv_sys_largefile_source=no; break
17876 echo "$as_me: failed program was
:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17883 conftest$ac_exeext conftest.$ac_ext
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #define _LARGEFILE_SOURCE 1
17895 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (ac_try="$ac_link"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_link") 2>conftest.er1
17909 grep -v '^ *+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17913 (exit $ac_status); } && {
17914 test -z "$ac_c_werror_flag" ||
17915 test ! -s conftest.err
17916 } && test -s conftest$ac_exeext &&
17917 $as_test_x conftest$ac_exeext; then
17918 ac_cv_sys_largefile_source=1; break
17920 echo "$as_me: failed program was
:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17927 conftest$ac_exeext conftest.$ac_ext
17928 ac_cv_sys_largefile_source=unknown
17932 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17933 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17934 case $ac_cv_sys_largefile_source in #(
17937 cat >>confdefs.h <<_ACEOF
17938 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17944 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17945 # in glibc 2.1.3, but that breaks too many other things.
17946 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17947 if test $ac_cv_sys_largefile_source != unknown; then
17949 cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_FSEEKO 1
17956 # Configure getopt.
17957 # getopt.m4 serial 10
17959 # The getopt module assume you want GNU getopt, with getopt_long etc,
17960 # rather than vanilla POSIX getopt. This means your your code should
17961 # always include <getopt.h> for the getopt prototypes.
17973 # Prerequisites of lib/getopt*.
17980 for ac_header in getopt.h
17982 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17984 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17985 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17987 echo $ECHO_N "(cached
) $ECHO_C" >&6
17989 ac_res=`eval echo '${'$as_ac_Header'}'`
17990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17991 echo "${ECHO_T}$ac_res" >&6; }
17993 # Is the header compilable?
17994 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17995 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 $ac_includes_default
18003 #include <$ac_header>
18005 rm -f conftest.$ac_objext
18006 if { (ac_try="$ac_compile"
18007 case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_compile") 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18018 (exit $ac_status); } && {
18019 test -z "$ac_c_werror_flag" ||
18020 test ! -s conftest.err
18021 } && test -s conftest.$ac_objext; then
18022 ac_header_compiler=yes
18024 echo "$as_me: failed program was
:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_header_compiler=no
18030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18032 echo "${ECHO_T}$ac_header_compiler" >&6; }
18034 # Is the header present?
18035 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18036 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 #include <$ac_header>
18045 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18053 grep -v '^ *+' conftest.er1 >conftest.err
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18057 (exit $ac_status); } >/dev/null && {
18058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18061 ac_header_preproc=yes
18063 echo "$as_me: failed program was
:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_header_preproc=no
18069 rm -f conftest.err conftest.$ac_ext
18070 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18071 echo "${ECHO_T}$ac_header_preproc" >&6; }
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18076 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18077 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18078 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18080 ac_header_preproc=yes
18083 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18084 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18086 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18087 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18088 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18089 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18090 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18091 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18093 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18094 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18098 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18099 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18101 echo $ECHO_N "(cached
) $ECHO_C" >&6
18103 eval "$as_ac_Header=\
$ac_header_preproc"
18105 ac_res=`eval echo '${'$as_ac_Header'}'`
18106 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18107 echo "${ECHO_T}$ac_res" >&6; }
18110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18111 cat >>confdefs.h <<_ACEOF
18112 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18121 if test -z "$GETOPT_H"; then
18123 for ac_func in getopt_long_only
18125 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18126 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18127 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18128 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18129 echo $ECHO_N "(cached
) $ECHO_C" >&6
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18139 #define $ac_func innocuous_$ac_func
18141 /* System header to define __stub macros and hopefully few prototypes,
18142 which can conflict with char $ac_func (); below.
18143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18144 <limits.h> exists even on freestanding compilers. */
18147 # include <limits.h>
18149 # include <assert.h>
18154 /* Override any GCC internal prototype to avoid an error.
18155 Use char because int might match the return type of a GCC
18156 builtin and then its argument prototype would still apply. */
18161 /* The GNU C library defines this for functions which it implements
18162 to always fail with ENOSYS. Some functions are actually named
18163 something starting with __ and the normal name is an alias. */
18164 #if defined __stub_$ac_func || defined __stub___$ac_func
18171 return $ac_func ();
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18189 (exit $ac_status); } && {
18190 test -z "$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest$ac_exeext &&
18193 $as_test_x conftest$ac_exeext; then
18194 eval "$as_ac_var=yes"
18196 echo "$as_me: failed program was
:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 eval "$as_ac_var=no
"
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203 conftest$ac_exeext conftest.$ac_ext
18205 ac_res=`eval echo '${'$as_ac_var'}'`
18206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18207 echo "${ECHO_T}$ac_res" >&6; }
18208 if test `eval echo '${'$as_ac_var'}'` = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18220 if test -z "$GETOPT_H"; then
18221 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18222 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18223 if test "${ac_cv_have_decl_optreset+set}" = set; then
18224 echo $ECHO_N "(cached
) $ECHO_C" >&6
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include <getopt.h>
18245 rm -f conftest.$ac_objext
18246 if { (ac_try="$ac_compile"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_compile") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest.$ac_objext; then
18262 ac_cv_have_decl_optreset=yes
18264 echo "$as_me: failed program was
:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_cv_have_decl_optreset=no
18270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18272 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18273 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18274 if test $ac_cv_have_decl_optreset = yes; then
18280 if test -z "$GETOPT_H"; then
18281 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18282 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18283 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18284 echo $ECHO_N "(cached
) $ECHO_C" >&6
18286 if test "$cross_compiling" = yes; then
18287 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18288 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18289 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18290 echo $ECHO_N "(cached
) $ECHO_C" >&6
18292 cat >conftest.$ac_ext <<_ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18298 #include <getopt.h>
18303 #ifndef getopt_clip
18304 (void) getopt_clip;
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18328 ac_cv_have_decl_getopt_clip=yes
18330 echo "$as_me: failed program was
:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_cv_have_decl_getopt_clip=no
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18339 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18340 if test $ac_cv_have_decl_getopt_clip = yes; then
18341 gl_cv_func_gnu_getopt=no
18343 gl_cv_func_gnu_getopt=yes
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 #include <getopt.h>
18359 myargv[0] = "conftest
";
18362 return getopt (2, myargv, "+a
") != '?';
18368 rm -f conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_link") 2>&5
18377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 gl_cv_func_gnu_getopt=yes
18390 echo "$as_me: program exited with status
$ac_status" >&5
18391 echo "$as_me: failed program was
:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ( exit $ac_status )
18395 gl_cv_func_gnu_getopt=no
18397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18403 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18404 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18411 if test -n "$GETOPT_H"; then
18416 cat >>confdefs.h <<\_ACEOF
18417 #define __GETOPT_PREFIX rpl_
18423 GETOPTOBJS='getopt.o getopt1.o'
18430 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18431 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18432 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18433 echo $ECHO_N "(cached
) $ECHO_C" >&6
18435 # Use it with a single arg.
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 $ac_includes_default
18451 rm -f conftest.$ac_objext
18452 if { (ac_try="$ac_compile"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_compile") 2>conftest.er1
18460 grep -v '^ *+' conftest.er1 >conftest.err
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18464 (exit $ac_status); } && {
18465 test -z "$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 } && test -s conftest.$ac_objext; then
18468 ac_cv_func_getpgrp_void=no
18470 echo "$as_me: failed program was
:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_func_getpgrp_void=yes
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18480 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18481 if test $ac_cv_func_getpgrp_void = yes; then
18483 cat >>confdefs.h <<\_ACEOF
18484 #define GETPGRP_VOID 1
18491 for ac_func in strftime
18493 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18494 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18495 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18496 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18497 echo $ECHO_N "(cached
) $ECHO_C" >&6
18499 cat >conftest.$ac_ext <<_ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h. */
18505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18507 #define $ac_func innocuous_$ac_func
18509 /* System header to define __stub macros and hopefully few prototypes,
18510 which can conflict with char $ac_func (); below.
18511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18512 <limits.h> exists even on freestanding compilers. */
18515 # include <limits.h>
18517 # include <assert.h>
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18529 /* The GNU C library defines this for functions which it implements
18530 to always fail with ENOSYS. Some functions are actually named
18531 something starting with __ and the normal name is an alias. */
18532 #if defined __stub_$ac_func || defined __stub___$ac_func
18539 return $ac_func ();
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_link") 2>conftest.er1
18553 grep -v '^ *+' conftest.er1 >conftest.err
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18557 (exit $ac_status); } && {
18558 test -z "$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18560 } && test -s conftest$ac_exeext &&
18561 $as_test_x conftest$ac_exeext; then
18562 eval "$as_ac_var=yes"
18564 echo "$as_me: failed program was
:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 eval "$as_ac_var=no
"
18570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18571 conftest$ac_exeext conftest.$ac_ext
18573 ac_res=`eval echo '${'$as_ac_var'}'`
18574 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18575 echo "${ECHO_T}$ac_res" >&6; }
18576 if test `eval echo '${'$as_ac_var'}'` = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18582 # strftime is in -lintl on SCO UNIX.
18583 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18584 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18585 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18586 echo $ECHO_N "(cached
) $ECHO_C" >&6
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lintl $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18607 return strftime ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest$ac_exeext &&
18629 $as_test_x conftest$ac_exeext; then
18630 ac_cv_lib_intl_strftime=yes
18632 echo "$as_me: failed program was
:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_intl_strftime=no
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18643 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18644 if test $ac_cv_lib_intl_strftime = yes; then
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_STRFTIME 1
18649 LIBS="-lintl $LIBS"
18658 for ac_func in grantpt
18660 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18661 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18662 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18663 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached
) $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18674 #define $ac_func innocuous_$ac_func
18676 /* System header to define __stub macros and hopefully few prototypes,
18677 which can conflict with char $ac_func (); below.
18678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18679 <limits.h> exists even on freestanding compilers. */
18682 # include <limits.h>
18684 # include <assert.h>
18689 /* Override any GCC internal prototype to avoid an error.
18690 Use char because int might match the return type of a GCC
18691 builtin and then its argument prototype would still apply. */
18696 /* The GNU C library defines this for functions which it implements
18697 to always fail with ENOSYS. Some functions are actually named
18698 something starting with __ and the normal name is an alias. */
18699 #if defined __stub_$ac_func || defined __stub___$ac_func
18706 return $ac_func ();
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (ac_try="$ac_link"
18713 case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_link") 2>conftest.er1
18720 grep -v '^ *+' conftest.er1 >conftest.err
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18724 (exit $ac_status); } && {
18725 test -z "$ac_c_werror_flag" ||
18726 test ! -s conftest.err
18727 } && test -s conftest$ac_exeext &&
18728 $as_test_x conftest$ac_exeext; then
18729 eval "$as_ac_var=yes"
18731 echo "$as_me: failed program was
:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 eval "$as_ac_var=no
"
18737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18738 conftest$ac_exeext conftest.$ac_ext
18740 ac_res=`eval echo '${'$as_ac_var'}'`
18741 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18742 echo "${ECHO_T}$ac_res" >&6; }
18743 if test `eval echo '${'$as_ac_var'}'` = yes; then
18744 cat >>confdefs.h <<_ACEOF
18745 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18752 # PTY-related GNU extensions.
18754 for ac_func in getpt
18756 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18757 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18758 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18759 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18760 echo $ECHO_N "(cached
) $ECHO_C" >&6
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18770 #define $ac_func innocuous_$ac_func
18772 /* System header to define __stub macros and hopefully few prototypes,
18773 which can conflict with char $ac_func (); below.
18774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18775 <limits.h> exists even on freestanding compilers. */
18778 # include <limits.h>
18780 # include <assert.h>
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18792 /* The GNU C library defines this for functions which it implements
18793 to always fail with ENOSYS. Some functions are actually named
18794 something starting with __ and the normal name is an alias. */
18795 #if defined __stub_$ac_func || defined __stub___$ac_func
18802 return $ac_func ();
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18816 grep -v '^ *+' conftest.er1 >conftest.err
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18820 (exit $ac_status); } && {
18821 test -z "$ac_c_werror_flag" ||
18822 test ! -s conftest.err
18823 } && test -s conftest$ac_exeext &&
18824 $as_test_x conftest$ac_exeext; then
18825 eval "$as_ac_var=yes"
18827 echo "$as_me: failed program was
:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 eval "$as_ac_var=no
"
18833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18834 conftest$ac_exeext conftest.$ac_ext
18836 ac_res=`eval echo '${'$as_ac_var'}'`
18837 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18838 echo "${ECHO_T}$ac_res" >&6; }
18839 if test `eval echo '${'$as_ac_var'}'` = yes; then
18840 cat >>confdefs.h <<_ACEOF
18841 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18848 # Check this now, so that we will NOT find the above functions in ncurses.
18849 # That is because we have not set up to link ncurses in lib-src.
18850 # It's better to believe a function is not available
18851 # than to expect to find it in ncurses.
18853 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18854 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18855 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18856 echo $ECHO_N "(cached
) $ECHO_C" >&6
18858 ac_check_lib_save_LIBS=$LIBS
18859 LIBS="-lncurses $LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (ac_try="$ac_link"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_link") 2>conftest.er1
18891 grep -v '^ *+' conftest.er1 >conftest.err
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18895 (exit $ac_status); } && {
18896 test -z "$ac_c_werror_flag" ||
18897 test ! -s conftest.err
18898 } && test -s conftest$ac_exeext &&
18899 $as_test_x conftest$ac_exeext; then
18900 ac_cv_lib_ncurses_tparm=yes
18902 echo "$as_me: failed program was
:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_cv_lib_ncurses_tparm=no
18908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18909 conftest$ac_exeext conftest.$ac_ext
18910 LIBS=$ac_check_lib_save_LIBS
18912 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18913 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18914 if test $ac_cv_lib_ncurses_tparm = yes; then
18915 cat >>confdefs.h <<_ACEOF
18916 #define HAVE_LIBNCURSES 1
18919 LIBS="-lncurses $LIBS"
18924 # Do we need the Hesiod library to provide the support routines?
18925 if test "$with_hesiod" = yes ; then
18926 # Don't set $LIBS here -- see comments above.
18928 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18929 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18930 if test "${ac_cv_func_res_send+set}" = set; then
18931 echo $ECHO_N "(cached
) $ECHO_C" >&6
18933 cat >conftest.$ac_ext <<_ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18941 #define res_send innocuous_res_send
18943 /* System header to define __stub macros and hopefully few prototypes,
18944 which can conflict with char res_send (); below.
18945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18946 <limits.h> exists even on freestanding compilers. */
18949 # include <limits.h>
18951 # include <assert.h>
18956 /* Override any GCC internal prototype to avoid an error.
18957 Use char because int might match the return type of a GCC
18958 builtin and then its argument prototype would still apply. */
18963 /* The GNU C library defines this for functions which it implements
18964 to always fail with ENOSYS. Some functions are actually named
18965 something starting with __ and the normal name is an alias. */
18966 #if defined __stub_res_send || defined __stub___res_send
18973 return res_send ();
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_link") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18991 (exit $ac_status); } && {
18992 test -z "$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18994 } && test -s conftest$ac_exeext &&
18995 $as_test_x conftest$ac_exeext; then
18996 ac_cv_func_res_send=yes
18998 echo "$as_me: failed program was
:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 ac_cv_func_res_send=no
19004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19005 conftest$ac_exeext conftest.$ac_ext
19007 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19008 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19009 if test $ac_cv_func_res_send = yes; then
19012 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19013 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19014 if test "${ac_cv_func___res_send+set}" = set; then
19015 echo $ECHO_N "(cached
) $ECHO_C" >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19025 #define __res_send innocuous___res_send
19027 /* System header to define __stub macros and hopefully few prototypes,
19028 which can conflict with char __res_send (); below.
19029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030 <limits.h> exists even on freestanding compilers. */
19033 # include <limits.h>
19035 # include <assert.h>
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19046 char __res_send ();
19047 /* The GNU C library defines this for functions which it implements
19048 to always fail with ENOSYS. Some functions are actually named
19049 something starting with __ and the normal name is an alias. */
19050 #if defined __stub___res_send || defined __stub_____res_send
19057 return __res_send ();
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_link") 2>conftest.er1
19071 grep -v '^ *+' conftest.er1 >conftest.err
19073 cat conftest.err >&5
19074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19075 (exit $ac_status); } && {
19076 test -z "$ac_c_werror_flag" ||
19077 test ! -s conftest.err
19078 } && test -s conftest$ac_exeext &&
19079 $as_test_x conftest$ac_exeext; then
19080 ac_cv_func___res_send=yes
19082 echo "$as_me: failed program was
:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_cv_func___res_send=no
19088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19089 conftest$ac_exeext conftest.$ac_ext
19091 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19092 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19093 if test $ac_cv_func___res_send = yes; then
19096 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19097 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19098 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19099 echo $ECHO_N "(cached
) $ECHO_C" >&6
19101 ac_check_lib_save_LIBS=$LIBS
19102 LIBS="-lresolv $LIBS"
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19120 return res_send ();
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_link") 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19138 (exit $ac_status); } && {
19139 test -z "$ac_c_werror_flag" ||
19140 test ! -s conftest.err
19141 } && test -s conftest$ac_exeext &&
19142 $as_test_x conftest$ac_exeext; then
19143 ac_cv_lib_resolv_res_send=yes
19145 echo "$as_me: failed program was
:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_lib_resolv_res_send=no
19151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LIBS=$ac_check_lib_save_LIBS
19155 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19156 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19157 if test $ac_cv_lib_resolv_res_send = yes; then
19160 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19161 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19162 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19163 echo $ECHO_N "(cached
) $ECHO_C" >&6
19165 ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-lresolv $LIBS"
19167 cat >conftest.$ac_ext <<_ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 /* Override any GCC internal prototype to avoid an error.
19175 Use char because int might match the return type of a GCC
19176 builtin and then its argument prototype would still apply. */
19180 char __res_send ();
19184 return __res_send ();
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (ac_try="$ac_link"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19207 ac_cv_lib_resolv___res_send=yes
19209 echo "$as_me: failed program was
:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_lib_resolv___res_send=no
19215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19216 conftest$ac_exeext conftest.$ac_ext
19217 LIBS=$ac_check_lib_save_LIBS
19219 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19220 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19221 if test $ac_cv_lib_resolv___res_send = yes; then
19231 if test "$resolv" = yes ; then
19234 cat >>confdefs.h <<\_ACEOF
19235 #define HAVE_LIBRESOLV 1
19241 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19242 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19243 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19244 echo $ECHO_N "(cached
) $ECHO_C" >&6
19246 cat >conftest.$ac_ext <<_ACEOF
19249 cat confdefs.h >>conftest.$ac_ext
19250 cat >>conftest.$ac_ext <<_ACEOF
19251 /* end confdefs.h. */
19252 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19254 #define hes_getmailhost innocuous_hes_getmailhost
19256 /* System header to define __stub macros and hopefully few prototypes,
19257 which can conflict with char hes_getmailhost (); below.
19258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19259 <limits.h> exists even on freestanding compilers. */
19262 # include <limits.h>
19264 # include <assert.h>
19267 #undef hes_getmailhost
19269 /* Override any GCC internal prototype to avoid an error.
19270 Use char because int might match the return type of a GCC
19271 builtin and then its argument prototype would still apply. */
19275 char hes_getmailhost ();
19276 /* The GNU C library defines this for functions which it implements
19277 to always fail with ENOSYS. Some functions are actually named
19278 something starting with __ and the normal name is an alias. */
19279 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19286 return hes_getmailhost ();
19291 rm -f conftest.$ac_objext conftest$ac_exeext
19292 if { (ac_try="$ac_link"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_link") 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest$ac_exeext &&
19308 $as_test_x conftest$ac_exeext; then
19309 ac_cv_func_hes_getmailhost=yes
19311 echo "$as_me: failed program was
:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 ac_cv_func_hes_getmailhost=no
19317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19318 conftest$ac_exeext conftest.$ac_ext
19320 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19321 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19322 if test $ac_cv_func_hes_getmailhost = yes; then
19325 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19326 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19327 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19328 echo $ECHO_N "(cached
) $ECHO_C" >&6
19330 ac_check_lib_save_LIBS=$LIBS
19331 LIBS="-lhesiod $RESOLVLIB $LIBS"
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19345 char hes_getmailhost ();
19349 return hes_getmailhost ();
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
19356 case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest$ac_exeext &&
19371 $as_test_x conftest$ac_exeext; then
19372 ac_cv_lib_hesiod_hes_getmailhost=yes
19374 echo "$as_me: failed program was
:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_lib_hesiod_hes_getmailhost=no
19380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19381 conftest$ac_exeext conftest.$ac_ext
19382 LIBS=$ac_check_lib_save_LIBS
19384 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19385 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19386 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19388 cat >>confdefs.h <<\_ACEOF
19389 #define HAVE_LIBHESIOD 1
19400 # These tell us which Kerberos-related libraries to use.
19401 if test "${with_kerberos+set}" = set; then
19403 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19404 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19405 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19406 echo $ECHO_N "(cached
) $ECHO_C" >&6
19408 ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lcom_err $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19450 ac_cv_lib_com_err_com_err=yes
19452 echo "$as_me: failed program was
:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_lib_com_err_com_err=no
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19463 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19464 if test $ac_cv_lib_com_err_com_err = yes; then
19465 cat >>confdefs.h <<_ACEOF
19466 #define HAVE_LIBCOM_ERR 1
19469 LIBS="-lcom_err $LIBS"
19474 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19475 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19476 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19477 echo $ECHO_N "(cached
) $ECHO_C" >&6
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lk5crypto $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19494 char mit_des_cbc_encrypt ();
19498 return mit_des_cbc_encrypt ();
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19523 echo "$as_me: failed program was
:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19533 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19534 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19535 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19536 cat >>confdefs.h <<_ACEOF
19537 #define HAVE_LIBK5CRYPTO 1
19540 LIBS="-lk5crypto $LIBS"
19545 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19546 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19547 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19548 echo $ECHO_N "(cached
) $ECHO_C" >&6
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lcrypto $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19565 char mit_des_cbc_encrypt ();
19569 return mit_des_cbc_encrypt ();
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (ac_try="$ac_link"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_link") 2>conftest.er1
19583 grep -v '^ *+' conftest.er1 >conftest.err
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19587 (exit $ac_status); } && {
19588 test -z "$ac_c_werror_flag" ||
19589 test ! -s conftest.err
19590 } && test -s conftest$ac_exeext &&
19591 $as_test_x conftest$ac_exeext; then
19592 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19594 echo "$as_me: failed program was
:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19601 conftest$ac_exeext conftest.$ac_ext
19602 LIBS=$ac_check_lib_save_LIBS
19604 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19605 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19606 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19607 cat >>confdefs.h <<_ACEOF
19608 #define HAVE_LIBCRYPTO 1
19611 LIBS="-lcrypto $LIBS"
19616 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19617 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19618 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19619 echo $ECHO_N "(cached
) $ECHO_C" >&6
19621 ac_check_lib_save_LIBS=$LIBS
19622 LIBS="-lkrb5 $LIBS"
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 /* Override any GCC internal prototype to avoid an error.
19631 Use char because int might match the return type of a GCC
19632 builtin and then its argument prototype would still apply. */
19636 char krb5_init_context ();
19640 return krb5_init_context ();
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_link") 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext &&
19662 $as_test_x conftest$ac_exeext; then
19663 ac_cv_lib_krb5_krb5_init_context=yes
19665 echo "$as_me: failed program was
:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_lib_krb5_krb5_init_context=no
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19675 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19676 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19677 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_LIBKRB5 1
19682 LIBS="-lkrb5 $LIBS"
19686 if test "${with_kerberos5+set}" != set; then
19688 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19689 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19690 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19691 echo $ECHO_N "(cached
) $ECHO_C" >&6
19693 ac_check_lib_save_LIBS=$LIBS
19694 LIBS="-ldes425 $LIBS"
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19708 char des_cbc_encrypt ();
19712 return des_cbc_encrypt ();
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ac_cv_lib_des425_des_cbc_encrypt=yes
19737 echo "$as_me: failed program was
:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_des425_des_cbc_encrypt=no
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19748 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19749 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_LIBDES425 1
19754 LIBS="-ldes425 $LIBS"
19758 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19759 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19760 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19761 echo $ECHO_N "(cached
) $ECHO_C" >&6
19763 ac_check_lib_save_LIBS=$LIBS
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19778 char des_cbc_encrypt ();
19782 return des_cbc_encrypt ();
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19800 (exit $ac_status); } && {
19801 test -z "$ac_c_werror_flag" ||
19802 test ! -s conftest.err
19803 } && test -s conftest$ac_exeext &&
19804 $as_test_x conftest$ac_exeext; then
19805 ac_cv_lib_des_des_cbc_encrypt=yes
19807 echo "$as_me: failed program was
:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_lib_des_des_cbc_encrypt=no
19813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19818 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19819 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19820 cat >>confdefs.h <<_ACEOF
19821 #define HAVE_LIBDES 1
19831 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19832 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19833 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19834 echo $ECHO_N "(cached
) $ECHO_C" >&6
19836 ac_check_lib_save_LIBS=$LIBS
19837 LIBS="-lkrb4 $LIBS"
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19845 /* Override any GCC internal prototype to avoid an error.
19846 Use char because int might match the return type of a GCC
19847 builtin and then its argument prototype would still apply. */
19851 char krb_get_cred ();
19855 return krb_get_cred ();
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 ac_cv_lib_krb4_krb_get_cred=yes
19880 echo "$as_me: failed program was
:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_cv_lib_krb4_krb_get_cred=no
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19890 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19891 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19892 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define HAVE_LIBKRB4 1
19897 LIBS="-lkrb4 $LIBS"
19901 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19902 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19903 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19904 echo $ECHO_N "(cached
) $ECHO_C" >&6
19906 ac_check_lib_save_LIBS=$LIBS
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19915 /* Override any GCC internal prototype to avoid an error.
19916 Use char because int might match the return type of a GCC
19917 builtin and then its argument prototype would still apply. */
19921 char krb_get_cred ();
19925 return krb_get_cred ();
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_link") 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest$ac_exeext &&
19947 $as_test_x conftest$ac_exeext; then
19948 ac_cv_lib_krb_krb_get_cred=yes
19950 echo "$as_me: failed program was
:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_lib_krb_krb_get_cred=no
19956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19957 conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19960 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19961 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19962 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19963 cat >>confdefs.h <<_ACEOF
19964 #define HAVE_LIBKRB 1
19975 if test "${with_kerberos5+set}" = set; then
19977 for ac_header in krb5.h
19979 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19981 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19982 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19984 echo $ECHO_N "(cached
) $ECHO_C" >&6
19986 ac_res=`eval echo '${'$as_ac_Header'}'`
19987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19990 # Is the header compilable?
19991 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19992 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 $ac_includes_default
20000 #include <$ac_header>
20002 rm -f conftest.$ac_objext
20003 if { (ac_try="$ac_compile"
20004 case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_compile") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest.$ac_objext; then
20019 ac_header_compiler=yes
20021 echo "$as_me: failed program was
:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_compiler=no
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20029 echo "${ECHO_T}$ac_header_compiler" >&6; }
20031 # Is the header present?
20032 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20033 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <$ac_header>
20042 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20054 (exit $ac_status); } >/dev/null && {
20055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20058 ac_header_preproc=yes
20060 echo "$as_me: failed program was
:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_header_preproc=no
20066 rm -f conftest.err conftest.$ac_ext
20067 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6; }
20070 # So? What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20074 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20075 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20077 ac_header_preproc=yes
20080 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20081 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20082 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20083 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20084 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20085 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20086 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20087 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20088 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20090 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20091 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20095 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20096 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20098 echo $ECHO_N "(cached
) $ECHO_C" >&6
20100 eval "$as_ac_Header=\
$ac_header_preproc"
20102 ac_res=`eval echo '${'$as_ac_Header'}'`
20103 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20104 echo "${ECHO_T}$ac_res" >&6; }
20107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20108 cat >>confdefs.h <<_ACEOF
20109 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20118 for ac_header in des.h
20120 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20122 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20123 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20124 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20125 echo $ECHO_N "(cached
) $ECHO_C" >&6
20127 ac_res=`eval echo '${'$as_ac_Header'}'`
20128 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20131 # Is the header compilable?
20132 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20133 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 #include <$ac_header>
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest.$ac_objext; then
20160 ac_header_compiler=yes
20162 echo "$as_me: failed program was
:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_header_compiler=no
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6; }
20172 # Is the header present?
20173 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20174 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 #include <$ac_header>
20183 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20191 grep -v '^ *+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20195 (exit $ac_status); } >/dev/null && {
20196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20199 ac_header_preproc=yes
20201 echo "$as_me: failed program was
:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_header_preproc=no
20207 rm -f conftest.err conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20209 echo "${ECHO_T}$ac_header_preproc" >&6; }
20211 # So? What about this header?
20212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20214 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20215 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20216 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20218 ac_header_preproc=yes
20221 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20222 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20223 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20224 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20225 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20226 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20227 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20228 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20229 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20231 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20232 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20239 echo $ECHO_N "(cached
) $ECHO_C" >&6
20241 eval "$as_ac_Header=\
$ac_header_preproc"
20243 ac_res=`eval echo '${'$as_ac_Header'}'`
20244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20245 echo "${ECHO_T}$ac_res" >&6; }
20248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20249 cat >>confdefs.h <<_ACEOF
20250 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20255 for ac_header in kerberosIV/des.h
20257 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20259 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20260 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20262 echo $ECHO_N "(cached
) $ECHO_C" >&6
20264 ac_res=`eval echo '${'$as_ac_Header'}'`
20265 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20266 echo "${ECHO_T}$ac_res" >&6; }
20268 # Is the header compilable?
20269 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20270 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 $ac_includes_default
20278 #include <$ac_header>
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.$ac_objext; then
20297 ac_header_compiler=yes
20299 echo "$as_me: failed program was
:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_header_compiler=no
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20307 echo "${ECHO_T}$ac_header_compiler" >&6; }
20309 # Is the header present?
20310 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20311 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20318 #include <$ac_header>
20320 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20321 case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20328 grep -v '^ *+' conftest.er1 >conftest.err
20330 cat conftest.err >&5
20331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20332 (exit $ac_status); } >/dev/null && {
20333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20334 test ! -s conftest.err
20336 ac_header_preproc=yes
20338 echo "$as_me: failed program was
:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_header_preproc=no
20344 rm -f conftest.err conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20346 echo "${ECHO_T}$ac_header_preproc" >&6; }
20348 # So? What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20351 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20352 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20353 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20355 ac_header_preproc=yes
20358 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20359 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20360 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20361 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20362 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20363 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20364 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20365 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20366 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20368 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20369 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20373 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20376 echo $ECHO_N "(cached
) $ECHO_C" >&6
20378 eval "$as_ac_Header=\
$ac_header_preproc"
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20386 cat >>confdefs.h <<_ACEOF
20387 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20392 for ac_header in kerberos/des.h
20394 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20396 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20397 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20399 echo $ECHO_N "(cached
) $ECHO_C" >&6
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20405 # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20407 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20415 #include <$ac_header>
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest.$ac_objext; then
20434 ac_header_compiler=yes
20436 echo "$as_me: failed program was
:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_header_compiler=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20444 echo "${ECHO_T}$ac_header_compiler" >&6; }
20446 # Is the header present?
20447 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20448 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <$ac_header>
20457 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20469 (exit $ac_status); } >/dev/null && {
20470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20473 ac_header_preproc=yes
20475 echo "$as_me: failed program was
:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_header_preproc=no
20481 rm -f conftest.err conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20483 echo "${ECHO_T}$ac_header_preproc" >&6; }
20485 # So? What about this header?
20486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20488 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20489 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20490 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20492 ac_header_preproc=yes
20495 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20496 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20497 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20498 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20499 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20500 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20501 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20502 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20503 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20505 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20506 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20510 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20511 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20512 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20513 echo $ECHO_N "(cached
) $ECHO_C" >&6
20515 eval "$as_ac_Header=\
$ac_header_preproc"
20517 ac_res=`eval echo '${'$as_ac_Header'}'`
20518 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20519 echo "${ECHO_T}$ac_res" >&6; }
20522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20540 for ac_header in krb.h
20542 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20543 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20544 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20545 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20546 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20547 echo $ECHO_N "(cached
) $ECHO_C" >&6
20549 ac_res=`eval echo '${'$as_ac_Header'}'`
20550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20551 echo "${ECHO_T}$ac_res" >&6; }
20553 # Is the header compilable?
20554 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20555 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 $ac_includes_default
20563 #include <$ac_header>
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_compile") 2>conftest.er1
20574 grep -v '^ *+' conftest.er1 >conftest.err
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20578 (exit $ac_status); } && {
20579 test -z "$ac_c_werror_flag" ||
20580 test ! -s conftest.err
20581 } && test -s conftest.$ac_objext; then
20582 ac_header_compiler=yes
20584 echo "$as_me: failed program was
:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20587 ac_header_compiler=no
20590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20592 echo "${ECHO_T}$ac_header_compiler" >&6; }
20594 # Is the header present?
20595 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20596 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20597 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 #include <$ac_header>
20605 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20613 grep -v '^ *+' conftest.er1 >conftest.err
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20617 (exit $ac_status); } >/dev/null && {
20618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20619 test ! -s conftest.err
20621 ac_header_preproc=yes
20623 echo "$as_me: failed program was
:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ac_header_preproc=no
20629 rm -f conftest.err conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20631 echo "${ECHO_T}$ac_header_preproc" >&6; }
20633 # So? What about this header?
20634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20636 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20637 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20638 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20640 ac_header_preproc=yes
20643 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20644 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20645 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20646 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20647 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20648 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20649 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20650 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20651 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20653 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20654 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20658 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20659 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20661 echo $ECHO_N "(cached
) $ECHO_C" >&6
20663 eval "$as_ac_Header=\
$ac_header_preproc"
20665 ac_res=`eval echo '${'$as_ac_Header'}'`
20666 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20667 echo "${ECHO_T}$ac_res" >&6; }
20670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20671 cat >>confdefs.h <<_ACEOF
20672 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20677 for ac_header in kerberosIV/krb.h
20679 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20681 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20682 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20684 echo $ECHO_N "(cached
) $ECHO_C" >&6
20686 ac_res=`eval echo '${'$as_ac_Header'}'`
20687 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20690 # Is the header compilable?
20691 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20692 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20700 #include <$ac_header>
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_compile") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest.$ac_objext; then
20719 ac_header_compiler=yes
20721 echo "$as_me: failed program was
:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_header_compiler=no
20727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20728 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20729 echo "${ECHO_T}$ac_header_compiler" >&6; }
20731 # Is the header present?
20732 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20733 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 #include <$ac_header>
20742 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20750 grep -v '^ *+' conftest.er1 >conftest.err
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20754 (exit $ac_status); } >/dev/null && {
20755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20758 ac_header_preproc=yes
20760 echo "$as_me: failed program was
:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_header_preproc=no
20766 rm -f conftest.err conftest.$ac_ext
20767 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20768 echo "${ECHO_T}$ac_header_preproc" >&6; }
20770 # So? What about this header?
20771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20773 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20774 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20775 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20777 ac_header_preproc=yes
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20781 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20782 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20783 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20784 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20785 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20786 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20787 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20788 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20790 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20791 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20795 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20796 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20798 echo $ECHO_N "(cached
) $ECHO_C" >&6
20800 eval "$as_ac_Header=\
$ac_header_preproc"
20802 ac_res=`eval echo '${'$as_ac_Header'}'`
20803 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20804 echo "${ECHO_T}$ac_res" >&6; }
20807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20808 cat >>confdefs.h <<_ACEOF
20809 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20814 for ac_header in kerberos/krb.h
20816 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20818 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20819 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20821 echo $ECHO_N "(cached
) $ECHO_C" >&6
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20827 # Is the header compilable?
20828 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20829 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20830 cat >conftest.$ac_ext <<_ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 $ac_includes_default
20837 #include <$ac_header>
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20848 grep -v '^ *+' conftest.er1 >conftest.err
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest.$ac_objext; then
20856 ac_header_compiler=yes
20858 echo "$as_me: failed program was
:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_header_compiler=no
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20866 echo "${ECHO_T}$ac_header_compiler" >&6; }
20868 # Is the header present?
20869 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20870 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <$ac_header>
20879 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20891 (exit $ac_status); } >/dev/null && {
20892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20895 ac_header_preproc=yes
20897 echo "$as_me: failed program was
:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_header_preproc=no
20903 rm -f conftest.err conftest.$ac_ext
20904 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20905 echo "${ECHO_T}$ac_header_preproc" >&6; }
20907 # So? What about this header?
20908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20910 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20911 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20912 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20914 ac_header_preproc=yes
20917 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20918 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20919 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20920 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20921 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20922 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20923 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20924 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20925 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20927 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20928 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20932 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20933 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20934 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20935 echo $ECHO_N "(cached
) $ECHO_C" >&6
20937 eval "$as_ac_Header=\
$ac_header_preproc"
20939 ac_res=`eval echo '${'$as_ac_Header'}'`
20940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20941 echo "${ECHO_T}$ac_res" >&6; }
20944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20963 for ac_header in com_err.h
20965 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20967 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20968 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached
) $ECHO_C" >&6
20972 ac_res=`eval echo '${'$as_ac_Header'}'`
20973 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20974 echo "${ECHO_T}$ac_res" >&6; }
20976 # Is the header compilable?
20977 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20978 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 $ac_includes_default
20986 #include <$ac_header>
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_header_compiler=yes
21007 echo "$as_me: failed program was
:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_compiler=no
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21015 echo "${ECHO_T}$ac_header_compiler" >&6; }
21017 # Is the header present?
21018 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21019 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21020 cat >conftest.$ac_ext <<_ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 #include <$ac_header>
21028 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21040 (exit $ac_status); } >/dev/null && {
21041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21044 ac_header_preproc=yes
21046 echo "$as_me: failed program was
:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_header_preproc=no
21052 rm -f conftest.err conftest.$ac_ext
21053 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21054 echo "${ECHO_T}$ac_header_preproc" >&6; }
21056 # So? What about this header?
21057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21059 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21060 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21061 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21063 ac_header_preproc=yes
21066 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21067 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21068 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21069 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21071 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21072 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21073 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21076 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21077 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21081 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21082 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21084 echo $ECHO_N "(cached
) $ECHO_C" >&6
21086 eval "$as_ac_Header=\
$ac_header_preproc"
21088 ac_res=`eval echo '${'$as_ac_Header'}'`
21089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21090 echo "${ECHO_T}$ac_res" >&6; }
21093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21094 cat >>confdefs.h <<_ACEOF
21095 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21104 # Solaris requires -lintl if you want strerror (which calls dgettext)
21105 # to return localized messages.
21107 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21108 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21109 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21110 echo $ECHO_N "(cached
) $ECHO_C" >&6
21112 ac_check_lib_save_LIBS=$LIBS
21113 LIBS="-lintl $LIBS"
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21131 return dgettext ();
21136 rm -f conftest.$ac_objext conftest$ac_exeext
21137 if { (ac_try="$ac_link"
21138 case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_link") 2>conftest.er1
21145 grep -v '^ *+' conftest.er1 >conftest.err
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest$ac_exeext &&
21153 $as_test_x conftest$ac_exeext; then
21154 ac_cv_lib_intl_dgettext=yes
21156 echo "$as_me: failed program was
:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_lib_intl_dgettext=no
21162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21163 conftest$ac_exeext conftest.$ac_ext
21164 LIBS=$ac_check_lib_save_LIBS
21166 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21167 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21168 if test $ac_cv_lib_intl_dgettext = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_LIBINTL 1
21173 LIBS="-lintl $LIBS"
21178 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21179 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21180 if test "${emacs_cv_localtime_cache+set}" = set; then
21181 echo $ECHO_N "(cached
) $ECHO_C" >&6
21183 if test x$ac_cv_func_tzset = xyes; then
21184 if test "$cross_compiling" = yes; then
21185 # If we have tzset, assume the worst when cross-compiling.
21186 emacs_cv_localtime_cache=yes
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21195 extern char **environ;
21199 for (to = from = environ; (*to = *from); from++)
21200 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21203 char TZ_GMT0[] = "TZ
=GMT0
";
21204 char TZ_PST8[] = "TZ
=PST8
";
21207 time_t now = time ((time_t *) 0);
21208 int hour_GMT0, hour_unset;
21209 if (putenv (TZ_GMT0) != 0)
21211 hour_GMT0 = localtime (&now)->tm_hour;
21213 hour_unset = localtime (&now)->tm_hour;
21214 if (putenv (TZ_PST8) != 0)
21216 if (localtime (&now)->tm_hour == hour_GMT0)
21219 if (localtime (&now)->tm_hour != hour_unset)
21224 rm -f conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_link") 2>&5
21233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 emacs_cv_localtime_cache=no
21246 echo "$as_me: program exited with status
$ac_status" >&5
21247 echo "$as_me: failed program was
:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ( exit $ac_status )
21251 emacs_cv_localtime_cache=yes
21253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21258 # If we lack tzset, report that localtime does not cache TZ,
21259 # since we can't invalidate the cache if we don't have tzset.
21260 emacs_cv_localtime_cache=no
21263 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21264 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21265 if test $emacs_cv_localtime_cache = yes; then
21267 cat >>confdefs.h <<\_ACEOF
21268 #define LOCALTIME_CACHE 1
21273 if test "x
$HAVE_TIMEVAL" = xyes; then
21275 for ac_func in gettimeofday
21277 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21278 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21279 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21280 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached
) $ECHO_C" >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define $ac_func innocuous_$ac_func
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char $ac_func (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21299 # include <limits.h>
21301 # include <assert.h>
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined __stub_$ac_func || defined __stub___$ac_func
21323 return $ac_func ();
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>conftest.er1
21337 grep -v '^ *+' conftest.er1 >conftest.err
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21341 (exit $ac_status); } && {
21342 test -z "$ac_c_werror_flag" ||
21343 test ! -s conftest.err
21344 } && test -s conftest$ac_exeext &&
21345 $as_test_x conftest$ac_exeext; then
21346 eval "$as_ac_var=yes"
21348 echo "$as_me: failed program was
:" >&5
21349 sed 's/^/| /' conftest.$ac_ext >&5
21351 eval "$as_ac_var=no
"
21354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21355 conftest$ac_exeext conftest.$ac_ext
21357 ac_res=`eval echo '${'$as_ac_var'}'`
21358 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21360 if test `eval echo '${'$as_ac_var'}'` = yes; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21368 if test $ac_cv_func_gettimeofday = yes; then
21369 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21370 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21371 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21372 echo $ECHO_N "(cached
) $ECHO_C" >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21381 #ifdef TIME_WITH_SYS_TIME
21382 #include <sys/time.h>
21385 #ifdef HAVE_SYS_TIME_H
21386 #include <sys/time.h>
21394 struct timeval time;
21395 gettimeofday (&time, 0);
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.$ac_objext; then
21417 emacs_cv_gettimeofday_two_arguments=yes
21419 echo "$as_me: failed program was
:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 emacs_cv_gettimeofday_two_arguments=no
21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21428 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21429 if test $emacs_cv_gettimeofday_two_arguments = no; then
21431 cat >>confdefs.h <<\_ACEOF
21432 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21440 { echo "$as_me:$LINENO: checking
for socket
" >&5
21441 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21442 if test "${ac_cv_func_socket+set}" = set; then
21443 echo $ECHO_N "(cached
) $ECHO_C" >&6
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21453 #define socket innocuous_socket
21455 /* System header to define __stub macros and hopefully few prototypes,
21456 which can conflict with char socket (); below.
21457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21458 <limits.h> exists even on freestanding compilers. */
21461 # include <limits.h>
21463 # include <assert.h>
21468 /* Override any GCC internal prototype to avoid an error.
21469 Use char because int might match the return type of a GCC
21470 builtin and then its argument prototype would still apply. */
21475 /* The GNU C library defines this for functions which it implements
21476 to always fail with ENOSYS. Some functions are actually named
21477 something starting with __ and the normal name is an alias. */
21478 #if defined __stub_socket || defined __stub___socket
21490 rm -f conftest.$ac_objext conftest$ac_exeext
21491 if { (ac_try="$ac_link"
21492 case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_link") 2>conftest.er1
21499 grep -v '^ *+' conftest.er1 >conftest.err
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21503 (exit $ac_status); } && {
21504 test -z "$ac_c_werror_flag" ||
21505 test ! -s conftest.err
21506 } && test -s conftest$ac_exeext &&
21507 $as_test_x conftest$ac_exeext; then
21508 ac_cv_func_socket=yes
21510 echo "$as_me: failed program was
:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 ac_cv_func_socket=no
21516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21517 conftest$ac_exeext conftest.$ac_ext
21519 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21520 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21521 if test $ac_cv_func_socket = yes; then
21527 if test $ok_so_far = yes; then
21528 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21529 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21530 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21531 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21532 echo $ECHO_N "(cached
) $ECHO_C" >&6
21534 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21535 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21537 # Is the header compilable?
21538 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21539 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 $ac_includes_default
21547 #include <netinet/in.h>
21549 rm -f conftest.$ac_objext
21550 if { (ac_try="$ac_compile"
21551 case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_compile") 2>conftest.er1
21558 grep -v '^ *+' conftest.er1 >conftest.err
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21562 (exit $ac_status); } && {
21563 test -z "$ac_c_werror_flag" ||
21564 test ! -s conftest.err
21565 } && test -s conftest.$ac_objext; then
21566 ac_header_compiler=yes
21568 echo "$as_me: failed program was
:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 ac_header_compiler=no
21574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6; }
21578 # Is the header present?
21579 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21580 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <netinet/in.h>
21589 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21601 (exit $ac_status); } >/dev/null && {
21602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21605 ac_header_preproc=yes
21607 echo "$as_me: failed program was
:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_header_preproc=no
21613 rm -f conftest.err conftest.$ac_ext
21614 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21615 echo "${ECHO_T}$ac_header_preproc" >&6; }
21617 # So? What about this header?
21618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21620 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21621 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21622 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21623 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21624 ac_header_preproc=yes
21627 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21628 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21630 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21631 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21632 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21633 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21634 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21635 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21636 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21637 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21638 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21642 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21643 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21644 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21645 echo $ECHO_N "(cached
) $ECHO_C" >&6
21647 ac_cv_header_netinet_in_h=$ac_header_preproc
21649 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21650 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21653 if test $ac_cv_header_netinet_in_h = yes; then
21661 if test $ok_so_far = yes; then
21662 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21663 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21664 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21665 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21666 echo $ECHO_N "(cached
) $ECHO_C" >&6
21668 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21669 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21671 # Is the header compilable?
21672 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21673 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 #include <arpa/inet.h>
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21692 grep -v '^ *+' conftest.er1 >conftest.err
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest.$ac_objext; then
21700 ac_header_compiler=yes
21702 echo "$as_me: failed program was
:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_header_compiler=no
21708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21710 echo "${ECHO_T}$ac_header_compiler" >&6; }
21712 # Is the header present?
21713 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21714 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21715 cat >conftest.$ac_ext <<_ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <arpa/inet.h>
21723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21735 (exit $ac_status); } >/dev/null && {
21736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21739 ac_header_preproc=yes
21741 echo "$as_me: failed program was
:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 ac_header_preproc=no
21747 rm -f conftest.err conftest.$ac_ext
21748 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21749 echo "${ECHO_T}$ac_header_preproc" >&6; }
21751 # So? What about this header?
21752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21755 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21756 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21757 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21758 ac_header_preproc=yes
21761 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21762 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21763 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21764 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21765 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21766 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21768 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21769 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21770 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21771 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21772 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21776 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21777 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21778 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21779 echo $ECHO_N "(cached
) $ECHO_C" >&6
21781 ac_cv_header_arpa_inet_h=$ac_header_preproc
21783 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21784 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21787 if test $ac_cv_header_arpa_inet_h = yes; then
21795 if test $ok_so_far = yes; then
21797 cat >>confdefs.h <<\_ACEOF
21798 #define HAVE_INET_SOCKETS 1
21804 for ac_header in sys/ioctl.h
21806 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21807 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21808 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21809 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21810 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21811 echo $ECHO_N "(cached
) $ECHO_C" >&6
21813 ac_res=`eval echo '${'$as_ac_Header'}'`
21814 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21815 echo "${ECHO_T}$ac_res" >&6; }
21817 # Is the header compilable?
21818 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21819 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 $ac_includes_default
21827 #include <$ac_header>
21829 rm -f conftest.$ac_objext
21830 if { (ac_try="$ac_compile"
21831 case "(($ac_try" in
21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833 *) ac_try_echo=$ac_try;;
21835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21836 (eval "$ac_compile") 2>conftest.er1
21838 grep -v '^ *+' conftest.er1 >conftest.err
21840 cat conftest.err >&5
21841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21842 (exit $ac_status); } && {
21843 test -z "$ac_c_werror_flag" ||
21844 test ! -s conftest.err
21845 } && test -s conftest.$ac_objext; then
21846 ac_header_compiler=yes
21848 echo "$as_me: failed program was
:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 ac_header_compiler=no
21854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21855 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21856 echo "${ECHO_T}$ac_header_compiler" >&6; }
21858 # Is the header present?
21859 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21860 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 #include <$ac_header>
21869 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21877 grep -v '^ *+' conftest.er1 >conftest.err
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21881 (exit $ac_status); } >/dev/null && {
21882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21885 ac_header_preproc=yes
21887 echo "$as_me: failed program was
:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 ac_header_preproc=no
21893 rm -f conftest.err conftest.$ac_ext
21894 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21895 echo "${ECHO_T}$ac_header_preproc" >&6; }
21897 # So? What about this header?
21898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21900 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21901 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21902 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21904 ac_header_preproc=yes
21907 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21908 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21909 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21910 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21911 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21912 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21914 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21917 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21918 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21922 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21923 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21924 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21925 echo $ECHO_N "(cached
) $ECHO_C" >&6
21927 eval "$as_ac_Header=\
$ac_header_preproc"
21929 ac_res=`eval echo '${'$as_ac_Header'}'`
21930 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21931 echo "${ECHO_T}$ac_res" >&6; }
21934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21935 cat >>confdefs.h <<_ACEOF
21936 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21944 if test -f /usr/lpp/X11/bin/smt.exp; then
21946 cat >>confdefs.h <<\_ACEOF
21947 #define HAVE_AIX_SMT_EXP 1
21952 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21953 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21954 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21955 { echo "$as_me:$LINENO: result
: yes" >&5
21956 echo "${ECHO_T}yes" >&6; }
21958 cat >>confdefs.h <<\_ACEOF
21959 #define HAVE_DEV_PTMX 1
21963 { echo "$as_me:$LINENO: result
: no
" >&5
21964 echo "${ECHO_T}no
" >&6; }
21967 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21968 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21969 if test "${ac_cv_type_pid_t+set}" = set; then
21970 echo $ECHO_N "(cached
) $ECHO_C" >&6
21972 cat >conftest.$ac_ext <<_ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 $ac_includes_default
21979 typedef pid_t ac__type_new_;
21983 if ((ac__type_new_ *) 0)
21985 if (sizeof (ac__type_new_))
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22008 ac_cv_type_pid_t=yes
22010 echo "$as_me: failed program was
:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_type_pid_t=no
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22018 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22019 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22020 if test $ac_cv_type_pid_t = yes; then
22024 cat >>confdefs.h <<_ACEOF
22031 for ac_header in vfork.h
22033 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22034 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22035 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22036 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22037 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22038 echo $ECHO_N "(cached
) $ECHO_C" >&6
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22044 # Is the header compilable?
22045 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22046 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22047 cat >conftest.$ac_ext <<_ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 $ac_includes_default
22054 #include <$ac_header>
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_compile") 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest.$ac_objext; then
22073 ac_header_compiler=yes
22075 echo "$as_me: failed program was
:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_header_compiler=no
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22083 echo "${ECHO_T}$ac_header_compiler" >&6; }
22085 # Is the header present?
22086 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22087 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 #include <$ac_header>
22096 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22108 (exit $ac_status); } >/dev/null && {
22109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22112 ac_header_preproc=yes
22114 echo "$as_me: failed program was
:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_header_preproc=no
22120 rm -f conftest.err conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22122 echo "${ECHO_T}$ac_header_preproc" >&6; }
22124 # So? What about this header?
22125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22127 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22128 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22129 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22131 ac_header_preproc=yes
22134 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22135 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22136 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22137 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22138 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22139 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22140 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22141 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22142 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22144 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22145 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22149 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22150 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22151 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached
) $ECHO_C" >&6
22154 eval "$as_ac_Header=\
$ac_header_preproc"
22156 ac_res=`eval echo '${'$as_ac_Header'}'`
22157 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22158 echo "${ECHO_T}$ac_res" >&6; }
22161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22162 cat >>confdefs.h <<_ACEOF
22163 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22172 for ac_func in fork vfork
22174 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22175 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22176 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22177 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22178 echo $ECHO_N "(cached
) $ECHO_C" >&6
22180 cat >conftest.$ac_ext <<_ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22188 #define $ac_func innocuous_$ac_func
22190 /* System header to define __stub macros and hopefully few prototypes,
22191 which can conflict with char $ac_func (); below.
22192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22193 <limits.h> exists even on freestanding compilers. */
22196 # include <limits.h>
22198 # include <assert.h>
22203 /* Override any GCC internal prototype to avoid an error.
22204 Use char because int might match the return type of a GCC
22205 builtin and then its argument prototype would still apply. */
22210 /* The GNU C library defines this for functions which it implements
22211 to always fail with ENOSYS. Some functions are actually named
22212 something starting with __ and the normal name is an alias. */
22213 #if defined __stub_$ac_func || defined __stub___$ac_func
22220 return $ac_func ();
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_link") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext &&
22242 $as_test_x conftest$ac_exeext; then
22243 eval "$as_ac_var=yes"
22245 echo "$as_me: failed program was
:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 eval "$as_ac_var=no
"
22251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22252 conftest$ac_exeext conftest.$ac_ext
22254 ac_res=`eval echo '${'$as_ac_var'}'`
22255 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22256 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_var'}'` = yes; then
22258 cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22265 if test "x
$ac_cv_func_fork" = xyes; then
22266 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22267 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22268 if test "${ac_cv_func_fork_works+set}" = set; then
22269 echo $ECHO_N "(cached
) $ECHO_C" >&6
22271 if test "$cross_compiling" = yes; then
22272 ac_cv_func_fork_works=cross
22274 cat >conftest.$ac_ext <<_ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22280 $ac_includes_default
22285 /* By Ruediger Kuhlmann. */
22286 return fork () < 0;
22292 rm -f conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_link") 2>&5
22301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ac_cv_func_fork_works=yes
22314 echo "$as_me: program exited with status
$ac_status" >&5
22315 echo "$as_me: failed program was
:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ( exit $ac_status )
22319 ac_cv_func_fork_works=no
22321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22327 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22330 ac_cv_func_fork_works=$ac_cv_func_fork
22332 if test "x
$ac_cv_func_fork_works" = xcross; then
22334 *-*-amigaos* | *-*-msdosdjgpp*)
22335 # Override, as these systems have only a dummy fork() stub
22336 ac_cv_func_fork_works=no
22339 ac_cv_func_fork_works=yes
22342 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22343 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22345 ac_cv_func_vfork_works=$ac_cv_func_vfork
22346 if test "x
$ac_cv_func_vfork" = xyes; then
22347 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22348 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22349 if test "${ac_cv_func_vfork_works+set}" = set; then
22350 echo $ECHO_N "(cached
) $ECHO_C" >&6
22352 if test "$cross_compiling" = yes; then
22353 ac_cv_func_vfork_works=cross
22355 cat >conftest.$ac_ext <<_ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22361 /* Thanks to Paul Eggert for this test. */
22362 $ac_includes_default
22363 #include <sys/wait.h>
22364 #ifdef HAVE_VFORK_H
22365 # include <vfork.h>
22367 /* On some sparc systems, changes by the child to local and incoming
22368 argument registers are propagated back to the parent. The compiler
22369 is told about this with #include <vfork.h>, but some compilers
22370 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22371 static variable whose address is put into a register that is
22372 clobbered by the vfork. */
22375 sparc_address_test (int arg)
22377 sparc_address_test (arg) int arg;
22380 static pid_t child;
22398 pid_t parent = getpid ();
22401 sparc_address_test (0);
22406 /* Here is another test for sparc vfork register problems. This
22407 test uses lots of local variables, at least as many local
22408 variables as main has allocated so far including compiler
22409 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22410 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22411 reuse the register of parent for one of the local variables,
22412 since it will think that parent can't possibly be used any more
22413 in this routine. Assigning to the local variable will thus
22414 munge parent in the parent process. */
22416 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22417 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22418 /* Convince the compiler that p..p7 are live; otherwise, it might
22419 use the same hardware register for all 8 local variables. */
22420 if (p != p1 || p != p2 || p != p3 || p != p4
22421 || p != p5 || p != p6 || p != p7)
22424 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22425 from child file descriptors. If the child closes a descriptor
22426 before it execs or exits, this munges the parent's descriptor
22427 as well. Test for this by closing stdout in the child. */
22428 _exit(close(fileno(stdout)) != 0);
22433 while (wait(&status) != child)
22436 /* Was there some problem with vforking? */
22439 /* Did the child fail? (This shouldn't happen.) */
22442 /* Did the vfork/compiler bug occur? */
22443 || parent != getpid()
22445 /* Did the file descriptor bug occur? */
22446 || fstat(fileno(stdout), &st) != 0
22451 rm -f conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>&5
22460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22462 { (case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_try") 2>&5
22469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_cv_func_vfork_works=yes
22473 echo "$as_me: program exited with status
$ac_status" >&5
22474 echo "$as_me: failed program was
:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ( exit $ac_status )
22478 ac_cv_func_vfork_works=no
22480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22486 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22489 if test "x
$ac_cv_func_fork_works" = xcross; then
22490 ac_cv_func_vfork_works=$ac_cv_func_vfork
22491 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22492 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22495 if test "x
$ac_cv_func_vfork_works" = xyes; then
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_WORKING_VFORK 1
22503 cat >>confdefs.h <<\_ACEOF
22508 if test "x
$ac_cv_func_fork_works" = xyes; then
22510 cat >>confdefs.h <<\_ACEOF
22511 #define HAVE_WORKING_FORK 1
22517 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22518 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22519 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22520 echo $ECHO_N "(cached
) $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 #include <langinfo.h>
22532 char* cs = nl_langinfo(CODESET);
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (ac_try="$ac_link"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_link") 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest$ac_exeext &&
22554 $as_test_x conftest$ac_exeext; then
22555 emacs_cv_langinfo_codeset=yes
22557 echo "$as_me: failed program was
:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 emacs_cv_langinfo_codeset=no
22563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22564 conftest$ac_exeext conftest.$ac_ext
22567 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22568 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22569 if test $emacs_cv_langinfo_codeset = yes; then
22571 cat >>confdefs.h <<\_ACEOF
22572 #define HAVE_LANGINFO_CODESET 1
22577 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22578 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22579 if test "${ac_cv_type_size_t+set}" = set; then
22580 echo $ECHO_N "(cached
) $ECHO_C" >&6
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22589 typedef size_t ac__type_new_;
22593 if ((ac__type_new_ *) 0)
22595 if (sizeof (ac__type_new_))
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_compile") 2>conftest.er1
22610 grep -v '^ *+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest.$ac_objext; then
22618 ac_cv_type_size_t=yes
22620 echo "$as_me: failed program was
:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 ac_cv_type_size_t=no
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22629 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22630 if test $ac_cv_type_size_t = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_SIZE_T 1
22640 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22641 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22642 if test "${ac_cv_type_mbstate_t+set}" = set; then
22643 echo $ECHO_N "(cached
) $ECHO_C" >&6
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 $ac_includes_default
22652 # include <wchar.h>
22656 mbstate_t x; return sizeof x;
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22678 ac_cv_type_mbstate_t=yes
22680 echo "$as_me: failed program was
:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_type_mbstate_t=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22689 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22690 if test $ac_cv_type_mbstate_t = yes; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_MBSTATE_T 1
22698 cat >>confdefs.h <<\_ACEOF
22699 #define mbstate_t int
22704 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22705 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22706 if test "${emacs_cv_c_restrict+set}" = set; then
22707 echo $ECHO_N "(cached
) $ECHO_C" >&6
22709 cat >conftest.$ac_ext <<_ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715 void fred (int *restrict x);
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_compile") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest.$ac_objext; then
22741 emacs_cv_c_restrict=yes
22743 echo "$as_me: failed program was
:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 void fred (int *__restrict x);
22761 rm -f conftest.$ac_objext
22762 if { (ac_try="$ac_compile"
22763 case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_compile") 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22774 (exit $ac_status); } && {
22775 test -z "$ac_c_werror_flag" ||
22776 test ! -s conftest.err
22777 } && test -s conftest.$ac_objext; then
22778 emacs_cv_c_restrict=__restrict
22780 echo "$as_me: failed program was
:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 emacs_cv_c_restrict=no
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22792 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22793 case "$emacs_cv_c_restrict" in
22794 yes) emacs_restrict=restrict;;
22795 no) emacs_restrict="";;
22796 *) emacs_restrict="$emacs_cv_c_restrict";;
22798 if test "$emacs_restrict" != __restrict; then
22800 cat >>confdefs.h <<_ACEOF
22801 #define __restrict $emacs_restrict
22806 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22807 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22808 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22809 echo $ECHO_N "(cached
) $ECHO_C" >&6
22811 cat >conftest.$ac_ext <<_ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 void fred (int x[__restrict]);
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_compile") 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22839 (exit $ac_status); } && {
22840 test -z "$ac_c_werror_flag" ||
22841 test ! -s conftest.err
22842 } && test -s conftest.$ac_objext; then
22843 emacs_cv_c_restrict_arr=yes
22845 echo "$as_me: failed program was
:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22848 emacs_cv_c_restrict_arr=no
22851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22853 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22854 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22855 if test "$emacs_cv_c_restrict_arr" = yes; then
22857 cat >>confdefs.h <<\_ACEOF
22858 #define __restrict_arr __restrict
22865 # Set up the CFLAGS for real compilation, so we can substitute it.
22866 CFLAGS="$REAL_CFLAGS"
22867 CPPFLAGS="$REAL_CPPFLAGS"
22869 #### Find out which version of Emacs this is.
22870 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22871 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22872 if test x"${version}" = x; then
22873 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22874 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22875 { (exit 1); exit 1; }; }
22878 ### Specify what sort of things we'll be editing into Makefile and config.h.
22879 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22915 cat >>confdefs.h <<_ACEOF
22916 #define EMACS_CONFIGURATION "${canonical}"
22920 cat >>confdefs.h <<_ACEOF
22921 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22925 cat >>confdefs.h <<_ACEOF
22926 #define config_machfile "${machfile}"
22930 cat >>confdefs.h <<_ACEOF
22931 #define config_opsysfile "${opsysfile}"
22935 cat >>confdefs.h <<_ACEOF
22936 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22940 cat >>confdefs.h <<_ACEOF
22941 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22945 cat >>confdefs.h <<_ACEOF
22946 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22950 cat >>confdefs.h <<_ACEOF
22951 #define UNEXEC_SRC ${UNEXEC_SRC}
22955 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22957 cat >>confdefs.h <<\_ACEOF
22958 #define HAVE_X_WINDOWS 1
22962 if test "${USE_X_TOOLKIT}" != "none
" ; then
22964 cat >>confdefs.h <<\_ACEOF
22965 #define USE_X_TOOLKIT 1
22969 if test "${HAVE_X11}" = "yes" ; then
22971 cat >>confdefs.h <<\_ACEOF
22976 if test "${HAVE_XFREE386}" = "yes" ; then
22978 cat >>confdefs.h <<\_ACEOF
22979 #define HAVE_XFREE386 1
22983 if test "${HAVE_MENUS}" = "yes" ; then
22985 cat >>confdefs.h <<\_ACEOF
22986 #define HAVE_MENUS 1
22990 if test "${GNU_MALLOC}" = "yes" ; then
22992 cat >>confdefs.h <<\_ACEOF
22993 #define GNU_MALLOC 1
22997 if test "${REL_ALLOC}" = "yes" ; then
22999 cat >>confdefs.h <<\_ACEOF
23000 #define REL_ALLOC 1
23009 #### Report on what we decided to do.
23010 #### Report GTK as a toolkit, even if it doesn't use Xt.
23011 #### It makes printing result more understandable as using GTK sets
23012 #### toolkit_scroll_bars to yes by default.
23013 if test "${HAVE_GTK}" = "yes"; then
23018 Configured
for \
`${canonical}'.
23020 Where should the build process find the source code? ${srcdir}
23021 What operating system and machine description files should Emacs use?
23022 \`${opsysfile}' and \`${machfile}'
23023 What compiler should emacs be built with?
${CC} ${CFLAGS}
23024 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23025 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23026 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23027 What window system should Emacs use?
${window_system}
23028 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23030 if test -n "${x_includes}"; then
23031 echo " Where
do we
find X Windows header files?
${x_includes}"
23033 echo " Where
do we
find X Windows header files? Standard
dirs"
23035 if test -n "${x_libraries}"; then
23036 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23038 echo " Where
do we
find X Windows libraries? Standard
dirs"
23041 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23042 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23043 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23044 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23045 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23046 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23047 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23050 if test $USE_XASSERTS = yes; then
23051 echo " Compiling with asserts turned on.
"
23052 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23056 if test "$USE_X_TOOLKIT" = GTK; then
23057 case "$canonical" in
23059 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23060 will probably get a crash on startup. If this happens
, please use another
23061 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23068 # Remove any trailing slashes in these variables.
23069 test "${prefix}" != NONE &&
23070 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23071 test "${exec_prefix}" != NONE &&
23072 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23074 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23075 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23076 ## from Makefile.c can correctly provide the arg `-traditional' to the
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23087 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23088 $EGREP "yes..
yes" >/dev/null 2>&1; then
23089 CPP_NEED_TRADITIONAL=no
23091 CPP_NEED_TRADITIONAL=yes
23096 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
"
23098 ac_config_commands="$ac_config_commands default
"
23100 cat >confcache <<\_ACEOF
23101 # This file is a shell script that caches the results of configure
23102 # tests run on this system so they can be shared between configure
23103 # scripts and configure runs, see configure's option --config-cache.
23104 # It is not useful on other systems. If it contains results you don't
23105 # want to keep, you may remove or edit it.
23107 # config.status only pays attention to the cache file if you give it
23108 # the --recheck option to rerun configure.
23110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23112 # following values.
23116 # The following way of writing the cache mishandles newlines in values,
23117 # but we know of no workaround that is simple, portable, and efficient.
23118 # So, we kill variables containing newlines.
23119 # Ultrix sh set writes to stderr and can't be redirected directly,
23120 # and sets the high bit in the cache file unless we assign to the vars.
23122 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23123 eval ac_val=\$$ac_var
23127 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23128 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23131 _ | IFS | as_nl) ;; #(
23132 *) $as_unset $ac_var ;;
23138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23139 *${as_nl}ac_space=\ *)
23140 # `set' does not quote correctly, so add quotes (double-quote
23141 # substitution turns \\\\ into \\, and sed turns \\ into \).
23144 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23147 # `set' quotes correctly as required by POSIX, so do not add quotes.
23148 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23162 if test -w "$cache_file"; then
23163 test "x
$cache_file" != "x
/dev
/null
" &&
23164 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23165 echo "$as_me: updating cache
$cache_file" >&6;}
23166 cat confcache >$cache_file
23168 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23169 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23174 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23175 # Let make expand exec_prefix.
23176 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23178 DEFS=-DHAVE_CONFIG_H
23182 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23183 # 1. Remove the extension, and $U if already installed.
23184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23185 ac_i=`echo "$ac_i" | sed "$ac_script"`
23186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23187 # will be set to the directory where LIBOBJS objects are built.
23188 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23189 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23191 LIBOBJS=$ac_libobjs
23193 LTLIBOBJS=$ac_ltlibobjs
23197 : ${CONFIG_STATUS=./config.status}
23198 ac_clean_files_save=$ac_clean_files
23199 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23200 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23201 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23202 cat >$CONFIG_STATUS <<_ACEOF
23204 # Generated by $as_me.
23205 # Run this file to recreate the current configuration.
23206 # Compiler output produced by configure, useful for debugging
23207 # configure, is in config.log if it exists.
23210 ac_cs_recheck=false
23212 SHELL=\${CONFIG_SHELL-$SHELL}
23215 cat >>$CONFIG_STATUS <<\_ACEOF
23216 ## --------------------- ##
23217 ## M4sh Initialization. ##
23218 ## --------------------- ##
23220 # Be more Bourne compatible
23221 DUALCASE=1; export DUALCASE # for MKS sh
23222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23225 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23226 # is contrary to our usage. Disable this feature.
23227 alias -g '${1+"$@"}'='"$@
"'
23228 setopt NO_GLOB_SUBST
23230 case `(set -o) 2>/dev/null` in
23231 *posix*) set -o posix ;;
23240 # Avoid depending upon Character Ranges.
23241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23244 as_cr_digits='0123456789'
23245 as_cr_alnum=$as_cr_Letters$as_cr_digits
23247 # The user is always right.
23248 if test "${PATH_SEPARATOR+set}" != set; then
23249 echo "#! /bin/sh" >conf$$.sh
23250 echo "exit 0" >>conf$$.sh
23252 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23260 # Support unset when possible.
23261 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23269 # We need space, tab and new line, in precisely that order. Quoting is
23270 # there to prevent editors from complaining about space-tab.
23271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23272 # splitting by setting IFS to empty value.)
23277 # Find who we are. Look in the path if we contain no directory separator.
23279 *[\\/]* ) as_myself
=$0 ;;
23280 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23281 for as_dir
in $PATH
23284 test -z "$as_dir" && as_dir
=.
23285 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23291 # We did not find ourselves, most probably we were run as `sh COMMAND'
23292 # in which case we are not to be found in the path.
23293 if test "x$as_myself" = x
; then
23296 if test ! -f "$as_myself"; then
23297 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23298 { (exit 1); exit 1; }
23301 # Work around bugs in pre-3.0 UWIN ksh.
23302 for as_var
in ENV MAIL MAILPATH
23303 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23311 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23312 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23313 LC_TELEPHONE LC_TIME
23315 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23316 eval $as_var=C
; export $as_var
23318 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23322 # Required to use basename.
23323 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23324 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23330 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23331 as_basename
=basename
23337 # Name of the executable.
23338 as_me
=`$as_basename -- "$0" ||
23339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23340 X"$0" : 'X\(//\)$' \| \
23341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23343 sed '/^.*\/\([^/][^/]*\)\/*$/{
23362 as_lineno_1
=$LINENO
23363 as_lineno_2
=$LINENO
23364 test "x$as_lineno_1" != "x$as_lineno_2" &&
23365 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23368 # uniformly replaced by the line number. The first 'sed' inserts a
23369 # line-number line after each line using $LINENO; the second 'sed'
23370 # does the real work. The second script uses 'N' to pair each
23371 # line-number line with the line containing $LINENO, and appends
23372 # trailing '-' during substitution so that $LINENO is not a special
23373 # case at line end.
23374 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23375 # scripts with optimization help from Paolo Bonzini. Blame Lee
23376 # E. McMahon (1931-1989) for sed's syntax. :-)
23388 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23391 ' >$as_me.lineno
&&
23392 chmod +x
"$as_me.lineno" ||
23393 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23394 { (exit 1); exit 1; }; }
23396 # Don't try to exec as it changes $[0], causing all sort of problems
23397 # (the dirname of $[0] is not the place where we might find the
23398 # original and so on. Autoconf is especially sensitive to this).
23399 .
"./$as_me.lineno"
23400 # Exit status is that of the last command.
23405 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23411 ECHO_C
= ECHO_N
= ECHO_T
=
23412 case `echo -n x` in
23414 case `echo 'x\c'` in
23415 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23429 rm -f conf$$ conf$$.exe conf$$.
file
23430 if test -d conf$$.dir
; then
23431 rm -f conf$$.dir
/conf$$.
file
23437 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23439 # ... but there are two gotchas:
23440 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23441 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23442 # In both cases, we have to default to `cp -p'.
23443 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23445 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23450 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23451 rmdir conf$$.dir
2>/dev
/null
23453 if mkdir
-p .
2>/dev
/null
; then
23456 test -d .
/-p && rmdir .
/-p
23460 if test -x / >/dev
/null
2>&1; then
23461 as_test_x
='test -x'
23463 if ls -dL / >/dev
/null
2>&1; then
23470 if test -d "$1"; then
23476 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23477 ???[sx]*):;;*)false;;esac;fi
23481 as_executable_p
=$as_test_x
23483 # Sed expression to map a string onto a valid CPP name.
23484 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23486 # Sed expression to map a string onto a valid variable name.
23487 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23492 # Save the log message, to keep $[0] and so on meaningful, and to
23493 # report actual input values of CONFIG_FILES etc. instead of their
23494 # values after options handling.
23496 This file was extended by $as_me, which was
23497 generated by GNU Autoconf 2.61. Invocation command line was
23499 CONFIG_FILES = $CONFIG_FILES
23500 CONFIG_HEADERS = $CONFIG_HEADERS
23501 CONFIG_LINKS = $CONFIG_LINKS
23502 CONFIG_COMMANDS = $CONFIG_COMMANDS
23505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23510 cat >>$CONFIG_STATUS <<_ACEOF
23511 # Files that config.status was made for.
23512 config_files="$ac_config_files"
23513 config_headers="$ac_config_headers"
23514 config_commands="$ac_config_commands"
23518 cat >>$CONFIG_STATUS <<\_ACEOF
23520 \`$as_me' instantiates files from templates according to the
23521 current configuration.
23523 Usage: $0 [OPTIONS] [FILE]...
23525 -h, --help print this help, then exit
23526 -V, --version print version number and configuration settings, then exit
23527 -q, --quiet do not print progress messages
23528 -d, --debug don't remove temporary files
23529 --recheck update $as_me by reconfiguring in the same conditions
23530 --file=FILE[:TEMPLATE]
23531 instantiate the configuration file FILE
23532 --header=FILE[:TEMPLATE]
23533 instantiate the configuration header FILE
23535 Configuration files:
23538 Configuration headers:
23541 Configuration commands:
23544 Report bugs to <bug-autoconf@gnu.org>."
23547 cat >>$CONFIG_STATUS <<_ACEOF
23550 configured by $0, generated by GNU Autoconf 2.61,
23551 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23553 Copyright (C) 2006 Free Software Foundation, Inc.
23554 This config.status script is free software; the Free Software Foundation
23555 gives unlimited permission to copy, distribute and modify it."
23562 cat >>$CONFIG_STATUS <<\_ACEOF
23563 # If no file are specified by the user, then we need to provide default
23564 # value. By we need to know if files were specified by the user.
23570 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23571 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23582 # Handling of the options.
23583 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23585 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23586 echo "$ac_cs_version"; exit ;;
23587 --debug |
--debu |
--deb |
--de |
--d |
-d )
23589 --file |
--fil |
--fi |
--f )
23591 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23592 ac_need_defaults
=false
;;
23593 --header |
--heade |
--head |
--hea )
23595 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23596 ac_need_defaults
=false
;;
23598 # Conflict between --help and --header
23599 { echo "$as_me: error: ambiguous option: $1
23600 Try \`$0 --help' for more information." >&2
23601 { (exit 1); exit 1; }; };;
23602 --help |
--hel |
-h )
23603 echo "$ac_cs_usage"; exit ;;
23604 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23605 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23608 # This is an error.
23609 -*) { echo "$as_me: error: unrecognized option: $1
23610 Try \`$0 --help' for more information." >&2
23611 { (exit 1); exit 1; }; } ;;
23613 *) ac_config_targets
="$ac_config_targets $1"
23614 ac_need_defaults
=false
;;
23620 ac_configure_extra_args
=
23622 if $ac_cs_silent; then
23624 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23628 cat >>$CONFIG_STATUS <<_ACEOF
23629 if \$ac_cs_recheck; then
23630 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23631 CONFIG_SHELL=$SHELL
23632 export CONFIG_SHELL
23633 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23642 ## Running $as_me. ##
23648 cat >>$CONFIG_STATUS <<_ACEOF
23652 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23656 cat >>$CONFIG_STATUS <<\_ACEOF
23658 # Handling of arguments.
23659 for ac_config_target
in $ac_config_targets
23661 case $ac_config_target in
23662 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23663 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23664 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23665 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23666 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23667 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23668 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23669 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23670 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23671 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23672 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23673 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23675 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23676 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23677 { (exit 1); exit 1; }; };;
23682 # If the user did not use the arguments to specify the items to instantiate,
23683 # then the envvar interface is used. Set only those that are not.
23684 # We use the long form for the default assignment because of an extremely
23685 # bizarre bug on SunOS 4.1.3.
23686 if $ac_need_defaults; then
23687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23689 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23692 # Have a temporary directory for convenience. Make it in the build tree
23693 # simply because there is no reason against having it here, and in addition,
23694 # creating and moving files from /tmp can sometimes cause problems.
23695 # Hook for its removal unless debugging.
23696 # Note that there is a small window in which the directory will not be cleaned:
23697 # after its creation but before its name has been assigned to `$tmp'.
23701 trap 'exit_status=$?
23702 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23704 trap '{ (exit 1); exit 1; }' 1 2 13 15
23706 # Create a (secure) tmp directory for tmp files.
23709 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23710 test -n "$tmp" && test -d "$tmp"
23713 tmp
=.
/conf$$
-$RANDOM
23714 (umask 077 && mkdir
"$tmp")
23717 echo "$me: cannot create a temporary directory in ." >&2
23718 { (exit 1); exit 1; }
23722 # Set up the sed scripts for CONFIG_FILES section.
23725 # No need to generate the scripts if there are no CONFIG_FILES.
23726 # This happens for instance when ./config.status config.h
23727 if test -n "$CONFIG_FILES"; then
23734 for ac_last_try
in false false false false false
:; do
23735 cat >conf$
$subs.
sed <<_ACEOF
23736 SHELL!$SHELL$ac_delim
23737 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23738 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23739 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23740 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23741 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23742 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23743 exec_prefix!$exec_prefix$ac_delim
23744 prefix!$prefix$ac_delim
23745 program_transform_name!$program_transform_name$ac_delim
23746 bindir!$bindir$ac_delim
23747 sbindir!$sbindir$ac_delim
23748 libexecdir!$libexecdir$ac_delim
23749 datarootdir!$datarootdir$ac_delim
23750 datadir!$datadir$ac_delim
23751 sysconfdir!$sysconfdir$ac_delim
23752 sharedstatedir!$sharedstatedir$ac_delim
23753 localstatedir!$localstatedir$ac_delim
23754 includedir!$includedir$ac_delim
23755 oldincludedir!$oldincludedir$ac_delim
23756 docdir!$docdir$ac_delim
23757 infodir!$infodir$ac_delim
23758 htmldir!$htmldir$ac_delim
23759 dvidir!$dvidir$ac_delim
23760 pdfdir!$pdfdir$ac_delim
23761 psdir!$psdir$ac_delim
23762 libdir!$libdir$ac_delim
23763 localedir!$localedir$ac_delim
23764 mandir!$mandir$ac_delim
23765 DEFS!$DEFS$ac_delim
23766 ECHO_C!$ECHO_C$ac_delim
23767 ECHO_N!$ECHO_N$ac_delim
23768 ECHO_T!$ECHO_T$ac_delim
23769 LIBS!$LIBS$ac_delim
23770 build_alias!$build_alias$ac_delim
23771 host_alias!$host_alias$ac_delim
23772 target_alias!$target_alias$ac_delim
23773 MAINT!$MAINT$ac_delim
23774 build!$build$ac_delim
23775 build_cpu!$build_cpu$ac_delim
23776 build_vendor!$build_vendor$ac_delim
23777 build_os!$build_os$ac_delim
23778 host!$host$ac_delim
23779 host_cpu!$host_cpu$ac_delim
23780 host_vendor!$host_vendor$ac_delim
23781 host_os!$host_os$ac_delim
23783 CFLAGS!$CFLAGS$ac_delim
23784 LDFLAGS!$LDFLAGS$ac_delim
23785 CPPFLAGS!$CPPFLAGS$ac_delim
23786 ac_ct_CC!$ac_ct_CC$ac_delim
23787 EXEEXT!$EXEEXT$ac_delim
23788 OBJEXT!$OBJEXT$ac_delim
23790 GREP!$GREP$ac_delim
23791 EGREP!$EGREP$ac_delim
23792 LN_S!$LN_S$ac_delim
23793 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23794 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23795 INSTALL_DATA!$INSTALL_DATA$ac_delim
23796 RANLIB!$RANLIB$ac_delim
23797 INSTALL_INFO!$INSTALL_INFO$ac_delim
23798 GZIP_PROG!$GZIP_PROG$ac_delim
23799 LIBSOUND!$LIBSOUND$ac_delim
23800 PKG_CONFIG!$PKG_CONFIG$ac_delim
23801 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23802 ALSA_LIBS!$ALSA_LIBS$ac_delim
23803 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23804 SET_MAKE!$SET_MAKE$ac_delim
23805 XMKMF!$XMKMF$ac_delim
23806 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23807 GTK_LIBS!$GTK_LIBS$ac_delim
23808 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23809 XFT_LIBS!$XFT_LIBS$ac_delim
23810 ALLOCA!$ALLOCA$ac_delim
23811 liblockfile!$liblockfile$ac_delim
23812 LIBOBJS!$LIBOBJS$ac_delim
23813 NEED_SETGID!$NEED_SETGID$ac_delim
23814 KMEM_GROUP!$KMEM_GROUP$ac_delim
23815 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23816 GETOPT_H!$GETOPT_H$ac_delim
23817 GETOPTOBJS!$GETOPTOBJS$ac_delim
23818 version!$version$ac_delim
23819 configuration!$configuration$ac_delim
23820 canonical!$canonical$ac_delim
23821 srcdir!$srcdir$ac_delim
23822 lispdir!$lispdir$ac_delim
23823 locallisppath!$locallisppath$ac_delim
23824 lisppath!$lisppath$ac_delim
23825 x_default_search_path!$x_default_search_path$ac_delim
23826 etcdir!$etcdir$ac_delim
23827 archlibdir!$archlibdir$ac_delim
23828 bitmapdir!$bitmapdir$ac_delim
23829 gamedir!$gamedir$ac_delim
23830 gameuser!$gameuser$ac_delim
23831 c_switch_system!$c_switch_system$ac_delim
23832 c_switch_machine!$c_switch_machine$ac_delim
23835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23837 elif $ac_last_try; then
23838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23840 { (exit 1); exit 1; }; }
23842 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23846 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23847 if test -n "$ac_eof"; then
23848 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23849 ac_eof
=`expr $ac_eof + 1`
23852 cat >>$CONFIG_STATUS <<_ACEOF
23853 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23858 s/^/s,@/; s/!/@,|#_!!_#|/
23861 s/'"$ac_delim"'$/,g/; t
23863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23864 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23865 rm -f conf$
$subs.
sed
23866 cat >>$CONFIG_STATUS <<_ACEOF
23872 for ac_last_try
in false false false false false
:; do
23873 cat >conf$
$subs.
sed <<_ACEOF
23874 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23875 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23876 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23877 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23878 machfile!$machfile$ac_delim
23879 opsysfile!$opsysfile$ac_delim
23880 carbon_appdir!$carbon_appdir$ac_delim
23881 LTLIBOBJS!$LTLIBOBJS$ac_delim
23884 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23886 elif $ac_last_try; then
23887 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23888 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23889 { (exit 1); exit 1; }; }
23891 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23895 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23896 if test -n "$ac_eof"; then
23897 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23898 ac_eof
=`expr $ac_eof + 1`
23901 cat >>$CONFIG_STATUS <<_ACEOF
23902 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23906 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23907 s/^/s,@/; s/!/@,|#_!!_#|/
23910 s/'"$ac_delim"'$/,g/; t
23912 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23913 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23914 rm -f conf$
$subs.
sed
23915 cat >>$CONFIG_STATUS <<_ACEOF
23922 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23923 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23924 # trailing colons and then remove the whole line if VPATH becomes empty
23925 # (actually we leave an empty line to preserve line numbers).
23926 if test "x$srcdir" = x.
; then
23927 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23928 s/:*\$(srcdir):*/:/
23929 s/:*\${srcdir}:*/:/
23931 s/^\([^=]*=[ ]*\):*/\1/
23937 cat >>$CONFIG_STATUS <<\_ACEOF
23938 fi # test -n "$CONFIG_FILES"
23941 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23944 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23946 case $ac_mode$ac_tag in
23948 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23949 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23950 { (exit 1); exit 1; }; };;
23951 :[FH
]-) ac_tag
=-:-;;
23952 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23969 -) ac_f
="$tmp/stdin";;
23970 *) # Look for the file first in the build tree, then in the source tree
23971 # (if the path is not absolute). The absolute path cannot be DOS-style,
23972 # because $ac_f cannot contain `:'.
23976 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23978 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23979 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23980 { (exit 1); exit 1; }; };;
23982 ac_file_inputs
="$ac_file_inputs $ac_f"
23985 # Let's still pretend it is `configure' which instantiates (i.e., don't
23986 # use $as_me), people would be surprised to read:
23987 # /* config.h. Generated by config.status. */
23988 configure_input
="Generated from "`IFS=:
23989 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23990 if test x
"$ac_file" != x-
; then
23991 configure_input
="$ac_file. $configure_input"
23992 { echo "$as_me:$LINENO: creating $ac_file" >&5
23993 echo "$as_me: creating $ac_file" >&6;}
23997 *:-:* |
*:-) cat >"$tmp/stdin";;
24002 ac_dir
=`$as_dirname -- "$ac_file" ||
24003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24004 X"$ac_file" : 'X\(//\)[^/]' \| \
24005 X"$ac_file" : 'X\(//\)$' \| \
24006 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24012 /^X\(\/\/\)[^/].*/{
24027 -*) as_dir
=.
/$as_dir;;
24029 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24033 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24034 *) as_qdir
=$as_dir;;
24036 as_dirs
="'$as_qdir' $as_dirs"
24037 as_dir
=`$as_dirname -- "$as_dir" ||
24038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24039 X"$as_dir" : 'X\(//\)[^/]' \| \
24040 X"$as_dir" : 'X\(//\)$' \| \
24041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24047 /^X\(\/\/\)[^/].*/{
24060 test -d "$as_dir" && break
24062 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24063 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24064 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24065 { (exit 1); exit 1; }; }; }
24069 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24071 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24072 # A ".." for each directory in $ac_dir_suffix.
24073 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24074 case $ac_top_builddir_sub in
24075 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24076 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24079 ac_abs_top_builddir
=$ac_pwd
24080 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24081 # for backward compatibility:
24082 ac_top_builddir
=$ac_top_build_prefix
24085 .
) # We are building in place.
24087 ac_top_srcdir
=$ac_top_builddir_sub
24088 ac_abs_top_srcdir
=$ac_pwd ;;
24089 [\\/]* | ?
:[\\/]* ) # Absolute name.
24090 ac_srcdir
=$srcdir$ac_dir_suffix;
24091 ac_top_srcdir
=$srcdir
24092 ac_abs_top_srcdir
=$srcdir ;;
24093 *) # Relative name.
24094 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24095 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24096 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24098 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24108 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24109 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24113 cat >>$CONFIG_STATUS <<\_ACEOF
24114 # If the template does not know about datarootdir, expand it.
24115 # FIXME: This hack should be removed a few years after 2.60.
24116 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24118 case `sed -n '/datarootdir/ {
24127 ' $ac_file_inputs` in
24128 *datarootdir
*) ac_datarootdir_seen
=yes;;
24129 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24130 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24131 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24133 cat >>$CONFIG_STATUS <<_ACEOF
24134 ac_datarootdir_hack='
24135 s&@datadir@&$datadir&g
24136 s&@docdir@&$docdir&g
24137 s&@infodir@&$infodir&g
24138 s&@localedir@&$localedir&g
24139 s&@mandir@&$mandir&g
24140 s&\\\${datarootdir}&$datarootdir&g' ;;
24144 # Neutralize VPATH when `$srcdir' = `.'.
24145 # Shell code in configure.ac might set extrasub.
24146 # FIXME: do we really want to maintain this feature?
24147 cat >>$CONFIG_STATUS <<_ACEOF
24151 cat >>$CONFIG_STATUS <<\_ACEOF
24153 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24154 s
&@configure_input@
&$configure_input&;t t
24155 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24156 s
&@srcdir@
&$ac_srcdir&;t t
24157 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24158 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24159 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24160 s
&@builddir@
&$ac_builddir&;t t
24161 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24162 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24163 s
&@INSTALL@
&$ac_INSTALL&;t t
24164 $ac_datarootdir_hack
24165 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24170 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24171 which seems to be undefined. Please make sure it is defined." >&5
24172 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24173 which seems to be undefined. Please make sure it is defined." >&2;}
24177 -) cat "$tmp/out"; rm -f "$tmp/out";;
24178 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24187 # Transform confdefs.h into a sed script `conftest.defines', that
24188 # substitutes the proper values into config.h.in to produce config.h.
24189 rm -f conftest.defines conftest.
tail
24190 # First, append a space to every undef/define line, to ease matching.
24191 echo 's/$/ /' >conftest.defines
24192 # Then, protect against being on the right side of a sed subst, or in
24193 # an unquoted here document, in config.status. If some macros were
24194 # called several times there might be several #defines for the same
24195 # symbol, which is useless. But do not sort them, since the last
24196 # AC_DEFINE must be honored.
24197 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24198 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24199 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24200 # PARAMS is the parameter list in the macro definition--in most cases, it's
24201 # just an empty string.
24202 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24203 ac_dB
='\\)[ (].*,\\1define\\2'
24211 s/^[ ]*#[ ]*define[ ][ ]*//
24216 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24217 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24218 ' >>conftest.defines
24220 # Remove the space that was appended to ease matching.
24221 # Then replace #undef with comments. This is necessary, for
24222 # example, in the case of _POSIX_SOURCE, which is predefined and required
24223 # on some systems where configure will not decide to define it.
24224 # (The regexp can be short, since the line contains either #define or #undef.)
24226 s,^[ #]*u.*,/* & */,' >>conftest.defines
24228 # Break up conftest.defines:
24229 ac_max_sed_lines
=50
24231 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24232 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24233 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24235 ac_in
='$ac_file_inputs'
24236 ac_out
='"$tmp/out1"'
24237 ac_nxt
='"$tmp/out2"'
24241 # Write a here document:
24242 cat >>$CONFIG_STATUS <<_ACEOF
24243 # First, check the format of the line:
24244 cat >"\$tmp/defines.sed" <<\\CEOF
24245 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24246 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24250 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24252 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24253 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24254 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24255 grep . conftest.
tail >/dev
/null ||
break
24256 rm -f conftest.defines
24257 mv conftest.
tail conftest.defines
24259 rm -f conftest.defines conftest.
tail
24261 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24262 cat >>$CONFIG_STATUS <<\_ACEOF
24263 if test x
"$ac_file" != x-
; then
24264 echo "/* $configure_input */" >"$tmp/config.h"
24265 cat "$ac_result" >>"$tmp/config.h"
24266 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24267 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24268 echo "$as_me: $ac_file is unchanged" >&6;}
24271 mv "$tmp/config.h" $ac_file
24274 echo "/* $configure_input */"
24280 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24281 echo "$as_me: executing $ac_file commands" >&6;}
24286 case $ac_file$ac_mode in
24289 ### Make the necessary directories, if they don't exist.
24290 for dir
in etc lisp
; do
24291 test -d ${dir} || mkdir
${dir}
24294 # Build src/Makefile from ${srcdir}/src/Makefile.c
24295 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24296 # This must be done after src/config.h is built, since we rely on that file.
24298 # Now get this: Some word that is part of the ${srcdir} directory name
24299 # or the ${configuration} value might, just might, happen to be an
24300 # identifier like `sun4' or `i386' or something, and be predefined by
24301 # the C preprocessor to some helpful value like 1, or maybe the empty
24302 # string. Needless to say consequent macro substitutions are less
24303 # than conducive to the makefile finding the correct directory.
24304 undefs
="`echo $top_srcdir $configuration $canonical |
24305 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24306 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24309 echo creating src
/epaths.h
24310 ${MAKE-make} epaths-force
24312 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24313 # `..' to `. .' unless invoked with -traditional
24315 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24316 CPPFLAGS
="$CPPFLAGS -traditional"
24319 echo creating lib-src
/Makefile
24321 rm -f junk.c junk1.c junk2.c
24322 sed -e '/start of cpp stuff/q' \
24323 < Makefile.c
> junk1.c
24324 sed -e '1,/start of cpp stuff/d'\
24325 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24326 < Makefile.c
> junk.c
24327 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24328 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24329 cat junk1.c junk2.c
> Makefile.new
24330 rm -f junk.c junk1.c junk2.c
24331 chmod 444 Makefile.new
24332 mv -f Makefile.new Makefile
24335 echo creating src
/Makefile
24337 rm -f junk.c junk1.c junk2.c
24338 sed -e '/start of cpp stuff/q' \
24339 < Makefile.c
> junk1.c
24340 sed -e '1,/start of cpp stuff/d'\
24341 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24342 < Makefile.c
> junk.c
24343 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24344 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24345 cat junk1.c junk2.c
> Makefile.new
24346 rm -f junk.c junk1.c junk2.c
24347 chmod 444 Makefile.new
24348 mv -f Makefile.new Makefile
24351 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24352 echo creating src
/.gdbinit
24353 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24356 # This is how we know whether to re-run configure in certain cases.
24357 touch src
/config.stamp
24365 { (exit 0); exit 0; }
24367 chmod +x
$CONFIG_STATUS
24368 ac_clean_files
=$ac_clean_files_save
24371 # configure is writing to config.log, and then calls config.status.
24372 # config.status does its own redirection, appending to config.log.
24373 # Unfortunately, on DOS this fails, as config.log is still kept open
24374 # by configure, so config.status won't be able to write to it; its
24375 # output is simply discarded. So we exec the FD to /dev/null,
24376 # effectively closing config.log, so it can be properly (re)opened and
24377 # appended to by config.status. When coming back to configure, we
24378 # need to make the FD available again.
24379 if test "$no_create" != yes; then
24381 ac_config_status_args
=
24382 test "$silent" = yes &&
24383 ac_config_status_args
="$ac_config_status_args --quiet"
24385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24388 # would make configure fail if this is the last instruction.
24389 $ac_cs_success ||
{ (exit 1); exit 1; }