2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.50'
576 PACKAGE_STRING
='emacs 23.0.50'
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
722 x_default_search_path
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.50:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful
(and
1339 sometimes confusing
) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search
for lisp files
1342 specific to this site
1343 --disable-largefile omit support
for large files
1346 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1347 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1348 --without-gcc don
't use GCC to compile Emacs even if GCC is found
1349 --without-pop don't support POP
mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version
5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server
host
1353 --without-sound don
't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don
't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don
't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don
't compile with SVG image support
1362 --without-freetype don't use Freetype
for local font support
1363 --without-xft don
't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf
for OpenType font support
1365 --without-m17n-flt don
't use m17n-flt for text shaping
1366 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don
't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1372 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1374 --with-dbus compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to
help
1391 it to
find libraries and programs with nonstandard names
/locations.
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1400 test -d "$ac_dir" ||
continue
1404 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1406 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1411 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir
=$ac_pwd
1415 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir
=$ac_top_build_prefix
1420 .
) # We are building in place.
1422 ac_top_srcdir
=$ac_top_builddir_sub
1423 ac_abs_top_srcdir
=$ac_pwd ;;
1424 [\\/]* | ?
:[\\/]* ) # Absolute name.
1425 ac_srcdir
=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir
=$srcdir
1427 ac_abs_top_srcdir
=$srcdir ;;
1429 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 emacs configure
23.0.50
1454 generated by GNU Autoconf
2.61
1456 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1458 This configure
script is free software
; the Free Software Foundation
1459 gives unlimited permission to copy
, distribute and modify it.
1463 cat >config.log
<<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir
=.
1504 echo "PATH: $as_dir"
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_must_keep_next
=false
1534 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1535 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1536 |
-silent |
--silent |
--silen |
--sile |
--sil)
1539 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true
; then
1546 ac_must_keep_next
=false
# Got value, back to normal.
1549 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1550 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1551 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1552 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 -* ) ac_must_keep_next
=true
;;
1560 ac_configure_args
="$ac_configure_args '$ac_arg'"
1565 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1566 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1631 if test -n "$ac_subst_files"; then
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1638 for ac_var
in $ac_subst_files
1640 eval ac_val
=\$
$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1649 if test -s confdefs.h; then
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 for ac_signal
in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest
* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h
<<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 cat >>confdefs.h
<<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 cat >>confdefs.h
<<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 cat >>confdefs.h
<<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 cat >>confdefs.h
<<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x
"$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE
; then
1707 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1709 set x
"$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1730 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1731 *) .
"./$cache_file";;
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1740 ac_header_list
="$ac_header_list sys/time.h"
1741 ac_header_list
="$ac_header_list unistd.h"
1742 ac_func_list
="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1745 ac_cache_corrupted
=false
1746 for ac_var
in $ac_precious_vars; do
1747 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1748 eval ac_new_set
=\
$ac_env_${ac_var}_set
1749 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1750 eval ac_new_val
=\
$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted
=: ;;
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted
=: ;;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted
=:
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1775 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg
=$ac_var=$ac_new_val ;;
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1817 ac_cpp
='$CPP $CPPFLAGS'
1818 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1823 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1828 ******************************************************************
1830 * The Emacs "emacs-unicode-2" branch has been merged into *
1831 * the CVS trunk, and is now obsolete. You should probably *
1832 * use the CVS trunk instead. *
1834 * To switch a CVS checkout to the trunk, use the command: *
1838 ******************************************************************
1842 test "$program_prefix" != NONE
&&
1843 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1844 # Use a double $ so make ignores it.
1845 test "$program_suffix" != NONE
&&
1846 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1847 # Double any \ or $. echo might interpret backslashes.
1848 # By default was `s,x,x', remove it if useless.
1849 cat <<\_ACEOF
>conftest.
sed
1850 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1852 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1856 lispdir
='${datadir}/emacs/${version}/lisp'
1857 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1858 '${datadir}/emacs/site-lisp'
1859 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1860 etcdir
='${datadir}/emacs/${version}/etc'
1861 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1862 docdir
='${datadir}/emacs/${version}/etc'
1863 gamedir
='${localstatedir}/games/emacs'
1870 # Check whether --with-gcc was given.
1871 if test "${with_gcc+set}" = set; then
1877 # Check whether --with-pop was given.
1878 if test "${with_pop+set}" = set; then
1884 if test "$with_pop" = yes; then
1885 cat >>confdefs.h
<<\_ACEOF
1886 #define MAIL_USE_POP 1
1893 # Check whether --with-kerberos was given.
1894 if test "${with_kerberos+set}" = set; then
1895 withval
=$with_kerberos;
1900 if test "$with_kerberos" = yes; then
1901 cat >>confdefs.h
<<\_ACEOF
1909 # Check whether --with-kerberos5 was given.
1910 if test "${with_kerberos5+set}" = set; then
1911 withval
=$with_kerberos5;
1916 if test "${with_kerberos5}" = yes; then
1917 if test "${with_kerberos}" != yes; then
1919 cat >>confdefs.h
<<\_ACEOF
1925 cat >>confdefs.h
<<\_ACEOF
1932 # Check whether --with-hesiod was given.
1933 if test "${with_hesiod+set}" = set; then
1934 withval
=$with_hesiod;
1939 if test "$with_hesiod" = yes; then
1941 cat >>confdefs.h
<<\_ACEOF
1948 # Check whether --with-sound was given.
1949 if test "${with_sound+set}" = set; then
1950 withval
=$with_sound;
1957 # Check whether --with-x-toolkit was given.
1958 if test "${with_x_toolkit+set}" = set; then
1959 withval
=$with_x_toolkit; case "${withval}" in
1960 y | ye |
yes ) val
=gtk
;;
1962 l | lu | luc | luci | lucid
) val
=lucid
;;
1963 a |
at | ath | athe | athen | athena
) val
=athena
;;
1964 m | mo | mot | moti | motif
) val
=motif
;;
1965 g | gt | gtk
) val
=gtk
;;
1967 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1969 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1970 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1971 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1972 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1973 { (exit 1); exit 1; }; }
1982 # Check whether --with-xpm was given.
1983 if test "${with_xpm+set}" = set; then
1990 # Check whether --with-jpeg was given.
1991 if test "${with_jpeg+set}" = set; then
1998 # Check whether --with-tiff was given.
1999 if test "${with_tiff+set}" = set; then
2006 # Check whether --with-gif was given.
2007 if test "${with_gif+set}" = set; then
2014 # Check whether --with-png was given.
2015 if test "${with_png+set}" = set; then
2022 # Check whether --with-rsvg was given.
2023 if test "${with_rsvg+set}" = set; then
2031 # Check whether --with-freetype was given.
2032 if test "${with_freetype+set}" = set; then
2033 withval
=$with_freetype;
2039 # Check whether --with-xft was given.
2040 if test "${with_xft+set}" = set; then
2047 # Check whether --with-libotf was given.
2048 if test "${with_libotf+set}" = set; then
2049 withval
=$with_libotf;
2055 # Check whether --with-m17n-flt was given.
2056 if test "${with_m17n_flt+set}" = set; then
2057 withval
=$with_m17n_flt;
2064 # Check whether --with-gtk was given.
2065 if test "${with_gtk+set}" = set; then
2072 # Check whether --with-toolkit-scroll-bars was given.
2073 if test "${with_toolkit_scroll_bars+set}" = set; then
2074 withval
=$with_toolkit_scroll_bars;
2076 with_toolkit_scroll_bars
=yes
2080 # Check whether --with-xaw3d was given.
2081 if test "${with_xaw3d+set}" = set; then
2082 withval
=$with_xaw3d;
2088 # Check whether --with-xim was given.
2089 if test "${with_xim+set}" = set; then
2096 # Check whether --with-carbon was given.
2097 if test "${with_carbon+set}" = set; then
2098 withval
=$with_carbon;
2105 # Check whether --with-gpm was given.
2106 if test "${with_gpm+set}" = set; then
2113 # Check whether --with-dbus was given.
2114 if test "${with_dbus+set}" = set; then
2122 # Check whether --with-pkg-config-prog was given.
2123 if test "${with_pkg_config_prog+set}" = set; then
2124 withval
=$with_pkg_config_prog;
2127 if test "X${with_pkg_config_prog}" != X
; then
2128 if test "${with_pkg_config_prog}" != yes; then
2129 PKG_CONFIG
="${with_pkg_config_prog}"
2133 # Check whether --enable-carbon-app was given.
2134 if test "${enable_carbon_app+set}" = set; then
2135 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2139 # Check whether --enable-font-backend was given.
2140 if test "${enable_font_backend+set}" = set; then
2141 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2147 # Check whether --enable-asserts was given.
2148 if test "${enable_asserts+set}" = set; then
2149 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2155 # Check whether --enable-maintainer-mode was given.
2156 if test "${enable_maintainer_mode+set}" = set; then
2157 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2159 USE_MAINTAINER_MODE
=no
2162 if test $USE_MAINTAINER_MODE = yes; then
2169 # Check whether --enable-locallisppath was given.
2170 if test "${enable_locallisppath+set}" = set; then
2171 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2173 elif test "${enableval}" != "yes"; then
2174 locallisppath
=${enableval}
2179 #### Make srcdir absolute, if it isn't already. It's important to
2180 #### avoid running the path through pwd unnecessarily, since pwd can
2181 #### give you automounter prefixes, which can go away. We do all this
2182 #### so Emacs can find its files when run uninstalled.
2183 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2188 ## We may be able to use the $PWD environment variable to make this
2189 ## absolute. But sometimes PWD is inaccurate.
2190 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2191 ## but that tested only for a well-formed and valid PWD,
2192 ## it did not object when PWD was well-formed and valid but just wrong.
2193 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2197 srcdir
="`(cd ${srcdir}; pwd)`"
2200 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2203 #### Check if the source directory already has a configured system in it.
2204 if test `pwd` != `(cd ${srcdir} && pwd)` \
2205 && test -f "${srcdir}/src/config.h" ; then
2206 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2207 as a build directory right now; it has been configured in its own
2208 right. To configure in another directory as well, you MUST
2209 use GNU make. If you do not have GNU make, then you must
2210 now do \`make distclean' in ${srcdir},
2211 and then run $0 again." >&5
2212 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2213 as a build directory right now; it has been configured in its own
2214 right. To configure in another directory as well, you MUST
2215 use GNU make. If you do not have GNU make, then you must
2216 now do \`make distclean' in ${srcdir},
2217 and then run $0 again." >&2;}
2220 #### Given the configuration name, set machfile and opsysfile to the
2221 #### names of the m/*.h and s/*.h files we should use.
2223 ### Canonicalize the configuration name.
2226 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2227 if test -f "$ac_dir/install-sh"; then
2229 ac_install_sh
="$ac_aux_dir/install-sh -c"
2231 elif test -f "$ac_dir/install.sh"; then
2233 ac_install_sh
="$ac_aux_dir/install.sh -c"
2235 elif test -f "$ac_dir/shtool"; then
2237 ac_install_sh
="$ac_aux_dir/shtool install -c"
2241 if test -z "$ac_aux_dir"; then
2242 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2243 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2244 { (exit 1); exit 1; }; }
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2252 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2253 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2256 # Make sure we can run config.sub.
2257 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2258 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2259 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2260 { (exit 1); exit 1; }; }
2262 { echo "$as_me:$LINENO: checking build system type" >&5
2263 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2264 if test "${ac_cv_build+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 ac_build_alias
=$build_alias
2268 test "x$ac_build_alias" = x
&&
2269 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2270 test "x$ac_build_alias" = x
&&
2271 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2272 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2273 { (exit 1); exit 1; }; }
2274 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2275 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2276 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2277 { (exit 1); exit 1; }; }
2280 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2281 echo "${ECHO_T}$ac_cv_build" >&6; }
2282 case $ac_cv_build in
2284 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2285 echo "$as_me: error: invalid value of canonical build" >&2;}
2286 { (exit 1); exit 1; }; };;
2289 ac_save_IFS
=$IFS; IFS
='-'
2295 # Remember, the first character of IFS is used to create $*,
2296 # except with old shells:
2299 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2302 { echo "$as_me:$LINENO: checking host system type" >&5
2303 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2304 if test "${ac_cv_host+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test "x$host_alias" = x
; then
2308 ac_cv_host
=$ac_cv_build
2310 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2311 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2312 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2313 { (exit 1); exit 1; }; }
2317 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2318 echo "${ECHO_T}$ac_cv_host" >&6; }
2321 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2322 echo "$as_me: error: invalid value of canonical host" >&2;}
2323 { (exit 1); exit 1; }; };;
2326 ac_save_IFS
=$IFS; IFS
='-'
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2336 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2340 configuration
=${host_alias-${build_alias-$host}}
2344 ### If you add support for a new configuration, add code to this
2345 ### switch statement to recognize your configuration name and select
2346 ### the appropriate operating system and machine description files.
2348 ### You would hope that you could choose an m/*.h file pretty much
2349 ### based on the machine portion of the configuration name, and an s-
2350 ### file based on the operating system portion. However, it turns out
2351 ### that each m/*.h file is pretty manufacturer-specific - for
2352 ### example hp9000s300.h is a 68000 machine;
2353 ### mips.h, pmax.h are all MIPS
2354 ### machines. So we basically have to have a special case for each
2355 ### configuration name.
2357 ### As far as handling version numbers on operating systems is
2358 ### concerned, make sure things will fail in a fixable way. If
2359 ### /etc/MACHINES doesn't say anything about version numbers, be
2360 ### prepared to handle anything reasonably. If version numbers
2361 ### matter, be sure /etc/MACHINES says something about it.
2363 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2364 ### "System V Release 4"; he writes, "The old convention encouraged
2365 ### confusion between `system' and `release' levels'."
2367 machine
='' opsys
='' unported
=no
2368 case "${canonical}" in
2373 case "${canonical}" in
2374 alpha
*-*-freebsd*) machine
=alpha
;;
2375 ia64-
*-freebsd*) machine
=ia64
;;
2376 sparc64-
*-freebsd*) machine
=sparc
;;
2377 powerpc-
*-freebsd*) machine
=macppc
;;
2378 i
[3456]86-*-freebsd*) machine
=intel386
;;
2379 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2383 ## FreeBSD kernel + glibc based userland
2386 case "${canonical}" in
2387 alpha
*-*-kfreebsd*) machine
=alpha
;;
2388 ia64-
*-kfreebsd*) machine
=ia64
;;
2389 sparc64-
*-kfreebsd*) machine
=sparc
;;
2390 powerpc-
*-kfreebsd*) machine
=macppc
;;
2391 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2392 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2399 if test -f /usr
/lib
/crti.o
; then
2401 cat >>confdefs.h
<<\_ACEOF
2407 case "${canonical}" in
2408 alpha
*-*-netbsd*) machine
=alpha
;;
2409 i
[3456]86-*-netbsd*) machine
=intel386
;;
2411 # This is somewhat bogus.
2412 machine
=hp9000s300
;;
2413 mips-
*-netbsd*) machine
=pmax
;;
2414 mipsel-
*-netbsd*) machine
=pmax
;;
2415 mipseb-
*-netbsd*) machine
=pmax
;;
2416 powerpc-
*-netbsd*) machine
=macppc
;;
2417 sparc
*-*-netbsd*) machine
=sparc
;;
2418 vax-
*-netbsd*) machine
=vax
;;
2419 arm-
*-netbsd*) machine
=arm
;;
2420 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2421 hppa-
*-netbsd*) machine
=hp800
;;
2428 case "${canonical}" in
2429 alpha
*-*-openbsd*) machine
=alpha
;;
2430 arm-
*-openbsd*) machine
=arm
;;
2431 hppa-
*-openbsd*) machine
=hp9000s300
;;
2432 i386-
*-openbsd*) machine
=intel386
;;
2433 m68k-
*-openbsd*) machine
=hp9000s300
;;
2434 mips64-
*-openbsd*) machine
=mips64
;;
2435 powerpc-
*-openbsd*) machine
=macppc
;;
2436 sparc
*-*-openbsd*) machine
=sparc
;;
2437 vax-
*-openbsd*) machine
=vax
;;
2438 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2445 case "${canonical}" in
2446 i
[3456]86-*-lynxos*) machine
=intel386
;;
2447 powerpc-
*-lynxos*) machine
=powerpc
;;
2454 case "${canonical}" in
2455 i
[345]86-*-bsdi*) machine
=intel386
;;
2456 sparc-
*-bsdi*) machine
=sparc
;;
2457 powerpc-
*-bsdi*) machine
=macppc
;;
2459 case "${canonical}" in
2460 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2461 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2462 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2463 *-*-bsdi3* ) opsys
=bsdos3
;;
2464 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2468 ## Alpha (DEC) machines.
2470 machine
=alpha opsys
=osf1
2471 # This is needed to find X11R6.1 libraries for certain tests.
2472 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2473 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2474 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2475 # due to non-traditional preprocessing with the current compiler
2476 # defaults. OSF 4 can also have that compiler version, and there
2477 # seems always to have been a usable /usr/bin/cpp.
2478 NON_GNU_CPP
=/usr
/bin
/cpp
2479 case "${canonical}" in
2480 alpha
*-dec-osf[5-9]*)
2485 alpha
*-*-linux-gnu* )
2486 machine
=alpha opsys
=gnu-linux
2490 machine
=arm opsys
=gnu-linux
2493 ## Apple Darwin / Mac OS X
2495 case "${canonical}" in
2496 i
[3456]86-* ) machine
=intel386
;;
2497 powerpc-
* ) machine
=powermac
;;
2501 # Define CPP as follows to make autoconf work correctly.
2502 CPP
="${CC-cc} -E -no-cpp-precomp"
2503 # Use fink packages if available.
2504 if test -d /sw
/include
&& test -d /sw
/lib
; then
2505 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2506 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2507 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2512 mips-compaq-nonstopux
* )
2513 machine
=nonstopux opsys
=nonstopux
2517 i
[3456]86-cubix-sysv* )
2518 machine
=intel386 opsys
=usg5-3
2521 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2522 machine
=pmax opsys
=bsd4-2
2524 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2525 machine
=pmax opsys
=bsd4-3
2528 machine
=pmax opsys
=ultrix4-3
2531 machine
=pmax opsys
=osf1
2533 mips-dec-mach_bsd4.3
* )
2534 machine
=pmax opsys
=mach-bsd4-3
2537 ## HP 9000 series 200 or 300
2539 machine
=hp9000s300 opsys
=bsd4-3
2541 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2543 case "`uname -r`" in
2544 ## Someone's system reports A.B8.05 for this.
2545 ## I wonder what other possibilities there are.
2546 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2547 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2548 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2549 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2550 *) machine
=hp9000s300 opsys
=hpux
;;
2554 ## HP 9000 series 700 and 800, running HP/UX
2556 machine
=hp800 opsys
=hpux
2559 machine
=hp800 opsys
=hpux8
2561 hppa
*-hp-hpux9shr* )
2562 machine
=hp800 opsys
=hpux9shr
2565 machine
=hp800 opsys
=hpux9
2567 hppa
*-hp-hpux10.2
* )
2568 machine
=hp800 opsys
=hpux10-20
2571 machine
=hp800 opsys
=hpux10
2573 hppa
*-hp-hpux1[1-9]* )
2574 machine
=hp800 opsys
=hpux11
2575 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2578 hppa
*-*-linux-gnu* )
2579 machine
=hp800 opsys
=gnu-linux
2582 ## HP 9000 series 700 and 800, running HP/UX
2584 ## Cross-compilation? Nah!
2585 case "`uname -r`" in
2586 ## Someone's system reports A.B8.05 for this.
2587 ## I wonder what other possibilities there are.
2588 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2589 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2590 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2591 *) machine
=hp800 opsys
=hpux10
;;
2595 machine
=hp800 opsys
=nextstep
2600 machine
=ibm370aix opsys
=usg5-3
2603 machine
=ibms390 opsys
=gnu-linux
2605 s390x-
*-linux-gnu* )
2606 machine
=ibms390x opsys
=gnu-linux
2608 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2609 machine
=ibmrs6000 opsys
=aix3-1
2611 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2612 machine
=ibmrs6000 opsys
=aix3-2-5
2614 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2615 machine
=ibmrs6000 opsys
=aix4-1
2617 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2618 machine
=ibmrs6000 opsys
=aix4-2
2620 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2621 machine
=ibmrs6000 opsys
=aix4-2
2623 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2624 machine
=ibmrs6000 opsys
=aix4-2
2626 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2627 machine
=ibmrs6000 opsys
=aix4
2629 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2630 machine
=ibmrs6000 opsys
=aix4-1
2632 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2633 machine
=ibmrs6000 opsys
=aix3-2
2637 i
[3456]86-prime-sysv* )
2638 machine
=i386 opsys
=usg5-3
2641 ## ncr machine running svr4.3.
2642 i
[3456]86-ncr-sysv4.3
)
2643 machine
=ncr386 opsys
=usg5-4-3
2646 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2647 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2648 i
[3456]86-ncr-sysv* )
2649 machine
=ncr386 opsys
=usg5-4-2
2652 ## Macintosh PowerPC
2653 powerpc
*-*-linux-gnu* )
2654 machine
=macppc opsys
=gnu-linux
2657 ## Workstations sold by MIPS
2658 ## This is not necessarily all workstations using the MIPS processor -
2659 ## Irises are produced by SGI, and DECstations by DEC.
2661 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2662 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2663 ## it gives for choosing between the alternatives seems to be "Use
2664 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2665 ## the BSD world." I'll assume that these are instructions for
2666 ## handling two odd situations, and that every other situation
2667 ## should use mips.h and usg5-2-2, they being listed first.
2670 ## Fall through to the general code at the bottom to decide on the OS.
2672 mips-mips-riscos4
* )
2673 machine
=mips4 opsys
=bsd4-3
2674 NON_GNU_CC
="cc -systype bsd43"
2675 NON_GNU_CPP
="cc -systype bsd43 -E"
2677 mips-mips-riscos5
* )
2678 machine
=mips4 opsys
=riscos5
2679 NON_GNU_CC
="cc -systype bsd43"
2680 NON_GNU_CPP
="cc -systype bsd43 -E"
2683 machine
=mips opsys
=bsd4-3
2686 machine
=mips opsys
=usg5-2-2
2690 m68
*-next-* | m68k-
*-nextstep* )
2691 machine
=m68k opsys
=nextstep
2696 machine
=ews4800 opsys
=ux4800
2700 mips-siemens-sysv
* | mips-sni-sysv
*)
2701 machine
=mips-siemens opsys
=usg5-4
2702 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2703 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2706 ## Silicon Graphics machines
2709 machine
=iris4d opsys
=irix6-5
2710 # Without defining _LANGUAGE_C, things get masked out in the headers
2711 # so that, for instance, grepping for `free' in stdlib.h fails and
2712 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2713 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2714 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2717 machine
=iris4d opsys
=irix6-0
2718 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2719 # but presumably it does no harm.
2720 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2721 # -32 probably isn't necessary in later v.6s -- anyone know which?
2722 NON_GCC_TEST_OPTIONS
=-32
2724 mips-sgi-irix5.
[01]* )
2725 machine
=iris4d opsys
=irix5-0
2727 mips-sgi-irix5
* | mips-sgi-irix
* )
2728 machine
=iris4d opsys
=irix5-2
2732 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2733 machine
=sparc opsys
=gnu-linux
2736 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2737 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2738 | rs6000-
*-solaris2*)
2739 case "${canonical}" in
2740 i
[3456]86-*-* ) machine
=intel386
;;
2741 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2742 powerpcle
* ) machine
=powerpcle
;;
2743 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2744 sparc
* ) machine
=sparc
;;
2747 case "${canonical}" in
2748 *-sunos5.3
* |
*-solaris2.3
* )
2750 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2752 *-sunos5.4
* |
*-solaris2.4
* )
2754 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2757 *-sunos5.5
* |
*-solaris2.5
* )
2759 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2762 *-sunos5.6
* |
*-solaris2.6
* )
2764 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2767 *-sunos5* |
*-solaris* )
2769 emacs_check_sunpro_c
=yes
2770 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2774 ## Watch out for a compiler that we know will not work.
2775 case "${canonical}" in
2776 *-solaris* |
*-sunos5* )
2777 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2778 ## /usr/ucb/cc doesn't work;
2779 ## we should find some other compiler that does work.
2787 machine
=sparc opsys
=nextstep
2790 ## Tandem Integrity S2
2792 machine
=tandem-s2 opsys
=usg5-3
2798 case "${canonical}" in
2799 *-bsd4.1
* ) opsys
=bsd4-1
;;
2800 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2801 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2802 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2803 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2804 *-vms* ) opsys
=vms
;;
2811 machine
=ia64 opsys
=gnu-linux
2814 ## Intel 386 machines where we don't care about the manufacturer
2817 case "${canonical}" in
2818 *-cygwin ) opsys
=cygwin
;;
2819 *-darwin* ) opsys
=darwin
2820 CPP
="${CC-cc} -E -no-cpp-precomp"
2822 *-xenix* ) opsys
=xenix
;;
2823 *-linux-gnu* ) opsys
=gnu-linux
;;
2824 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2825 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2826 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2827 *-386bsd* ) opsys
=386bsd
;;
2828 *-nextstep* ) opsys
=nextstep
;;
2829 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2833 ## m68k Linux-based GNU system
2835 machine
=m68k opsys
=gnu-linux
2838 ## Mips Linux-based GNU system
2839 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2840 machine
=mips opsys
=gnu-linux
2844 sparc-fujitsu-sysv4
* )
2845 machine
=sparc opsys
=uxpds
2846 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2850 ## AMD x86-64 Linux-based GNU system
2851 x86_64-
*-linux-gnu* )
2852 machine
=amdx86-64 opsys
=gnu-linux
2855 ## Tensilica Xtensa Linux-based GNU system
2856 xtensa
*-*-linux-gnu* )
2857 machine
=xtensa opsys
=gnu-linux
2865 ### If the code above didn't choose an operating system, just choose
2866 ### an operating system based on the configuration name. You really
2867 ### only want to use this when you have no idea what the right
2868 ### operating system is; if you know what operating systems a machine
2869 ### runs, it's cleaner to make it explicit in the case statement
2871 if test x
"${opsys}" = x
; then
2872 case "${canonical}" in
2873 *-gnu* ) opsys
=gnu
;;
2874 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2875 *-bsd4.2
) opsys
=bsd4-2
;;
2876 *-bsd4.3
) opsys
=bsd4-3
;;
2877 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2878 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2879 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2880 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2881 *-sysv4.2uw
* ) opsys
=unixware
;;
2882 *-sysv5uw* ) opsys
=unixware
;;
2883 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2884 *-sysv4.1
* |
*-sysvr4.1
* )
2885 NON_GNU_CPP
=/usr
/lib
/cpp
2887 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2888 if [ x
$NON_GNU_CPP = x
]; then
2889 if [ -f /usr
/ccs
/lib
/cpp
]; then
2890 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2892 NON_GNU_CPP
=/lib
/cpp
2896 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2905 if test $unported = yes; then
2906 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2907 Check \`etc/MACHINES' for recognized configuration names." >&5
2908 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2909 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2910 { (exit 1); exit 1; }; }
2913 machfile
="m/${machine}.h"
2914 opsysfile
="s/${opsys}.h"
2917 #### Choose a compiler.
2918 test -n "$CC" && cc_specified
=yes
2920 # Save the value of CFLAGS that the user specified.
2921 SPECIFIED_CFLAGS
="$CFLAGS"
2924 "yes" ) CC
="gcc" GCC
=yes ;;
2925 "no" ) : ${CC=cc} ;;
2929 ac_cpp
='$CPP $CPPFLAGS'
2930 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC
="$CC" # Let the user override the test.
2944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir
=.
2949 for ac_exec_ext
in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$CC"; then
2963 { echo "$as_me:$LINENO: result: $CC" >&5
2964 echo "${ECHO_T}$CC" >&6; }
2966 { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2972 if test -z "$ac_cv_prog_CC"; then
2974 # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc
; ac_word
=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir
=.
2989 for ac_exec_ext
in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC
="gcc"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3004 echo "${ECHO_T}$ac_ct_CC" >&6; }
3006 { echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6; }
3010 if test "x$ac_ct_CC" = x
; then
3013 case $cross_compiling:$ac_tool_warned in
3015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3016 whose name does not start with the host triplet. If you think this
3017 configuration is useful to you, please write to autoconf@gnu.org." >&5
3018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet. If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3021 ac_tool_warned
=yes ;;
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC
="$CC" # Let the user override the test.
3041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir
=.
3046 for ac_exec_ext
in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3070 if test -z "$CC"; then
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc
; ac_word
=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC
="$CC" # Let the user override the test.
3082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir
=.
3087 for ac_exec_ext
in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090 ac_prog_rejected
=yes
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test $ac_prog_rejected = yes; then
3102 # We found a bogon in the path, so make sure we never use it.
3103 set dummy
$ac_cv_prog_CC
3105 if test $# != 0; then
3106 # We chose a different compiler from the bogus one.
3107 # However, it has the same basename, so the bogon will be chosen
3108 # first if we set CC to just the basename; use the full file name.
3110 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3116 if test -n "$CC"; then
3117 { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog
in cl.exe
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC
="$CC" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { echo "$as_me:$LINENO: result: $CC" >&5
3160 echo "${ECHO_T}$CC" >&6; }
3162 { echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6; }
3167 test -n "$CC" && break
3170 if test -z "$CC"; then
3172 for ac_prog
in cl.exe
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy
$ac_prog; ac_word
=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC
="$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 echo "${ECHO_T}$ac_ct_CC" >&6; }
3206 { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3211 test -n "$ac_ct_CC" && break
3214 if test "x$ac_ct_CC" = x
; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3220 whose name does not start with the host triplet. If you think this
3221 configuration is useful to you, please write to autoconf@gnu.org." >&5
3222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet. If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3225 ac_tool_warned
=yes ;;
3234 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details." >&2;}
3238 { (exit 1); exit 1; }; }
3240 # Provide some information about the compiler.
3241 echo "$as_me:$LINENO: checking for C compiler version" >&5
3242 ac_compiler
=`set X $ac_compile; echo $2`
3243 { (ac_try
="$ac_compiler --version >&5"
3245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compiler --version >&5") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3256 *) ac_try_echo
=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compiler -v >&5") 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (ac_try
="$ac_compiler -V >&5"
3265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compiler -V >&5") 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3296 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3298 # List of possible output files, starting from the most likely.
3299 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3300 # only as a last resort. b.out is created by i960 compilers.
3301 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3303 # The IRIX 6 linker writes into existing files which may not be
3304 # executable, retaining their permissions. Remove them first so a
3305 # subsequent execution test works.
3307 for ac_file in $ac_files
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316 if { (ac_try="$ac_link_default"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_link_default") 2>&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3331 for ac_file
in $ac_files ''
3333 test -f "$ac_file" ||
continue
3335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3338 # We found the default executable, but exeext='' is most
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3344 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3356 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3362 { echo "$as_me:$LINENO: result: $ac_file" >&5
3363 echo "${ECHO_T}$ac_file" >&6; }
3364 if test -z "$ac_file"; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.
$ac_ext >&5
3368 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&5
3370 echo "$as_me: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&2;}
3372 { (exit 77); exit 77; }; }
3375 ac_exeext
=$ac_cv_exeext
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3380 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384 if { ac_try
='./$ac_file'
3385 { (case "(($ac_try" in
3386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3396 if test "$cross_compiling" = maybe; then
3399 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details.
" >&5
3402 echo "$as_me: error
: cannot run C compiled programs.
3403 If you meant to cross compile
, use \
`--host'.
3404 See \`config.log
' for more details." >&2;}
3405 { (exit 1); exit 1; }; }
3409 { echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6; }
3412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run. If not, either
3415 # the compiler is broken, or we cross compile.
3416 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3418 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3419 echo "${ECHO_T}$cross_compiling" >&6; }
3421 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3423 if { (ac_try="$ac_link"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_link") 2>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; then
3433 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3434 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3435 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3437 for ac_file
in conftest.exe conftest conftest.
*; do
3438 test -f "$ac_file" ||
continue
3440 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3441 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3454 rm -f conftest
$ac_cv_exeext
3455 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3456 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3458 rm -f conftest.
$ac_ext
3459 EXEEXT
=$ac_cv_exeext
3461 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3462 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3463 if test "${ac_cv_objext+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 cat >conftest.
$ac_ext <<_ACEOF
3469 cat confdefs.h
>>conftest.
$ac_ext
3470 cat >>conftest.
$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3481 rm -f conftest.o conftest.obj
3482 if { (ac_try
="$ac_compile"
3484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; then
3492 for ac_file in conftest.o conftest.obj conftest.*; do
3493 test -f "$ac_file" || continue;
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3505 See \`config.log
' for more details." >&5
3506 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details.
" >&2;}
3508 { (exit 1); exit 1; }; }
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3514 echo "${ECHO_T}$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3517 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3518 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3519 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3520 echo $ECHO_N "(cached
) $ECHO_C" >&6
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3559 echo "$as_me: failed program was
:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3575 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached
) $ECHO_C" >&6
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compile") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3611 (exit $ac_status); } && {
3612 test -z "$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 } && test -s conftest.$ac_objext; then
3617 echo "$as_me: failed program was
:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3636 rm -f conftest.$ac_objext
3637 if { (ac_try="$ac_compile"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_compile") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3655 echo "$as_me: failed program was
:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3694 echo "$as_me: failed program was
:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_c_werror_flag=$ac_save_c_werror_flag
3709 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3711 if test "$ac_test_CFLAGS" = set; then
3712 CFLAGS=$ac_save_CFLAGS
3713 elif test $ac_cv_prog_cc_g = yes; then
3714 if test "$GCC" = yes; then
3720 if test "$GCC" = yes; then
3726 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3727 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3728 if test "${ac_cv_prog_cc_c89+set}" = set; then
3729 echo $ECHO_N "(cached
) $ECHO_C" >&6
3731 ac_cv_prog_cc_c89=no
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3741 #include <sys/types.h>
3742 #include <sys/stat.h>
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3757 s = g (p, va_arg (v,int));
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest.$ac_objext; then
3811 ac_cv_prog_cc_c89=$ac_arg
3813 echo "$as_me: failed program was
:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3819 rm -f core conftest.err conftest.$ac_objext
3820 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3822 rm -f conftest.$ac_ext
3827 case "x
$ac_cv_prog_cc_c89" in
3829 { echo "$as_me:$LINENO: result
: none needed
" >&5
3830 echo "${ECHO_T}none needed
" >&6; } ;;
3832 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3833 echo "${ECHO_T}unsupported
" >&6; } ;;
3835 CC="$CC $ac_cv_prog_cc_c89"
3836 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3837 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 # On Suns, sometimes $CPP names a directory.
3849 if test -n "$CPP" && test -d "$CPP"; then
3853 ## If not using gcc, and on Solaris, and no CPP specified, see if
3854 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3855 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3856 test x"$CPP" = x; then
3857 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3858 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3860 if test "${emacs_cv_sunpro_c+set}" = set; then
3861 echo $ECHO_N "(cached
) $ECHO_C" >&6
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3881 rm -f conftest.$ac_objext conftest$ac_exeext
3882 if { (ac_try="$ac_link"
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_link") 2>conftest.er1
3890 grep -v '^ *+' conftest.er1 >conftest.err
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3894 (exit $ac_status); } && {
3895 test -z "$ac_c_werror_flag" ||
3896 test ! -s conftest.err
3897 } && test -s conftest$ac_exeext &&
3898 $as_test_x conftest$ac_exeext; then
3899 emacs_cv_sunpro_c=yes
3901 echo "$as_me: failed program was
:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 emacs_cv_sunpro_c=no
3907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3908 conftest$ac_exeext conftest.$ac_ext
3911 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3912 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3914 if test x"$emacs_cv_sunpro_c" = xyes; then
3915 NON_GNU_CPP="$CC -E -Xs"
3919 #### Some systems specify a CPP to use unless we are using GCC.
3920 #### Now that we know whether we are using GCC, we can decide whether
3921 #### to use that one.
3922 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3927 #### Some systems specify a CC to use unless we are using GCC.
3928 #### Now that we know whether we are using GCC, we can decide whether
3929 #### to use that one.
3930 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3931 test x$cc_specified != xyes
3936 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3938 CC="$CC $GCC_TEST_OPTIONS"
3941 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3943 CC="$CC $NON_GCC_TEST_OPTIONS"
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3952 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3953 # On Suns, sometimes $CPP names a directory.
3954 if test -n "$CPP" && test -d "$CPP"; then
3957 if test -z "$CPP"; then
3958 if test "${ac_cv_prog_CPP+set}" = set; then
3959 echo $ECHO_N "(cached
) $ECHO_C" >&6
3961 # Double quotes because CPP needs to be expanded
3962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3965 for ac_c_preproc_warn_flag in '' yes
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error
" is here to catch this case.
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 # include <limits.h>
3982 # include <assert.h>
3986 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3998 (exit $ac_status); } >/dev/null && {
3999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4004 echo "$as_me: failed program was
:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 # Broken: fails on valid input.
4011 rm -f conftest.err conftest.$ac_ext
4013 # OK, works on sane cases. Now check whether nonexistent headers
4014 # can be detected and how.
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 #include <ac_nonexistent.h>
4023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4039 # Broken: success on invalid input.
4042 echo "$as_me: failed program was
:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 # Passes both tests.
4050 rm -f conftest.err conftest.$ac_ext
4053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4054 rm -f conftest.err conftest.$ac_ext
4055 if $ac_preproc_ok; then
4067 { echo "$as_me:$LINENO: result
: $CPP" >&5
4068 echo "${ECHO_T}$CPP" >&6; }
4070 for ac_c_preproc_warn_flag in '' yes
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error
" is here to catch this case.
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4085 # include <limits.h>
4087 # include <assert.h>
4091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4109 echo "$as_me: failed program was
:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 # Broken: fails on valid input.
4116 rm -f conftest.err conftest.$ac_ext
4118 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how.
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4128 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4140 (exit $ac_status); } >/dev/null && {
4141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4144 # Broken: success on invalid input.
4147 echo "$as_me: failed program was
:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 # Passes both tests.
4155 rm -f conftest.err conftest.$ac_ext
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.err conftest.$ac_ext
4160 if $ac_preproc_ok; then
4163 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4164 See \
`config.log' for more details." >&5
4165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4166 See \`config.log
' for more details." >&2;}
4167 { (exit 1); exit 1; }; }
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4173 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4178 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4179 if test "${ac_cv_path_GREP+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 # Extract the first word of "grep ggrep" to use in msg output
4183 if test -z "$GREP"; then
4184 set dummy grep ggrep; ac_prog_name=$2
4185 if test "${ac_cv_path_GREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 ac_path_GREP_found=false
4189 # Loop through the user's path and
test for each of PROGNAME-LIST
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_prog
in grep ggrep
; do
4196 for ac_exec_ext
in '' $ac_executable_extensions; do
4197 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4199 # Check for GNU ac_path_GREP and select it if it is found.
4200 # Check for GNU $ac_path_GREP
4201 case `"$ac_path_GREP" --version 2>&1` in
4203 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 echo 'GREP' >> "conftest.nl"
4213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4214 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4215 ac_count
=`expr $ac_count + 1`
4216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_GREP
="$ac_path_GREP"
4219 ac_path_GREP_max
=$ac_count
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4224 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4228 $ac_path_GREP_found && break 3
4238 GREP
="$ac_cv_path_GREP"
4239 if test -z "$GREP"; then
4240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4241 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4242 { (exit 1); exit 1; }; }
4246 ac_cv_path_GREP
=$GREP
4251 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4252 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4253 GREP
="$ac_cv_path_GREP"
4256 { echo "$as_me:$LINENO: checking for egrep" >&5
4257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4258 if test "${ac_cv_path_EGREP+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4262 then ac_cv_path_EGREP
="$GREP -E"
4264 # Extract the first word of "egrep" to use in msg output
4265 if test -z "$EGREP"; then
4266 set dummy
egrep; ac_prog_name
=$2
4267 if test "${ac_cv_path_EGREP+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 ac_path_EGREP_found
=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4273 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_prog
in egrep; do
4278 for ac_exec_ext
in '' $ac_executable_extensions; do
4279 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4280 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4281 # Check for GNU ac_path_EGREP and select it if it is found.
4282 # Check for GNU $ac_path_EGREP
4283 case `"$ac_path_EGREP" --version 2>&1` in
4285 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4288 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 echo 'EGREP' >> "conftest.nl"
4295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4296 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4297 ac_count
=`expr $ac_count + 1`
4298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_EGREP
="$ac_path_EGREP"
4301 ac_path_EGREP_max
=$ac_count
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4306 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4310 $ac_path_EGREP_found && break 3
4320 EGREP
="$ac_cv_path_EGREP"
4321 if test -z "$EGREP"; then
4322 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4323 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4324 { (exit 1); exit 1; }; }
4328 ac_cv_path_EGREP
=$EGREP
4334 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4335 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4336 EGREP
="$ac_cv_path_EGREP"
4340 { echo "$as_me:$LINENO: checking for AIX" >&5
4341 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4342 cat >conftest.
$ac_ext <<_ACEOF
4345 cat confdefs.h
>>conftest.
$ac_ext
4346 cat >>conftest.
$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "yes" >/dev
/null
2>&1; then
4355 { echo "$as_me:$LINENO: result: yes" >&5
4356 echo "${ECHO_T}yes" >&6; }
4357 cat >>confdefs.h
<<\_ACEOF
4358 #define _ALL_SOURCE 1
4362 { echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6; }
4369 cat >>confdefs.h
<<\_ACEOF
4370 #define _GNU_SOURCE 1
4375 ### Use -Wno-pointer-sign if the compiler supports it
4376 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4377 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4378 SAVE_CFLAGS
="$CFLAGS"
4379 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4395 rm -f conftest.
$ac_objext
4396 if { (ac_try
="$ac_compile"
4398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 if test $has_option = yes; then
4422 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4424 { echo "$as_me:$LINENO: result: $has_option" >&5
4425 echo "${ECHO_T}$has_option" >&6; }
4426 CFLAGS="$SAVE_CFLAGS"
4430 #### Some other nice autoconf tests.
4432 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4433 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4435 if test "$LN_S" = "ln -s"; then
4436 { echo "$as_me:$LINENO: result: yes" >&5
4437 echo "${ECHO_T}yes" >&6; }
4439 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4440 echo "${ECHO_T}no, using $LN_S" >&6; }
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4454 if test -z "$CPP"; then
4455 if test "${ac_cv_prog_CPP+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4477 # include <limits.h>
4479 # include <assert.h>
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4486 *) ac_try_echo
=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1
>conftest.err
4493 cat conftest.err
>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev
/null
&& {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4504 # Broken: fails on valid input.
4508 rm -f conftest.err conftest.
$ac_ext
4510 # OK, works on sane cases. Now check whether nonexistent headers
4511 # can be detected and how.
4512 cat >conftest.
$ac_ext <<_ACEOF
4515 cat confdefs.h
>>conftest.
$ac_ext
4516 cat >>conftest.
$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4520 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null && {
4533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4536 # Broken: success on invalid input.
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 # Passes both tests.
4547 rm -f conftest.err conftest.$ac_ext
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.
$ac_ext
4552 if $ac_preproc_ok; then
4564 { echo "$as_me:$LINENO: result: $CPP" >&5
4565 echo "${ECHO_T}$CPP" >&6; }
4567 for ac_c_preproc_warn_flag
in '' yes
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat >conftest.
$ac_ext <<_ACEOF
4578 cat confdefs.h
>>conftest.
$ac_ext
4579 cat >>conftest.
$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4582 # include <limits.h>
4584 # include <assert.h>
4588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4596 grep -v '^ *+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null && {
4601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4602 test ! -s conftest.err
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 # Broken: fails on valid input.
4613 rm -f conftest.err conftest.$ac_ext
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <ac_nonexistent.h>
4625 if { (ac_try="$ac_cpp conftest.$ac_ext"
4627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4628 *) ac_try_echo
=$ac_try;;
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4633 grep -v '^ *+' conftest.er1
>conftest.err
4635 cat conftest.err
>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev
/null
&& {
4638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4641 # Broken: success on invalid input.
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.
$ac_ext >&5
4647 # Passes both tests.
4652 rm -f conftest.err conftest.
$ac_ext
4655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4656 rm -f conftest.err conftest.
$ac_ext
4657 if $ac_preproc_ok; then
4660 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4661 See \`config.log' for more details." >&5
4662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4663 See \`config.log' for more details." >&2;}
4664 { (exit 1); exit 1; }; }
4668 ac_cpp
='$CPP $CPPFLAGS'
4669 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4673 # Find a good install program. We prefer a C program (faster),
4674 # so one script is as good as another. But avoid the broken or
4675 # incompatible versions:
4676 # SysV /etc/install, /usr/sbin/install
4677 # SunOS /usr/etc/install
4678 # IRIX /sbin/install
4680 # AmigaOS /C/install, which installs bootblocks on floppy discs
4681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4684 # OS/2's system install, which has a completely different semantic
4685 # ./install, which can be erroneously created by make from ./install.sh.
4686 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4688 if test -z "$INSTALL"; then
4689 if test "${ac_cv_path_install+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir
=.
4697 # Account for people who put trailing slashes in PATH elements.
4699 .
/ | .
// |
/cC
/* | \
4700 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4701 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4704 # OSF1 and SCO ODT 3.0 have their own names for install.
4705 # Don't use installbsd from OSF since it installs stuff as root
4707 for ac_prog
in ginstall scoinst
install; do
4708 for ac_exec_ext
in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4710 if test $ac_prog = install &&
4711 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4712 # AIX install. It has an incompatible calling convention.
4714 elif test $ac_prog = install &&
4715 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4716 # program-specific install script used by HP pwplus--don't use.
4719 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4732 if test "${ac_cv_path_install+set}" = set; then
4733 INSTALL
=$ac_cv_path_install
4735 # As a last resort, use the slow shell script. Don't cache a
4736 # value for INSTALL within a source directory, because that will
4737 # break other packages using the cache if that directory is
4738 # removed, or if the value is a relative name.
4739 INSTALL
=$ac_install_sh
4742 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4743 echo "${ECHO_T}$INSTALL" >&6; }
4745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4746 # It thinks the first close brace ends the variable substitution.
4747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4751 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4753 if test "x$RANLIB" = x
; then
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4756 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_prog_RANLIB+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 if test -n "$RANLIB"; then
4763 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir
=.
4770 for ac_exec_ext
in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 RANLIB
=$ac_cv_prog_RANLIB
4783 if test -n "$RANLIB"; then
4784 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4785 echo "${ECHO_T}$RANLIB" >&6; }
4787 { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4793 if test -z "$ac_cv_prog_RANLIB"; then
4794 ac_ct_RANLIB
=$RANLIB
4795 # Extract the first word of "ranlib", so it can be a program name with args.
4796 set dummy ranlib
; ac_word
=$2
4797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4799 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 if test -n "$ac_ct_RANLIB"; then
4803 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir
=.
4810 for ac_exec_ext
in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4823 if test -n "$ac_ct_RANLIB"; then
4824 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4825 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4827 { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4831 if test "x$ac_ct_RANLIB" = x
; then
4834 case $cross_compiling:$ac_tool_warned in
4836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4837 whose name does not start with the host triplet. If you think this
4838 configuration is useful to you, please write to autoconf@gnu.org." >&5
4839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4840 whose name does not start with the host triplet. If you think this
4841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4842 ac_tool_warned
=yes ;;
4844 RANLIB
=$ac_ct_RANLIB
4847 RANLIB
="$ac_cv_prog_RANLIB"
4851 # Extract the first word of "install-info", so it can be a program name with args.
4852 set dummy install-info
; ac_word
=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 case $INSTALL_INFO in
4860 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir
=.
4868 for ac_exec_ext
in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4882 if test -n "$INSTALL_INFO"; then
4883 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4884 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4886 { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4891 # Extract the first word of "install-info", so it can be a program name with args.
4892 set dummy install-info
; ac_word
=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 case $INSTALL_INFO in
4900 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4904 for as_dir
in /usr
/sbin
4907 test -z "$as_dir" && as_dir
=.
4908 for ac_exec_ext
in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4922 if test -n "$INSTALL_INFO"; then
4923 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4924 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 # Extract the first word of "install-info", so it can be a program name with args.
4932 set dummy install-info
; ac_word
=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 case $INSTALL_INFO in
4940 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir
=.
4948 for ac_exec_ext
in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4962 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4963 if test -n "$INSTALL_INFO"; then
4964 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4965 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4972 # Extract the first word of "gzip", so it can be a program name with args.
4973 set dummy
gzip; ac_word
=$2
4974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4976 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir
=.
4989 for ac_exec_ext
in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5003 if test -n "$GZIP_PROG"; then
5004 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5005 echo "${ECHO_T}$GZIP_PROG" >&6; }
5007 { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5014 ## Need makeinfo >= 4.6 (?) to build the manuals.
5015 # Extract the first word of "makeinfo", so it can be a program name with args.
5016 set dummy makeinfo
; ac_word
=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir
=.
5032 for ac_exec_ext
in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5046 MAKEINFO
=$ac_cv_path_MAKEINFO
5047 if test -n "$MAKEINFO"; then
5048 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5049 echo "${ECHO_T}$MAKEINFO" >&6; }
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5056 if test "$MAKEINFO" != "no" && \
5057 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5061 if test "$MAKEINFO" = "no"; then
5062 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5063 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5064 { (exit 1); exit 1; }; }
5069 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5071 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5074 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5076 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5080 late_LDFLAGS
=$LDFLAGS
5081 if test "$GCC" = yes; then
5082 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5084 LDFLAGS
="$LDFLAGS -znocombreloc"
5087 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5088 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5089 cat >conftest.
$ac_ext <<_ACEOF
5092 rm -f conftest.
$ac_objext conftest
$ac_exeext
5093 if { (ac_try
="$ac_link"
5095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_link") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest$ac_exeext &&
5109 $as_test_x conftest$ac_exeext; then
5110 { echo "$as_me:$LINENO: result: yes" >&5
5111 echo "${ECHO_T}yes" >&6; }
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 LDFLAGS=$late_LDFLAGS
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122 conftest$ac_exeext conftest.$ac_ext
5124 #### Extract some information from the operating system and machine files.
5126 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5127 - which libraries the lib-src programs will want, and
5128 - whether the GNU malloc routines are usable..." >&5
5129 echo "$as_me: checking the machine- and system-dependent files to find out
5130 - which libraries the lib-src programs will want, and
5131 - whether the GNU malloc routines are usable..." >&6;}
5133 ### First figure out CFLAGS (which we use for running the compiler here)
5134 ### and REAL_CFLAGS (which we use for real compilation).
5135 ### The two are the same except on a few systems, where they are made
5136 ### different to work around various lossages. For example,
5137 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5138 ### as implying static linking.
5140 ### If the CFLAGS env var is specified, we use that value
5141 ### instead of the default.
5143 ### It's not important that this name contain the PID; you can't run
5144 ### two configures in the same directory and have anything work
5146 tempcname="conftest.c"
5149 #include "'${srcdir}'/src/'${opsysfile}'"
5150 #include "'${srcdir}'/src/'${machfile}'"
5151 #ifndef LIBS_MACHINE
5152 #define LIBS_MACHINE
5157 #ifndef C_SWITCH_SYSTEM
5158 #define C_SWITCH_SYSTEM
5160 #ifndef C_SWITCH_MACHINE
5161 #define C_SWITCH_MACHINE
5163 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5164 configure___ c_switch_system=C_SWITCH_SYSTEM
5165 configure___ c_switch_machine=C_SWITCH_MACHINE
5168 #define LIB_X11_LIB -lX11
5171 #ifndef LIBX11_MACHINE
5172 #define LIBX11_MACHINE
5175 #ifndef LIBX11_SYSTEM
5176 #define LIBX11_SYSTEM
5178 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5181 configure___ unexec=UNEXEC
5183 configure___ unexec=unexec.o
5186 #ifdef SYSTEM_MALLOC
5187 configure___ system_malloc=yes
5189 configure___ system_malloc=no
5192 #ifdef USE_MMAP_FOR_BUFFERS
5193 configure___ use_mmap_for_buffers=yes
5195 configure___ use_mmap_for_buffers=no
5198 #ifndef C_DEBUG_SWITCH
5199 #define C_DEBUG_SWITCH -g
5202 #ifndef C_OPTIMIZE_SWITCH
5204 #define C_OPTIMIZE_SWITCH -O2
5206 #define C_OPTIMIZE_SWITCH -O
5210 #ifndef C_WARNINGS_SWITCH
5211 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5214 #ifndef LD_SWITCH_MACHINE
5215 #define LD_SWITCH_MACHINE
5218 #ifndef LD_SWITCH_SYSTEM
5219 #define LD_SWITCH_SYSTEM
5222 #ifndef LD_SWITCH_X_SITE_AUX
5223 #define LD_SWITCH_X_SITE_AUX
5226 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5227 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5229 #ifdef THIS_IS_CONFIGURE
5231 /* Get the CFLAGS for tests in configure. */
5233 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5235 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5238 #else /* not THIS_IS_CONFIGURE */
5240 /* Get the CFLAGS for real compilation. */
5242 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5244 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5247 #endif /* not THIS_IS_CONFIGURE */
5250 # The value of CPP is a quoted variable reference, so we need to do this
5251 # to get its actual value...
5252 CPP=`eval "echo $CPP"`
5253 eval `${CPP} -Isrc ${tempcname} \
5254 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5255 if test "x$SPECIFIED_CFLAGS" = x; then
5256 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5257 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5259 REAL_CFLAGS="$CFLAGS"
5263 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5265 ### Make sure subsequent tests use flags consistent with the build flags.
5267 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5268 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5270 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5275 # Check whether --enable-largefile was given.
5276 if test "${enable_largefile+set}" = set; then
5277 enableval=$enable_largefile;
5280 if test "$enable_largefile" != no; then
5282 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5283 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5284 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 ac_cv_sys_largefile_CC=no
5288 if test "$GCC" != yes; then
5291 # IRIX 6.2 and later do not support large files by default,
5292 # so use the C compiler's -n32 option if that helps.
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 /* Check that off_t can represent 2**63 - 1 correctly.
5301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5302 since some C++ compilers masquerading as C compilers
5303 incorrectly reject 9223372036854775807. */
5304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5306 && LARGE_OFF_T % 2147483647 == 1)
5316 rm -f conftest.$ac_objext
5317 if { (ac_try="$ac_compile"
5319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5320 *) ac_try_echo
=$ac_try;;
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compile") 2>conftest.er1
5325 grep -v '^ *+' conftest.er1
>conftest.err
5327 cat conftest.err
>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && {
5330 test -z "$ac_c_werror_flag" ||
5331 test ! -s conftest.err
5332 } && test -s conftest.
$ac_objext; then
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5341 rm -f core conftest.err conftest.
$ac_objext
5343 rm -f conftest.
$ac_objext
5344 if { (ac_try
="$ac_compile"
5346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
5360 ac_cv_sys_largefile_CC=' -n32'; break
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5368 rm -f core conftest.err conftest.$ac_objext
5372 rm -f conftest.$ac_ext
5375 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5376 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5377 if test "$ac_cv_sys_largefile_CC" != no; then
5378 CC=$CC$ac_cv_sys_largefile_CC
5381 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5382 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5383 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 cat >conftest.$ac_ext <<_ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <sys/types.h>
5394 /* Check that off_t can represent 2**63 - 1 correctly.
5395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5396 since some C++ compilers masquerading as C compilers
5397 incorrectly reject 9223372036854775807. */
5398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5400 && LARGE_OFF_T % 2147483647 == 1)
5410 rm -f conftest.$ac_objext
5411 if { (ac_try="$ac_compile"
5413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5414 *) ac_try_echo
=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1
>conftest.err
5421 cat conftest.err
>&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.
$ac_objext; then
5427 ac_cv_sys_file_offset_bits
=no
; break
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.
$ac_ext >&5
5435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5436 cat >conftest.
$ac_ext <<_ACEOF
5439 cat confdefs.h
>>conftest.
$ac_ext
5440 cat >>conftest.
$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #define _FILE_OFFSET_BITS 64
5443 #include <sys/types.h>
5444 /* Check that off_t can represent 2**63 - 1 correctly.
5445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5446 since some C++ compilers masquerading as C compilers
5447 incorrectly reject 9223372036854775807. */
5448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5450 && LARGE_OFF_T % 2147483647 == 1)
5460 rm -f conftest.
$ac_objext
5461 if { (ac_try
="$ac_compile"
5463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5477 ac_cv_sys_file_offset_bits=64; break
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_cv_sys_file_offset_bits=unknown
5490 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5491 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5492 case $ac_cv_sys_file_offset_bits in #(
5495 cat >>confdefs.h <<_ACEOF
5496 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5501 if test $ac_cv_sys_file_offset_bits = unknown; then
5502 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5503 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5504 if test "${ac_cv_sys_large_files+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 cat >conftest.$ac_ext <<_ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5535 *) ac_try_echo
=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1
>conftest.err
5542 cat conftest.err
>&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.
$ac_objext; then
5548 ac_cv_sys_large_files
=no
; break
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.
$ac_ext >&5
5556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5557 cat >conftest.
$ac_ext <<_ACEOF
5560 cat confdefs.h
>>conftest.
$ac_ext
5561 cat >>conftest.
$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #define _LARGE_FILES 1
5564 #include <sys/types.h>
5565 /* Check that off_t can represent 2**63 - 1 correctly.
5566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5567 since some C++ compilers masquerading as C compilers
5568 incorrectly reject 9223372036854775807. */
5569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5571 && LARGE_OFF_T % 2147483647 == 1)
5581 rm -f conftest.
$ac_objext
5582 if { (ac_try
="$ac_compile"
5584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
5598 ac_cv_sys_large_files=1; break
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_sys_large_files=unknown
5611 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5612 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5613 case $ac_cv_sys_large_files in #(
5616 cat >>confdefs.h <<_ACEOF
5617 #define _LARGE_FILES $ac_cv_sys_large_files
5627 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5628 ### be located in either /usr/lib64 or /usr/lib.
5629 case "${canonical}" in
5630 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5631 if test -d /usr/lib64; then
5633 cat >>confdefs.h <<\_ACEOF
5634 #define HAVE_LIB64_DIR 1
5643 if test "${with_sound}" != "no"; then
5644 # Sound support for GNU/Linux and the free BSDs.
5645 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5647 if test "${ac_cv_header_stdc+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5673 *) ac_try_echo
=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1
>conftest.err
5680 cat conftest.err
>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.
$ac_objext; then
5686 ac_cv_header_stdc
=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5691 ac_cv_header_stdc
=no
5694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5696 if test $ac_cv_header_stdc = yes; then
5697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5698 cat >conftest.
$ac_ext <<_ACEOF
5701 cat confdefs.h
>>conftest.
$ac_ext
5702 cat >>conftest.
$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "memchr" >/dev
/null
2>&1; then
5711 ac_cv_header_stdc
=no
5717 if test $ac_cv_header_stdc = yes; then
5718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719 cat >conftest.
$ac_ext <<_ACEOF
5722 cat confdefs.h
>>conftest.
$ac_ext
5723 cat >>conftest.
$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 $EGREP "free" >/dev
/null
2>&1; then
5732 ac_cv_header_stdc
=no
5738 if test $ac_cv_header_stdc = yes; then
5739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5740 if test "$cross_compiling" = yes; then
5743 cat >conftest.
$ac_ext <<_ACEOF
5746 cat confdefs.h
>>conftest.
$ac_ext
5747 cat >>conftest.
$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5751 #if ((' ' & 0x0FF) == 0x020)
5752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5755 # define ISLOWER(c) \
5756 (('a' <= (c) && (c) <= 'i') \
5757 || ('j' <= (c) && (c) <= 'r') \
5758 || ('s' <= (c) && (c) <= 'z'))
5759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5767 for (i = 0; i < 256; i++)
5768 if (XOR (islower (i), ISLOWER (i))
5769 || toupper (i) != TOUPPER (i))
5774 rm -f conftest
$ac_exeext
5775 if { (ac_try
="$ac_link"
5777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_link") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5785 { (case "(($ac_try" in
5786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5787 *) ac_try_echo
=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_try") 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5796 echo "$as_me: program exited with status $ac_status" >&5
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.
$ac_ext >&5
5801 ac_cv_header_stdc
=no
5803 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5809 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5810 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5811 if test $ac_cv_header_stdc = yes; then
5813 cat >>confdefs.h
<<\_ACEOF
5814 #define STDC_HEADERS 1
5819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5829 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5830 inttypes.h stdint.h unistd.h
5832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5846 #include <$ac_header>
5848 rm -f conftest.
$ac_objext
5849 if { (ac_try
="$ac_compile"
5851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 eval "$as_ac_Header=yes"
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 eval "$as_ac_Header=no"
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_res=`eval echo '${'$as_ac_Header'}'`
5876 { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5891 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5893 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 ac_res=`eval echo '${'$as_ac_Header'}'`
5901 { echo "$as_me:$LINENO: result: $ac_res" >&5
5902 echo "${ECHO_T}$ac_res" >&6; }
5904 # Is the header compilable?
5905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5907 cat >conftest.$ac_ext <<_ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 $ac_includes_default
5914 #include <$ac_header>
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5920 *) ac_try_echo
=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1
>conftest.err
5927 cat conftest.err
>&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.
$ac_objext; then
5933 ac_header_compiler
=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.
$ac_ext >&5
5938 ac_header_compiler
=no
5941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5943 echo "${ECHO_T}$ac_header_compiler" >&6; }
5945 # Is the header present?
5946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5948 cat >conftest.
$ac_ext <<_ACEOF
5951 cat confdefs.h
>>conftest.
$ac_ext
5952 cat >>conftest.
$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <$ac_header>
5956 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } >/dev/null && {
5969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5972 ac_header_preproc=yes
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 ac_header_preproc=no
5980 rm -f conftest.err conftest.$ac_ext
5981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5982 echo "${ECHO_T}$ac_header_preproc" >&6; }
5984 # So? What about this header?
5985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5991 ac_header_preproc=yes
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 eval "$as_ac_Header=\$ac_header_preproc"
6016 ac_res=`eval echo '${'$as_ac_Header'}'`
6017 { echo "$as_me:$LINENO: result: $ac_res" >&5
6018 echo "${ECHO_T}$ac_res" >&6; }
6021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6022 cat >>confdefs.h <<_ACEOF
6023 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6030 # Emulation library used on NetBSD.
6031 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6032 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6033 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 ac_check_lib_save_LIBS=$LIBS
6037 LIBS="-lossaudio $LIBS"
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 /* Override any GCC internal prototype to avoid an error.
6046 Use char because int might match the return type of a GCC
6047 builtin and then its argument prototype would still apply. */
6055 return _oss_ioctl ();
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (ac_try="$ac_link"
6063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6064 *) ac_try_echo
=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_link") 2>conftest.er1
6069 grep -v '^ *+' conftest.er1
>conftest.err
6071 cat conftest.err
>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest
$ac_exeext &&
6077 $as_test_x conftest
$ac_exeext; then
6078 ac_cv_lib_ossaudio__oss_ioctl
=yes
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6083 ac_cv_lib_ossaudio__oss_ioctl
=no
6086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6087 conftest
$ac_exeext conftest.
$ac_ext
6088 LIBS
=$ac_check_lib_save_LIBS
6090 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6091 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6092 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6101 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6105 # Extract the first word of "pkg-config", so it can be a program name with args.
6106 set dummy pkg-config
; ac_word
=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir
=.
6122 for ac_exec_ext
in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6136 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6137 if test -n "$PKG_CONFIG"; then
6138 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6139 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6147 if test "$PKG_CONFIG" = "no" ; then
6150 PKG_CONFIG_MIN_VERSION
=0.9.0
6151 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6152 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6153 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6155 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6156 { echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6; }
6160 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6161 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6162 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6163 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6164 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6166 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6167 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6168 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6169 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6170 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6176 ## If we have a custom action on failure, don't print errors, but
6177 ## do set a variable so people can do so.
6178 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6190 if test $succeeded = yes; then
6196 if test $HAVE_ALSA = yes; then
6197 SAVE_CFLAGS
="$CFLAGS"
6198 SAVE_LDFLAGS
="$LDFLAGS"
6199 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6200 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6201 cat >conftest.
$ac_ext <<_ACEOF
6204 cat confdefs.h
>>conftest.
$ac_ext
6205 cat >>conftest.
$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <asoundlib.h>
6211 snd_lib_error_set_handler (0);
6216 rm -f conftest.
$ac_objext
6217 if { (ac_try
="$ac_compile"
6219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6225 grep -v '^ *+' conftest.er1 >conftest.err
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 emacs_alsa_normal=yes
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 emacs_alsa_normal=no
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 if test "$emacs_alsa_normal" != yes; then
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <alsa/asoundlib.h>
6253 snd_lib_error_set_handler (0);
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6262 *) ac_try_echo
=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6267 grep -v '^ *+' conftest.er1
>conftest.err
6269 cat conftest.err
>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.
$ac_objext; then
6275 emacs_alsa_subdir
=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.
$ac_ext >&5
6280 emacs_alsa_subdir
=no
6283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6284 if test "$emacs_alsa_subdir" != yes; then
6285 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6286 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6287 { (exit 1); exit 1; }; }
6289 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6292 CFLAGS
="$SAVE_CFLAGS"
6293 LDFLAGS
="$SAVE_LDFLAGS"
6294 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6295 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6297 cat >>confdefs.h
<<\_ACEOF
6330 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6331 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6332 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6333 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6337 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6340 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 ac_res
=`eval echo '${'$as_ac_Header'}'`
6344 { echo "$as_me:$LINENO: result: $ac_res" >&5
6345 echo "${ECHO_T}$ac_res" >&6; }
6347 # Is the header compilable?
6348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6350 cat >conftest.
$ac_ext <<_ACEOF
6353 cat confdefs.h
>>conftest.
$ac_ext
6354 cat >>conftest.
$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 $ac_includes_default
6357 #include <$ac_header>
6359 rm -f conftest.
$ac_objext
6360 if { (ac_try
="$ac_compile"
6362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1 >conftest.err
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 ac_header_compiler=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_header_compiler=no
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6386 echo "${ECHO_T}$ac_header_compiler" >&6; }
6388 # Is the header present?
6389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 #include <$ac_header>
6399 if { (ac_try="$ac_cpp conftest.$ac_ext"
6401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6402 *) ac_try_echo
=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } >/dev
/null
&& {
6412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6415 ac_header_preproc
=yes
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.
$ac_ext >&5
6420 ac_header_preproc
=no
6423 rm -f conftest.err conftest.
$ac_ext
6424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6; }
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc
=yes
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6454 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 eval "$as_ac_Header=\$ac_header_preproc"
6459 ac_res
=`eval echo '${'$as_ac_Header'}'`
6460 { echo "$as_me:$LINENO: result: $ac_res" >&5
6461 echo "${ECHO_T}$ac_res" >&6; }
6464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6465 cat >>confdefs.h
<<_ACEOF
6466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6474 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6475 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6476 cat >conftest.
$ac_ext <<_ACEOF
6479 cat confdefs.h
>>conftest.
$ac_ext
6480 cat >>conftest.
$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <sys/personality.h>
6486 personality (PER_LINUX32)
6491 rm -f conftest.
$ac_objext
6492 if { (ac_try
="$ac_compile"
6494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest.$ac_objext; then
6508 emacs_cv_personality_linux32=yes
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 emacs_cv_personality_linux32=no
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6518 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6520 if test $emacs_cv_personality_linux32 = yes; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_PERSONALITY_LINUX32 1
6529 for ac_header in term.h
6531 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <$ac_header>
6545 if { (ac_try="$ac_cpp conftest.$ac_ext"
6547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6548 *) ac_try_echo
=$ac_try;;
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1
>conftest.err
6555 cat conftest.err
>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } >/dev
/null
&& {
6558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6561 eval "$as_ac_Header=yes"
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.
$ac_ext >&5
6566 eval "$as_ac_Header=no"
6569 rm -f conftest.err conftest.
$ac_ext
6571 ac_res
=`eval echo '${'$as_ac_Header'}'`
6572 { echo "$as_me:$LINENO: result: $ac_res" >&5
6573 echo "${ECHO_T}$ac_res" >&6; }
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h
<<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6583 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6584 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6585 if test "${ac_cv_header_stdc+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 cat >conftest.
$ac_ext <<_ACEOF
6591 cat confdefs.h
>>conftest.
$ac_ext
6592 cat >>conftest.
$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6607 rm -f conftest.
$ac_objext
6608 if { (ac_try
="$ac_compile"
6610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_compile") 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest.$ac_objext; then
6624 ac_cv_header_stdc=yes
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_cv_header_stdc=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 if test $ac_cv_header_stdc = yes; then
6635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6636 cat >conftest.$ac_ext <<_ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6646 $EGREP "memchr" >/dev/null 2>&1; then
6649 ac_cv_header_stdc=no
6655 if test $ac_cv_header_stdc = yes; then
6656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "free" >/dev/null 2>&1; then
6670 ac_cv_header_stdc=no
6676 if test $ac_cv_header_stdc = yes; then
6677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6678 if test "$cross_compiling" = yes; then
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6689 #if ((' ' & 0x0FF) == 0x020)
6690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6693 # define ISLOWER(c) \
6694 (('a' <= (c) && (c) <= 'i') \
6695 || ('j' <= (c) && (c) <= 'r') \
6696 || ('s' <= (c) && (c) <= 'z'))
6697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6705 for (i = 0; i < 256; i++)
6706 if (XOR (islower (i), ISLOWER (i))
6707 || toupper (i) != TOUPPER (i))
6712 rm -f conftest$ac_exeext
6713 if { (ac_try="$ac_link"
6715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6716 *) ac_try_echo
=$ac_try;;
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_link") 2>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6723 { (case "(($ac_try" in
6724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_try") 2>&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6734 echo "$as_me: program exited with status $ac_status" >&5
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6739 ac_cv_header_stdc=no
6741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6748 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6749 if test $ac_cv_header_stdc = yes; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define STDC_HEADERS 1
6757 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6758 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6759 if test "${ac_cv_header_time+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <sys/types.h>
6769 #include <sys/time.h>
6775 if ((struct tm *) 0)
6781 rm -f conftest.$ac_objext
6782 if { (ac_try="$ac_compile"
6784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6785 *) ac_try_echo
=$ac_try;;
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6790 grep -v '^ *+' conftest.er1
>conftest.err
6792 cat conftest.err
>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.
$ac_objext; then
6798 ac_cv_header_time
=yes
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.
$ac_ext >&5
6803 ac_cv_header_time
=no
6806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6808 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6809 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6810 if test $ac_cv_header_time = yes; then
6812 cat >>confdefs.h
<<\_ACEOF
6813 #define TIME_WITH_SYS_TIME 1
6818 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6819 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6820 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.
$ac_ext <<_ACEOF
6826 cat confdefs.h
>>conftest.
$ac_ext
6827 cat >>conftest.
$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6841 rm -f conftest.
$ac_objext
6842 if { (ac_try
="$ac_compile"
6844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6850 grep -v '^ *+' conftest.er1 >conftest.err
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_cv_have_decl_sys_siglist=yes
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 ac_cv_have_decl_sys_siglist=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6869 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6870 if test $ac_cv_have_decl_sys_siglist = yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define HAVE_DECL_SYS_SIGLIST 1
6878 cat >>confdefs.h <<_ACEOF
6879 #define HAVE_DECL_SYS_SIGLIST 0
6886 if test $ac_cv_have_decl_sys_siglist != yes; then
6887 # For Tru64, at least:
6888 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6889 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6890 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 #ifndef __sys_siglist
6904 (void) __sys_siglist;
6911 rm -f conftest.$ac_objext
6912 if { (ac_try="$ac_compile"
6914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6915 *) ac_try_echo
=$ac_try;;
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_compile") 2>conftest.er1
6920 grep -v '^ *+' conftest.er1
>conftest.err
6922 cat conftest.err
>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.
$ac_objext; then
6928 ac_cv_have_decl___sys_siglist
=yes
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.
$ac_ext >&5
6933 ac_cv_have_decl___sys_siglist
=no
6936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6938 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6939 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6940 if test $ac_cv_have_decl___sys_siglist = yes; then
6942 cat >>confdefs.h
<<_ACEOF
6943 #define HAVE_DECL___SYS_SIGLIST 1
6948 cat >>confdefs.h
<<_ACEOF
6949 #define HAVE_DECL___SYS_SIGLIST 0
6956 if test $ac_cv_have_decl___sys_siglist = yes; then
6958 cat >>confdefs.h
<<\_ACEOF
6959 #define sys_siglist __sys_siglist
6964 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6965 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6966 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.
$ac_ext <<_ACEOF
6972 cat confdefs.h
>>conftest.
$ac_ext
6973 cat >>conftest.
$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <sys/wait.h>
6978 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6981 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6989 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6994 rm -f conftest.
$ac_objext
6995 if { (ac_try
="$ac_compile"
6997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 ac_cv_header_sys_wait_h=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_header_sys_wait_h=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7022 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7023 if test $ac_cv_header_sys_wait_h = yes; then
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_SYS_WAIT_H 1
7032 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7033 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7034 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #ifdef TIME_WITH_SYS_TIME
7044 #include <sys/time.h>
7047 #ifdef HAVE_SYS_TIME_H
7048 #include <sys/time.h>
7059 static struct utimbuf x; x.actime = x.modtime;
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7068 *) ac_try_echo
=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1
>conftest.err
7075 cat conftest.err
>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.
$ac_objext; then
7081 emacs_cv_struct_utimbuf
=yes
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.
$ac_ext >&5
7086 emacs_cv_struct_utimbuf
=no
7089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7091 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7092 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7093 if test $emacs_cv_struct_utimbuf = yes; then
7095 cat >>confdefs.h
<<\_ACEOF
7096 #define HAVE_STRUCT_UTIMBUF 1
7101 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7102 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7103 if test "${ac_cv_type_signal+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/types.h>
7118 return *(signal (0, 0)) (0) == 1;
7123 rm -f conftest.
$ac_objext
7124 if { (ac_try
="$ac_compile"
7126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_cv_type_signal=int
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_type_signal=void
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7151 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7153 cat >>confdefs.h <<_ACEOF
7154 #define RETSIGTYPE $ac_cv_type_signal
7159 { echo "$as_me:$LINENO: checking for speed_t" >&5
7160 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7161 if test "${emacs_cv_speed_t+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <termios.h>
7179 rm -f conftest.$ac_objext
7180 if { (ac_try="$ac_compile"
7182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7183 *) ac_try_echo
=$ac_try;;
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_compile") 2>conftest.er1
7188 grep -v '^ *+' conftest.er1
>conftest.err
7190 cat conftest.err
>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && {
7193 test -z "$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7195 } && test -s conftest.
$ac_objext; then
7196 emacs_cv_speed_t
=yes
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7206 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7207 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7208 if test $emacs_cv_speed_t = yes; then
7210 cat >>confdefs.h
<<\_ACEOF
7211 #define HAVE_SPEED_T 1
7216 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7217 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7218 if test "${emacs_cv_struct_timeval+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.
$ac_ext <<_ACEOF
7224 cat confdefs.h
>>conftest.
$ac_ext
7225 cat >>conftest.
$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 #ifdef TIME_WITH_SYS_TIME
7228 #include <sys/time.h>
7231 #ifdef HAVE_SYS_TIME_H
7232 #include <sys/time.h>
7240 static struct timeval x; x.tv_sec = x.tv_usec;
7245 rm -f conftest.
$ac_objext
7246 if { (ac_try
="$ac_compile"
7248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7254 grep -v '^ *+' conftest.er1 >conftest.err
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7262 emacs_cv_struct_timeval=yes
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 emacs_cv_struct_timeval=no
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7273 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7274 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7275 if test $emacs_cv_struct_timeval = yes; then
7277 cat >>confdefs.h <<\_ACEOF
7278 #define HAVE_TIMEVAL 1
7283 { echo "$as_me:$LINENO: checking for struct exception" >&5
7284 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7285 if test "${emacs_cv_struct_exception+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 cat >conftest.$ac_ext <<_ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7298 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7307 *) ac_try_echo
=$ac_try;;
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7312 grep -v '^ *+' conftest.er1
>conftest.err
7314 cat conftest.err
>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.
$ac_objext; then
7320 emacs_cv_struct_exception
=yes
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.
$ac_ext >&5
7325 emacs_cv_struct_exception
=no
7328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7330 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7331 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7332 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7333 if test $emacs_cv_struct_exception != yes; then
7335 cat >>confdefs.h
<<\_ACEOF
7336 #define NO_MATHERR 1
7342 for ac_header
in sys
/socket.h
7344 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7345 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7348 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_res
=`eval echo '${'$as_ac_Header'}'`
7352 { echo "$as_me:$LINENO: result: $ac_res" >&5
7353 echo "${ECHO_T}$ac_res" >&6; }
7355 # Is the header compilable?
7356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7358 cat >conftest.
$ac_ext <<_ACEOF
7361 cat confdefs.h
>>conftest.
$ac_ext
7362 cat >>conftest.
$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 $ac_includes_default
7365 #include <$ac_header>
7367 rm -f conftest.
$ac_objext
7368 if { (ac_try
="$ac_compile"
7370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7376 grep -v '^ *+' conftest.er1 >conftest.err
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 ac_header_compiler=yes
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_header_compiler=no
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7394 echo "${ECHO_T}$ac_header_compiler" >&6; }
7396 # Is the header present?
7397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 #include <$ac_header>
7407 if { (ac_try="$ac_cpp conftest.$ac_ext"
7409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7410 *) ac_try_echo
=$ac_try;;
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7415 grep -v '^ *+' conftest.er1
>conftest.err
7417 cat conftest.err
>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev
/null
&& {
7420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7423 ac_header_preproc
=yes
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.
$ac_ext >&5
7428 ac_header_preproc
=no
7431 rm -f conftest.err conftest.
$ac_ext
7432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7433 echo "${ECHO_T}$ac_header_preproc" >&6; }
7435 # So? What about this header?
7436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7442 ac_header_preproc
=yes
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7462 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 eval "$as_ac_Header=\$ac_header_preproc"
7467 ac_res
=`eval echo '${'$as_ac_Header'}'`
7468 { echo "$as_me:$LINENO: result: $ac_res" >&5
7469 echo "${ECHO_T}$ac_res" >&6; }
7472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7473 cat >>confdefs.h
<<_ACEOF
7474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7482 for ac_header
in net
/if.h
7484 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 cat >conftest.
$ac_ext <<_ACEOF
7493 cat confdefs.h
>>conftest.
$ac_ext
7494 cat >>conftest.
$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 $ac_includes_default
7497 #if HAVE_SYS_SOCKET_H
7498 #include <sys/socket.h>
7501 #include <$ac_header>
7503 rm -f conftest.
$ac_objext
7504 if { (ac_try
="$ac_compile"
7506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7512 grep -v '^ *+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
7520 eval "$as_ac_Header=yes"
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 eval "$as_ac_Header=no"
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 ac_res=`eval echo '${'$as_ac_Header'}'`
7531 { echo "$as_me:$LINENO: result: $ac_res" >&5
7532 echo "${ECHO_T}$ac_res" >&6; }
7533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7534 cat >>confdefs.h <<_ACEOF
7535 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7543 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7544 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7545 if test "${ac_cv_struct_tm+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <sys/types.h>
7561 int *p = &tm.tm_sec;
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7571 *) ac_try_echo
=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1
>conftest.err
7578 cat conftest.err
>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.
$ac_objext; then
7584 ac_cv_struct_tm
=time.h
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.
$ac_ext >&5
7589 ac_cv_struct_tm
=sys
/time.h
7592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7594 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7595 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7596 if test $ac_cv_struct_tm = sys
/time.h
; then
7598 cat >>confdefs.h
<<\_ACEOF
7599 #define TM_IN_SYS_TIME 1
7604 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7605 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7606 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 cat >conftest.
$ac_ext <<_ACEOF
7612 cat confdefs.h
>>conftest.
$ac_ext
7613 cat >>conftest.
$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 #include <sys/types.h>
7616 #include <$ac_cv_struct_tm>
7622 static struct tm ac_aggr;
7623 if (ac_aggr.tm_zone)
7629 rm -f conftest.
$ac_objext
7630 if { (ac_try
="$ac_compile"
7632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 ac_cv_member_struct_tm_tm_zone=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <sys/types.h>
7658 #include <$ac_cv_struct_tm>
7664 static struct tm ac_aggr;
7665 if (sizeof ac_aggr.tm_zone)
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7675 *) ac_try_echo
=$ac_try;;
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_compile") 2>conftest.er1
7680 grep -v '^ *+' conftest.er1
>conftest.err
7682 cat conftest.err
>&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest.
$ac_objext; then
7688 ac_cv_member_struct_tm_tm_zone
=yes
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.
$ac_ext >&5
7693 ac_cv_member_struct_tm_tm_zone
=no
7696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7701 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7702 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7703 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7705 cat >>confdefs.h
<<_ACEOF
7706 #define HAVE_STRUCT_TM_TM_ZONE 1
7712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7714 cat >>confdefs.h
<<\_ACEOF
7715 #define HAVE_TM_ZONE 1
7719 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7720 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7721 if test "${ac_cv_have_decl_tzname+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 cat >conftest.
$ac_ext <<_ACEOF
7727 cat confdefs.h
>>conftest.
$ac_ext
7728 cat >>conftest.
$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7743 rm -f conftest.
$ac_objext
7744 if { (ac_try
="$ac_compile"
7746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_compile") 2>conftest.er1
7752 grep -v '^ *+' conftest.er1 >conftest.err
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } && {
7757 test -z "$ac_c_werror_flag" ||
7758 test ! -s conftest.err
7759 } && test -s conftest.$ac_objext; then
7760 ac_cv_have_decl_tzname=yes
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_cv_have_decl_tzname=no
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7771 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7772 if test $ac_cv_have_decl_tzname = yes; then
7774 cat >>confdefs.h <<_ACEOF
7775 #define HAVE_DECL_TZNAME 1
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_DECL_TZNAME 0
7788 { echo "$as_me:$LINENO: checking for tzname" >&5
7789 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7790 if test "${ac_cv_var_tzname+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7800 #if !HAVE_DECL_TZNAME
7801 extern char *tzname[];
7807 return tzname[0][0];
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7816 *) ac_try_echo
=$ac_try;;
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_link") 2>conftest.er1
7821 grep -v '^ *+' conftest.er1
>conftest.err
7823 cat conftest.err
>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && {
7826 test -z "$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 } && test -s conftest
$ac_exeext &&
7829 $as_test_x conftest
$ac_exeext; then
7830 ac_cv_var_tzname
=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.
$ac_ext >&5
7838 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7839 conftest
$ac_exeext conftest.
$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7842 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7843 if test $ac_cv_var_tzname = yes; then
7845 cat >>confdefs.h
<<\_ACEOF
7846 #define HAVE_TZNAME 1
7852 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7853 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7854 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 cat >conftest.
$ac_ext <<_ACEOF
7860 cat confdefs.h
>>conftest.
$ac_ext
7861 cat >>conftest.
$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7868 static struct tm ac_aggr;
7869 if (ac_aggr.tm_gmtoff)
7875 rm -f conftest.
$ac_objext
7876 if { (ac_try
="$ac_compile"
7878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 ac_cv_member_struct_tm_tm_gmtoff=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7908 static struct tm ac_aggr;
7909 if (sizeof ac_aggr.tm_gmtoff)
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7919 *) ac_try_echo
=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1
>conftest.err
7926 cat conftest.err
>&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.
$ac_objext; then
7932 ac_cv_member_struct_tm_tm_gmtoff
=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.
$ac_ext >&5
7937 ac_cv_member_struct_tm_tm_gmtoff
=no
7940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7946 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7947 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7949 cat >>confdefs.h
<<\_ACEOF
7950 #define HAVE_TM_GMTOFF 1
7955 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7956 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7957 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 cat >conftest.
$ac_ext <<_ACEOF
7963 cat confdefs.h
>>conftest.
$ac_ext
7964 cat >>conftest.
$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 #if HAVE_SYS_SOCKET_H
7968 #include <sys/socket.h>
7977 static struct ifreq ac_aggr;
7978 if (ac_aggr.ifr_flags)
7984 rm -f conftest.
$ac_objext
7985 if { (ac_try
="$ac_compile"
7987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.$ac_objext; then
8001 ac_cv_member_struct_ifreq_ifr_flags=yes
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #if HAVE_SYS_SOCKET_H
8014 #include <sys/socket.h>
8023 static struct ifreq ac_aggr;
8024 if (sizeof ac_aggr.ifr_flags)
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8034 *) ac_try_echo
=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8039 grep -v '^ *+' conftest.er1
>conftest.err
8041 cat conftest.err
>&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.
$ac_objext; then
8047 ac_cv_member_struct_ifreq_ifr_flags
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8052 ac_cv_member_struct_ifreq_ifr_flags
=no
8055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8060 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8061 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8062 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8064 cat >>confdefs.h
<<_ACEOF
8065 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8070 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8071 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8072 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 cat >conftest.
$ac_ext <<_ACEOF
8078 cat confdefs.h
>>conftest.
$ac_ext
8079 cat >>conftest.
$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 $ac_includes_default
8082 #if HAVE_SYS_SOCKET_H
8083 #include <sys/socket.h>
8092 static struct ifreq ac_aggr;
8093 if (ac_aggr.ifr_hwaddr)
8099 rm -f conftest.
$ac_objext
8100 if { (ac_try
="$ac_compile"
8102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.$ac_objext; then
8116 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #if HAVE_SYS_SOCKET_H
8129 #include <sys/socket.h>
8138 static struct ifreq ac_aggr;
8139 if (sizeof ac_aggr.ifr_hwaddr)
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8149 *) ac_try_echo
=$ac_try;;
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8154 grep -v '^ *+' conftest.er1
>conftest.err
8156 cat conftest.err
>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.
$ac_objext; then
8162 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.
$ac_ext >&5
8167 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8176 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8177 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8179 cat >>confdefs.h
<<_ACEOF
8180 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8185 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8186 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8187 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 cat >conftest.
$ac_ext <<_ACEOF
8193 cat confdefs.h
>>conftest.
$ac_ext
8194 cat >>conftest.
$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 #if HAVE_SYS_SOCKET_H
8198 #include <sys/socket.h>
8207 static struct ifreq ac_aggr;
8208 if (ac_aggr.ifr_netmask)
8214 rm -f conftest.
$ac_objext
8215 if { (ac_try
="$ac_compile"
8217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_compile") 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest.$ac_objext; then
8231 ac_cv_member_struct_ifreq_ifr_netmask=yes
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 #if HAVE_SYS_SOCKET_H
8244 #include <sys/socket.h>
8253 static struct ifreq ac_aggr;
8254 if (sizeof ac_aggr.ifr_netmask)
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8264 *) ac_try_echo
=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8269 grep -v '^ *+' conftest.er1
>conftest.err
8271 cat conftest.err
>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && {
8274 test -z "$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8276 } && test -s conftest.
$ac_objext; then
8277 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.
$ac_ext >&5
8282 ac_cv_member_struct_ifreq_ifr_netmask
=no
8285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8290 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8291 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8292 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8294 cat >>confdefs.h
<<_ACEOF
8295 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8300 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8301 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8302 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.
$ac_ext <<_ACEOF
8308 cat confdefs.h
>>conftest.
$ac_ext
8309 cat >>conftest.
$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8322 static struct ifreq ac_aggr;
8323 if (ac_aggr.ifr_broadaddr)
8329 rm -f conftest.
$ac_objext
8330 if { (ac_try
="$ac_compile"
8332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 #if HAVE_SYS_SOCKET_H
8359 #include <sys/socket.h>
8368 static struct ifreq ac_aggr;
8369 if (sizeof ac_aggr.ifr_broadaddr)
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8379 *) ac_try_echo
=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8384 grep -v '^ *+' conftest.er1
>conftest.err
8386 cat conftest.err
>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest.
$ac_objext; then
8392 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.
$ac_ext >&5
8397 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8406 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8407 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8409 cat >>confdefs.h
<<_ACEOF
8410 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8415 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8416 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8417 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 cat >conftest.
$ac_ext <<_ACEOF
8423 cat confdefs.h
>>conftest.
$ac_ext
8424 cat >>conftest.
$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #if HAVE_SYS_SOCKET_H
8428 #include <sys/socket.h>
8437 static struct ifreq ac_aggr;
8438 if (ac_aggr.ifr_addr)
8444 rm -f conftest.
$ac_objext
8445 if { (ac_try
="$ac_compile"
8447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8461 ac_cv_member_struct_ifreq_ifr_addr=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 $ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8483 static struct ifreq ac_aggr;
8484 if (sizeof ac_aggr.ifr_addr)
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8494 *) ac_try_echo
=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8499 grep -v '^ *+' conftest.er1
>conftest.err
8501 cat conftest.err
>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.
$ac_objext; then
8507 ac_cv_member_struct_ifreq_ifr_addr
=yes
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.
$ac_ext >&5
8512 ac_cv_member_struct_ifreq_ifr_addr
=no
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8521 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8522 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8524 cat >>confdefs.h
<<_ACEOF
8525 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8533 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8534 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8535 if test "$ac_cv_prog_cc_c89" != no
; then
8536 { echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6; }
8539 cat >>confdefs.h
<<\_ACEOF
8540 #define PROTOTYPES 1
8544 cat >>confdefs.h
<<\_ACEOF
8545 #define __PROTOTYPES 1
8549 { echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6; }
8553 { echo "$as_me:$LINENO: checking for working volatile" >&5
8554 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8555 if test "${ac_cv_c_volatile+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. */
8570 int * volatile y = (int *) 0;
8576 rm -f conftest.
$ac_objext
8577 if { (ac_try
="$ac_compile"
8579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.$ac_objext; then
8593 ac_cv_c_volatile=yes
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8604 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8605 if test $ac_cv_c_volatile = no; then
8607 cat >>confdefs.h <<\_ACEOF
8613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8615 if test "${ac_cv_c_const+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8628 /* FIXME: Include the comments suggested by Paul. */
8630 /* Ultrix mips cc rejects this. */
8631 typedef int charset[2];
8633 /* SunOS 4.1.1 cc rejects this. */
8634 char const *const *pcpcc;
8636 /* NEC SVR4.0.2 mips cc rejects this. */
8637 struct point {int x, y;};
8638 static struct point const zero = {0,0};
8639 /* AIX XL C 1.02.0.0 rejects this.
8640 It does not let you subtract one const X* pointer from another in
8641 an arm of an if-expression whose if-part is not a constant
8643 const char *g = "string";
8644 pcpcc = &g + (g ? g-g : 0);
8645 /* HPUX 7.0 cc rejects these. */
8647 ppc = (char**) pcpcc;
8648 pcpcc = (char const *const *) ppc;
8649 { /* SCO 3.2v4 cc rejects this. */
8651 char const *s = 0 ? (char *) 0 : (char const *) 0;
8656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8658 const int *foo = &x[0];
8661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8662 typedef const int *iptr;
8666 { /* AIX XL C 1.02.0.0 rejects this saying
8667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8668 struct s { int j; const int *ap[3]; };
8669 struct s *b; b->j = 5;
8671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8675 return !cs[0] && !zero.x;
8682 rm -f conftest.$ac_objext
8683 if { (ac_try="$ac_compile"
8685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8686 *) ac_try_echo
=$ac_try;;
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8691 grep -v '^ *+' conftest.er1
>conftest.err
8693 cat conftest.err
>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.
$ac_objext; then
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.
$ac_ext >&5
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8711 if test $ac_cv_c_const = no
; then
8713 cat >>confdefs.h
<<\_ACEOF
8719 { echo "$as_me:$LINENO: checking for void * support" >&5
8720 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8721 if test "${emacs_cv_void_star+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.
$ac_ext <<_ACEOF
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8739 rm -f conftest.
$ac_objext
8740 if { (ac_try
="$ac_compile"
8742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.$ac_objext; then
8756 emacs_cv_void_star=yes
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 emacs_cv_void_star=no
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8767 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8768 if test $emacs_cv_void_star = yes; then
8769 cat >>confdefs.h <<\_ACEOF
8770 #define POINTER_TYPE void
8774 cat >>confdefs.h <<\_ACEOF
8775 #define POINTER_TYPE char
8784 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8786 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8787 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 cat >conftest.make <<\_ACEOF
8793 @echo '@@@%%%=$(MAKE)=@@@%%%'
8795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8796 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8798 eval ac_cv_prog_make_${ac_make}_set=yes;;
8800 eval ac_cv_prog_make_${ac_make}_set=no;;
8804 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8805 { echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6; }
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8811 SET_MAKE="MAKE=${MAKE-make}"
8815 { echo "$as_me:$LINENO: checking for long file names" >&5
8816 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8817 if test "${ac_cv_sys_long_file_names+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 ac_cv_sys_long_file_names=yes
8821 # Test for long file names in all the places we know might matter:
8822 # . the current directory, where building will happen
8823 # $prefix/lib where we will be installing things
8824 # $exec_prefix/lib likewise
8825 # $TMPDIR if set, where it might want to write temporary files
8826 # /tmp where it might want to write temporary files
8829 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8830 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8831 # in the usual case where exec_prefix is '${prefix}'.
8833 . | /* | ?:[\\/]*) ;; #(
8836 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8837 ac_xdir=$ac_dir/cf$$
8838 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8839 ac_tf1=$ac_xdir/conftest9012345
8840 ac_tf2=$ac_xdir/conftest9012346
8841 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8842 ac_cv_sys_long_file_names=no
8843 rm -f -r "$ac_xdir" 2>/dev/null
8844 test $ac_cv_sys_long_file_names = no && break
8847 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8848 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8849 if test $ac_cv_sys_long_file_names = yes; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_LONG_FILE_NAMES 1
8858 #### Choose a window system.
8860 { echo "$as_me:$LINENO: checking for X" >&5
8861 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8864 # Check whether --with-x was given.
8865 if test "${with_x+set}" = set; then
8869 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8870 if test "x$with_x" = xno; then
8871 # The user explicitly disabled X.
8874 case $x_includes,$x_libraries in #(
8875 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8876 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8877 { (exit 1); exit 1; }; };; #(
8878 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 # One or both of the vars are not set, and there is no cached value.
8882 ac_x_includes=no ac_x_libraries=no
8883 rm -f -r conftest.dir
8884 if mkdir conftest.dir; then
8886 cat >Imakefile <<'_ACEOF'
8888 @echo incroot='${INCROOT}'
8890 @echo usrlibdir='${USRLIBDIR}'
8892 @echo libdir='${LIBDIR}'
8894 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8896 for ac_var in incroot usrlibdir libdir; do
8897 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8899 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8900 for ac_extension in a so sl; do
8901 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8902 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8903 ac_im_usrlibdir=$ac_im_libdir; break
8906 # Screen out bogus values from the imake configuration. They are
8907 # bogus both because they are the default anyway, and because
8908 # using them would break gcc on systems where it needs fixed includes.
8909 case $ac_im_incroot in
8910 /usr/include) ac_x_includes= ;;
8911 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8913 case $ac_im_usrlibdir in
8915 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8919 rm -f -r conftest.dir
8922 # Standard set of common directories for X headers.
8923 # Check X11 before X11Rn because it is often a symlink to the current release.
8935 /usr/local/X11/include
8936 /usr/local/X11R6/include
8937 /usr/local/X11R5/include
8938 /usr/local/X11R4/include
8940 /usr/local/include/X11
8941 /usr/local/include/X11R6
8942 /usr/local/include/X11R5
8943 /usr/local/include/X11R4
8947 /usr/XFree86/include/X11
8951 /usr/unsupported/include
8953 /usr/local/x11r5/include
8954 /usr/lpp/Xamples/include
8956 /usr/openwin/include
8957 /usr/openwin/share/include'
8959 if test "$ac_x_includes" = no; then
8960 # Guess where to find include files, by looking for Xlib.h.
8961 # First, try using that file with no special directory specified.
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 #include <X11/Xlib.h>
8970 if { (ac_try="$ac_cpp conftest.$ac_ext"
8972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8973 *) ac_try_echo
=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8978 grep -v '^ *+' conftest.er1
>conftest.err
8980 cat conftest.err
>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } >/dev
/null
&& {
8983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8986 # We can compile using X headers with no special include directory.
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.
$ac_ext >&5
8992 for ac_dir
in $ac_x_header_dirs; do
8993 if test -r "$ac_dir/X11/Xlib.h"; then
8994 ac_x_includes
=$ac_dir
9000 rm -f conftest.err conftest.
$ac_ext
9001 fi # $ac_x_includes = no
9003 if test "$ac_x_libraries" = no
; then
9004 # Check for the libraries.
9005 # See if we find them without any special options.
9006 # Don't add to $LIBS permanently.
9009 cat >conftest.
$ac_ext <<_ACEOF
9012 cat confdefs.h
>>conftest.
$ac_ext
9013 cat >>conftest.
$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 #include <X11/Xlib.h>
9024 rm -f conftest.
$ac_objext conftest
$ac_exeext
9025 if { (ac_try
="$ac_link"
9027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>conftest.er1
9033 grep -v '^ *+' conftest.er1 >conftest.err
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && {
9038 test -z "$ac_c_werror_flag" ||
9039 test ! -s conftest.err
9040 } && test -s conftest$ac_exeext &&
9041 $as_test_x conftest$ac_exeext; then
9043 # We can link X programs with no special library path.
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9050 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9052 # Don't even attempt the hair of trying to link an X program!
9053 for ac_extension in a so sl; do
9054 if test -r "$ac_dir/libX11.$ac_extension"; then
9055 ac_x_libraries=$ac_dir
9062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi # $ac_x_libraries = no
9066 case $ac_x_includes,$ac_x_libraries in #(
9068 # Didn't find X, or a directory has "'" in its name.
9069 ac_cv_have_x="have_x=no";; #(
9071 # Record where we found X for the cache.
9072 ac_cv_have_x="have_x=yes\
9073 ac_x_includes='$ac_x_includes'\
9074 ac_x_libraries='$ac_x_libraries'"
9080 eval "$ac_cv_have_x"
9083 if test "$have_x" != yes; then
9084 { echo "$as_me:$LINENO: result: $have_x" >&5
9085 echo "${ECHO_T}$have_x" >&6; }
9088 # If each of the values was on the command line, it overrides each guess.
9089 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9090 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9091 # Update the cache value to reflect the command line values.
9092 ac_cv_have_x="have_x=yes\
9093 ac_x_includes='$x_includes'\
9094 ac_x_libraries='$x_libraries'"
9095 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9096 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9099 if test "$no_x" = yes; then
9105 if test "${x_libraries}" != NONE; then
9106 if test -n "${x_libraries}"; then
9107 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9108 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9110 x_default_search_path=""
9111 x_search_path=${x_libraries}
9112 if test -z "${x_search_path}"; then
9113 x_search_path=/usr/lib
9115 for x_library in `echo ${x_search_path}: | \
9116 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9118 ${x_library}/X11/%L/%T/%N%C%S:\
9119 ${x_library}/X11/%l/%T/%N%C%S:\
9120 ${x_library}/X11/%T/%N%C%S:\
9121 ${x_library}/X11/%L/%T/%N%S:\
9122 ${x_library}/X11/%l/%T/%N%S:\
9123 ${x_library}/X11/%T/%N%S"
9124 if test x"${x_default_search_path}" = x; then
9125 x_default_search_path=${x_search_path}
9127 x_default_search_path="${x_search_path}:${x_default_search_path}"
9131 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9132 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9135 if test x"${x_includes}" = x; then
9136 bitmapdir=/usr/include/X11/bitmaps
9138 # accumulate include directories that have X11 bitmap subdirectories
9140 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9141 if test -d "${bmd}/X11/bitmaps"; then
9142 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9144 if test -d "${bmd}/bitmaps"; then
9145 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9148 if test ${bmd_acc} != "dummyval"; then
9149 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9154 if test "${with_carbon}" != no; then
9155 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9156 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9157 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9158 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9162 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9164 # Is the header compilable?
9165 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9166 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9167 cat >conftest.$ac_ext <<_ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 $ac_includes_default
9174 #include <Carbon/Carbon.h>
9176 rm -f conftest.$ac_objext
9177 if { (ac_try="$ac_compile"
9179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9180 *) ac_try_echo
=$ac_try;;
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_compile") 2>conftest.er1
9185 grep -v '^ *+' conftest.er1
>conftest.err
9187 cat conftest.err
>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && {
9190 test -z "$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 } && test -s conftest.
$ac_objext; then
9193 ac_header_compiler
=yes
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.
$ac_ext >&5
9198 ac_header_compiler
=no
9201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9203 echo "${ECHO_T}$ac_header_compiler" >&6; }
9205 # Is the header present?
9206 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9207 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9208 cat >conftest.
$ac_ext <<_ACEOF
9211 cat confdefs.h
>>conftest.
$ac_ext
9212 cat >>conftest.
$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 #include <Carbon/Carbon.h>
9216 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9224 grep -v '^ *+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } >/dev/null && {
9229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9230 test ! -s conftest.err
9232 ac_header_preproc=yes
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_header_preproc=no
9240 rm -f conftest.err conftest.$ac_ext
9241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9242 echo "${ECHO_T}$ac_header_preproc" >&6; }
9244 # So? What about this header?
9245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9248 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9250 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9251 ac_header_preproc=yes
9254 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9255 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9257 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9259 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9261 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9263 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9265 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9269 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9270 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9271 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9276 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9277 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9280 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9286 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9287 if test "${with_carbon+set}" != set \
9288 && test "${carbon_appdir_x+set}" != set; then
9289 for var in with_x with_x_toolkit with_gtk with_xim \
9290 with_xpm with_jpeg with_tiff with_gif with_png; do
9291 if eval test \"\${$var+set}\" = set; then
9298 if test "${HAVE_CARBON}" = yes; then
9302 case "${window_system}" in
9306 case "${with_x_toolkit}" in
9307 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9308 motif ) USE_X_TOOLKIT=MOTIF ;;
9310 USE_X_TOOLKIT=none ;;
9311 no ) USE_X_TOOLKIT=none ;;
9313 if test x"$with_gtk" = xyes; then
9328 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9329 # Extract the first word of "X", so it can be a program name with args.
9330 set dummy X; ac_word=$2
9331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9333 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 if test -n "$HAVE_XSERVER"; then
9337 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_HAVE_XSERVER="true"
9347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9354 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9357 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9358 if test -n "$HAVE_XSERVER"; then
9359 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9360 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9362 { echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6; }
9367 if test "$HAVE_XSERVER" = true ||
9368 test -n "$DISPLAY" ||
9369 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9370 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9371 were found. You should install the relevant development files for X
9372 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9373 sure you have development files for image handling, i.e.
9374 tiff, gif, jpeg, png and xpm.
9375 If you are sure you want Emacs compiled without X window support, pass
9378 echo "$as_me: error: You seem to be running X, but no X development libraries
9379 were found. You should install the relevant development files for X
9380 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9381 sure you have development files for image handling, i.e.
9382 tiff, gif, jpeg, png and xpm.
9383 If you are sure you want Emacs compiled without X window support, pass
9385 to configure." >&2;}
9386 { (exit 1); exit 1; }; }
9390 ### If we're using X11, we should use the X menu package.
9393 yes ) HAVE_MENUS=yes ;;
9396 ### Compute the unexec source name from the object name.
9397 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9399 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9400 # Assume not, until told otherwise.
9403 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9404 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9405 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9416 #define malloc_get_state innocuous_malloc_get_state
9418 /* System header to define __stub macros and hopefully few prototypes,
9419 which can conflict with char malloc_get_state (); below.
9420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9421 <limits.h> exists even on freestanding compilers. */
9424 # include <limits.h>
9426 # include <assert.h>
9429 #undef malloc_get_state
9431 /* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9437 char malloc_get_state ();
9438 /* The GNU C library defines this for functions which it implements
9439 to always fail with ENOSYS. Some functions are actually named
9440 something starting with __ and the normal name is an alias. */
9441 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9448 return malloc_get_state ();
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9457 *) ac_try_echo
=$ac_try;;
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_link") 2>conftest.er1
9462 grep -v '^ *+' conftest.er1
>conftest.err
9464 cat conftest.err
>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && {
9467 test -z "$ac_c_werror_flag" ||
9468 test ! -s conftest.err
9469 } && test -s conftest
$ac_exeext &&
9470 $as_test_x conftest
$ac_exeext; then
9471 ac_cv_func_malloc_get_state
=yes
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.
$ac_ext >&5
9476 ac_cv_func_malloc_get_state
=no
9479 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9480 conftest
$ac_exeext conftest.
$ac_ext
9482 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9483 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9484 if test $ac_cv_func_malloc_get_state = yes; then
9490 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9491 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9492 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.
$ac_ext <<_ACEOF
9498 cat confdefs.h
>>conftest.
$ac_ext
9499 cat >>conftest.
$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503 #define malloc_set_state innocuous_malloc_set_state
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char malloc_set_state (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9511 # include <limits.h>
9513 # include <assert.h>
9516 #undef malloc_set_state
9518 /* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
9524 char malloc_set_state ();
9525 /* The GNU C library defines this for functions which it implements
9526 to always fail with ENOSYS. Some functions are actually named
9527 something starting with __ and the normal name is an alias. */
9528 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9535 return malloc_set_state ();
9540 rm -f conftest.
$ac_objext conftest
$ac_exeext
9541 if { (ac_try
="$ac_link"
9543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext &&
9557 $as_test_x conftest$ac_exeext; then
9558 ac_cv_func_malloc_set_state=yes
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_cv_func_malloc_set_state=no
9566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 conftest$ac_exeext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9570 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9571 if test $ac_cv_func_malloc_set_state = yes; then
9577 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9578 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9579 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 cat >conftest.$ac_ext <<_ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 extern void (* __after_morecore_hook)();
9592 __after_morecore_hook = 0
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (ac_try="$ac_link"
9600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9601 *) ac_try_echo
=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_link") 2>conftest.er1
9606 grep -v '^ *+' conftest.er1
>conftest.err
9608 cat conftest.err
>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest
$ac_exeext &&
9614 $as_test_x conftest
$ac_exeext; then
9615 emacs_cv_var___after_morecore_hook
=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.
$ac_ext >&5
9620 emacs_cv_var___after_morecore_hook
=no
9623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9624 conftest
$ac_exeext conftest.
$ac_ext
9626 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9627 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9628 if test $emacs_cv_var___after_morecore_hook = no
; then
9631 if test "${system_malloc}" = "yes"; then
9634 (The GNU allocators don't work with this system configuration.)"
9636 if test "$doug_lea_malloc" = "yes" ; then
9637 if test "$GNU_MALLOC" = yes ; then
9639 (Using Doug Lea's new malloc from the GNU C Library.)"
9642 cat >>confdefs.h
<<\_ACEOF
9643 #define DOUG_LEA_MALLOC 1
9648 if test x
"${REL_ALLOC}" = x
; then
9649 REL_ALLOC
=${GNU_MALLOC}
9655 for ac_header
in stdlib.h unistd.h
9657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9658 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 ac_res
=`eval echo '${'$as_ac_Header'}'`
9665 { echo "$as_me:$LINENO: result: $ac_res" >&5
9666 echo "${ECHO_T}$ac_res" >&6; }
9668 # Is the header compilable?
9669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9671 cat >conftest.
$ac_ext <<_ACEOF
9674 cat confdefs.h
>>conftest.
$ac_ext
9675 cat >>conftest.
$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9678 #include <$ac_header>
9680 rm -f conftest.
$ac_objext
9681 if { (ac_try
="$ac_compile"
9683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_compile") 2>conftest.er1
9689 grep -v '^ *+' conftest.er1 >conftest.err
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest.$ac_objext; then
9697 ac_header_compiler=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_header_compiler=no
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707 echo "${ECHO_T}$ac_header_compiler" >&6; }
9709 # Is the header present?
9710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <$ac_header>
9720 if { (ac_try="$ac_cpp conftest.$ac_ext"
9722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9723 *) ac_try_echo
=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1
>conftest.err
9730 cat conftest.err
>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev
/null
&& {
9733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9736 ac_header_preproc
=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.
$ac_ext >&5
9741 ac_header_preproc
=no
9744 rm -f conftest.err conftest.
$ac_ext
9745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9746 echo "${ECHO_T}$ac_header_preproc" >&6; }
9748 # So? What about this header?
9749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9755 ac_header_preproc
=yes
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 eval "$as_ac_Header=\$ac_header_preproc"
9780 ac_res
=`eval echo '${'$as_ac_Header'}'`
9781 { echo "$as_me:$LINENO: result: $ac_res" >&5
9782 echo "${ECHO_T}$ac_res" >&6; }
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h
<<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9795 for ac_func
in getpagesize
9797 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9800 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.
$ac_ext <<_ACEOF
9806 cat confdefs.h
>>conftest.
$ac_ext
9807 cat >>conftest.
$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define $ac_func innocuous_$ac_func
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9819 # include <limits.h>
9821 # include <assert.h>
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9833 /* The GNU C library defines this for functions which it implements
9834 to always fail with ENOSYS. Some functions are actually named
9835 something starting with __ and the normal name is an alias. */
9836 #if defined __stub_$ac_func || defined __stub___$ac_func
9848 rm -f conftest.
$ac_objext conftest
$ac_exeext
9849 if { (ac_try
="$ac_link"
9851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext &&
9865 $as_test_x conftest$ac_exeext; then
9866 eval "$as_ac_var=yes"
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 eval "$as_ac_var=no"
9874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875 conftest$ac_exeext conftest.$ac_ext
9877 ac_res=`eval echo '${'$as_ac_var'}'`
9878 { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9880 if test `eval echo '${'$as_ac_var'}'` = yes; then
9881 cat >>confdefs.h <<_ACEOF
9882 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9888 { echo "$as_me:$LINENO: checking for working mmap" >&5
9889 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9890 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 if test "$cross_compiling" = yes; then
9894 ac_cv_func_mmap_fixed_mapped=no
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 /* malloc might have been renamed as rpl_malloc. */
9906 /* Thanks to Mike Haertel and Jim Avera for this test.
9907 Here is a matrix of mmap possibilities:
9908 mmap private not fixed
9909 mmap private fixed at somewhere currently unmapped
9910 mmap private fixed at somewhere already mapped
9911 mmap shared not fixed
9912 mmap shared fixed at somewhere currently unmapped
9913 mmap shared fixed at somewhere already mapped
9914 For private mappings, we should verify that changes cannot be read()
9915 back from the file, nor mmap's back from the file at a different
9916 address. (There have been systems where private was not correctly
9917 implemented like the infamous i386 svr4.0, and systems where the
9918 VM page cache was not coherent with the file system buffer cache
9919 like early versions of FreeBSD and possibly contemporary NetBSD.)
9920 For shared mappings, we should conversely verify that changes get
9921 propagated back to all the places they're supposed to be.
9923 Grep wants private fixed already mapped.
9924 The main things grep needs to know about mmap are:
9925 * does it exist and is it safe to write into the mmap'd area
9926 * how to use it (BSD variants) */
9929 #include <sys/mman.h>
9931 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9935 /* This mess was copied from the GNU getpagesize.h. */
9936 #ifndef HAVE_GETPAGESIZE
9937 /* Assume that all systems that can run configure have sys/param.h. */
9938 # ifndef HAVE_SYS_PARAM_H
9939 # define HAVE_SYS_PARAM_H 1
9942 # ifdef _SC_PAGESIZE
9943 # define getpagesize() sysconf(_SC_PAGESIZE)
9944 # else /* no _SC_PAGESIZE */
9945 # ifdef HAVE_SYS_PARAM_H
9946 # include <sys/param.h>
9947 # ifdef EXEC_PAGESIZE
9948 # define getpagesize() EXEC_PAGESIZE
9949 # else /* no EXEC_PAGESIZE */
9951 # define getpagesize() NBPG * CLSIZE
9954 # endif /* no CLSIZE */
9955 # else /* no NBPG */
9957 # define getpagesize() NBPC
9958 # else /* no NBPC */
9960 # define getpagesize() PAGESIZE
9961 # endif /* PAGESIZE */
9962 # endif /* no NBPC */
9963 # endif /* no NBPG */
9964 # endif /* no EXEC_PAGESIZE */
9965 # else /* no HAVE_SYS_PARAM_H */
9966 # define getpagesize() 8192 /* punt totally */
9967 # endif /* no HAVE_SYS_PARAM_H */
9968 # endif /* no _SC_PAGESIZE */
9970 #endif /* no HAVE_GETPAGESIZE */
9975 char *data, *data2, *data3;
9979 pagesize = getpagesize ();
9981 /* First, make a file with some known garbage in it. */
9982 data = (char *) malloc (pagesize);
9985 for (i = 0; i < pagesize; ++i)
9986 *(data + i) = rand ();
9988 fd = creat ("conftest.mmap", 0600);
9991 if (write (fd, data, pagesize) != pagesize)
9995 /* Next, try to mmap the file at a fixed address which already has
9996 something else allocated at it. If we can, also make sure that
9997 we see the same garbage. */
9998 fd = open ("conftest.mmap", O_RDWR);
10001 data2 = (char *) malloc (2 * pagesize);
10004 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10005 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10006 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10008 for (i = 0; i < pagesize; ++i)
10009 if (*(data + i) != *(data2 + i))
10012 /* Finally, make sure that changes to the mapped area do not
10013 percolate back to the file as seen by read(). (This is a bug on
10014 some variants of i386 svr4.0.) */
10015 for (i = 0; i < pagesize; ++i)
10016 *(data2 + i) = *(data2 + i) + 1;
10017 data3 = (char *) malloc (pagesize);
10020 if (read (fd, data3, pagesize) != pagesize)
10022 for (i = 0; i < pagesize; ++i)
10023 if (*(data + i) != *(data3 + i))
10029 rm -f conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10033 *) ac_try_echo
=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10040 { (case "(($ac_try" in
10041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_try") 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_func_mmap_fixed_mapped=yes
10051 echo "$as_me: program exited with status $ac_status" >&5
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ( exit $ac_status )
10056 ac_cv_func_mmap_fixed_mapped=no
10058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10064 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10065 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_MMAP 1
10072 rm -f conftest.mmap
10074 if test $use_mmap_for_buffers = yes; then
10078 LIBS="$libsrc_libs $LIBS"
10081 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10082 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-ldnet $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 /* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
10105 return dnet_ntoa ();
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10114 *) ac_try_echo
=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1
>conftest.err
10121 cat conftest.err
>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest
$ac_exeext &&
10127 $as_test_x conftest
$ac_exeext; then
10128 ac_cv_lib_dnet_dnet_ntoa
=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.
$ac_ext >&5
10133 ac_cv_lib_dnet_dnet_ntoa
=no
10136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10137 conftest
$ac_exeext conftest.
$ac_ext
10138 LIBS
=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10142 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10143 cat >>confdefs.h
<<_ACEOF
10144 #define HAVE_LIBDNET 1
10147 LIBS
="-ldnet $LIBS"
10152 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10153 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 ac_check_lib_save_LIBS
=$LIBS
10158 LIBS
="-lXbsd $LIBS"
10159 cat >conftest.
$ac_ext <<_ACEOF
10162 cat confdefs.h
>>conftest.
$ac_ext
10163 cat >>conftest.
$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10175 rm -f conftest.
$ac_objext conftest
$ac_exeext
10176 if { (ac_try
="$ac_link"
10177 case "(($ac_try" in
10178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10184 grep -v '^ *+' conftest.er1 >conftest.err
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext &&
10192 $as_test_x conftest$ac_exeext; then
10193 ac_cv_lib_Xbsd_main=yes
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ac_cv_lib_Xbsd_main=no
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203 LIBS=$ac_check_lib_save_LIBS
10205 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10206 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10207 if test $ac_cv_lib_Xbsd_main = yes; then
10208 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10213 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10214 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10215 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-lpthreads $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10227 /* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
10237 return cma_open ();
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10246 *) ac_try_echo
=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1
>conftest.err
10253 cat conftest.err
>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest
$ac_exeext &&
10259 $as_test_x conftest
$ac_exeext; then
10260 ac_cv_lib_pthreads_cma_open
=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.
$ac_ext >&5
10265 ac_cv_lib_pthreads_cma_open
=no
10268 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10269 conftest
$ac_exeext conftest.
$ac_ext
10270 LIBS
=$ac_check_lib_save_LIBS
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10273 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10274 if test $ac_cv_lib_pthreads_cma_open = yes; then
10275 cat >>confdefs.h
<<_ACEOF
10276 #define HAVE_LIBPTHREADS 1
10279 LIBS
="-lpthreads $LIBS"
10284 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10285 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10286 if test -d /usr
/X386
/include
; then
10288 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10292 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10293 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10298 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10299 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10300 if test "${gdb_cv_bigtoc+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10306 *) gdb_cv_bigtoc
=-bbigtoc ;;
10309 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10310 cat >conftest.
$ac_ext <<_ACEOF
10313 cat confdefs.h
>>conftest.
$ac_ext
10314 cat >>conftest.
$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10325 rm -f conftest.
$ac_objext conftest
$ac_exeext
10326 if { (ac_try
="$ac_link"
10327 case "(($ac_try" in
10328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest$ac_exeext &&
10342 $as_test_x conftest$ac_exeext; then
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10355 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10356 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10360 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10361 # used for the tests that follow. We set them back to REAL_CFLAGS and
10362 # REAL_CPPFLAGS later on.
10364 REAL_CPPFLAGS="$CPPFLAGS"
10366 if test "${HAVE_X11}" = "yes"; then
10367 DEFS="$C_SWITCH_X_SITE $DEFS"
10368 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10370 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10371 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10373 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10374 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10375 # but it's more convenient here to set LD_RUN_PATH
10376 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10377 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10378 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10382 if test "${opsys}" = "gnu-linux"; then
10383 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10384 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10385 cat >conftest.$ac_ext <<_ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10395 XOpenDisplay ("foo");
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10404 *) ac_try_echo
=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1
>conftest.err
10411 cat conftest.err
>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest
$ac_exeext &&
10417 $as_test_x conftest
$ac_exeext; then
10418 xlinux_first_failure
=no
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.
$ac_ext >&5
10423 xlinux_first_failure
=yes
10426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10427 conftest
$ac_exeext conftest.
$ac_ext
10428 if test "${xlinux_first_failure}" = "yes"; then
10429 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10430 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10431 OLD_CPPFLAGS
="$CPPFLAGS"
10433 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10434 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10435 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10436 LIBS
="$LIBS -b i486-linuxaout"
10437 cat >conftest.
$ac_ext <<_ACEOF
10440 cat confdefs.h
>>conftest.
$ac_ext
10441 cat >>conftest.
$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10447 XOpenDisplay ("foo");
10452 rm -f conftest.
$ac_objext conftest
$ac_exeext
10453 if { (ac_try
="$ac_link"
10454 case "(($ac_try" in
10455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10470 xlinux_second_failure=no
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 xlinux_second_failure=yes
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479 conftest$ac_exeext conftest.$ac_ext
10480 if test "${xlinux_second_failure}" = "yes"; then
10481 # If we get the same failure with -b, there is no use adding -b.
10482 # So take it out. This plays safe.
10483 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10484 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10485 CPPFLAGS="$OLD_CPPFLAGS"
10487 { echo "$as_me:$LINENO: result: no" >&5
10488 echo "${ECHO_T}no" >&6; }
10490 { echo "$as_me:$LINENO: result: yes" >&5
10491 echo "${ECHO_T}yes" >&6; }
10494 { echo "$as_me:$LINENO: result: no" >&5
10495 echo "${ECHO_T}no" >&6; }
10499 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10500 # header files included from there.
10501 { echo "$as_me:$LINENO: checking for Xkb" >&5
10502 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <X11/Xlib.h>
10510 #include <X11/XKBlib.h>
10514 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10523 *) ac_try_echo
=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_link") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1
>conftest.err
10530 cat conftest.err
>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest
$ac_exeext &&
10536 $as_test_x conftest
$ac_exeext; then
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.
$ac_ext >&5
10545 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10546 conftest
$ac_exeext conftest.
$ac_ext
10547 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10548 echo "${ECHO_T}$emacs_xkb" >&6; }
10549 if test $emacs_xkb = yes; then
10551 cat >>confdefs.h
<<\_ACEOF
10552 #define HAVE_XKBGETKEYBOARD 1
10561 for ac_func
in XrmSetDatabase XScreenResourceString \
10562 XScreenNumberOfScreen XSetWMProtocols
10564 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10567 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 cat >conftest.
$ac_ext <<_ACEOF
10573 cat confdefs.h
>>conftest.
$ac_ext
10574 cat >>conftest.
$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10578 #define $ac_func innocuous_$ac_func
10580 /* System header to define __stub macros and hopefully few prototypes,
10581 which can conflict with char $ac_func (); below.
10582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10583 <limits.h> exists even on freestanding compilers. */
10586 # include <limits.h>
10588 # include <assert.h>
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10600 /* The GNU C library defines this for functions which it implements
10601 to always fail with ENOSYS. Some functions are actually named
10602 something starting with __ and the normal name is an alias. */
10603 #if defined __stub_$ac_func || defined __stub___$ac_func
10610 return $ac_func ();
10615 rm -f conftest.
$ac_objext conftest
$ac_exeext
10616 if { (ac_try
="$ac_link"
10617 case "(($ac_try" in
10618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_link") 2>conftest.er1
10624 grep -v '^ *+' conftest.er1 >conftest.err
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest$ac_exeext &&
10632 $as_test_x conftest$ac_exeext; then
10633 eval "$as_ac_var=yes"
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 eval "$as_ac_var=no"
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10644 ac_res=`eval echo '${'$as_ac_var'}'`
10645 { echo "$as_me:$LINENO: result: $ac_res" >&5
10646 echo "${ECHO_T}$ac_res" >&6; }
10647 if test `eval echo '${'$as_ac_var'}'` = yes; then
10648 cat >>confdefs.h <<_ACEOF
10649 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10657 if test "${window_system}" = "x11"; then
10658 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10659 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10660 if test "${emacs_cv_x11_version_6+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <X11/Xlib.h>
10673 #if XlibSpecificationRelease < 6
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (ac_try="$ac_link"
10683 case "(($ac_try" in
10684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10685 *) ac_try_echo
=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_link") 2>conftest.er1
10690 grep -v '^ *+' conftest.er1
>conftest.err
10692 cat conftest.err
>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_c_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest
$ac_exeext &&
10698 $as_test_x conftest
$ac_exeext; then
10699 emacs_cv_x11_version_6
=yes
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.
$ac_ext >&5
10704 emacs_cv_x11_version_6
=no
10707 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10708 conftest
$ac_exeext conftest.
$ac_ext
10711 if test $emacs_cv_x11_version_6 = yes; then
10712 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10713 echo "${ECHO_T}6 or newer" >&6; }
10715 cat >>confdefs.h
<<\_ACEOF
10716 #define HAVE_X11R6 1
10720 { echo "$as_me:$LINENO: result: before 6" >&5
10721 echo "${ECHO_T}before 6" >&6; }
10726 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10728 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10729 if test "${with_rsvg}" != "no"; then
10730 RSVG_REQUIRED
=2.0.0
10731 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10736 # Extract the first word of "pkg-config", so it can be a program name with args.
10737 set dummy pkg-config
; ac_word
=$2
10738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 case $PKG_CONFIG in
10745 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10749 for as_dir
in $PATH
10752 test -z "$as_dir" && as_dir
=.
10753 for ac_exec_ext
in '' $ac_executable_extensions; do
10754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10767 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10768 if test -n "$PKG_CONFIG"; then
10769 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10770 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10772 { echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6; }
10778 if test "$PKG_CONFIG" = "no" ; then
10781 PKG_CONFIG_MIN_VERSION
=0.9.0
10782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10783 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10784 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10786 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10787 { echo "$as_me:$LINENO: result: yes" >&5
10788 echo "${ECHO_T}yes" >&6; }
10791 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10792 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10793 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10794 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10795 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10797 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10798 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10799 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10800 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10801 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10803 { echo "$as_me:$LINENO: result: no" >&5
10804 echo "${ECHO_T}no" >&6; }
10807 ## If we have a custom action on failure, don't print errors, but
10808 ## do set a variable so people can do so.
10809 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10821 if test $succeeded = yes; then
10830 if test ".${RSVG_CFLAGS}" != "."; then
10833 cat >>confdefs.h
<<\_ACEOF
10834 #define HAVE_RSVG 1
10837 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10838 LIBS
="$RSVG_LIBS $LIBS"
10845 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10848 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
10849 test "$USE_X_TOOLKIT" = "maybe"; then
10850 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10851 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10852 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10853 { (exit 1); exit 1; }; };
10857 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10862 # Extract the first word of "pkg-config", so it can be a program name with args.
10863 set dummy pkg-config
; ac_word
=$2
10864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 case $PKG_CONFIG in
10871 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10875 for as_dir
in $PATH
10878 test -z "$as_dir" && as_dir
=.
10879 for ac_exec_ext
in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10893 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10894 if test -n "$PKG_CONFIG"; then
10895 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10896 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10898 { echo "$as_me:$LINENO: result: no" >&5
10899 echo "${ECHO_T}no" >&6; }
10904 if test "$PKG_CONFIG" = "no" ; then
10907 PKG_CONFIG_MIN_VERSION
=0.9.0
10908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10909 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10910 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10912 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10913 { echo "$as_me:$LINENO: result: yes" >&5
10914 echo "${ECHO_T}yes" >&6; }
10917 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10918 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10919 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10920 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10921 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10923 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10924 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10925 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10926 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10927 echo "${ECHO_T}$GTK_LIBS" >&6; }
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10933 ## If we have a custom action on failure, don't print errors, but
10934 ## do set a variable so people can do so.
10935 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10947 if test $succeeded = yes; then
10953 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10954 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10955 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10956 { (exit 1); exit 1; }; }
10961 if test x
"$pkg_check_gtk" = xyes
; then
10965 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10966 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10967 LIBS
="$GTK_LIBS $LIBS"
10970 for ac_func
in gtk_main
10972 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10975 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 cat >conftest.
$ac_ext <<_ACEOF
10981 cat confdefs.h
>>conftest.
$ac_ext
10982 cat >>conftest.
$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10986 #define $ac_func innocuous_$ac_func
10988 /* System header to define __stub macros and hopefully few prototypes,
10989 which can conflict with char $ac_func (); below.
10990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10991 <limits.h> exists even on freestanding compilers. */
10994 # include <limits.h>
10996 # include <assert.h>
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11008 /* The GNU C library defines this for functions which it implements
11009 to always fail with ENOSYS. Some functions are actually named
11010 something starting with __ and the normal name is an alias. */
11011 #if defined __stub_$ac_func || defined __stub___$ac_func
11018 return $ac_func ();
11023 rm -f conftest.
$ac_objext conftest
$ac_exeext
11024 if { (ac_try
="$ac_link"
11025 case "(($ac_try" in
11026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest$ac_exeext &&
11040 $as_test_x conftest$ac_exeext; then
11041 eval "$as_ac_var=yes"
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_var=no"
11049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11050 conftest$ac_exeext conftest.$ac_ext
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11063 if test "${GTK_COMPILES}" != "yes"; then
11064 if test "$USE_X_TOOLKIT" != "maybe"; then
11065 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11066 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11067 { (exit 1); exit 1; }; };
11072 cat >>confdefs.h <<\_ACEOF
11082 if test "${HAVE_GTK}" = "yes"; then
11084 if test "$with_toolkit_scroll_bars" != no; then
11085 with_toolkit_scroll_bars=yes
11088 HAVE_GTK_MULTIDISPLAY=no
11090 for ac_func in gdk_display_open
11092 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11114 # include <limits.h>
11116 # include <assert.h>
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11138 return $ac_func ();
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11147 *) ac_try_echo
=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11152 grep -v '^ *+' conftest.er1
>conftest.err
11154 cat conftest.err
>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest
$ac_exeext &&
11160 $as_test_x conftest
$ac_exeext; then
11161 eval "$as_ac_var=yes"
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.
$ac_ext >&5
11166 eval "$as_ac_var=no"
11169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11170 conftest
$ac_exeext conftest.
$ac_ext
11172 ac_res
=`eval echo '${'$as_ac_var'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176 cat >>confdefs.h
<<_ACEOF
11177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11179 HAVE_GTK_MULTIDISPLAY
=yes
11183 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11185 cat >>confdefs.h
<<\_ACEOF
11186 #define HAVE_GTK_MULTIDISPLAY 1
11191 HAVE_GTK_FILE_SELECTION
=no
11193 for ac_func
in gtk_file_selection_new
11195 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11198 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.
$ac_ext <<_ACEOF
11204 cat confdefs.h
>>conftest.
$ac_ext
11205 cat >>conftest.
$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11209 #define $ac_func innocuous_$ac_func
11211 /* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func (); below.
11213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11214 <limits.h> exists even on freestanding compilers. */
11217 # include <limits.h>
11219 # include <assert.h>
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined __stub_$ac_func || defined __stub___$ac_func
11241 return $ac_func ();
11246 rm -f conftest.
$ac_objext conftest
$ac_exeext
11247 if { (ac_try
="$ac_link"
11248 case "(($ac_try" in
11249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_link") 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest$ac_exeext &&
11263 $as_test_x conftest$ac_exeext; then
11264 eval "$as_ac_var=yes"
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 eval "$as_ac_var=no"
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11275 ac_res=`eval echo '${'$as_ac_var'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11278 if test `eval echo '${'$as_ac_var'}'` = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11282 HAVE_GTK_FILE_SELECTION=yes
11287 HAVE_GTK_FILE_CHOOSER=no
11289 for ac_func in gtk_file_chooser_dialog_new
11291 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define $ac_func innocuous_$ac_func
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11313 # include <limits.h>
11315 # include <assert.h>
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub_$ac_func || defined __stub___$ac_func
11337 return $ac_func ();
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11346 *) ac_try_echo
=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1
>conftest.err
11353 cat conftest.err
>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest
$ac_exeext &&
11359 $as_test_x conftest
$ac_exeext; then
11360 eval "$as_ac_var=yes"
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.
$ac_ext >&5
11365 eval "$as_ac_var=no"
11368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11369 conftest
$ac_exeext conftest.
$ac_ext
11371 ac_res
=`eval echo '${'$as_ac_var'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374 if test `eval echo '${'$as_ac_var'}'` = yes; then
11375 cat >>confdefs.h
<<_ACEOF
11376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 HAVE_GTK_FILE_CHOOSER
=yes
11383 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11384 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11386 cat >>confdefs.h
<<\_ACEOF
11387 #define HAVE_GTK_FILE_BOTH 1
11392 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11393 HAVE_GTK_AND_PTHREAD
=no
11395 for ac_header
in pthread.h
11397 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_res
=`eval echo '${'$as_ac_Header'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406 echo "${ECHO_T}$ac_res" >&6; }
11408 # Is the header compilable?
11409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11411 cat >conftest.
$ac_ext <<_ACEOF
11414 cat confdefs.h
>>conftest.
$ac_ext
11415 cat >>conftest.
$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 $ac_includes_default
11418 #include <$ac_header>
11420 rm -f conftest.
$ac_objext
11421 if { (ac_try
="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 ac_header_compiler=yes
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 ac_header_compiler=no
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11447 echo "${ECHO_T}$ac_header_compiler" >&6; }
11449 # Is the header present?
11450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11452 cat >conftest.$ac_ext <<_ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 #include <$ac_header>
11460 if { (ac_try="$ac_cpp conftest.$ac_ext"
11461 case "(($ac_try" in
11462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11463 *) ac_try_echo
=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1
>conftest.err
11470 cat conftest.err
>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } >/dev
/null
&& {
11473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11476 ac_header_preproc
=yes
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.
$ac_ext >&5
11481 ac_header_preproc
=no
11484 rm -f conftest.err conftest.
$ac_ext
11485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486 echo "${ECHO_T}$ac_header_preproc" >&6; }
11488 # So? What about this header?
11489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11495 ac_header_preproc
=yes
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11515 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 eval "$as_ac_Header=\$ac_header_preproc"
11520 ac_res
=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11526 cat >>confdefs.h
<<_ACEOF
11527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11534 if test "$ac_cv_header_pthread_h"; then
11535 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11536 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11537 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 ac_check_lib_save_LIBS
=$LIBS
11541 LIBS
="-lpthread $LIBS"
11542 cat >conftest.
$ac_ext <<_ACEOF
11545 cat confdefs.h
>>conftest.
$ac_ext
11546 cat >>conftest.
$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11555 char pthread_self ();
11559 return pthread_self ();
11564 rm -f conftest.
$ac_objext conftest
$ac_exeext
11565 if { (ac_try
="$ac_link"
11566 case "(($ac_try" in
11567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_link") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest$ac_exeext &&
11581 $as_test_x conftest$ac_exeext; then
11582 ac_cv_lib_pthread_pthread_self=yes
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_cv_lib_pthread_pthread_self=no
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11594 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11595 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11596 if test $ac_cv_lib_pthread_pthread_self = yes; then
11597 HAVE_GTK_AND_PTHREAD=yes
11601 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11602 case "${canonical}" in
11604 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11607 cat >>confdefs.h <<\_ACEOF
11608 #define HAVE_GTK_AND_PTHREAD 1
11616 if test "${with_dbus}" = "yes"; then
11620 # Extract the first word of "pkg-config", so it can be a program name with args.
11621 set dummy pkg-config; ac_word=$2
11622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 case $PKG_CONFIG in
11629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11652 if test -n "$PKG_CONFIG"; then
11653 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11654 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11656 { echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6; }
11662 if test "$PKG_CONFIG" = "no" ; then
11665 PKG_CONFIG_MIN_VERSION=0.9.0
11666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11667 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11668 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11670 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11671 { echo "$as_me:$LINENO: result: yes" >&5
11672 echo "${ECHO_T}yes" >&6; }
11675 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11676 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11677 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11678 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11679 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11681 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11682 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11683 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11684 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11685 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11687 { echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6; }
11691 ## If we have a custom action on failure, don't print errors, but
11692 ## do set a variable so people can do so.
11693 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11705 if test $succeeded = yes; then
11711 if test "$HAVE_DBUS" = yes; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define HAVE_DBUS 1
11721 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11722 if test "$with_xaw3d" != no; then
11723 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11724 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11725 if test "${emacs_cv_xaw3d+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <X11/Intrinsic.h>
11736 #include <X11/Xaw3d/Simple.h>
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11749 *) ac_try_echo
=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1
>conftest.err
11756 cat conftest.err
>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest
$ac_exeext &&
11762 $as_test_x conftest
$ac_exeext; then
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.
$ac_ext >&5
11771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11772 conftest
$ac_exeext conftest.
$ac_ext
11778 if test $emacs_cv_xaw3d = yes; then
11779 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11780 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11781 USE_X_TOOLKIT
=LUCID
11784 cat >>confdefs.h
<<\_ACEOF
11785 #define HAVE_XAW3D 1
11789 { echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6; }
11791 { echo "$as_me:$LINENO: checking for libXaw" >&5
11792 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11793 if test "${emacs_cv_xaw+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.
$ac_ext <<_ACEOF
11799 cat confdefs.h
>>conftest.
$ac_ext
11800 cat >>conftest.
$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 #include <X11/Intrinsic.h>
11804 #include <X11/Xaw/Simple.h>
11813 rm -f conftest.
$ac_objext conftest
$ac_exeext
11814 if { (ac_try
="$ac_link"
11815 case "(($ac_try" in
11816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_link") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest$ac_exeext &&
11830 $as_test_x conftest$ac_exeext; then
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11840 conftest$ac_exeext conftest.$ac_ext
11843 if test $emacs_cv_xaw = yes; then
11844 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11845 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11846 USE_X_TOOLKIT=LUCID
11847 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11848 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11849 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11850 { (exit 1); exit 1; }; }
11852 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11853 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11859 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11861 if test "${USE_X_TOOLKIT}" != "none"; then
11862 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11863 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11864 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <X11/Intrinsic.h>
11877 #if XtSpecificationRelease < 6
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (ac_try="$ac_link"
11887 case "(($ac_try" in
11888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11889 *) ac_try_echo
=$ac_try;;
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_link") 2>conftest.er1
11894 grep -v '^ *+' conftest.er1
>conftest.err
11896 cat conftest.err
>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest
$ac_exeext &&
11902 $as_test_x conftest
$ac_exeext; then
11903 emacs_cv_x11_toolkit_version_6
=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.
$ac_ext >&5
11908 emacs_cv_x11_toolkit_version_6
=no
11911 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11912 conftest
$ac_exeext conftest.
$ac_ext
11915 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11916 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11917 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11918 echo "${ECHO_T}6 or newer" >&6; }
11920 cat >>confdefs.h
<<\_ACEOF
11921 #define HAVE_X11XTR6 1
11925 { echo "$as_me:$LINENO: result: before 6" >&5
11926 echo "${ECHO_T}before 6" >&6; }
11930 if test x
$HAVE_X11XTR6 = xyes
; then
11931 LIBS
="-lXt -lSM -lICE $LIBS"
11936 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11937 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11938 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 ac_check_lib_save_LIBS
=$LIBS
11943 cat >conftest.
$ac_ext <<_ACEOF
11946 cat confdefs.h
>>conftest.
$ac_ext
11947 cat >>conftest.
$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11956 char XmuConvertStandardSelection ();
11960 return XmuConvertStandardSelection ();
11965 rm -f conftest.
$ac_objext conftest
$ac_exeext
11966 if { (ac_try
="$ac_link"
11967 case "(($ac_try" in
11968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11996 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11997 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_LIBXMU 1
12006 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12009 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12010 if test "${HAVE_X11}" = "yes"; then
12011 if test "${USE_X_TOOLKIT}" != "none"; then
12013 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12014 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12015 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lXext $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12033 char XShapeQueryExtension ();
12037 return XShapeQueryExtension ();
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12046 *) ac_try_echo
=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1
>conftest.err
12053 cat conftest.err
>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest
$ac_exeext &&
12059 $as_test_x conftest
$ac_exeext; then
12060 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.
$ac_ext >&5
12065 ac_cv_lib_Xext_XShapeQueryExtension
=no
12068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12069 conftest
$ac_exeext conftest.
$ac_ext
12070 LIBS
=$ac_check_lib_save_LIBS
12072 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12073 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12074 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12075 cat >>confdefs.h
<<_ACEOF
12076 #define HAVE_LIBXEXT 1
12079 LIBS
="-lXext $LIBS"
12086 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12087 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12088 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12089 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 cat >conftest.
$ac_ext <<_ACEOF
12095 cat confdefs.h
>>conftest.
$ac_ext
12096 cat >>conftest.
$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12102 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12105 Motif version prior to 2.1.
12111 rm -f conftest.
$ac_objext
12112 if { (ac_try
="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 emacs_cv_motif_version_2_1=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 emacs_cv_motif_version_2_1=no
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12139 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12140 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12141 if test $emacs_cv_motif_version_2_1 = yes; then
12144 cat >>confdefs.h <<\_ACEOF
12145 #define HAVE_MOTIF_2_1 1
12148 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12149 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12150 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 ac_check_lib_save_LIBS=$LIBS
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12168 char XpCreateContext ();
12172 return XpCreateContext ();
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (ac_try="$ac_link"
12179 case "(($ac_try" in
12180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12181 *) ac_try_echo
=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_link") 2>conftest.er1
12186 grep -v '^ *+' conftest.er1
>conftest.err
12188 cat conftest.err
>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } && {
12191 test -z "$ac_c_werror_flag" ||
12192 test ! -s conftest.err
12193 } && test -s conftest
$ac_exeext &&
12194 $as_test_x conftest
$ac_exeext; then
12195 ac_cv_lib_Xp_XpCreateContext
=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.
$ac_ext >&5
12200 ac_cv_lib_Xp_XpCreateContext
=no
12203 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12204 conftest
$ac_exeext conftest.
$ac_ext
12205 LIBS
=$ac_check_lib_save_LIBS
12207 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12208 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12209 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12213 if test ${HAVE_LIBXP} = yes; then
12215 cat >>confdefs.h
<<\_ACEOF
12216 #define HAVE_LIBXP 1
12221 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12222 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12223 if test "${emacs_cv_lesstif+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 # We put this in CFLAGS temporarily to precede other -I options
12227 # that might be in CFLAGS temporarily.
12228 # We put this in CPPFLAGS where it precedes the other -I options.
12229 OLD_CPPFLAGS
=$CPPFLAGS
12231 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12232 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12233 cat >conftest.
$ac_ext <<_ACEOF
12236 cat confdefs.h
>>conftest.
$ac_ext
12237 cat >>conftest.
$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12248 rm -f conftest.
$ac_objext
12249 if { (ac_try
="$ac_compile"
12250 case "(($ac_try" in
12251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_compile") 2>conftest.er1
12257 grep -v '^ *+' conftest.er1 >conftest.err
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest.$ac_objext; then
12265 emacs_cv_lesstif=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 emacs_cv_lesstif=no
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12276 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12277 if test $emacs_cv_lesstif = yes; then
12278 # Make sure this -I option remains in CPPFLAGS after it is set
12279 # back to REAL_CPPFLAGS.
12280 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12281 # have those other -I options anyway. Ultimately, having this
12282 # directory ultimately in CPPFLAGS will be enough.
12283 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12284 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12287 CPPFLAGS=$OLD_CPPFLAGS
12294 USE_TOOLKIT_SCROLL_BARS=no
12295 if test "${with_toolkit_scroll_bars}" != "no"; then
12296 if test "${USE_X_TOOLKIT}" != "none"; then
12297 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define USE_TOOLKIT_SCROLL_BARS 1
12303 USE_TOOLKIT_SCROLL_BARS=yes
12304 elif test "${HAVE_XAW3D}" = "yes"; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define USE_TOOLKIT_SCROLL_BARS 1
12309 USE_TOOLKIT_SCROLL_BARS=yes
12311 elif test "${HAVE_GTK}" = "yes"; then
12312 cat >>confdefs.h <<\_ACEOF
12313 #define USE_TOOLKIT_SCROLL_BARS 1
12316 USE_TOOLKIT_SCROLL_BARS=yes
12317 elif test "${HAVE_CARBON}" = "yes"; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define USE_TOOLKIT_SCROLL_BARS 1
12322 USE_TOOLKIT_SCROLL_BARS=yes
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12333 #include <X11/Xlib.h>
12334 #include <X11/Xresource.h>
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12347 *) ac_try_echo
=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1
>conftest.err
12354 cat conftest.err
>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.
$ac_objext; then
12362 cat >>confdefs.h
<<\_ACEOF
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.
$ac_ext >&5
12373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12376 if test "${with_xim}" != "no"; then
12378 cat >>confdefs.h
<<\_ACEOF
12385 if test "${HAVE_XIM}" != "no"; then
12386 late_CFLAGS
=$CFLAGS
12387 if test "$GCC" = yes; then
12388 CFLAGS
="$CFLAGS --pedantic-errors"
12390 cat >conftest.
$ac_ext <<_ACEOF
12393 cat confdefs.h
>>conftest.
$ac_ext
12394 cat >>conftest.
$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 #include <X11/Xlib.h>
12398 #include <X11/Xresource.h>
12407 XPointer *client_data;
12409 /* If we're not using GCC, it's probably not XFree86, and this is
12410 probably right, but we can't use something like --pedantic-errors. */
12411 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12412 char*, XIMProc, XPointer*);
12414 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12420 rm -f conftest.
$ac_objext
12421 if { (ac_try
="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.$ac_objext; then
12437 emacs_cv_arg6_star=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 if test "$emacs_cv_arg6_star" = yes; then
12448 cat >>confdefs.h <<\_ACEOF
12449 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12453 cat >>confdefs.h <<\_ACEOF
12454 #define XRegisterIMInstantiateCallback_arg6 XPointer
12458 CFLAGS=$late_CFLAGS
12461 #### For font-backend
12462 if test "${USE_FONT_BACKEND}" = "yes"; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define USE_FONT_BACKEND 1
12470 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12472 if test "${HAVE_X11}" = "yes"; then
12473 if test "x${with_freetype}" = "xno"; then
12476 if test "x${with_xft}" != "xno"; then
12478 if test "X${with_pkg_config_prog}" != X
; then
12479 PKG_CONFIG
="${with_pkg_config_prog}"
12485 # Extract the first word of "pkg-config", so it can be a program name with args.
12486 set dummy pkg-config
; ac_word
=$2
12487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 case $PKG_CONFIG in
12494 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12498 for as_dir
in $PATH
12501 test -z "$as_dir" && as_dir
=.
12502 for ac_exec_ext
in '' $ac_executable_extensions; do
12503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12504 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12516 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12517 if test -n "$PKG_CONFIG"; then
12518 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12519 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12521 { echo "$as_me:$LINENO: result: no" >&5
12522 echo "${ECHO_T}no" >&6; }
12527 if test "$PKG_CONFIG" = "no" ; then
12530 PKG_CONFIG_MIN_VERSION
=0.9.0
12531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12532 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12533 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12535 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12536 { echo "$as_me:$LINENO: result: yes" >&5
12537 echo "${ECHO_T}yes" >&6; }
12540 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12541 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12542 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12543 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12544 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12546 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12547 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12548 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12549 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12550 echo "${ECHO_T}$XFT_LIBS" >&6; }
12552 { echo "$as_me:$LINENO: result: no" >&5
12553 echo "${ECHO_T}no" >&6; }
12556 ## If we have a custom action on failure, don't print errors, but
12557 ## do set a variable so people can do so.
12558 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12570 if test $succeeded = yes; then
12576 if test "$HAVE_XFT" != no
; then
12577 OLD_CPPFLAGS
="$CPPFLAGS"
12578 OLD_CFLAGS
="$CFLAGS"
12580 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12581 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12582 LIBS
="$XFT_LIBS $LIBS"
12583 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12584 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12585 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12586 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12590 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12592 # Is the header compilable?
12593 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12594 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12602 #include <X11/Xft/Xft.h>
12604 rm -f conftest.
$ac_objext
12605 if { (ac_try
="$ac_compile"
12606 case "(($ac_try" in
12607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_compile") 2>conftest.er1
12613 grep -v '^ *+' conftest.er1 >conftest.err
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest.$ac_objext; then
12621 ac_header_compiler=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_header_compiler=no
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12631 echo "${ECHO_T}$ac_header_compiler" >&6; }
12633 # Is the header present?
12634 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12635 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 #include <X11/Xft/Xft.h>
12644 if { (ac_try="$ac_cpp conftest.$ac_ext"
12645 case "(($ac_try" in
12646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12647 *) ac_try_echo
=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1
>conftest.err
12654 cat conftest.err
>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } >/dev
/null
&& {
12657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12660 ac_header_preproc
=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.
$ac_ext >&5
12665 ac_header_preproc
=no
12668 rm -f conftest.err conftest.
$ac_ext
12669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12670 echo "${ECHO_T}$ac_header_preproc" >&6; }
12672 # So? What about this header?
12673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12675 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12676 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12679 ac_header_preproc
=yes
12682 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12683 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12685 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12687 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12689 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12691 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12693 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12697 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12698 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12699 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12704 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12705 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12708 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12709 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12710 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12711 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 ac_check_lib_save_LIBS
=$LIBS
12715 LIBS
="-lXft $XFT_LIBS $LIBS"
12716 cat >conftest.
$ac_ext <<_ACEOF
12719 cat confdefs.h
>>conftest.
$ac_ext
12720 cat >>conftest.
$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12729 char XftFontOpen ();
12733 return XftFontOpen ();
12738 rm -f conftest.
$ac_objext conftest
$ac_exeext
12739 if { (ac_try
="$ac_link"
12740 case "(($ac_try" in
12741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest$ac_exeext &&
12755 $as_test_x conftest$ac_exeext; then
12756 ac_cv_lib_Xft_XftFontOpen=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_cv_lib_Xft_XftFontOpen=no
12764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12765 conftest$ac_exeext conftest.$ac_ext
12766 LIBS=$ac_check_lib_save_LIBS
12768 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12769 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12770 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12778 if test "${HAVE_XFT}" = "yes"; then
12780 cat >>confdefs.h <<\_ACEOF
12785 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12787 CPPFLAGS="$OLD_CPPFLAGS"
12788 CFLAGS="$OLD_CFLAGS"
12796 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12797 if test "${HAVE_XFT}" = "yes"; then
12799 elif test "x${with_freetype}" != "xno"; then
12800 if test "X${with_pkg_config_prog}" != X; then
12801 PKG_CONFIG="${with_pkg_config_prog}"
12807 # Extract the first word of "pkg-config", so it can be a program name with args.
12808 set dummy pkg-config; ac_word=$2
12809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12811 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 case $PKG_CONFIG in
12816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12839 if test -n "$PKG_CONFIG"; then
12840 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12841 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12843 { echo "$as_me:$LINENO: result: no" >&5
12844 echo "${ECHO_T}no" >&6; }
12849 if test "$PKG_CONFIG" = "no" ; then
12852 PKG_CONFIG_MIN_VERSION=0.9.0
12853 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12854 { echo "$as_me:$LINENO: checking for freetype2" >&5
12855 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12857 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12858 { echo "$as_me:$LINENO: result: yes" >&5
12859 echo "${ECHO_T}yes" >&6; }
12862 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12863 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12864 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12865 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12866 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12868 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12869 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12870 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12871 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12872 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12878 ## If we have a custom action on failure, don't print errors
, but
12879 ## do set a variable so people can do so.
12880 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12887 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12888 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12892 if test $succeeded = yes; then
12898 if test "${HAVE_FREETYPE}" = "yes"; then
12902 # Extract the first word of "pkg-config", so it can be a program name with args.
12903 set dummy pkg-config
; ac_word
=$2
12904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 case $PKG_CONFIG in
12911 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12915 for as_dir
in $PATH
12918 test -z "$as_dir" && as_dir
=.
12919 for ac_exec_ext
in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12933 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12934 if test -n "$PKG_CONFIG"; then
12935 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12936 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12938 { echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6; }
12944 if test "$PKG_CONFIG" = "no" ; then
12947 PKG_CONFIG_MIN_VERSION
=0.9.0
12948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12949 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12950 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12952 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12953 { echo "$as_me:$LINENO: result: yes" >&5
12954 echo "${ECHO_T}yes" >&6; }
12957 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12958 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12959 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12960 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12961 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12963 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12964 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12965 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12966 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12967 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12969 { echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6; }
12971 FONTCONFIG_CFLAGS
=""
12973 ## If we have a custom action on failure, don't print errors, but
12974 ## do set a variable so people can do so.
12975 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12982 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12983 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12987 if test $succeeded = yes; then
12993 if test "${HAVE_FC}" = "no"; then
13000 if test "${HAVE_FREETYPE}" = "yes"; then
13002 cat >>confdefs.h
<<\_ACEOF
13003 #define HAVE_FREETYPE 1
13006 if test "${with_libotf}" != "no"; then
13007 if test "X${with_pkg_config_prog}" != X
; then
13008 PKG_CONFIG
="${with_pkg_config_prog}"
13013 # Extract the first word of "pkg-config", so it can be a program name with args.
13014 set dummy pkg-config
; ac_word
=$2
13015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 case $PKG_CONFIG in
13022 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13026 for as_dir
in $PATH
13029 test -z "$as_dir" && as_dir
=.
13030 for ac_exec_ext
in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13044 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13045 if test -n "$PKG_CONFIG"; then
13046 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13047 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13055 if test "$PKG_CONFIG" = "no" ; then
13056 pkg_check_libotf
=no
13058 PKG_CONFIG_MIN_VERSION
=0.9.0
13059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13060 { echo "$as_me:$LINENO: checking for libotf" >&5
13061 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13063 if $PKG_CONFIG --exists "libotf" 2>&5; then
13064 { echo "$as_me:$LINENO: result: yes" >&5
13065 echo "${ECHO_T}yes" >&6; }
13068 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13069 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13070 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13071 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13072 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13074 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13075 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13076 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13077 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13078 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13080 { echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6; }
13084 ## If we have a custom action on failure, don't print errors, but
13085 ## do set a variable so people can do so.
13086 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13098 if test $succeeded = yes; then
13099 pkg_check_libotf
=yes
13101 pkg_check_libotf
=no
13104 if test "$pkg_check_libotf" = "yes"; then
13106 cat >>confdefs.h
<<\_ACEOF
13107 #define HAVE_LIBOTF 1
13115 if test "${with_m17n_flt}" != "no"; then
13116 if test "X${with_pkg_config_prog}" != X
; then
13117 PKG_CONFIG
="${with_pkg_config_prog}"
13122 # Extract the first word of "pkg-config", so it can be a program name with args.
13123 set dummy pkg-config
; ac_word
=$2
13124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13126 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 case $PKG_CONFIG in
13131 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13135 for as_dir
in $PATH
13138 test -z "$as_dir" && as_dir
=.
13139 for ac_exec_ext
in '' $ac_executable_extensions; do
13140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13141 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13153 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13154 if test -n "$PKG_CONFIG"; then
13155 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13156 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13158 { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13164 if test "$PKG_CONFIG" = "no" ; then
13165 pkg_check_m17n_flt
=no
13167 PKG_CONFIG_MIN_VERSION
=0.9.0
13168 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13169 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13170 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13172 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13173 { echo "$as_me:$LINENO: result: yes" >&5
13174 echo "${ECHO_T}yes" >&6; }
13177 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13178 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13179 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13180 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13181 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13183 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13184 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13185 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13186 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13187 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13189 { echo "$as_me:$LINENO: result: no" >&5
13190 echo "${ECHO_T}no" >&6; }
13193 ## If we have a custom action on failure, don't print errors, but
13194 ## do set a variable so people can do so.
13195 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13207 if test $succeeded = yes; then
13208 pkg_check_m17n_flt
=yes
13210 pkg_check_m17n_flt
=no
13213 if test "$pkg_check_m17n_flt" = "yes"; then
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAVE_M17N_FLT 1
13232 #### End for font-backend
13234 ### Use -lXpm if available, unless `--with-xpm=no'.
13236 if test "${HAVE_X11}" = "yes"; then
13237 if test "${with_xpm}" != "no"; then
13238 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13239 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13240 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13241 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13245 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13247 # Is the header compilable?
13248 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13249 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13250 cat >conftest.
$ac_ext <<_ACEOF
13253 cat confdefs.h
>>conftest.
$ac_ext
13254 cat >>conftest.
$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 #include <X11/xpm.h>
13259 rm -f conftest.
$ac_objext
13260 if { (ac_try
="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
13276 ac_header_compiler=yes
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_header_compiler=no
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6; }
13288 # Is the header present?
13289 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13290 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <X11/xpm.h>
13299 if { (ac_try="$ac_cpp conftest.$ac_ext"
13300 case "(($ac_try" in
13301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13302 *) ac_try_echo
=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1
>conftest.err
13309 cat conftest.err
>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev
/null
&& {
13312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13315 ac_header_preproc
=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.
$ac_ext >&5
13320 ac_header_preproc
=no
13323 rm -f conftest.err conftest.
$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325 echo "${ECHO_T}$ac_header_preproc" >&6; }
13327 # So? What about this header?
13328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc
=yes
13337 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13338 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13340 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13342 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13344 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13348 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13352 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13353 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13354 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13359 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13360 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13363 if test $ac_cv_header_X11_xpm_h = yes; then
13364 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13365 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13366 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 ac_check_lib_save_LIBS
=$LIBS
13370 LIBS
="-lXpm -lX11 $LIBS"
13371 cat >conftest.
$ac_ext <<_ACEOF
13374 cat confdefs.h
>>conftest.
$ac_ext
13375 cat >>conftest.
$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13384 char XpmReadFileToPixmap ();
13388 return XpmReadFileToPixmap ();
13393 rm -f conftest.
$ac_objext conftest
$ac_exeext
13394 if { (ac_try
="$ac_link"
13395 case "(($ac_try" in
13396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } && {
13407 test -z "$ac_c_werror_flag" ||
13408 test ! -s conftest.err
13409 } && test -s conftest$ac_exeext &&
13410 $as_test_x conftest$ac_exeext; then
13411 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13423 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13424 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13425 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13432 if test "${HAVE_XPM}" = "yes"; then
13433 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13434 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 #include "X11/xpm.h"
13442 #ifndef XpmReturnAllocPixels
13443 no_return_alloc_pixels
13447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13448 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13456 if test "${HAVE_XPM}" = "yes"; then
13457 { echo "$as_me:$LINENO: result: yes" >&5
13458 echo "${ECHO_T}yes" >&6; }
13460 { echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6; }
13466 if test "${HAVE_XPM}" = "yes"; then
13468 cat >>confdefs.h <<\_ACEOF
13475 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13477 if test "${HAVE_X11}" = "yes"; then
13478 if test "${with_jpeg}" != "no"; then
13479 if test "${ac_cv_header_jerror_h+set}" = set; then
13480 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13481 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13482 if test "${ac_cv_header_jerror_h+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13486 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13488 # Is the header compilable?
13489 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13490 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13498 #include <jerror.h>
13500 rm -f conftest.$ac_objext
13501 if { (ac_try="$ac_compile"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_compile") 2>conftest.er1
13509 grep -v '^
*+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest.$ac_objext; then
13517 ac_header_compiler=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's
/^
/|
/' conftest.$ac_ext >&5
13522 ac_header_compiler=no
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13527 echo "${ECHO_T}$ac_header_compiler" >&6; }
13529 # Is the header present?
13530 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13531 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 #include <jerror.h>
13540 if { (ac_try="$ac_cpp conftest.$ac_ext"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13548 grep -v '^
*+' conftest.er1 >conftest.err
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev/null && {
13553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13556 ac_header_preproc=yes
13558 echo "$as_me: failed program was:" >&5
13559 sed 's
/^
/|
/' conftest.$ac_ext >&5
13561 ac_header_preproc=no
13564 rm -f conftest.err conftest.$ac_ext
13565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13566 echo "${ECHO_T}$ac_header_preproc" >&6; }
13568 # So? What about this header?
13569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13572 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13574 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13575 ac_header_preproc=yes
13578 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13579 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13581 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13583 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13584 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13585 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13587 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13589 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13593 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13594 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13595 if test "${ac_cv_header_jerror_h+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 ac_cv_header_jerror_h=$ac_header_preproc
13600 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13601 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13604 if test $ac_cv_header_jerror_h = yes; then
13605 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13606 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13607 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 ac_check_lib_save_LIBS=$LIBS
13611 LIBS="-ljpeg $LIBS"
13612 cat >conftest.$ac_ext <<_ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13625 char jpeg_destroy_compress ();
13629 return jpeg_destroy_compress ();
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (ac_try="$ac_link"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_link") 2>conftest.er1
13643 grep -v '^
*+' conftest.er1 >conftest.err
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest$ac_exeext &&
13651 $as_test_x conftest$ac_exeext; then
13652 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13654 echo "$as_me: failed program was:" >&5
13655 sed 's
/^
/|
/' conftest.$ac_ext >&5
13657 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13661 conftest$ac_exeext conftest.$ac_ext
13662 LIBS=$ac_check_lib_save_LIBS
13664 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13665 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13666 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13676 if test "${HAVE_JPEG}" = "yes"; then
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_JPEG 1
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #include <jpeglib.h>
13688 version=JPEG_LIB_VERSION
13691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13692 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13693 cat >>confdefs.h <<\_ACEOF
13694 #define HAVE_JPEG 1
13698 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13699 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13707 ### Use -lpng if available, unless `--with-png=no'.
13709 if test "${HAVE_X11}" = "yes"; then
13710 if test "${with_png}" != "no"; then
13711 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13712 # in /usr/include/libpng.
13715 for ac_header
in png.h libpng
/png.h
13717 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13721 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 ac_res
=`eval echo '${'$as_ac_Header'}'`
13725 { echo "$as_me:$LINENO: result: $ac_res" >&5
13726 echo "${ECHO_T}$ac_res" >&6; }
13728 # Is the header compilable?
13729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13731 cat >conftest.
$ac_ext <<_ACEOF
13734 cat confdefs.h
>>conftest.
$ac_ext
13735 cat >>conftest.
$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 $ac_includes_default
13738 #include <$ac_header>
13740 rm -f conftest.
$ac_objext
13741 if { (ac_try
="$ac_compile"
13742 case "(($ac_try" in
13743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_compile") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest.$ac_objext; then
13757 ac_header_compiler=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_compiler=no
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767 echo "${ECHO_T}$ac_header_compiler" >&6; }
13769 # Is the header present?
13770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 #include <$ac_header>
13780 if { (ac_try="$ac_cpp conftest.$ac_ext"
13781 case "(($ac_try" in
13782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13783 *) ac_try_echo
=$ac_try;;
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13788 grep -v '^ *+' conftest.er1
>conftest.err
13790 cat conftest.err
>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } >/dev
/null
&& {
13793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13796 ac_header_preproc
=yes
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.
$ac_ext >&5
13801 ac_header_preproc
=no
13804 rm -f conftest.err conftest.
$ac_ext
13805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13806 echo "${ECHO_T}$ac_header_preproc" >&6; }
13808 # So? What about this header?
13809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13815 ac_header_preproc
=yes
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 eval "$as_ac_Header=\$ac_header_preproc"
13840 ac_res
=`eval echo '${'$as_ac_Header'}'`
13841 { echo "$as_me:$LINENO: result: $ac_res" >&5
13842 echo "${ECHO_T}$ac_res" >&6; }
13845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13846 cat >>confdefs.h
<<_ACEOF
13847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13854 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13855 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13856 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13857 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 ac_check_lib_save_LIBS
=$LIBS
13861 LIBS
="-lpng -lz -lm $LIBS"
13862 cat >conftest.
$ac_ext <<_ACEOF
13865 cat confdefs.h
>>conftest.
$ac_ext
13866 cat >>conftest.
$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13875 char png_get_channels ();
13879 return png_get_channels ();
13884 rm -f conftest.
$ac_objext conftest
$ac_exeext
13885 if { (ac_try
="$ac_link"
13886 case "(($ac_try" in
13887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest$ac_exeext &&
13901 $as_test_x conftest$ac_exeext; then
13902 ac_cv_lib_png_png_get_channels=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_lib_png_png_get_channels=no
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13914 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13915 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13916 if test $ac_cv_lib_png_png_get_channels = yes; then
13923 if test "${HAVE_PNG}" = "yes"; then
13925 cat >>confdefs.h <<\_ACEOF
13932 ### Use -ltiff if available, unless `--with-tiff=no
'.
13934 if test "${HAVE_X11}" = "yes"; then
13935 if test "${with_tiff}" != "no"; then
13936 if test "${ac_cv_header_tiffio_h+set}" = set; then
13937 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13938 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_tiffio_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13945 # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13947 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <tiffio.h>
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13966 grep -v '^
*+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_header_compiler=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's
/^
/|
/' conftest.$ac_ext >&5
13979 ac_header_compiler=no
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13988 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <tiffio.h>
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14005 grep -v '^
*+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null && {
14010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14013 ac_header_preproc=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's
/^
/|
/' conftest.$ac_ext >&5
14018 ac_header_preproc=no
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14025 # So? What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14031 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14032 ac_header_preproc=yes
14035 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14044 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14050 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14051 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_tiffio_h+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 ac_cv_header_tiffio_h=$ac_header_preproc
14057 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14058 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14061 if test $ac_cv_header_tiffio_h = yes; then
14063 # At least one tiff package requires the jpeg library.
14064 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14065 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14066 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-ltiff $tifflibs $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14085 char TIFFGetVersion ();
14089 return TIFFGetVersion ();
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
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_link") 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); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext &&
14111 $as_test_x conftest$ac_exeext; then
14112 ac_cv_lib_tiff_TIFFGetVersion=yes
14114 echo "$as_me: failed program was:" >&5
14115 sed 's
/^
/|
/' conftest.$ac_ext >&5
14117 ac_cv_lib_tiff_TIFFGetVersion=no
14120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14121 conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14124 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14125 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14126 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14135 if test "${HAVE_TIFF}" = "yes"; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define HAVE_TIFF 1
14144 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14146 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14147 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14148 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14149 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14154 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14156 # Is the header compilable?
14157 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14158 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14159 cat >conftest.
$ac_ext <<_ACEOF
14162 cat confdefs.h
>>conftest.
$ac_ext
14163 cat >>conftest.
$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 $ac_includes_default
14166 #include <gif_lib.h>
14168 rm -f conftest.
$ac_objext
14169 if { (ac_try
="$ac_compile"
14170 case "(($ac_try" in
14171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_compile") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest.$ac_objext; then
14185 ac_header_compiler=yes
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ac_header_compiler=no
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195 echo "${ECHO_T}$ac_header_compiler" >&6; }
14197 # Is the header present?
14198 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14199 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <gif_lib.h>
14208 if { (ac_try="$ac_cpp conftest.$ac_ext"
14209 case "(($ac_try" in
14210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14211 *) ac_try_echo
=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14216 grep -v '^ *+' conftest.er1
>conftest.err
14218 cat conftest.err
>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev
/null
&& {
14221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14222 test ! -s conftest.err
14224 ac_header_preproc
=yes
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.
$ac_ext >&5
14229 ac_header_preproc
=no
14232 rm -f conftest.err conftest.
$ac_ext
14233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14234 echo "${ECHO_T}$ac_header_preproc" >&6; }
14236 # So? What about this header?
14237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14240 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14242 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14243 ac_header_preproc
=yes
14246 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14251 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14253 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14255 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14257 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14261 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14262 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 ac_cv_header_gif_lib_h
=$ac_header_preproc
14268 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14269 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14272 if test $ac_cv_header_gif_lib_h = yes; then
14273 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14274 # Earlier versions can crash Emacs.
14275 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14276 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14277 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 ac_check_lib_save_LIBS
=$LIBS
14282 cat >conftest.
$ac_ext <<_ACEOF
14285 cat confdefs.h
>>conftest.
$ac_ext
14286 cat >>conftest.
$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14289 /* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply. */
14295 char EGifPutExtensionLast ();
14299 return EGifPutExtensionLast ();
14304 rm -f conftest.
$ac_objext conftest
$ac_exeext
14305 if { (ac_try
="$ac_link"
14306 case "(($ac_try" in
14307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_link") 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest$ac_exeext &&
14321 $as_test_x conftest$ac_exeext; then
14322 ac_cv_lib_gif_EGifPutExtensionLast=yes
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_cv_lib_gif_EGifPutExtensionLast=no
14330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14331 conftest$ac_exeext conftest.$ac_ext
14332 LIBS=$ac_check_lib_save_LIBS
14334 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14335 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14336 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14346 if test "$HAVE_GIF" = yes; then
14347 ac_gif_lib_name="-lgif"
14350 # If gif_lib.h but no libgif, try libungif.
14351 if test x"$try_libungif" = xyes; then
14352 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14353 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14354 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 ac_check_lib_save_LIBS=$LIBS
14358 LIBS="-lungif $LIBS"
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14372 char EGifPutExtensionLast ();
14376 return EGifPutExtensionLast ();
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (ac_try="$ac_link"
14383 case "(($ac_try" in
14384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14385 *) ac_try_echo
=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_link") 2>conftest.er1
14390 grep -v '^ *+' conftest.er1
>conftest.err
14392 cat conftest.err
>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest
$ac_exeext &&
14398 $as_test_x conftest
$ac_exeext; then
14399 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.
$ac_ext >&5
14404 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14407 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14408 conftest
$ac_exeext conftest.
$ac_ext
14409 LIBS
=$ac_check_lib_save_LIBS
14411 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14412 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14413 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14418 if test "$HAVE_GIF" = yes; then
14420 cat >>confdefs.h
<<\_ACEOF
14421 #define LIBGIF -lungif
14424 ac_gif_lib_name
="-lungif"
14428 if test "${HAVE_GIF}" = "yes"; then
14430 cat >>confdefs.h
<<\_ACEOF
14437 if test "${HAVE_X11}" = "yes"; then
14440 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14441 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14442 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14443 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14444 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14445 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14446 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14447 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14448 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14449 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14451 if test "X${MISSING}" != X
; then
14452 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14454 Maybe some development libraries/packages are missing?
14455 If you don't want to link with them give
14457 as options to configure" >&5
14458 echo "$as_me: error: The following required libraries were not found:
14460 Maybe some development libraries/packages are missing?
14461 If you don't want to link with them give
14463 as options to configure" >&2;}
14464 { (exit 1); exit 1; }; }
14468 ### Use -lgpm if available, unless `--with-gpm=no'.
14470 if test "${with_gpm}" != "no"; then
14471 if test "${ac_cv_header_gpm_h+set}" = set; then
14472 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14473 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14474 if test "${ac_cv_header_gpm_h+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14478 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14480 # Is the header compilable?
14481 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14482 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14483 cat >conftest.
$ac_ext <<_ACEOF
14486 cat confdefs.h
>>conftest.
$ac_ext
14487 cat >>conftest.
$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 $ac_includes_default
14492 rm -f conftest.
$ac_objext
14493 if { (ac_try
="$ac_compile"
14494 case "(($ac_try" in
14495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_compile") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } && {
14506 test -z "$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest.$ac_objext; then
14509 ac_header_compiler=yes
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_header_compiler=no
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14519 echo "${ECHO_T}$ac_header_compiler" >&6; }
14521 # Is the header present?
14522 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14523 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14532 if { (ac_try="$ac_cpp conftest.$ac_ext"
14533 case "(($ac_try" in
14534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14535 *) ac_try_echo
=$ac_try;;
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14540 grep -v '^ *+' conftest.er1
>conftest.err
14542 cat conftest.err
>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } >/dev
/null
&& {
14545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14546 test ! -s conftest.err
14548 ac_header_preproc
=yes
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 ac_header_preproc
=no
14556 rm -f conftest.err conftest.
$ac_ext
14557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14558 echo "${ECHO_T}$ac_header_preproc" >&6; }
14560 # So? What about this header?
14561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14564 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14566 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14567 ac_header_preproc
=yes
14570 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14571 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14573 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14575 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14577 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14579 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14581 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14585 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14586 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14587 if test "${ac_cv_header_gpm_h+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 ac_cv_header_gpm_h
=$ac_header_preproc
14592 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14593 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14596 if test $ac_cv_header_gpm_h = yes; then
14597 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14598 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14599 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 ac_check_lib_save_LIBS
=$LIBS
14604 cat >conftest.
$ac_ext <<_ACEOF
14607 cat confdefs.h
>>conftest.
$ac_ext
14608 cat >>conftest.
$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14611 /* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14621 return Gpm_Open ();
14626 rm -f conftest.
$ac_objext conftest
$ac_exeext
14627 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest$ac_exeext &&
14643 $as_test_x conftest$ac_exeext; then
14644 ac_cv_lib_gpm_Gpm_Open=yes
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ac_cv_lib_gpm_Gpm_Open=no
14652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14653 conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14657 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14658 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14667 if test "${HAVE_GPM}" = "yes"; then
14669 cat >>confdefs.h <<\_ACEOF
14675 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14676 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14677 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14678 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14682 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14684 # Is the header compilable?
14685 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14686 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14694 #include <malloc/malloc.h>
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14700 *) ac_try_echo
=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1
>conftest.err
14707 cat conftest.err
>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest.
$ac_objext; then
14713 ac_header_compiler
=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.
$ac_ext >&5
14718 ac_header_compiler
=no
14721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14723 echo "${ECHO_T}$ac_header_compiler" >&6; }
14725 # Is the header present?
14726 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14727 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14728 cat >conftest.
$ac_ext <<_ACEOF
14731 cat confdefs.h
>>conftest.
$ac_ext
14732 cat >>conftest.
$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <malloc/malloc.h>
14736 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14737 case "(($ac_try" in
14738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14744 grep -v '^ *+' conftest.er1 >conftest.err
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } >/dev/null && {
14749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14750 test ! -s conftest.err
14752 ac_header_preproc=yes
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_header_preproc=no
14760 rm -f conftest.err conftest.$ac_ext
14761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14762 echo "${ECHO_T}$ac_header_preproc" >&6; }
14764 # So? What about this header?
14765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14771 ac_header_preproc=yes
14774 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14775 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14777 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14779 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14781 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14783 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14785 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14789 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14790 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14791 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14796 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14800 if test $ac_cv_header_malloc_malloc_h = yes; then
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_MALLOC_MALLOC_H 1
14810 ### Use Mac OS X Carbon API to implement GUI.
14811 if test "${HAVE_CARBON}" = "yes"; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_CARBON 1
14817 ## Specify the install directory
14819 if test "${carbon_appdir_x}" != ""; then
14820 case ${carbon_appdir_x} in
14821 y | ye | yes) carbon_appdir=/Applications ;;
14822 * ) carbon_appdir=${carbon_appdir_x} ;;
14825 # We also have mouse menus.
14829 ### Use session management (-lSM -lICE) if available
14831 if test "${HAVE_X11}" = "yes"; then
14832 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14833 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14834 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14835 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14839 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14841 # Is the header compilable?
14842 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14843 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14844 cat >conftest.$ac_ext <<_ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 $ac_includes_default
14851 #include <X11/SM/SMlib.h>
14853 rm -f conftest.$ac_objext
14854 if { (ac_try="$ac_compile"
14855 case "(($ac_try" in
14856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14857 *) ac_try_echo
=$ac_try;;
14859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860 (eval "$ac_compile") 2>conftest.er1
14862 grep -v '^ *+' conftest.er1
>conftest.err
14864 cat conftest.err
>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } && {
14867 test -z "$ac_c_werror_flag" ||
14868 test ! -s conftest.err
14869 } && test -s conftest.
$ac_objext; then
14870 ac_header_compiler
=yes
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.
$ac_ext >&5
14875 ac_header_compiler
=no
14878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14880 echo "${ECHO_T}$ac_header_compiler" >&6; }
14882 # Is the header present?
14883 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14884 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14885 cat >conftest.
$ac_ext <<_ACEOF
14888 cat confdefs.h
>>conftest.
$ac_ext
14889 cat >>conftest.
$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 #include <X11/SM/SMlib.h>
14893 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14894 case "(($ac_try" in
14895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } >/dev/null && {
14906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14909 ac_header_preproc=yes
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_header_preproc=no
14917 rm -f conftest.err conftest.$ac_ext
14918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14919 echo "${ECHO_T}$ac_header_preproc" >&6; }
14921 # So? What about this header?
14922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14928 ac_header_preproc=yes
14931 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14932 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14933 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14934 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14935 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14936 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14938 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14940 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14942 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14946 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14947 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14948 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14953 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14954 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14957 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14958 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14959 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14960 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-lSM -lICE $LIBS"
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14978 char SmcOpenConnection ();
14982 return SmcOpenConnection ();
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14991 *) ac_try_echo
=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1
>conftest.err
14998 cat conftest.err
>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest
$ac_exeext &&
15004 $as_test_x conftest
$ac_exeext; then
15005 ac_cv_lib_SM_SmcOpenConnection
=yes
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.
$ac_ext >&5
15010 ac_cv_lib_SM_SmcOpenConnection
=no
15013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15014 conftest
$ac_exeext conftest.
$ac_ext
15015 LIBS
=$ac_check_lib_save_LIBS
15017 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15018 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15019 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15027 if test "${HAVE_X_SM}" = "yes"; then
15029 cat >>confdefs.h
<<\_ACEOF
15030 #define HAVE_X_SM 1
15035 *) LIBS
="-lSM -lICE $LIBS" ;;
15040 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15041 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15042 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15043 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 cat >conftest.
$ac_ext <<_ACEOF
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15061 rm -f conftest.
$ac_objext conftest
$ac_exeext
15062 if { (ac_try
="$ac_link"
15063 case "(($ac_try" in
15064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 emacs_cv_netdb_declares_h_errno=yes
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 emacs_cv_netdb_declares_h_errno=no
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15090 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15091 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15092 if test $emacs_cv_netdb_declares_h_errno = yes; then
15094 cat >>confdefs.h <<\_ACEOF
15095 #define HAVE_H_ERRNO 1
15100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15101 # for constant arguments. Useless!
15102 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15103 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15104 if test "${ac_cv_working_alloca_h+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <alloca.h>
15117 char *p = (char *) alloca (2 * sizeof (int));
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (ac_try="$ac_link"
15125 case "(($ac_try" in
15126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15127 *) ac_try_echo
=$ac_try;;
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_link") 2>conftest.er1
15132 grep -v '^ *+' conftest.er1
>conftest.err
15134 cat conftest.err
>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest
$ac_exeext &&
15140 $as_test_x conftest
$ac_exeext; then
15141 ac_cv_working_alloca_h
=yes
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.
$ac_ext >&5
15146 ac_cv_working_alloca_h
=no
15149 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15150 conftest
$ac_exeext conftest.
$ac_ext
15152 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15153 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15154 if test $ac_cv_working_alloca_h = yes; then
15156 cat >>confdefs.h
<<\_ACEOF
15157 #define HAVE_ALLOCA_H 1
15162 { echo "$as_me:$LINENO: checking for alloca" >&5
15163 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15164 if test "${ac_cv_func_alloca_works+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 cat >conftest.
$ac_ext <<_ACEOF
15170 cat confdefs.h
>>conftest.
$ac_ext
15171 cat >>conftest.
$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15174 # define alloca __builtin_alloca
15177 # include <malloc.h>
15178 # define alloca _alloca
15180 # ifdef HAVE_ALLOCA_H
15181 # include <alloca.h>
15186 # ifndef alloca /* predefined by HP cc +Olibcalls */
15197 char *p = (char *) alloca (1);
15203 rm -f conftest.
$ac_objext conftest
$ac_exeext
15204 if { (ac_try
="$ac_link"
15205 case "(($ac_try" in
15206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15221 ac_cv_func_alloca_works=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_cv_func_alloca_works=no
15229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15230 conftest$ac_exeext conftest.$ac_ext
15232 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15233 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15235 if test $ac_cv_func_alloca_works = yes; then
15237 cat >>confdefs.h <<\_ACEOF
15238 #define HAVE_ALLOCA 1
15242 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15243 # that cause trouble. Some versions do not even contain alloca or
15244 # contain a buggy version. If you still want to use their alloca,
15245 # use ar to extract alloca.o from them instead of compiling alloca.c.
15247 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15249 cat >>confdefs.h <<\_ACEOF
15254 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15255 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15256 if test "${ac_cv_os_cray+set}" = set; then
15257 echo $ECHO_N "(cached
) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #if defined CRAY && ! defined CRAY2
15272 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15273 $EGREP "webecray
" >/dev/null 2>&1; then
15281 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15282 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15283 if test $ac_cv_os_cray = yes; then
15284 for ac_func in _getb67 GETB67 getb67; do
15285 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15286 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15287 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15288 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15289 echo $ECHO_N "(cached
) $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15299 #define $ac_func innocuous_$ac_func
15301 /* System header to define __stub macros and hopefully few prototypes,
15302 which can conflict with char $ac_func (); below.
15303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15304 <limits.h> exists even on freestanding compilers. */
15307 # include <limits.h>
15309 # include <assert.h>
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15321 /* The GNU C library defines this for functions which it implements
15322 to always fail with ENOSYS. Some functions are actually named
15323 something starting with __ and the normal name is an alias. */
15324 #if defined __stub_$ac_func || defined __stub___$ac_func
15331 return $ac_func ();
15336 rm -f conftest.$ac_objext conftest$ac_exeext
15337 if { (ac_try="$ac_link"
15338 case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_link") 2>conftest.er1
15345 grep -v '^ *+' conftest.er1 >conftest.err
15347 cat conftest.err >&5
15348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15349 (exit $ac_status); } && {
15350 test -z "$ac_c_werror_flag" ||
15351 test ! -s conftest.err
15352 } && test -s conftest$ac_exeext &&
15353 $as_test_x conftest$ac_exeext; then
15354 eval "$as_ac_var=yes"
15356 echo "$as_me: failed program was
:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 eval "$as_ac_var=no
"
15362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15363 conftest$ac_exeext conftest.$ac_ext
15365 ac_res=`eval echo '${'$as_ac_var'}'`
15366 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15367 echo "${ECHO_T}$ac_res" >&6; }
15368 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define CRAY_STACKSEG_END $ac_func
15380 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15381 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15382 if test "${ac_cv_c_stack_direction+set}" = set; then
15383 echo $ECHO_N "(cached
) $ECHO_C" >&6
15385 if test "$cross_compiling" = yes; then
15386 ac_cv_c_stack_direction=0
15388 cat >conftest.$ac_ext <<_ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 $ac_includes_default
15396 find_stack_direction ()
15398 static char *addr = 0;
15403 return find_stack_direction ();
15406 return (&dummy > addr) ? 1 : -1;
15412 return find_stack_direction () < 0;
15415 rm -f conftest$ac_exeext
15416 if { (ac_try="$ac_link"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_link") 2>&5
15424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_c_stack_direction=1
15437 echo "$as_me: program exited with status
$ac_status" >&5
15438 echo "$as_me: failed program was
:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ( exit $ac_status )
15442 ac_cv_c_stack_direction=-1
15444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15449 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15450 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15452 cat >>confdefs.h <<_ACEOF
15453 #define STACK_DIRECTION $ac_cv_c_stack_direction
15460 if test x"$ac_cv_func_alloca_works" != xyes; then
15461 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15462 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15463 { (exit 1); exit 1; }; }
15466 # fmod, logb, and frexp are found in -lm on most systems.
15467 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15469 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15470 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15471 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15472 echo $ECHO_N "(cached
) $ECHO_C" >&6
15474 ac_check_lib_save_LIBS=$LIBS
15476 cat >conftest.$ac_ext <<_ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15483 /* Override any GCC internal prototype to avoid an error.
15484 Use char because int might match the return type of a GCC
15485 builtin and then its argument prototype would still apply. */
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_c_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest$ac_exeext &&
15515 $as_test_x conftest$ac_exeext; then
15516 ac_cv_lib_m_sqrt=yes
15518 echo "$as_me: failed program was
:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 ac_cv_lib_m_sqrt=no
15524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15525 conftest$ac_exeext conftest.$ac_ext
15526 LIBS=$ac_check_lib_save_LIBS
15528 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15529 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15530 if test $ac_cv_lib_m_sqrt = yes; then
15531 cat >>confdefs.h <<_ACEOF
15532 #define HAVE_LIBM 1
15540 # Check for mail-locking functions in a "mail" library. Probably this should
15541 # have the same check as for liblockfile below.
15543 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15544 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15545 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15546 echo $ECHO_N "(cached
) $ECHO_C" >&6
15548 ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lmail $LIBS"
15550 cat >conftest.$ac_ext <<_ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15557 /* Override any GCC internal prototype to avoid an error.
15558 Use char because int might match the return type of a GCC
15559 builtin and then its argument prototype would still apply. */
15567 return maillock ();
15572 rm -f conftest.$ac_objext conftest$ac_exeext
15573 if { (ac_try="$ac_link"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_link") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest$ac_exeext &&
15589 $as_test_x conftest$ac_exeext; then
15590 ac_cv_lib_mail_maillock=yes
15592 echo "$as_me: failed program was
:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_lib_mail_maillock=no
15598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS
15602 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15603 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15604 if test $ac_cv_lib_mail_maillock = yes; then
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_LIBMAIL 1
15609 LIBS="-lmail $LIBS"
15614 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15615 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15616 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15617 echo $ECHO_N "(cached
) $ECHO_C" >&6
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-llockfile $LIBS"
15621 cat >conftest.$ac_ext <<_ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 /* Override any GCC internal prototype to avoid an error.
15629 Use char because int might match the return type of a GCC
15630 builtin and then its argument prototype would still apply. */
15638 return maillock ();
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (ac_try="$ac_link"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_link") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext &&
15660 $as_test_x conftest$ac_exeext; then
15661 ac_cv_lib_lockfile_maillock=yes
15663 echo "$as_me: failed program was
:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_cv_lib_lockfile_maillock=no
15669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15673 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15674 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15675 if test $ac_cv_lib_lockfile_maillock = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_LIBLOCKFILE 1
15680 LIBS="-llockfile $LIBS"
15684 # If we have the shared liblockfile, assume we must use it for mail
15685 # locking (e.g. Debian). If we couldn't link against liblockfile
15686 # (no liblockfile.a installed), ensure that we don't need to.
15687 if test "$ac_cv_lib_lockfile_maillock" = no; then
15688 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15689 set dummy liblockfile.so; ac_word=$2
15690 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15691 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15692 if test "${ac_cv_prog_liblockfile+set}" = set; then
15693 echo $ECHO_N "(cached
) $ECHO_C" >&6
15695 if test -n "$liblockfile"; then
15696 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15700 for as_dir in $as_dummy
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15706 ac_cv_prog_liblockfile="yes"
15707 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15714 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15717 liblockfile=$ac_cv_prog_liblockfile
15718 if test -n "$liblockfile"; then
15719 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15720 echo "${ECHO_T}$liblockfile" >&6; }
15722 { echo "$as_me:$LINENO: result
: no
" >&5
15723 echo "${ECHO_T}no
" >&6; }
15727 if test $ac_cv_prog_liblockfile = yes; then
15728 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15729 This probably means that movemail could lose mail.
15730 There may be a \`development' package to
install containing liblockfile.
" >&5
15731 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15732 This probably means that movemail could lose mail.
15733 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15734 { (exit 1); exit 1; }; }
15739 for ac_func in touchlock
15741 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15742 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15743 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15744 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15745 echo $ECHO_N "(cached
) $ECHO_C" >&6
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15755 #define $ac_func innocuous_$ac_func
15757 /* System header to define __stub macros and hopefully few prototypes,
15758 which can conflict with char $ac_func (); below.
15759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15760 <limits.h> exists even on freestanding compilers. */
15763 # include <limits.h>
15765 # include <assert.h>
15770 /* Override any GCC internal prototype to avoid an error.
15771 Use char because int might match the return type of a GCC
15772 builtin and then its argument prototype would still apply. */
15777 /* The GNU C library defines this for functions which it implements
15778 to always fail with ENOSYS. Some functions are actually named
15779 something starting with __ and the normal name is an alias. */
15780 #if defined __stub_$ac_func || defined __stub___$ac_func
15787 return $ac_func ();
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (ac_try="$ac_link"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_link") 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest$ac_exeext &&
15809 $as_test_x conftest$ac_exeext; then
15810 eval "$as_ac_var=yes"
15812 echo "$as_me: failed program was
:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 eval "$as_ac_var=no
"
15818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15819 conftest$ac_exeext conftest.$ac_ext
15821 ac_res=`eval echo '${'$as_ac_var'}'`
15822 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15823 echo "${ECHO_T}$ac_res" >&6; }
15824 if test `eval echo '${'$as_ac_var'}'` = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15833 for ac_header in maillock.h
15835 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15836 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15837 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15838 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15840 echo $ECHO_N "(cached
) $ECHO_C" >&6
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15846 # Is the header compilable?
15847 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15848 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15849 cat >conftest.$ac_ext <<_ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 $ac_includes_default
15856 #include <$ac_header>
15858 rm -f conftest.$ac_objext
15859 if { (ac_try="$ac_compile"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_compile") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15871 (exit $ac_status); } && {
15872 test -z "$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15874 } && test -s conftest.$ac_objext; then
15875 ac_header_compiler=yes
15877 echo "$as_me: failed program was
:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_compiler=no
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15885 echo "${ECHO_T}$ac_header_compiler" >&6; }
15887 # Is the header present?
15888 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15889 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <$ac_header>
15898 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15899 case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15906 grep -v '^ *+' conftest.er1 >conftest.err
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15910 (exit $ac_status); } >/dev/null && {
15911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15914 ac_header_preproc=yes
15916 echo "$as_me: failed program was
:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_preproc=no
15922 rm -f conftest.err conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15924 echo "${ECHO_T}$ac_header_preproc" >&6; }
15926 # So? What about this header?
15927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15930 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15931 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15933 ac_header_preproc=yes
15936 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15937 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15938 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15939 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15940 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15941 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15942 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15943 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15944 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15946 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15947 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15951 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15952 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15953 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15954 echo $ECHO_N "(cached
) $ECHO_C" >&6
15956 eval "$as_ac_Header=\
$ac_header_preproc"
15958 ac_res=`eval echo '${'$as_ac_Header'}'`
15959 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15960 echo "${ECHO_T}$ac_res" >&6; }
15963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15964 cat >>confdefs.h <<_ACEOF
15965 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16041 for ac_func in gethostname getdomainname dup2 \
16042 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16043 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16044 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16045 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16046 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16047 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16048 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16049 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16051 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16052 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16053 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16054 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached
) $ECHO_C" >&6
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16065 #define $ac_func innocuous_$ac_func
16067 /* System header to define __stub macros and hopefully few prototypes,
16068 which can conflict with char $ac_func (); below.
16069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16070 <limits.h> exists even on freestanding compilers. */
16073 # include <limits.h>
16075 # include <assert.h>
16080 /* Override any GCC internal prototype to avoid an error.
16081 Use char because int might match the return type of a GCC
16082 builtin and then its argument prototype would still apply. */
16087 /* The GNU C library defines this for functions which it implements
16088 to always fail with ENOSYS. Some functions are actually named
16089 something starting with __ and the normal name is an alias. */
16090 #if defined __stub_$ac_func || defined __stub___$ac_func
16097 return $ac_func ();
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (ac_try="$ac_link"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_link") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext &&
16119 $as_test_x conftest$ac_exeext; then
16120 eval "$as_ac_var=yes"
16122 echo "$as_me: failed program was
:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 eval "$as_ac_var=no
"
16128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16129 conftest$ac_exeext conftest.$ac_ext
16131 ac_res=`eval echo '${'$as_ac_var'}'`
16132 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16134 if test `eval echo '${'$as_ac_var'}'` = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16144 for ac_header in sys/un.h
16146 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16147 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16148 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16149 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16150 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16151 echo $ECHO_N "(cached
) $ECHO_C" >&6
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16157 # Is the header compilable?
16158 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16159 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <$ac_header>
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest.$ac_objext; then
16186 ac_header_compiler=yes
16188 echo "$as_me: failed program was
:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_header_compiler=no
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16196 echo "${ECHO_T}$ac_header_compiler" >&6; }
16198 # Is the header present?
16199 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16200 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 #include <$ac_header>
16209 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16217 grep -v '^ *+' conftest.er1 >conftest.err
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16221 (exit $ac_status); } >/dev/null && {
16222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16223 test ! -s conftest.err
16225 ac_header_preproc=yes
16227 echo "$as_me: failed program was
:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ac_header_preproc=no
16233 rm -f conftest.err conftest.$ac_ext
16234 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16235 echo "${ECHO_T}$ac_header_preproc" >&6; }
16237 # So? What about this header?
16238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16240 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16241 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16242 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16244 ac_header_preproc=yes
16247 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16248 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16249 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16250 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16251 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16252 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16253 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16254 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16255 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16257 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16258 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16262 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16263 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached
) $ECHO_C" >&6
16267 eval "$as_ac_Header=\
$ac_header_preproc"
16269 ac_res=`eval echo '${'$as_ac_Header'}'`
16270 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16271 echo "${ECHO_T}$ac_res" >&6; }
16274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16275 cat >>confdefs.h <<_ACEOF
16276 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16288 for ac_header in $ac_header_list
16290 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16291 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16292 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16293 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16294 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16295 echo $ECHO_N "(cached
) $ECHO_C" >&6
16297 ac_res=`eval echo '${'$as_ac_Header'}'`
16298 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16299 echo "${ECHO_T}$ac_res" >&6; }
16301 # Is the header compilable?
16302 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16303 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16304 cat >conftest.$ac_ext <<_ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16311 #include <$ac_header>
16313 rm -f conftest.$ac_objext
16314 if { (ac_try="$ac_compile"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_compile") 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest.$ac_objext; then
16330 ac_header_compiler=yes
16332 echo "$as_me: failed program was
:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_header_compiler=no
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16340 echo "${ECHO_T}$ac_header_compiler" >&6; }
16342 # Is the header present?
16343 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16344 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <$ac_header>
16353 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16361 grep -v '^ *+' conftest.er1 >conftest.err
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16365 (exit $ac_status); } >/dev/null && {
16366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16369 ac_header_preproc=yes
16371 echo "$as_me: failed program was
:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_preproc=no
16377 rm -f conftest.err conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16379 echo "${ECHO_T}$ac_header_preproc" >&6; }
16381 # So? What about this header?
16382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16384 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16385 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16386 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16388 ac_header_preproc=yes
16391 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16392 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16393 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16394 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16395 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16396 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16397 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16398 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16399 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16401 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16402 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16406 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16407 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16408 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached
) $ECHO_C" >&6
16411 eval "$as_ac_Header=\
$ac_header_preproc"
16413 ac_res=`eval echo '${'$as_ac_Header'}'`
16414 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16415 echo "${ECHO_T}$ac_res" >&6; }
16418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16419 cat >>confdefs.h <<_ACEOF
16420 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16435 for ac_func in $ac_func_list
16437 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16438 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16439 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16440 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached
) $ECHO_C" >&6
16443 cat >conftest.$ac_ext <<_ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16451 #define $ac_func innocuous_$ac_func
16453 /* System header to define __stub macros and hopefully few prototypes,
16454 which can conflict with char $ac_func (); below.
16455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16456 <limits.h> exists even on freestanding compilers. */
16459 # include <limits.h>
16461 # include <assert.h>
16466 /* Override any GCC internal prototype to avoid an error.
16467 Use char because int might match the return type of a GCC
16468 builtin and then its argument prototype would still apply. */
16473 /* The GNU C library defines this for functions which it implements
16474 to always fail with ENOSYS. Some functions are actually named
16475 something starting with __ and the normal name is an alias. */
16476 #if defined __stub_$ac_func || defined __stub___$ac_func
16483 return $ac_func ();
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (ac_try="$ac_link"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_link") 2>conftest.er1
16497 grep -v '^ *+' conftest.er1 >conftest.err
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16501 (exit $ac_status); } && {
16502 test -z "$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 } && test -s conftest$ac_exeext &&
16505 $as_test_x conftest$ac_exeext; then
16506 eval "$as_ac_var=yes"
16508 echo "$as_me: failed program was
:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 eval "$as_ac_var=no
"
16514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16515 conftest$ac_exeext conftest.$ac_ext
16517 ac_res=`eval echo '${'$as_ac_var'}'`
16518 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16519 echo "${ECHO_T}$ac_res" >&6; }
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16544 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16545 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16546 if test "${ac_cv_func_working_mktime+set}" = set; then
16547 echo $ECHO_N "(cached
) $ECHO_C" >&6
16549 if test "$cross_compiling" = yes; then
16550 ac_cv_func_working_mktime=no
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 /* Test program from Paul Eggert and Tony Leneis. */
16559 #ifdef TIME_WITH_SYS_TIME
16560 # include <sys/time.h>
16563 # ifdef HAVE_SYS_TIME_H
16564 # include <sys/time.h>
16570 #include <stdlib.h>
16572 #ifdef HAVE_UNISTD_H
16573 # include <unistd.h>
16577 # define alarm(X) /* empty */
16580 /* Work around redefinition to rpl_putenv by other config tests. */
16583 static time_t time_t_max;
16584 static time_t time_t_min;
16586 /* Values we'll use to set the TZ environment variable. */
16587 static char *tz_strings[] = {
16588 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16589 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16591 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16593 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16594 Based on a problem report from Andreas Jaeger. */
16596 spring_forward_gap ()
16598 /* glibc (up to about 1998-10-07) failed this test. */
16601 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16602 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16603 on systems that don't support the Olson extension, or don't have the
16604 full zoneinfo tables installed. */
16605 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16614 return mktime (&tm) != (time_t) -1;
16622 return ! (lt = localtime (&now)) || mktime (lt) == now;
16629 return (mktime_test1 (now)
16630 && mktime_test1 ((time_t) (time_t_max - now))
16631 && mktime_test1 ((time_t) (time_t_min + now)));
16637 /* Based on code from Ariel Faigon. */
16647 return tm.tm_mon == 2 && tm.tm_mday == 31;
16656 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16657 now = mktime (&tm);
16658 if (now != (time_t) -1)
16660 struct tm *lt = localtime (&now);
16662 && lt->tm_year == tm.tm_year
16663 && lt->tm_mon == tm.tm_mon
16664 && lt->tm_mday == tm.tm_mday
16665 && lt->tm_hour == tm.tm_hour
16666 && lt->tm_min == tm.tm_min
16667 && lt->tm_sec == tm.tm_sec
16668 && lt->tm_yday == tm.tm_yday
16669 && lt->tm_wday == tm.tm_wday
16670 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16671 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16680 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16681 ignoring leap seconds. */
16682 unsigned long int answer = 2527315200UL;
16686 tm.tm_year = 2050 - 1900;
16689 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16692 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16693 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16694 on systems that don't support the Olson extension, or don't have the
16695 full zoneinfo tables installed. */
16696 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16700 /* Check that the result is either a failure, or close enough
16701 to the correct answer that we can assume the discrepancy is
16702 due to leap seconds. */
16703 return (t == (time_t) -1
16704 || (0 < t && answer - 120 <= t && t <= answer + 120));
16713 /* This test makes some buggy mktime implementations loop.
16714 Give up after 60 seconds; a mktime slower than that
16715 isn't worth using anyway. */
16718 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16721 if ((time_t) -1 < 0)
16722 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16724 delta = time_t_max / 997; /* a suitable prime number */
16725 for (i = 0; i < N_STRINGS; i++)
16728 putenv (tz_strings[i]);
16730 for (t = 0; t <= time_t_max - delta; t += delta)
16731 if (! mktime_test (t))
16733 if (! (mktime_test ((time_t) 1)
16734 && mktime_test ((time_t) (60 * 60))
16735 && mktime_test ((time_t) (60 * 60 * 24))))
16738 for (j = 1; 0 < j; j *= 2)
16739 if (! bigtime_test (j))
16741 if (! bigtime_test (j - 1))
16744 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16747 rm -f conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>&5
16756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_cv_func_working_mktime=yes
16769 echo "$as_me: program exited with status
$ac_status" >&5
16770 echo "$as_me: failed program was
:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ( exit $ac_status )
16774 ac_cv_func_working_mktime=no
16776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16781 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16782 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16783 if test $ac_cv_func_working_mktime = no; then
16784 case " $LIBOBJS " in
16785 *" mktime.
$ac_objext "* ) ;;
16786 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16792 if test "$ac_cv_func_working_mktime" = no; then
16794 cat >>confdefs.h <<\_ACEOF
16795 #define BROKEN_MKTIME 1
16800 ac_have_func=no # yes means we've found a way to get the load average.
16802 # Make sure getloadavg.c is where it belongs, at configure-time.
16803 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16804 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16805 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16806 { (exit 1); exit 1; }; }
16810 # Check for getloadavg, but be sure not to touch the cache variable.
16811 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16812 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16813 if test "${ac_cv_func_getloadavg+set}" = set; then
16814 echo $ECHO_N "(cached
) $ECHO_C" >&6
16816 cat >conftest.$ac_ext <<_ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824 #define getloadavg innocuous_getloadavg
16826 /* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char getloadavg (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16832 # include <limits.h>
16834 # include <assert.h>
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16845 char getloadavg ();
16846 /* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849 #if defined __stub_getloadavg || defined __stub___getloadavg
16856 return getloadavg ();
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16870 grep -v '^ *+' conftest.er1 >conftest.err
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest$ac_exeext &&
16878 $as_test_x conftest$ac_exeext; then
16879 ac_cv_func_getloadavg=yes
16881 echo "$as_me: failed program was
:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_cv_func_getloadavg=no
16887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16890 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16891 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16892 if test $ac_cv_func_getloadavg = yes; then
16897 ) && ac_have_func=yes
16899 # On HPUX9, an unprivileged user can get load averages through this function.
16901 for ac_func in pstat_getdynamic
16903 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16904 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16905 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16906 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16907 echo $ECHO_N "(cached
) $ECHO_C" >&6
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16917 #define $ac_func innocuous_$ac_func
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char $ac_func (); below.
16921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 <limits.h> exists even on freestanding compilers. */
16925 # include <limits.h>
16927 # include <assert.h>
16932 /* Override any GCC internal prototype to avoid an error.
16933 Use char because int might match the return type of a GCC
16934 builtin and then its argument prototype would still apply. */
16939 /* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942 #if defined __stub_$ac_func || defined __stub___$ac_func
16949 return $ac_func ();
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (ac_try="$ac_link"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_link") 2>conftest.er1
16963 grep -v '^ *+' conftest.er1 >conftest.err
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16967 (exit $ac_status); } && {
16968 test -z "$ac_c_werror_flag" ||
16969 test ! -s conftest.err
16970 } && test -s conftest$ac_exeext &&
16971 $as_test_x conftest$ac_exeext; then
16972 eval "$as_ac_var=yes"
16974 echo "$as_me: failed program was
:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16977 eval "$as_ac_var=no
"
16980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16981 conftest$ac_exeext conftest.$ac_ext
16983 ac_res=`eval echo '${'$as_ac_var'}'`
16984 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16985 echo "${ECHO_T}$ac_res" >&6; }
16986 if test `eval echo '${'$as_ac_var'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16995 # Solaris has libkstat which does not require root.
16997 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16998 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16999 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17000 echo $ECHO_N "(cached
) $ECHO_C" >&6
17002 ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-lkstat $LIBS"
17004 cat >conftest.$ac_ext <<_ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17011 /* Override any GCC internal prototype to avoid an error.
17012 Use char because int might match the return type of a GCC
17013 builtin and then its argument prototype would still apply. */
17017 char kstat_open ();
17021 return kstat_open ();
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (ac_try="$ac_link"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_link") 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17039 (exit $ac_status); } && {
17040 test -z "$ac_c_werror_flag" ||
17041 test ! -s conftest.err
17042 } && test -s conftest$ac_exeext &&
17043 $as_test_x conftest$ac_exeext; then
17044 ac_cv_lib_kstat_kstat_open=yes
17046 echo "$as_me: failed program was
:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ac_cv_lib_kstat_kstat_open=no
17052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17053 conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17056 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17057 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17058 if test $ac_cv_lib_kstat_kstat_open = yes; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define HAVE_LIBKSTAT 1
17063 LIBS="-lkstat $LIBS"
17067 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17069 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17070 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17071 # to get the right answer into the cache.
17072 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17073 if test $ac_have_func = no; then
17074 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17075 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17076 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17077 echo $ECHO_N "(cached
) $ECHO_C" >&6
17079 ac_check_lib_save_LIBS=$LIBS
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17098 return elf_begin ();
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_link") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest$ac_exeext &&
17120 $as_test_x conftest$ac_exeext; then
17121 ac_cv_lib_elf_elf_begin=yes
17123 echo "$as_me: failed program was
:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_cv_lib_elf_elf_begin=no
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17131 LIBS=$ac_check_lib_save_LIBS
17133 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17134 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17135 if test $ac_cv_lib_elf_elf_begin = yes; then
17140 if test $ac_have_func = no; then
17141 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17142 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17143 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17144 echo $ECHO_N "(cached
) $ECHO_C" >&6
17146 ac_check_lib_save_LIBS=$LIBS
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17165 return kvm_open ();
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_link") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest$ac_exeext &&
17187 $as_test_x conftest$ac_exeext; then
17188 ac_cv_lib_kvm_kvm_open=yes
17190 echo "$as_me: failed program was
:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_lib_kvm_kvm_open=no
17196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17200 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17201 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17202 if test $ac_cv_lib_kvm_kvm_open = yes; then
17206 # Check for the 4.4BSD definition of getloadavg.
17207 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17208 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17209 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17210 echo $ECHO_N "(cached
) $ECHO_C" >&6
17212 ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lutil $LIBS"
17214 cat >conftest.$ac_ext <<_ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17227 char getloadavg ();
17231 return getloadavg ();
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (ac_try="$ac_link"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_link") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17249 (exit $ac_status); } && {
17250 test -z "$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17252 } && test -s conftest$ac_exeext &&
17253 $as_test_x conftest$ac_exeext; then
17254 ac_cv_lib_util_getloadavg=yes
17256 echo "$as_me: failed program was
:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17259 ac_cv_lib_util_getloadavg=no
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17266 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17267 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17268 if test $ac_cv_lib_util_getloadavg = yes; then
17269 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17274 if test $ac_have_func = no; then
17275 # There is a commonly available library for RS/6000 AIX.
17276 # Since it is not a standard part of AIX, it might be installed locally.
17277 ac_getloadavg_LIBS=$LIBS
17278 LIBS="-L/usr
/local
/lib
$LIBS"
17279 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17280 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17281 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17282 echo $ECHO_N "(cached
) $ECHO_C" >&6
17284 ac_check_lib_save_LIBS=$LIBS
17285 LIBS="-lgetloadavg $LIBS"
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17299 char getloadavg ();
17303 return getloadavg ();
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (ac_try="$ac_link"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_link") 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17321 (exit $ac_status); } && {
17322 test -z "$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17324 } && test -s conftest$ac_exeext &&
17325 $as_test_x conftest$ac_exeext; then
17326 ac_cv_lib_getloadavg_getloadavg=yes
17328 echo "$as_me: failed program was
:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_lib_getloadavg_getloadavg=no
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335 conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17338 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17339 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17340 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17341 LIBS="-lgetloadavg $LIBS"
17343 LIBS=$ac_getloadavg_LIBS
17348 # Make sure it is really in the library, if we think we found it,
17349 # otherwise set up the replacement function.
17351 for ac_func in getloadavg
17353 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17354 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17355 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17356 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached
) $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367 #define $ac_func innocuous_$ac_func
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17375 # include <limits.h>
17377 # include <assert.h>
17382 /* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17389 /* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392 #if defined __stub_$ac_func || defined __stub___$ac_func
17399 return $ac_func ();
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest$ac_exeext &&
17421 $as_test_x conftest$ac_exeext; then
17422 eval "$as_ac_var=yes"
17424 echo "$as_me: failed program was
:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 eval "$as_ac_var=no
"
17430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17431 conftest$ac_exeext conftest.$ac_ext
17433 ac_res=`eval echo '${'$as_ac_var'}'`
17434 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17436 if test `eval echo '${'$as_ac_var'}'` = yes; then
17437 cat >>confdefs.h <<_ACEOF
17438 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17442 case " $LIBOBJS " in
17443 *" getloadavg.
$ac_objext "* ) ;;
17444 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17449 cat >>confdefs.h <<\_ACEOF
17450 #define C_GETLOADAVG 1
17453 # Figure out what our getloadavg.c needs.
17455 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17456 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17457 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17459 echo $ECHO_N "(cached
) $ECHO_C" >&6
17461 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17462 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17464 # Is the header compilable?
17465 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17466 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 #include <sys/dg_sys_info.h>
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_header_compiler=yes
17495 echo "$as_me: failed program was
:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_header_compiler=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17503 echo "${ECHO_T}$ac_header_compiler" >&6; }
17505 # Is the header present?
17506 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17507 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <sys/dg_sys_info.h>
17516 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17524 grep -v '^ *+' conftest.er1 >conftest.err
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17528 (exit $ac_status); } >/dev/null && {
17529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17530 test ! -s conftest.err
17532 ac_header_preproc=yes
17534 echo "$as_me: failed program was
:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_header_preproc=no
17540 rm -f conftest.err conftest.$ac_ext
17541 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17542 echo "${ECHO_T}$ac_header_preproc" >&6; }
17544 # So? What about this header?
17545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17547 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17548 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17549 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17550 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17551 ac_header_preproc=yes
17554 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17555 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17556 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17557 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17558 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17559 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17560 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17561 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17562 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17563 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17564 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17565 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17569 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17570 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17571 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17572 echo $ECHO_N "(cached
) $ECHO_C" >&6
17574 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17576 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17577 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17580 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17583 cat >>confdefs.h <<\_ACEOF
17588 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17589 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17590 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17591 echo $ECHO_N "(cached
) $ECHO_C" >&6
17593 ac_check_lib_save_LIBS=$LIBS
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17608 char dg_sys_info ();
17612 return dg_sys_info ();
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (ac_try="$ac_link"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_link") 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17630 (exit $ac_status); } && {
17631 test -z "$ac_c_werror_flag" ||
17632 test ! -s conftest.err
17633 } && test -s conftest$ac_exeext &&
17634 $as_test_x conftest$ac_exeext; then
17635 ac_cv_lib_dgc_dg_sys_info=yes
17637 echo "$as_me: failed program was
:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_lib_dgc_dg_sys_info=no
17643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17644 conftest$ac_exeext conftest.$ac_ext
17645 LIBS=$ac_check_lib_save_LIBS
17647 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17648 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17649 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_LIBDGC 1
17662 if test "${ac_cv_header_locale_h+set}" = set; then
17663 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17664 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17665 if test "${ac_cv_header_locale_h+set}" = set; then
17666 echo $ECHO_N "(cached
) $ECHO_C" >&6
17668 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17671 # Is the header compilable?
17672 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17673 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17674 cat >conftest.$ac_ext <<_ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 $ac_includes_default
17681 #include <locale.h>
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_compile") 2>conftest.er1
17692 grep -v '^ *+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest.$ac_objext; then
17700 ac_header_compiler=yes
17702 echo "$as_me: failed program was
:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ac_header_compiler=no
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17710 echo "${ECHO_T}$ac_header_compiler" >&6; }
17712 # Is the header present?
17713 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17714 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include <locale.h>
17723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17724 case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17735 (exit $ac_status); } >/dev/null && {
17736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17737 test ! -s conftest.err
17739 ac_header_preproc=yes
17741 echo "$as_me: failed program was
:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_header_preproc=no
17747 rm -f conftest.err conftest.$ac_ext
17748 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17749 echo "${ECHO_T}$ac_header_preproc" >&6; }
17751 # So? What about this header?
17752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17754 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17755 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17756 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17757 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17758 ac_header_preproc=yes
17761 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17762 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17763 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17764 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17765 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17766 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17767 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17768 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17769 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17770 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17771 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17772 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17776 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17777 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17778 if test "${ac_cv_header_locale_h+set}" = set; then
17779 echo $ECHO_N "(cached
) $ECHO_C" >&6
17781 ac_cv_header_locale_h=$ac_header_preproc
17783 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17784 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17790 for ac_func in setlocale
17792 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17793 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17794 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17795 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17796 echo $ECHO_N "(cached
) $ECHO_C" >&6
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17806 #define $ac_func innocuous_$ac_func
17808 /* System header to define __stub macros and hopefully few prototypes,
17809 which can conflict with char $ac_func (); below.
17810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17811 <limits.h> exists even on freestanding compilers. */
17814 # include <limits.h>
17816 # include <assert.h>
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17828 /* The GNU C library defines this for functions which it implements
17829 to always fail with ENOSYS. Some functions are actually named
17830 something starting with __ and the normal name is an alias. */
17831 #if defined __stub_$ac_func || defined __stub___$ac_func
17838 return $ac_func ();
17843 rm -f conftest.$ac_objext conftest$ac_exeext
17844 if { (ac_try="$ac_link"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_link") 2>conftest.er1
17852 grep -v '^ *+' conftest.er1 >conftest.err
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest$ac_exeext &&
17860 $as_test_x conftest$ac_exeext; then
17861 eval "$as_ac_var=yes"
17863 echo "$as_me: failed program was
:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 eval "$as_ac_var=no
"
17869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870 conftest$ac_exeext conftest.$ac_ext
17872 ac_res=`eval echo '${'$as_ac_var'}'`
17873 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17874 echo "${ECHO_T}$ac_res" >&6; }
17875 if test `eval echo '${'$as_ac_var'}'` = yes; then
17876 cat >>confdefs.h <<_ACEOF
17877 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17884 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17885 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17886 # Irix 4.0.5F has the header but not the library.
17887 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17890 cat >>confdefs.h <<\_ACEOF
17896 if test $ac_have_func = no; then
17897 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17898 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17899 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17900 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17901 echo $ECHO_N "(cached
) $ECHO_C" >&6
17903 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17904 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17906 # Is the header compilable?
17907 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17908 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17909 cat >conftest.$ac_ext <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 $ac_includes_default
17916 #include <inq_stats/cpustats.h>
17918 rm -f conftest.$ac_objext
17919 if { (ac_try="$ac_compile"
17920 case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_compile") 2>conftest.er1
17927 grep -v '^ *+' conftest.er1 >conftest.err
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17931 (exit $ac_status); } && {
17932 test -z "$ac_c_werror_flag" ||
17933 test ! -s conftest.err
17934 } && test -s conftest.$ac_objext; then
17935 ac_header_compiler=yes
17937 echo "$as_me: failed program was
:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_header_compiler=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17945 echo "${ECHO_T}$ac_header_compiler" >&6; }
17947 # Is the header present?
17948 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17949 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <inq_stats/cpustats.h>
17958 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17959 case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17966 grep -v '^ *+' conftest.er1 >conftest.err
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17970 (exit $ac_status); } >/dev/null && {
17971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17972 test ! -s conftest.err
17974 ac_header_preproc=yes
17976 echo "$as_me: failed program was
:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_header_preproc=no
17982 rm -f conftest.err conftest.$ac_ext
17983 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17984 echo "${ECHO_T}$ac_header_preproc" >&6; }
17986 # So? What about this header?
17987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17989 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17990 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17991 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17992 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17993 ac_header_preproc=yes
17996 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17997 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17998 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17999 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18000 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18001 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18002 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18003 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18004 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18005 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18006 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18007 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18011 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18012 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18013 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18014 echo $ECHO_N "(cached
) $ECHO_C" >&6
18016 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18018 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18019 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18022 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18025 cat >>confdefs.h <<\_ACEOF
18030 cat >>confdefs.h <<\_ACEOF
18039 if test $ac_have_func = no; then
18040 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18041 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18042 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18043 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18044 echo $ECHO_N "(cached
) $ECHO_C" >&6
18046 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18047 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18049 # Is the header compilable?
18050 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18051 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 $ac_includes_default
18059 #include <sys/cpustats.h>
18061 rm -f conftest.$ac_objext
18062 if { (ac_try="$ac_compile"
18063 case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_compile") 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18074 (exit $ac_status); } && {
18075 test -z "$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18077 } && test -s conftest.$ac_objext; then
18078 ac_header_compiler=yes
18080 echo "$as_me: failed program was
:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_compiler=no
18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18088 echo "${ECHO_T}$ac_header_compiler" >&6; }
18090 # Is the header present?
18091 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18092 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18093 cat >conftest.$ac_ext <<_ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 #include <sys/cpustats.h>
18101 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18102 case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18113 (exit $ac_status); } >/dev/null && {
18114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18115 test ! -s conftest.err
18117 ac_header_preproc=yes
18119 echo "$as_me: failed program was
:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ac_header_preproc=no
18125 rm -f conftest.err conftest.$ac_ext
18126 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18127 echo "${ECHO_T}$ac_header_preproc" >&6; }
18129 # So? What about this header?
18130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18132 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18133 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18134 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18135 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18136 ac_header_preproc=yes
18139 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18140 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18141 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18142 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18143 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18144 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18145 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18146 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18147 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18148 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18149 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18150 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18154 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18155 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18156 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18157 echo $ECHO_N "(cached
) $ECHO_C" >&6
18159 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18161 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18162 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18165 if test $ac_cv_header_sys_cpustats_h = yes; then
18166 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18175 if test $ac_have_func = no; then
18177 for ac_header in mach/mach.h
18179 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18181 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18182 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18183 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached
) $ECHO_C" >&6
18186 ac_res=`eval echo '${'$as_ac_Header'}'`
18187 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18188 echo "${ECHO_T}$ac_res" >&6; }
18190 # Is the header compilable?
18191 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18192 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 $ac_includes_default
18200 #include <$ac_header>
18202 rm -f conftest.$ac_objext
18203 if { (ac_try="$ac_compile"
18204 case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_compile") 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18215 (exit $ac_status); } && {
18216 test -z "$ac_c_werror_flag" ||
18217 test ! -s conftest.err
18218 } && test -s conftest.$ac_objext; then
18219 ac_header_compiler=yes
18221 echo "$as_me: failed program was
:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18224 ac_header_compiler=no
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18229 echo "${ECHO_T}$ac_header_compiler" >&6; }
18231 # Is the header present?
18232 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18233 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18234 cat >conftest.$ac_ext <<_ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 #include <$ac_header>
18242 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18243 case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18250 grep -v '^ *+' conftest.er1 >conftest.err
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18254 (exit $ac_status); } >/dev/null && {
18255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18256 test ! -s conftest.err
18258 ac_header_preproc=yes
18260 echo "$as_me: failed program was
:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_header_preproc=no
18266 rm -f conftest.err conftest.$ac_ext
18267 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18268 echo "${ECHO_T}$ac_header_preproc" >&6; }
18270 # So? What about this header?
18271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18273 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18274 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18275 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18277 ac_header_preproc=yes
18280 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18281 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18282 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18283 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18284 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18285 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18286 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18287 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18288 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18290 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18291 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18295 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18296 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18297 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18298 echo $ECHO_N "(cached
) $ECHO_C" >&6
18300 eval "$as_ac_Header=\
$ac_header_preproc"
18302 ac_res=`eval echo '${'$as_ac_Header'}'`
18303 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18304 echo "${ECHO_T}$ac_res" >&6; }
18307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18319 for ac_header in nlist.h
18321 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18322 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18323 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18324 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18325 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18326 echo $ECHO_N "(cached
) $ECHO_C" >&6
18328 ac_res=`eval echo '${'$as_ac_Header'}'`
18329 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18330 echo "${ECHO_T}$ac_res" >&6; }
18332 # Is the header compilable?
18333 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18334 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18335 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 $ac_includes_default
18342 #include <$ac_header>
18344 rm -f conftest.$ac_objext
18345 if { (ac_try="$ac_compile"
18346 case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_compile") 2>conftest.er1
18353 grep -v '^ *+' conftest.er1 >conftest.err
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18357 (exit $ac_status); } && {
18358 test -z "$ac_c_werror_flag" ||
18359 test ! -s conftest.err
18360 } && test -s conftest.$ac_objext; then
18361 ac_header_compiler=yes
18363 echo "$as_me: failed program was
:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_header_compiler=no
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18371 echo "${ECHO_T}$ac_header_compiler" >&6; }
18373 # Is the header present?
18374 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18375 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <$ac_header>
18384 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18396 (exit $ac_status); } >/dev/null && {
18397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18400 ac_header_preproc=yes
18402 echo "$as_me: failed program was
:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_header_preproc=no
18408 rm -f conftest.err conftest.$ac_ext
18409 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18410 echo "${ECHO_T}$ac_header_preproc" >&6; }
18412 # So? What about this header?
18413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18415 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18416 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18417 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18419 ac_header_preproc=yes
18422 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18423 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18424 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18425 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18426 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18427 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18428 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18429 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18430 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18432 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18433 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18437 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18438 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18439 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18440 echo $ECHO_N "(cached
) $ECHO_C" >&6
18442 eval "$as_ac_Header=\
$ac_header_preproc"
18444 ac_res=`eval echo '${'$as_ac_Header'}'`
18445 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18446 echo "${ECHO_T}$ac_res" >&6; }
18449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18453 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18454 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18455 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18456 echo $ECHO_N "(cached
) $ECHO_C" >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18469 static struct nlist ac_aggr;
18470 if (ac_aggr.n_un.n_name)
18476 rm -f conftest.$ac_objext
18477 if { (ac_try="$ac_compile"
18478 case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_compile") 2>conftest.er1
18485 grep -v '^ *+' conftest.er1 >conftest.err
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18489 (exit $ac_status); } && {
18490 test -z "$ac_c_werror_flag" ||
18491 test ! -s conftest.err
18492 } && test -s conftest.$ac_objext; then
18493 ac_cv_member_struct_nlist_n_un_n_name=yes
18495 echo "$as_me: failed program was
:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18509 static struct nlist ac_aggr;
18510 if (sizeof ac_aggr.n_un.n_name)
18516 rm -f conftest.$ac_objext
18517 if { (ac_try="$ac_compile"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_compile") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18529 (exit $ac_status); } && {
18530 test -z "$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 } && test -s conftest.$ac_objext; then
18533 ac_cv_member_struct_nlist_n_un_n_name=yes
18535 echo "$as_me: failed program was
:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_member_struct_nlist_n_un_n_name=no
18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18546 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18547 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18548 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18555 cat >>confdefs.h <<\_ACEOF
18556 #define NLIST_NAME_UNION 1
18570 # Some definitions of getloadavg require that the program be installed setgid.
18571 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18572 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18573 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18574 echo $ECHO_N "(cached
) $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18583 #ifdef LDAV_PRIVILEGED
18584 Yowza Am I SETGID yet
18587 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18588 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18589 ac_cv_func_getloadavg_setgid=yes
18591 ac_cv_func_getloadavg_setgid=no
18596 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18597 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18598 if test $ac_cv_func_getloadavg_setgid = yes; then
18601 cat >>confdefs.h <<\_ACEOF
18602 #define GETLOADAVG_PRIVILEGED 1
18609 if test $ac_cv_func_getloadavg_setgid = yes; then
18610 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18611 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18612 if test "${ac_cv_group_kmem+set}" = set; then
18613 echo $ECHO_N "(cached
) $ECHO_C" >&6
18615 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18616 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18617 # If we got an error (system does not support symlinks), try without -L.
18618 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18619 ac_cv_group_kmem=`echo $ac_ls_output \
18620 | sed -ne 's/[ ][ ]*/ /g;
18621 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18625 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18626 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18627 KMEM_GROUP=$ac_cv_group_kmem
18629 if test "x
$ac_save_LIBS" = x; then
18630 GETLOADAVG_LIBS=$LIBS
18632 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18638 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18639 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18640 if test "${ac_cv_sys_largefile_source+set}" = set; then
18641 echo $ECHO_N "(cached
) $ECHO_C" >&6
18644 cat >conftest.$ac_ext <<_ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18654 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18668 grep -v '^ *+' conftest.er1 >conftest.err
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest$ac_exeext &&
18676 $as_test_x conftest$ac_exeext; then
18677 ac_cv_sys_largefile_source=no; break
18679 echo "$as_me: failed program was
:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18686 conftest$ac_exeext conftest.$ac_ext
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #define _LARGEFILE_SOURCE 1
18698 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18703 rm -f conftest.$ac_objext conftest$ac_exeext
18704 if { (ac_try="$ac_link"
18705 case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_link") 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18716 (exit $ac_status); } && {
18717 test -z "$ac_c_werror_flag" ||
18718 test ! -s conftest.err
18719 } && test -s conftest$ac_exeext &&
18720 $as_test_x conftest$ac_exeext; then
18721 ac_cv_sys_largefile_source=1; break
18723 echo "$as_me: failed program was
:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18730 conftest$ac_exeext conftest.$ac_ext
18731 ac_cv_sys_largefile_source=unknown
18735 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18736 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18737 case $ac_cv_sys_largefile_source in #(
18740 cat >>confdefs.h <<_ACEOF
18741 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18747 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18748 # in glibc 2.1.3, but that breaks too many other things.
18749 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18750 if test $ac_cv_sys_largefile_source != unknown; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE_FSEEKO 1
18759 # Configure getopt.
18760 # getopt.m4 serial 10
18762 # The getopt module assume you want GNU getopt, with getopt_long etc,
18763 # rather than vanilla POSIX getopt. This means your your code should
18764 # always include <getopt.h> for the getopt prototypes.
18776 # Prerequisites of lib/getopt*.
18783 for ac_header in getopt.h
18785 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18787 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18788 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18790 echo $ECHO_N "(cached
) $ECHO_C" >&6
18792 ac_res=`eval echo '${'$as_ac_Header'}'`
18793 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18794 echo "${ECHO_T}$ac_res" >&6; }
18796 # Is the header compilable?
18797 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18798 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 $ac_includes_default
18806 #include <$ac_header>
18808 rm -f conftest.$ac_objext
18809 if { (ac_try="$ac_compile"
18810 case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_compile") 2>conftest.er1
18817 grep -v '^ *+' conftest.er1 >conftest.err
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18821 (exit $ac_status); } && {
18822 test -z "$ac_c_werror_flag" ||
18823 test ! -s conftest.err
18824 } && test -s conftest.$ac_objext; then
18825 ac_header_compiler=yes
18827 echo "$as_me: failed program was
:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ac_header_compiler=no
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18835 echo "${ECHO_T}$ac_header_compiler" >&6; }
18837 # Is the header present?
18838 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18839 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 #include <$ac_header>
18848 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18860 (exit $ac_status); } >/dev/null && {
18861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18862 test ! -s conftest.err
18864 ac_header_preproc=yes
18866 echo "$as_me: failed program was
:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_header_preproc=no
18872 rm -f conftest.err conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18874 echo "${ECHO_T}$ac_header_preproc" >&6; }
18876 # So? What about this header?
18877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18879 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18880 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18881 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18883 ac_header_preproc=yes
18886 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18887 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18888 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18889 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18890 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18891 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18892 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18893 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18894 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18896 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18897 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18901 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18902 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18904 echo $ECHO_N "(cached
) $ECHO_C" >&6
18906 eval "$as_ac_Header=\
$ac_header_preproc"
18908 ac_res=`eval echo '${'$as_ac_Header'}'`
18909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18910 echo "${ECHO_T}$ac_res" >&6; }
18913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18914 cat >>confdefs.h <<_ACEOF
18915 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18924 if test -z "$GETOPT_H"; then
18926 for ac_func in getopt_long_only
18928 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18929 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18930 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18931 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18932 echo $ECHO_N "(cached
) $ECHO_C" >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18942 #define $ac_func innocuous_$ac_func
18944 /* System header to define __stub macros and hopefully few prototypes,
18945 which can conflict with char $ac_func (); below.
18946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947 <limits.h> exists even on freestanding compilers. */
18950 # include <limits.h>
18952 # include <assert.h>
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined __stub_$ac_func || defined __stub___$ac_func
18974 return $ac_func ();
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_link") 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext &&
18996 $as_test_x conftest$ac_exeext; then
18997 eval "$as_ac_var=yes"
18999 echo "$as_me: failed program was
:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 eval "$as_ac_var=no
"
19005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19006 conftest$ac_exeext conftest.$ac_ext
19008 ac_res=`eval echo '${'$as_ac_var'}'`
19009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19010 echo "${ECHO_T}$ac_res" >&6; }
19011 if test `eval echo '${'$as_ac_var'}'` = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19023 if test -z "$GETOPT_H"; then
19024 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19025 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19026 if test "${ac_cv_have_decl_optreset+set}" = set; then
19027 echo $ECHO_N "(cached
) $ECHO_C" >&6
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 #include <getopt.h>
19048 rm -f conftest.$ac_objext
19049 if { (ac_try="$ac_compile"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_compile") 2>conftest.er1
19057 grep -v '^ *+' conftest.er1 >conftest.err
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest.$ac_objext; then
19065 ac_cv_have_decl_optreset=yes
19067 echo "$as_me: failed program was
:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_have_decl_optreset=no
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19076 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19077 if test $ac_cv_have_decl_optreset = yes; then
19083 if test -z "$GETOPT_H"; then
19084 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19085 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19086 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19087 echo $ECHO_N "(cached
) $ECHO_C" >&6
19089 if test "$cross_compiling" = yes; then
19090 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19091 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19092 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19093 echo $ECHO_N "(cached
) $ECHO_C" >&6
19095 cat >conftest.$ac_ext <<_ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <getopt.h>
19106 #ifndef getopt_clip
19107 (void) getopt_clip;
19114 rm -f conftest.$ac_objext
19115 if { (ac_try="$ac_compile"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_compile") 2>conftest.er1
19123 grep -v '^ *+' conftest.er1 >conftest.err
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19127 (exit $ac_status); } && {
19128 test -z "$ac_c_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest.$ac_objext; then
19131 ac_cv_have_decl_getopt_clip=yes
19133 echo "$as_me: failed program was
:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_cv_have_decl_getopt_clip=no
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19142 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19143 if test $ac_cv_have_decl_getopt_clip = yes; then
19144 gl_cv_func_gnu_getopt=no
19146 gl_cv_func_gnu_getopt=yes
19150 cat >conftest.$ac_ext <<_ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #include <getopt.h>
19162 myargv[0] = "conftest
";
19165 return getopt (2, myargv, "+a
") != '?';
19171 rm -f conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>&5
19180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 gl_cv_func_gnu_getopt=yes
19193 echo "$as_me: program exited with status
$ac_status" >&5
19194 echo "$as_me: failed program was
:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ( exit $ac_status )
19198 gl_cv_func_gnu_getopt=no
19200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19205 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19206 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19207 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19214 if test -n "$GETOPT_H"; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define __GETOPT_PREFIX rpl_
19226 GETOPTOBJS='getopt.o getopt1.o'
19233 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19234 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19235 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19236 echo $ECHO_N "(cached
) $ECHO_C" >&6
19238 # Use it with a single arg.
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_cv_func_getpgrp_void=no
19273 echo "$as_me: failed program was
:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_func_getpgrp_void=yes
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19283 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19284 if test $ac_cv_func_getpgrp_void = yes; then
19286 cat >>confdefs.h <<\_ACEOF
19287 #define GETPGRP_VOID 1
19294 for ac_func in strftime
19296 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19297 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19298 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19299 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19300 echo $ECHO_N "(cached
) $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19310 #define $ac_func innocuous_$ac_func
19312 /* System header to define __stub macros and hopefully few prototypes,
19313 which can conflict with char $ac_func (); below.
19314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19315 <limits.h> exists even on freestanding compilers. */
19318 # include <limits.h>
19320 # include <assert.h>
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19332 /* The GNU C library defines this for functions which it implements
19333 to always fail with ENOSYS. Some functions are actually named
19334 something starting with __ and the normal name is an alias. */
19335 #if defined __stub_$ac_func || defined __stub___$ac_func
19342 return $ac_func ();
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19356 grep -v '^ *+' conftest.er1 >conftest.err
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19360 (exit $ac_status); } && {
19361 test -z "$ac_c_werror_flag" ||
19362 test ! -s conftest.err
19363 } && test -s conftest$ac_exeext &&
19364 $as_test_x conftest$ac_exeext; then
19365 eval "$as_ac_var=yes"
19367 echo "$as_me: failed program was
:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 eval "$as_ac_var=no
"
19373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19374 conftest$ac_exeext conftest.$ac_ext
19376 ac_res=`eval echo '${'$as_ac_var'}'`
19377 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19378 echo "${ECHO_T}$ac_res" >&6; }
19379 if test `eval echo '${'$as_ac_var'}'` = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19385 # strftime is in -lintl on SCO UNIX.
19386 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19387 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19388 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19389 echo $ECHO_N "(cached
) $ECHO_C" >&6
19391 ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lintl $LIBS"
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19410 return strftime ();
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_link") 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19428 (exit $ac_status); } && {
19429 test -z "$ac_c_werror_flag" ||
19430 test ! -s conftest.err
19431 } && test -s conftest$ac_exeext &&
19432 $as_test_x conftest$ac_exeext; then
19433 ac_cv_lib_intl_strftime=yes
19435 echo "$as_me: failed program was
:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_cv_lib_intl_strftime=no
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19446 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19447 if test $ac_cv_lib_intl_strftime = yes; then
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_STRFTIME 1
19452 LIBS="-lintl $LIBS"
19461 for ac_func in grantpt
19463 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19464 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19465 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19466 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19467 echo $ECHO_N "(cached
) $ECHO_C" >&6
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19477 #define $ac_func innocuous_$ac_func
19479 /* System header to define __stub macros and hopefully few prototypes,
19480 which can conflict with char $ac_func (); below.
19481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19482 <limits.h> exists even on freestanding compilers. */
19485 # include <limits.h>
19487 # include <assert.h>
19492 /* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
19499 /* The GNU C library defines this for functions which it implements
19500 to always fail with ENOSYS. Some functions are actually named
19501 something starting with __ and the normal name is an alias. */
19502 #if defined __stub_$ac_func || defined __stub___$ac_func
19509 return $ac_func ();
19514 rm -f conftest.$ac_objext conftest$ac_exeext
19515 if { (ac_try="$ac_link"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_link") 2>conftest.er1
19523 grep -v '^ *+' conftest.er1 >conftest.err
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest$ac_exeext &&
19531 $as_test_x conftest$ac_exeext; then
19532 eval "$as_ac_var=yes"
19534 echo "$as_me: failed program was
:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 eval "$as_ac_var=no
"
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19543 ac_res=`eval echo '${'$as_ac_var'}'`
19544 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19545 echo "${ECHO_T}$ac_res" >&6; }
19546 if test `eval echo '${'$as_ac_var'}'` = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19555 # PTY-related GNU extensions.
19557 for ac_func in getpt
19559 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19560 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19561 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19562 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19563 echo $ECHO_N "(cached
) $ECHO_C" >&6
19565 cat >conftest.$ac_ext <<_ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19573 #define $ac_func innocuous_$ac_func
19575 /* System header to define __stub macros and hopefully few prototypes,
19576 which can conflict with char $ac_func (); below.
19577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19578 <limits.h> exists even on freestanding compilers. */
19581 # include <limits.h>
19583 # include <assert.h>
19588 /* Override any GCC internal prototype to avoid an error.
19589 Use char because int might match the return type of a GCC
19590 builtin and then its argument prototype would still apply. */
19595 /* The GNU C library defines this for functions which it implements
19596 to always fail with ENOSYS. Some functions are actually named
19597 something starting with __ and the normal name is an alias. */
19598 #if defined __stub_$ac_func || defined __stub___$ac_func
19605 return $ac_func ();
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (ac_try="$ac_link"
19612 case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest$ac_exeext &&
19627 $as_test_x conftest$ac_exeext; then
19628 eval "$as_ac_var=yes"
19630 echo "$as_me: failed program was
:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 eval "$as_ac_var=no
"
19636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637 conftest$ac_exeext conftest.$ac_ext
19639 ac_res=`eval echo '${'$as_ac_var'}'`
19640 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19641 echo "${ECHO_T}$ac_res" >&6; }
19642 if test `eval echo '${'$as_ac_var'}'` = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19651 # Check this now, so that we will NOT find the above functions in ncurses.
19652 # That is because we have not set up to link ncurses in lib-src.
19653 # It's better to believe a function is not available
19654 # than to expect to find it in ncurses.
19656 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19657 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19658 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19659 echo $ECHO_N "(cached
) $ECHO_C" >&6
19661 ac_check_lib_save_LIBS=$LIBS
19662 LIBS="-lncurses $LIBS"
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19685 rm -f conftest.$ac_objext conftest$ac_exeext
19686 if { (ac_try="$ac_link"
19687 case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_link") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext &&
19702 $as_test_x conftest$ac_exeext; then
19703 ac_cv_lib_ncurses_tparm=yes
19705 echo "$as_me: failed program was
:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_lib_ncurses_tparm=no
19711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19712 conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19715 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19716 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19717 if test $ac_cv_lib_ncurses_tparm = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_LIBNCURSES 1
19722 LIBS="-lncurses $LIBS"
19727 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 #include <netinet/in.h>
19737 #include <arpa/nameser.h>
19738 #include <resolv.h>
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_link") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19760 (exit $ac_status); } && {
19761 test -z "$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 } && test -s conftest$ac_exeext &&
19764 $as_test_x conftest$ac_exeext; then
19767 echo "$as_me: failed program was
:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774 conftest$ac_exeext conftest.$ac_ext
19775 if test "$have_res_init" = no; then
19777 LIBS="$LIBS -lresolv"
19778 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19779 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 #include <netinet/in.h>
19787 #include <arpa/nameser.h>
19788 #include <resolv.h>
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (ac_try="$ac_link"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_link") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19810 (exit $ac_status); } && {
19811 test -z "$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 } && test -s conftest$ac_exeext &&
19814 $as_test_x conftest$ac_exeext; then
19817 echo "$as_me: failed program was
:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19824 conftest$ac_exeext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19826 echo "${ECHO_T}$have_res_init" >&6; }
19827 if test "$have_res_init" = yes ; then
19833 if test "$have_res_init" = yes; then
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE_RES_INIT 1
19841 # Do we need the Hesiod library to provide the support routines?
19842 if test "$with_hesiod" = yes ; then
19843 # Don't set $LIBS here -- see comments above.
19844 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19845 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19846 if test "${ac_cv_func_res_send+set}" = set; then
19847 echo $ECHO_N "(cached
) $ECHO_C" >&6
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19857 #define res_send innocuous_res_send
19859 /* System header to define __stub macros and hopefully few prototypes,
19860 which can conflict with char res_send (); below.
19861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19862 <limits.h> exists even on freestanding compilers. */
19865 # include <limits.h>
19867 # include <assert.h>
19872 /* Override any GCC internal prototype to avoid an error.
19873 Use char because int might match the return type of a GCC
19874 builtin and then its argument prototype would still apply. */
19879 /* The GNU C library defines this for functions which it implements
19880 to always fail with ENOSYS. Some functions are actually named
19881 something starting with __ and the normal name is an alias. */
19882 #if defined __stub_res_send || defined __stub___res_send
19889 return res_send ();
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_link") 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest$ac_exeext &&
19911 $as_test_x conftest$ac_exeext; then
19912 ac_cv_func_res_send=yes
19914 echo "$as_me: failed program was
:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_func_res_send=no
19920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19921 conftest$ac_exeext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19924 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19925 if test $ac_cv_func_res_send = yes; then
19928 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19929 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19930 if test "${ac_cv_func___res_send+set}" = set; then
19931 echo $ECHO_N "(cached
) $ECHO_C" >&6
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define __res_send innocuous___res_send
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char __res_send (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19949 # include <limits.h>
19951 # include <assert.h>
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19962 char __res_send ();
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub___res_send || defined __stub_____res_send
19973 return __res_send ();
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_link") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest$ac_exeext &&
19995 $as_test_x conftest$ac_exeext; then
19996 ac_cv_func___res_send=yes
19998 echo "$as_me: failed program was
:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_func___res_send=no
20004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005 conftest$ac_exeext conftest.$ac_ext
20007 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20008 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20009 if test $ac_cv_func___res_send = yes; then
20012 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20013 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20014 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20015 echo $ECHO_N "(cached
) $ECHO_C" >&6
20017 ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lresolv $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20036 return res_send ();
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
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_link") 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); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 ac_cv_lib_resolv_res_send=yes
20061 echo "$as_me: failed program was
:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_cv_lib_resolv_res_send=no
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20069 LIBS=$ac_check_lib_save_LIBS
20071 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20072 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20073 if test $ac_cv_lib_resolv_res_send = yes; then
20076 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20077 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20078 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20079 echo $ECHO_N "(cached
) $ECHO_C" >&6
20081 ac_check_lib_save_LIBS=$LIBS
20082 LIBS="-lresolv $LIBS"
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20090 /* Override any GCC internal prototype to avoid an error.
20091 Use char because int might match the return type of a GCC
20092 builtin and then its argument prototype would still apply. */
20096 char __res_send ();
20100 return __res_send ();
20105 rm -f conftest.$ac_objext conftest$ac_exeext
20106 if { (ac_try="$ac_link"
20107 case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_link") 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest$ac_exeext &&
20122 $as_test_x conftest$ac_exeext; then
20123 ac_cv_lib_resolv___res_send=yes
20125 echo "$as_me: failed program was
:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 ac_cv_lib_resolv___res_send=no
20131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20132 conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20135 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20136 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20137 if test $ac_cv_lib_resolv___res_send = yes; then
20147 if test "$resolv" = yes ; then
20152 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20153 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20154 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20155 echo $ECHO_N "(cached
) $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20165 #define hes_getmailhost innocuous_hes_getmailhost
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char hes_getmailhost (); below.
20169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20170 <limits.h> exists even on freestanding compilers. */
20173 # include <limits.h>
20175 # include <assert.h>
20178 #undef hes_getmailhost
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20186 char hes_getmailhost ();
20187 /* The GNU C library defines this for functions which it implements
20188 to always fail with ENOSYS. Some functions are actually named
20189 something starting with __ and the normal name is an alias. */
20190 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20197 return hes_getmailhost ();
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (ac_try="$ac_link"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext &&
20219 $as_test_x conftest$ac_exeext; then
20220 ac_cv_func_hes_getmailhost=yes
20222 echo "$as_me: failed program was
:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_func_hes_getmailhost=no
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20231 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20232 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20233 if test $ac_cv_func_hes_getmailhost = yes; then
20236 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20237 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20238 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20239 echo $ECHO_N "(cached
) $ECHO_C" >&6
20241 ac_check_lib_save_LIBS=$LIBS
20242 LIBS="-lhesiod $RESOLVLIB $LIBS"
20243 cat >conftest.$ac_ext <<_ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20250 /* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20256 char hes_getmailhost ();
20260 return hes_getmailhost ();
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_link") 2>conftest.er1
20274 grep -v '^ *+' conftest.er1 >conftest.err
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20278 (exit $ac_status); } && {
20279 test -z "$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 } && test -s conftest$ac_exeext &&
20282 $as_test_x conftest$ac_exeext; then
20283 ac_cv_lib_hesiod_hes_getmailhost=yes
20285 echo "$as_me: failed program was
:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_lib_hesiod_hes_getmailhost=no
20291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20292 conftest$ac_exeext conftest.$ac_ext
20293 LIBS=$ac_check_lib_save_LIBS
20295 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20296 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20297 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_LIBHESIOD 1
20311 # Do we need libresolv (due to res_init or Hesiod)?
20312 if test "$resolv" = yes ; then
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE_LIBRESOLV 1
20320 # These tell us which Kerberos-related libraries to use.
20321 if test "${with_kerberos+set}" = set; then
20323 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20324 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20325 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20326 echo $ECHO_N "(cached
) $ECHO_C" >&6
20328 ac_check_lib_save_LIBS=$LIBS
20329 LIBS="-lcom_err $LIBS"
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 /* Override any GCC internal prototype to avoid an error.
20338 Use char because int might match the return type of a GCC
20339 builtin and then its argument prototype would still apply. */
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (ac_try="$ac_link"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_link") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext &&
20369 $as_test_x conftest$ac_exeext; then
20370 ac_cv_lib_com_err_com_err=yes
20372 echo "$as_me: failed program was
:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_cv_lib_com_err_com_err=no
20378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20379 conftest$ac_exeext conftest.$ac_ext
20380 LIBS=$ac_check_lib_save_LIBS
20382 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20383 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20384 if test $ac_cv_lib_com_err_com_err = yes; then
20385 cat >>confdefs.h <<_ACEOF
20386 #define HAVE_LIBCOM_ERR 1
20389 LIBS="-lcom_err $LIBS"
20394 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20395 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20396 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20397 echo $ECHO_N "(cached
) $ECHO_C" >&6
20399 ac_check_lib_save_LIBS=$LIBS
20400 LIBS="-lk5crypto $LIBS"
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20408 /* Override any GCC internal prototype to avoid an error.
20409 Use char because int might match the return type of a GCC
20410 builtin and then its argument prototype would still apply. */
20414 char mit_des_cbc_encrypt ();
20418 return mit_des_cbc_encrypt ();
20423 rm -f conftest.$ac_objext conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest$ac_exeext &&
20440 $as_test_x conftest$ac_exeext; then
20441 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20443 echo "$as_me: failed program was
:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20450 conftest$ac_exeext conftest.$ac_ext
20451 LIBS=$ac_check_lib_save_LIBS
20453 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20454 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20455 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_LIBK5CRYPTO 1
20460 LIBS="-lk5crypto $LIBS"
20465 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20466 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20467 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20468 echo $ECHO_N "(cached
) $ECHO_C" >&6
20470 ac_check_lib_save_LIBS=$LIBS
20471 LIBS="-lcrypto $LIBS"
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20479 /* Override any GCC internal prototype to avoid an error.
20480 Use char because int might match the return type of a GCC
20481 builtin and then its argument prototype would still apply. */
20485 char mit_des_cbc_encrypt ();
20489 return mit_des_cbc_encrypt ();
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest$ac_exeext &&
20511 $as_test_x conftest$ac_exeext; then
20512 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20514 echo "$as_me: failed program was
:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20524 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20525 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20526 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20527 cat >>confdefs.h <<_ACEOF
20528 #define HAVE_LIBCRYPTO 1
20531 LIBS="-lcrypto $LIBS"
20536 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20537 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20538 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20539 echo $ECHO_N "(cached
) $ECHO_C" >&6
20541 ac_check_lib_save_LIBS=$LIBS
20542 LIBS="-lkrb5 $LIBS"
20543 cat >conftest.$ac_ext <<_ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20550 /* Override any GCC internal prototype to avoid an error.
20551 Use char because int might match the return type of a GCC
20552 builtin and then its argument prototype would still apply. */
20556 char krb5_init_context ();
20560 return krb5_init_context ();
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
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_link") 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_exeext &&
20582 $as_test_x conftest$ac_exeext; then
20583 ac_cv_lib_krb5_krb5_init_context=yes
20585 echo "$as_me: failed program was
:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_lib_krb5_krb5_init_context=no
20591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20592 conftest$ac_exeext conftest.$ac_ext
20593 LIBS=$ac_check_lib_save_LIBS
20595 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20596 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20597 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define HAVE_LIBKRB5 1
20602 LIBS="-lkrb5 $LIBS"
20606 if test "${with_kerberos5+set}" != set; then
20608 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20609 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20610 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20611 echo $ECHO_N "(cached
) $ECHO_C" >&6
20613 ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-ldes425 $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20628 char des_cbc_encrypt ();
20632 return des_cbc_encrypt ();
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest$ac_exeext &&
20654 $as_test_x conftest$ac_exeext; then
20655 ac_cv_lib_des425_des_cbc_encrypt=yes
20657 echo "$as_me: failed program was
:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_lib_des425_des_cbc_encrypt=no
20663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20664 conftest$ac_exeext conftest.$ac_ext
20665 LIBS=$ac_check_lib_save_LIBS
20667 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20668 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20669 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_LIBDES425 1
20674 LIBS="-ldes425 $LIBS"
20678 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20679 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20680 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20681 echo $ECHO_N "(cached
) $ECHO_C" >&6
20683 ac_check_lib_save_LIBS=$LIBS
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20692 /* Override any GCC internal prototype to avoid an error.
20693 Use char because int might match the return type of a GCC
20694 builtin and then its argument prototype would still apply. */
20698 char des_cbc_encrypt ();
20702 return des_cbc_encrypt ();
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_link") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest$ac_exeext &&
20724 $as_test_x conftest$ac_exeext; then
20725 ac_cv_lib_des_des_cbc_encrypt=yes
20727 echo "$as_me: failed program was
:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_cv_lib_des_des_cbc_encrypt=no
20733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20734 conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20737 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20738 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20739 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define HAVE_LIBDES 1
20751 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20752 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20753 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20754 echo $ECHO_N "(cached
) $ECHO_C" >&6
20756 ac_check_lib_save_LIBS=$LIBS
20757 LIBS="-lkrb4 $LIBS"
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20765 /* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
20771 char krb_get_cred ();
20775 return krb_get_cred ();
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (ac_try="$ac_link"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_link") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext &&
20797 $as_test_x conftest$ac_exeext; then
20798 ac_cv_lib_krb4_krb_get_cred=yes
20800 echo "$as_me: failed program was
:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_cv_lib_krb4_krb_get_cred=no
20806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20810 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20811 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20812 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_LIBKRB4 1
20817 LIBS="-lkrb4 $LIBS"
20821 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20822 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20823 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20824 echo $ECHO_N "(cached
) $ECHO_C" >&6
20826 ac_check_lib_save_LIBS=$LIBS
20828 cat >conftest.$ac_ext <<_ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20835 /* Override any GCC internal prototype to avoid an error.
20836 Use char because int might match the return type of a GCC
20837 builtin and then its argument prototype would still apply. */
20841 char krb_get_cred ();
20845 return krb_get_cred ();
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_link") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest$ac_exeext &&
20867 $as_test_x conftest$ac_exeext; then
20868 ac_cv_lib_krb_krb_get_cred=yes
20870 echo "$as_me: failed program was
:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_lib_krb_krb_get_cred=no
20876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20877 conftest$ac_exeext conftest.$ac_ext
20878 LIBS=$ac_check_lib_save_LIBS
20880 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20881 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20882 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20883 cat >>confdefs.h <<_ACEOF
20884 #define HAVE_LIBKRB 1
20895 if test "${with_kerberos5+set}" = set; then
20897 for ac_header in krb5.h
20899 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20900 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20901 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20902 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20904 echo $ECHO_N "(cached
) $ECHO_C" >&6
20906 ac_res=`eval echo '${'$as_ac_Header'}'`
20907 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20908 echo "${ECHO_T}$ac_res" >&6; }
20910 # Is the header compilable?
20911 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20912 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 #include <$ac_header>
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20931 grep -v '^ *+' conftest.er1 >conftest.err
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_header_compiler=yes
20941 echo "$as_me: failed program was
:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_header_compiler=no
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20949 echo "${ECHO_T}$ac_header_compiler" >&6; }
20951 # Is the header present?
20952 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20953 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20954 cat >conftest.$ac_ext <<_ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <$ac_header>
20962 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20970 grep -v '^ *+' conftest.er1 >conftest.err
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20974 (exit $ac_status); } >/dev/null && {
20975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20978 ac_header_preproc=yes
20980 echo "$as_me: failed program was
:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_preproc=no
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20990 # So? What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20993 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20994 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20995 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20997 ac_header_preproc=yes
21000 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21001 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21002 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21003 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21004 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21005 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21006 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21007 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21008 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21010 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21011 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21015 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21016 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21018 echo $ECHO_N "(cached
) $ECHO_C" >&6
21020 eval "$as_ac_Header=\
$ac_header_preproc"
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21038 for ac_header in des.h
21040 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21041 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21042 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21043 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21045 echo $ECHO_N "(cached
) $ECHO_C" >&6
21047 ac_res=`eval echo '${'$as_ac_Header'}'`
21048 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21049 echo "${ECHO_T}$ac_res" >&6; }
21051 # Is the header compilable?
21052 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21053 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21061 #include <$ac_header>
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21076 (exit $ac_status); } && {
21077 test -z "$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 } && test -s conftest.$ac_objext; then
21080 ac_header_compiler=yes
21082 echo "$as_me: failed program was
:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_header_compiler=no
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21090 echo "${ECHO_T}$ac_header_compiler" >&6; }
21092 # Is the header present?
21093 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21094 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 #include <$ac_header>
21103 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21111 grep -v '^ *+' conftest.er1 >conftest.err
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21115 (exit $ac_status); } >/dev/null && {
21116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21117 test ! -s conftest.err
21119 ac_header_preproc=yes
21121 echo "$as_me: failed program was
:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_header_preproc=no
21127 rm -f conftest.err conftest.$ac_ext
21128 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21129 echo "${ECHO_T}$ac_header_preproc" >&6; }
21131 # So? What about this header?
21132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21134 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21135 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21136 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21138 ac_header_preproc=yes
21141 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21142 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21143 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21144 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21145 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21146 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21147 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21148 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21149 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21151 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21152 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21156 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21157 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21158 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21159 echo $ECHO_N "(cached
) $ECHO_C" >&6
21161 eval "$as_ac_Header=\
$ac_header_preproc"
21163 ac_res=`eval echo '${'$as_ac_Header'}'`
21164 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21165 echo "${ECHO_T}$ac_res" >&6; }
21168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21175 for ac_header in kerberosIV/des.h
21177 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21178 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21179 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21180 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached
) $ECHO_C" >&6
21184 ac_res=`eval echo '${'$as_ac_Header'}'`
21185 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21188 # Is the header compilable?
21189 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21190 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 $ac_includes_default
21198 #include <$ac_header>
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_compile") 2>conftest.er1
21209 grep -v '^ *+' conftest.er1 >conftest.err
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21213 (exit $ac_status); } && {
21214 test -z "$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 } && test -s conftest.$ac_objext; then
21217 ac_header_compiler=yes
21219 echo "$as_me: failed program was
:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_header_compiler=no
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21227 echo "${ECHO_T}$ac_header_compiler" >&6; }
21229 # Is the header present?
21230 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21231 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <$ac_header>
21240 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21248 grep -v '^ *+' conftest.er1 >conftest.err
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21252 (exit $ac_status); } >/dev/null && {
21253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21256 ac_header_preproc=yes
21258 echo "$as_me: failed program was
:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ac_header_preproc=no
21264 rm -f conftest.err conftest.$ac_ext
21265 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21266 echo "${ECHO_T}$ac_header_preproc" >&6; }
21268 # So? What about this header?
21269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21271 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21272 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21273 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21275 ac_header_preproc=yes
21278 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21279 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21280 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21281 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21282 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21283 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21284 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21285 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21286 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21288 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21289 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21293 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21294 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21295 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21296 echo $ECHO_N "(cached
) $ECHO_C" >&6
21298 eval "$as_ac_Header=\
$ac_header_preproc"
21300 ac_res=`eval echo '${'$as_ac_Header'}'`
21301 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21306 cat >>confdefs.h <<_ACEOF
21307 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21312 for ac_header in kerberos/des.h
21314 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21316 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21317 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21318 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21319 echo $ECHO_N "(cached
) $ECHO_C" >&6
21321 ac_res=`eval echo '${'$as_ac_Header'}'`
21322 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21323 echo "${ECHO_T}$ac_res" >&6; }
21325 # Is the header compilable?
21326 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21327 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21335 #include <$ac_header>
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest.$ac_objext; then
21354 ac_header_compiler=yes
21356 echo "$as_me: failed program was
:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_compiler=no
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21364 echo "${ECHO_T}$ac_header_compiler" >&6; }
21366 # Is the header present?
21367 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21368 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21369 cat >conftest.$ac_ext <<_ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 #include <$ac_header>
21377 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21389 (exit $ac_status); } >/dev/null && {
21390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21393 ac_header_preproc=yes
21395 echo "$as_me: failed program was
:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ac_header_preproc=no
21401 rm -f conftest.err conftest.$ac_ext
21402 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21403 echo "${ECHO_T}$ac_header_preproc" >&6; }
21405 # So? What about this header?
21406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21408 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21409 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21410 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21412 ac_header_preproc=yes
21415 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21416 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21417 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21418 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21419 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21420 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21421 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21422 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21423 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21425 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21426 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21430 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21431 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21433 echo $ECHO_N "(cached
) $ECHO_C" >&6
21435 eval "$as_ac_Header=\
$ac_header_preproc"
21437 ac_res=`eval echo '${'$as_ac_Header'}'`
21438 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21443 cat >>confdefs.h <<_ACEOF
21444 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21460 for ac_header in krb.h
21462 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21463 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21464 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21465 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21466 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21467 echo $ECHO_N "(cached
) $ECHO_C" >&6
21469 ac_res=`eval echo '${'$as_ac_Header'}'`
21470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21473 # Is the header compilable?
21474 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21475 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 #include <$ac_header>
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21504 echo "$as_me: failed program was
:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_compiler=no
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21512 echo "${ECHO_T}$ac_header_compiler" >&6; }
21514 # Is the header present?
21515 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21516 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <$ac_header>
21525 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21537 (exit $ac_status); } >/dev/null && {
21538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21541 ac_header_preproc=yes
21543 echo "$as_me: failed program was
:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_preproc=no
21549 rm -f conftest.err conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21551 echo "${ECHO_T}$ac_header_preproc" >&6; }
21553 # So? What about this header?
21554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21556 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21557 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21558 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21560 ac_header_preproc=yes
21563 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21564 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21565 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21566 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21567 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21568 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21569 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21570 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21571 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21573 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21574 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21578 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21579 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21580 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21581 echo $ECHO_N "(cached
) $ECHO_C" >&6
21583 eval "$as_ac_Header=\
$ac_header_preproc"
21585 ac_res=`eval echo '${'$as_ac_Header'}'`
21586 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21587 echo "${ECHO_T}$ac_res" >&6; }
21590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21591 cat >>confdefs.h <<_ACEOF
21592 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21597 for ac_header in kerberosIV/krb.h
21599 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21600 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21601 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21602 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21603 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21604 echo $ECHO_N "(cached
) $ECHO_C" >&6
21606 ac_res=`eval echo '${'$as_ac_Header'}'`
21607 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21608 echo "${ECHO_T}$ac_res" >&6; }
21610 # Is the header compilable?
21611 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21612 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21613 cat >conftest.$ac_ext <<_ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 $ac_includes_default
21620 #include <$ac_header>
21622 rm -f conftest.$ac_objext
21623 if { (ac_try="$ac_compile"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_compile") 2>conftest.er1
21631 grep -v '^ *+' conftest.er1 >conftest.err
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21635 (exit $ac_status); } && {
21636 test -z "$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 } && test -s conftest.$ac_objext; then
21639 ac_header_compiler=yes
21641 echo "$as_me: failed program was
:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_header_compiler=no
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21649 echo "${ECHO_T}$ac_header_compiler" >&6; }
21651 # Is the header present?
21652 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21653 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <$ac_header>
21662 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21674 (exit $ac_status); } >/dev/null && {
21675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21678 ac_header_preproc=yes
21680 echo "$as_me: failed program was
:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_header_preproc=no
21686 rm -f conftest.err conftest.$ac_ext
21687 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21688 echo "${ECHO_T}$ac_header_preproc" >&6; }
21690 # So? What about this header?
21691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21693 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21694 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21695 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21697 ac_header_preproc=yes
21700 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21701 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21702 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21703 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21704 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21705 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21706 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21707 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21708 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21710 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21711 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21715 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21716 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21717 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21718 echo $ECHO_N "(cached
) $ECHO_C" >&6
21720 eval "$as_ac_Header=\
$ac_header_preproc"
21722 ac_res=`eval echo '${'$as_ac_Header'}'`
21723 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21724 echo "${ECHO_T}$ac_res" >&6; }
21727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21734 for ac_header in kerberos/krb.h
21736 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21737 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21738 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21739 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21740 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21741 echo $ECHO_N "(cached
) $ECHO_C" >&6
21743 ac_res=`eval echo '${'$as_ac_Header'}'`
21744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21745 echo "${ECHO_T}$ac_res" >&6; }
21747 # Is the header compilable?
21748 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21749 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21750 cat >conftest.$ac_ext <<_ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 $ac_includes_default
21757 #include <$ac_header>
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21776 ac_header_compiler=yes
21778 echo "$as_me: failed program was
:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_header_compiler=no
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21786 echo "${ECHO_T}$ac_header_compiler" >&6; }
21788 # Is the header present?
21789 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21790 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797 #include <$ac_header>
21799 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21811 (exit $ac_status); } >/dev/null && {
21812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21815 ac_header_preproc=yes
21817 echo "$as_me: failed program was
:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_header_preproc=no
21823 rm -f conftest.err conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6; }
21827 # So? What about this header?
21828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21830 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21831 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21832 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21834 ac_header_preproc=yes
21837 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21838 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21839 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21840 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21841 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21842 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21843 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21844 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21845 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21847 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21848 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21852 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21853 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21855 echo $ECHO_N "(cached
) $ECHO_C" >&6
21857 eval "$as_ac_Header=\
$ac_header_preproc"
21859 ac_res=`eval echo '${'$as_ac_Header'}'`
21860 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21861 echo "${ECHO_T}$ac_res" >&6; }
21864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21865 cat >>confdefs.h <<_ACEOF
21866 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21883 for ac_header in com_err.h
21885 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21886 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21887 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21888 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21890 echo $ECHO_N "(cached
) $ECHO_C" >&6
21892 ac_res=`eval echo '${'$as_ac_Header'}'`
21893 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21894 echo "${ECHO_T}$ac_res" >&6; }
21896 # Is the header compilable?
21897 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21898 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21899 cat >conftest.$ac_ext <<_ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21906 #include <$ac_header>
21908 rm -f conftest.$ac_objext
21909 if { (ac_try="$ac_compile"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_compile") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest.$ac_objext; then
21925 ac_header_compiler=yes
21927 echo "$as_me: failed program was
:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_header_compiler=no
21933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21935 echo "${ECHO_T}$ac_header_compiler" >&6; }
21937 # Is the header present?
21938 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21939 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21940 cat >conftest.$ac_ext <<_ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 #include <$ac_header>
21948 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21956 grep -v '^ *+' conftest.er1 >conftest.err
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21960 (exit $ac_status); } >/dev/null && {
21961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21964 ac_header_preproc=yes
21966 echo "$as_me: failed program was
:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ac_header_preproc=no
21972 rm -f conftest.err conftest.$ac_ext
21973 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21974 echo "${ECHO_T}$ac_header_preproc" >&6; }
21976 # So? What about this header?
21977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21979 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21980 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21981 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21983 ac_header_preproc=yes
21986 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21987 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21988 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21989 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21990 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21991 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21992 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21993 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21994 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21996 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21997 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22001 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22002 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22004 echo $ECHO_N "(cached
) $ECHO_C" >&6
22006 eval "$as_ac_Header=\
$ac_header_preproc"
22008 ac_res=`eval echo '${'$as_ac_Header'}'`
22009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22010 echo "${ECHO_T}$ac_res" >&6; }
22013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22024 # Solaris requires -lintl if you want strerror (which calls dgettext)
22025 # to return localized messages.
22027 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22028 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22029 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22030 echo $ECHO_N "(cached
) $ECHO_C" >&6
22032 ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lintl $LIBS"
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22041 /* Override any GCC internal prototype to avoid an error.
22042 Use char because int might match the return type of a GCC
22043 builtin and then its argument prototype would still apply. */
22051 return dgettext ();
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (ac_try="$ac_link"
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_link") 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_exeext &&
22073 $as_test_x conftest$ac_exeext; then
22074 ac_cv_lib_intl_dgettext=yes
22076 echo "$as_me: failed program was
:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_cv_lib_intl_dgettext=no
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084 LIBS=$ac_check_lib_save_LIBS
22086 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22087 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22088 if test $ac_cv_lib_intl_dgettext = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090 #define HAVE_LIBINTL 1
22093 LIBS="-lintl $LIBS"
22098 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22099 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22100 if test "${emacs_cv_localtime_cache+set}" = set; then
22101 echo $ECHO_N "(cached
) $ECHO_C" >&6
22103 if test x$ac_cv_func_tzset = xyes; then
22104 if test "$cross_compiling" = yes; then
22105 # If we have tzset, assume the worst when cross-compiling.
22106 emacs_cv_localtime_cache=yes
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22115 extern char **environ;
22119 for (to = from = environ; (*to = *from); from++)
22120 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22123 char TZ_GMT0[] = "TZ
=GMT0
";
22124 char TZ_PST8[] = "TZ
=PST8
";
22127 time_t now = time ((time_t *) 0);
22128 int hour_GMT0, hour_unset;
22129 if (putenv (TZ_GMT0) != 0)
22131 hour_GMT0 = localtime (&now)->tm_hour;
22133 hour_unset = localtime (&now)->tm_hour;
22134 if (putenv (TZ_PST8) != 0)
22136 if (localtime (&now)->tm_hour == hour_GMT0)
22139 if (localtime (&now)->tm_hour != hour_unset)
22144 rm -f conftest$ac_exeext
22145 if { (ac_try="$ac_link"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_link") 2>&5
22153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22155 { (case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_try") 2>&5
22162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 emacs_cv_localtime_cache=no
22166 echo "$as_me: program exited with status
$ac_status" >&5
22167 echo "$as_me: failed program was
:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22170 ( exit $ac_status )
22171 emacs_cv_localtime_cache=yes
22173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22178 # If we lack tzset, report that localtime does not cache TZ,
22179 # since we can't invalidate the cache if we don't have tzset.
22180 emacs_cv_localtime_cache=no
22183 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22184 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22185 if test $emacs_cv_localtime_cache = yes; then
22187 cat >>confdefs.h <<\_ACEOF
22188 #define LOCALTIME_CACHE 1
22193 if test "x
$HAVE_TIMEVAL" = xyes; then
22195 for ac_func in gettimeofday
22197 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22198 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22199 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22200 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached
) $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22211 #define $ac_func innocuous_$ac_func
22213 /* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22219 # include <limits.h>
22221 # include <assert.h>
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined __stub_$ac_func || defined __stub___$ac_func
22243 return $ac_func ();
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (ac_try="$ac_link"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest$ac_exeext &&
22265 $as_test_x conftest$ac_exeext; then
22266 eval "$as_ac_var=yes"
22268 echo "$as_me: failed program was
:" >&5
22269 sed 's/^/| /' conftest.$ac_ext >&5
22271 eval "$as_ac_var=no
"
22274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22275 conftest$ac_exeext conftest.$ac_ext
22277 ac_res=`eval echo '${'$as_ac_var'}'`
22278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22279 echo "${ECHO_T}$ac_res" >&6; }
22280 if test `eval echo '${'$as_ac_var'}'` = yes; then
22281 cat >>confdefs.h <<_ACEOF
22282 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22288 if test $ac_cv_func_gettimeofday = yes; then
22289 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22290 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22291 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22292 echo $ECHO_N "(cached
) $ECHO_C" >&6
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22301 #ifdef TIME_WITH_SYS_TIME
22302 #include <sys/time.h>
22305 #ifdef HAVE_SYS_TIME_H
22306 #include <sys/time.h>
22314 struct timeval time;
22315 gettimeofday (&time, 0);
22320 rm -f conftest.$ac_objext
22321 if { (ac_try="$ac_compile"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_compile") 2>conftest.er1
22329 grep -v '^ *+' conftest.er1 >conftest.err
22331 cat conftest.err >&5
22332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22333 (exit $ac_status); } && {
22334 test -z "$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 } && test -s conftest.$ac_objext; then
22337 emacs_cv_gettimeofday_two_arguments=yes
22339 echo "$as_me: failed program was
:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22342 emacs_cv_gettimeofday_two_arguments=no
22345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22348 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22349 if test $emacs_cv_gettimeofday_two_arguments = no; then
22351 cat >>confdefs.h <<\_ACEOF
22352 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22360 { echo "$as_me:$LINENO: checking
for socket
" >&5
22361 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22362 if test "${ac_cv_func_socket+set}" = set; then
22363 echo $ECHO_N "(cached
) $ECHO_C" >&6
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22371 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22373 #define socket innocuous_socket
22375 /* System header to define __stub macros and hopefully few prototypes,
22376 which can conflict with char socket (); below.
22377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22378 <limits.h> exists even on freestanding compilers. */
22381 # include <limits.h>
22383 # include <assert.h>
22388 /* Override any GCC internal prototype to avoid an error.
22389 Use char because int might match the return type of a GCC
22390 builtin and then its argument prototype would still apply. */
22395 /* The GNU C library defines this for functions which it implements
22396 to always fail with ENOSYS. Some functions are actually named
22397 something starting with __ and the normal name is an alias. */
22398 #if defined __stub_socket || defined __stub___socket
22410 rm -f conftest.$ac_objext conftest$ac_exeext
22411 if { (ac_try="$ac_link"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_link") 2>conftest.er1
22419 grep -v '^ *+' conftest.er1 >conftest.err
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest$ac_exeext &&
22427 $as_test_x conftest$ac_exeext; then
22428 ac_cv_func_socket=yes
22430 echo "$as_me: failed program was
:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 ac_cv_func_socket=no
22436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22437 conftest$ac_exeext conftest.$ac_ext
22439 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22440 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22441 if test $ac_cv_func_socket = yes; then
22447 if test $ok_so_far = yes; then
22448 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22449 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22450 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22451 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22452 echo $ECHO_N "(cached
) $ECHO_C" >&6
22454 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22455 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22457 # Is the header compilable?
22458 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22459 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22460 cat >conftest.$ac_ext <<_ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h. */
22466 $ac_includes_default
22467 #include <netinet/in.h>
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_compile") 2>conftest.er1
22478 grep -v '^ *+' conftest.er1 >conftest.err
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest.$ac_objext; then
22486 ac_header_compiler=yes
22488 echo "$as_me: failed program was
:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ac_header_compiler=no
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22496 echo "${ECHO_T}$ac_header_compiler" >&6; }
22498 # Is the header present?
22499 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22500 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 #include <netinet/in.h>
22509 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22517 grep -v '^ *+' conftest.er1 >conftest.err
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22521 (exit $ac_status); } >/dev/null && {
22522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22523 test ! -s conftest.err
22525 ac_header_preproc=yes
22527 echo "$as_me: failed program was
:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530 ac_header_preproc=no
22533 rm -f conftest.err conftest.$ac_ext
22534 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22535 echo "${ECHO_T}$ac_header_preproc" >&6; }
22537 # So? What about this header?
22538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22540 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22541 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22542 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22543 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22544 ac_header_preproc=yes
22547 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22548 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22549 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22550 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22551 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22552 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22553 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22554 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22555 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22556 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22557 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22558 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22562 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22563 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22564 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22565 echo $ECHO_N "(cached
) $ECHO_C" >&6
22567 ac_cv_header_netinet_in_h=$ac_header_preproc
22569 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22570 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22573 if test $ac_cv_header_netinet_in_h = yes; then
22581 if test $ok_so_far = yes; then
22582 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22583 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22584 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22585 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22586 echo $ECHO_N "(cached
) $ECHO_C" >&6
22588 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22589 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22591 # Is the header compilable?
22592 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22593 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 $ac_includes_default
22601 #include <arpa/inet.h>
22603 rm -f conftest.$ac_objext
22604 if { (ac_try="$ac_compile"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_compile") 2>conftest.er1
22612 grep -v '^ *+' conftest.er1 >conftest.err
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest.$ac_objext; then
22620 ac_header_compiler=yes
22622 echo "$as_me: failed program was
:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 ac_header_compiler=no
22628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22630 echo "${ECHO_T}$ac_header_compiler" >&6; }
22632 # Is the header present?
22633 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22634 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22635 cat >conftest.$ac_ext <<_ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h. */
22641 #include <arpa/inet.h>
22643 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22649 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22655 (exit $ac_status); } >/dev/null && {
22656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22659 ac_header_preproc=yes
22661 echo "$as_me: failed program was
:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 ac_header_preproc=no
22667 rm -f conftest.err conftest.$ac_ext
22668 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22669 echo "${ECHO_T}$ac_header_preproc" >&6; }
22671 # So? What about this header?
22672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22674 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22675 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22676 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22677 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22678 ac_header_preproc=yes
22681 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22682 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22683 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22684 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22685 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22686 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22687 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22688 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22689 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22690 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22691 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22692 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22696 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22697 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22698 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22699 echo $ECHO_N "(cached
) $ECHO_C" >&6
22701 ac_cv_header_arpa_inet_h=$ac_header_preproc
22703 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22704 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22707 if test $ac_cv_header_arpa_inet_h = yes; then
22715 if test $ok_so_far = yes; then
22717 cat >>confdefs.h <<\_ACEOF
22718 #define HAVE_INET_SOCKETS 1
22724 for ac_header in sys/ioctl.h
22726 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22727 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22728 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22729 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22730 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22731 echo $ECHO_N "(cached
) $ECHO_C" >&6
22733 ac_res=`eval echo '${'$as_ac_Header'}'`
22734 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22735 echo "${ECHO_T}$ac_res" >&6; }
22737 # Is the header compilable?
22738 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22739 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22740 cat >conftest.$ac_ext <<_ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 $ac_includes_default
22747 #include <$ac_header>
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22758 grep -v '^ *+' conftest.er1 >conftest.err
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest.$ac_objext; then
22766 ac_header_compiler=yes
22768 echo "$as_me: failed program was
:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22771 ac_header_compiler=no
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22776 echo "${ECHO_T}$ac_header_compiler" >&6; }
22778 # Is the header present?
22779 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22780 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 #include <$ac_header>
22789 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22801 (exit $ac_status); } >/dev/null && {
22802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22805 ac_header_preproc=yes
22807 echo "$as_me: failed program was
:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 ac_header_preproc=no
22813 rm -f conftest.err conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22815 echo "${ECHO_T}$ac_header_preproc" >&6; }
22817 # So? What about this header?
22818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22820 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22821 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22822 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22824 ac_header_preproc=yes
22827 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22828 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22829 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22830 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22831 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22832 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22833 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22834 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22835 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22837 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22838 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22842 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22843 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22844 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22845 echo $ECHO_N "(cached
) $ECHO_C" >&6
22847 eval "$as_ac_Header=\
$ac_header_preproc"
22849 ac_res=`eval echo '${'$as_ac_Header'}'`
22850 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22851 echo "${ECHO_T}$ac_res" >&6; }
22854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22855 cat >>confdefs.h <<_ACEOF
22856 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22864 if test -f /usr/lpp/X11/bin/smt.exp; then
22866 cat >>confdefs.h <<\_ACEOF
22867 #define HAVE_AIX_SMT_EXP 1
22872 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22873 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22874 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22875 { echo "$as_me:$LINENO: result
: yes" >&5
22876 echo "${ECHO_T}yes" >&6; }
22878 cat >>confdefs.h <<\_ACEOF
22879 #define HAVE_DEV_PTMX 1
22883 { echo "$as_me:$LINENO: result
: no
" >&5
22884 echo "${ECHO_T}no
" >&6; }
22887 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22888 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22889 if test "${ac_cv_type_pid_t+set}" = set; then
22890 echo $ECHO_N "(cached
) $ECHO_C" >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 typedef pid_t ac__type_new_;
22903 if ((ac__type_new_ *) 0)
22905 if (sizeof (ac__type_new_))
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22928 ac_cv_type_pid_t=yes
22930 echo "$as_me: failed program was
:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_cv_type_pid_t=no
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22939 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22940 if test $ac_cv_type_pid_t = yes; then
22944 cat >>confdefs.h <<_ACEOF
22951 for ac_header in vfork.h
22953 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22954 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22955 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22956 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22958 echo $ECHO_N "(cached
) $ECHO_C" >&6
22960 ac_res=`eval echo '${'$as_ac_Header'}'`
22961 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22962 echo "${ECHO_T}$ac_res" >&6; }
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22966 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 #include <$ac_header>
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22985 grep -v '^ *+' conftest.er1 >conftest.err
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22995 echo "$as_me: failed program was
:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23007 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <$ac_header>
23016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23024 grep -v '^ *+' conftest.er1 >conftest.err
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23028 (exit $ac_status); } >/dev/null && {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23032 ac_header_preproc=yes
23034 echo "$as_me: failed program was
:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_header_preproc=no
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23047 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23048 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23051 ac_header_preproc=yes
23054 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23055 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23056 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23057 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23058 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23059 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23060 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23061 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23064 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23065 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23069 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23070 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23071 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23072 echo $ECHO_N "(cached
) $ECHO_C" >&6
23074 eval "$as_ac_Header=\
$ac_header_preproc"
23076 ac_res=`eval echo '${'$as_ac_Header'}'`
23077 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23078 echo "${ECHO_T}$ac_res" >&6; }
23081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23082 cat >>confdefs.h <<_ACEOF
23083 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23092 for ac_func in fork vfork
23094 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23095 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23096 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23097 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23098 echo $ECHO_N "(cached
) $ECHO_C" >&6
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23108 #define $ac_func innocuous_$ac_func
23110 /* System header to define __stub macros and hopefully few prototypes,
23111 which can conflict with char $ac_func (); below.
23112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23113 <limits.h> exists even on freestanding compilers. */
23116 # include <limits.h>
23118 # include <assert.h>
23123 /* Override any GCC internal prototype to avoid an error.
23124 Use char because int might match the return type of a GCC
23125 builtin and then its argument prototype would still apply. */
23130 /* The GNU C library defines this for functions which it implements
23131 to always fail with ENOSYS. Some functions are actually named
23132 something starting with __ and the normal name is an alias. */
23133 #if defined __stub_$ac_func || defined __stub___$ac_func
23140 return $ac_func ();
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (ac_try="$ac_link"
23147 case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_link") 2>conftest.er1
23154 grep -v '^ *+' conftest.er1 >conftest.err
23156 cat conftest.err >&5
23157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23158 (exit $ac_status); } && {
23159 test -z "$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 } && test -s conftest$ac_exeext &&
23162 $as_test_x conftest$ac_exeext; then
23163 eval "$as_ac_var=yes"
23165 echo "$as_me: failed program was
:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 eval "$as_ac_var=no
"
23171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23172 conftest$ac_exeext conftest.$ac_ext
23174 ac_res=`eval echo '${'$as_ac_var'}'`
23175 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23176 echo "${ECHO_T}$ac_res" >&6; }
23177 if test `eval echo '${'$as_ac_var'}'` = yes; then
23178 cat >>confdefs.h <<_ACEOF
23179 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23185 if test "x
$ac_cv_func_fork" = xyes; then
23186 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23187 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23188 if test "${ac_cv_func_fork_works+set}" = set; then
23189 echo $ECHO_N "(cached
) $ECHO_C" >&6
23191 if test "$cross_compiling" = yes; then
23192 ac_cv_func_fork_works=cross
23194 cat >conftest.$ac_ext <<_ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h. */
23200 $ac_includes_default
23205 /* By Ruediger Kuhlmann. */
23206 return fork () < 0;
23212 rm -f conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_link") 2>&5
23221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23223 { (case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_try") 2>&5
23230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_func_fork_works=yes
23234 echo "$as_me: program exited with status
$ac_status" >&5
23235 echo "$as_me: failed program was
:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ( exit $ac_status )
23239 ac_cv_func_fork_works=no
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23246 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23247 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23250 ac_cv_func_fork_works=$ac_cv_func_fork
23252 if test "x
$ac_cv_func_fork_works" = xcross; then
23254 *-*-amigaos* | *-*-msdosdjgpp*)
23255 # Override, as these systems have only a dummy fork() stub
23256 ac_cv_func_fork_works=no
23259 ac_cv_func_fork_works=yes
23262 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23263 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23265 ac_cv_func_vfork_works=$ac_cv_func_vfork
23266 if test "x
$ac_cv_func_vfork" = xyes; then
23267 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23268 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23269 if test "${ac_cv_func_vfork_works+set}" = set; then
23270 echo $ECHO_N "(cached
) $ECHO_C" >&6
23272 if test "$cross_compiling" = yes; then
23273 ac_cv_func_vfork_works=cross
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 /* Thanks to Paul Eggert for this test. */
23282 $ac_includes_default
23283 #include <sys/wait.h>
23284 #ifdef HAVE_VFORK_H
23285 # include <vfork.h>
23287 /* On some sparc systems, changes by the child to local and incoming
23288 argument registers are propagated back to the parent. The compiler
23289 is told about this with #include <vfork.h>, but some compilers
23290 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23291 static variable whose address is put into a register that is
23292 clobbered by the vfork. */
23295 sparc_address_test (int arg)
23297 sparc_address_test (arg) int arg;
23300 static pid_t child;
23318 pid_t parent = getpid ();
23321 sparc_address_test (0);
23326 /* Here is another test for sparc vfork register problems. This
23327 test uses lots of local variables, at least as many local
23328 variables as main has allocated so far including compiler
23329 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23330 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23331 reuse the register of parent for one of the local variables,
23332 since it will think that parent can't possibly be used any more
23333 in this routine. Assigning to the local variable will thus
23334 munge parent in the parent process. */
23336 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23337 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23338 /* Convince the compiler that p..p7 are live; otherwise, it might
23339 use the same hardware register for all 8 local variables. */
23340 if (p != p1 || p != p2 || p != p3 || p != p4
23341 || p != p5 || p != p6 || p != p7)
23344 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23345 from child file descriptors. If the child closes a descriptor
23346 before it execs or exits, this munges the parent's descriptor
23347 as well. Test for this by closing stdout in the child. */
23348 _exit(close(fileno(stdout)) != 0);
23353 while (wait(&status) != child)
23356 /* Was there some problem with vforking? */
23359 /* Did the child fail? (This shouldn't happen.) */
23362 /* Did the vfork/compiler bug occur? */
23363 || parent != getpid()
23365 /* Did the file descriptor bug occur? */
23366 || fstat(fileno(stdout), &st) != 0
23371 rm -f conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_link") 2>&5
23380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23382 { (case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23387 (eval "$ac_try") 2>&5
23389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23390 (exit $ac_status); }; }; then
23391 ac_cv_func_vfork_works=yes
23393 echo "$as_me: program exited with status
$ac_status" >&5
23394 echo "$as_me: failed program was
:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397 ( exit $ac_status )
23398 ac_cv_func_vfork_works=no
23400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23405 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23406 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23409 if test "x
$ac_cv_func_fork_works" = xcross; then
23410 ac_cv_func_vfork_works=$ac_cv_func_vfork
23411 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23412 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23415 if test "x
$ac_cv_func_vfork_works" = xyes; then
23417 cat >>confdefs.h <<\_ACEOF
23418 #define HAVE_WORKING_VFORK 1
23423 cat >>confdefs.h <<\_ACEOF
23428 if test "x
$ac_cv_func_fork_works" = xyes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_WORKING_FORK 1
23437 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23438 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23439 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23440 echo $ECHO_N "(cached
) $ECHO_C" >&6
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 #include <langinfo.h>
23452 char* cs = nl_langinfo(CODESET);
23457 rm -f conftest.$ac_objext conftest$ac_exeext
23458 if { (ac_try="$ac_link"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_link") 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest$ac_exeext &&
23474 $as_test_x conftest$ac_exeext; then
23475 emacs_cv_langinfo_codeset=yes
23477 echo "$as_me: failed program was
:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 emacs_cv_langinfo_codeset=no
23483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23484 conftest$ac_exeext conftest.$ac_ext
23487 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23488 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23489 if test $emacs_cv_langinfo_codeset = yes; then
23491 cat >>confdefs.h <<\_ACEOF
23492 #define HAVE_LANGINFO_CODESET 1
23497 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23498 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23499 if test "${ac_cv_type_size_t+set}" = set; then
23500 echo $ECHO_N "(cached
) $ECHO_C" >&6
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 $ac_includes_default
23509 typedef size_t ac__type_new_;
23513 if ((ac__type_new_ *) 0)
23515 if (sizeof (ac__type_new_))
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_compile") 2>conftest.er1
23530 grep -v '^ *+' conftest.er1 >conftest.err
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest.$ac_objext; then
23538 ac_cv_type_size_t=yes
23540 echo "$as_me: failed program was
:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23543 ac_cv_type_size_t=no
23546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23549 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23550 if test $ac_cv_type_size_t = yes; then
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_SIZE_T 1
23560 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23561 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23562 if test "${ac_cv_type_mbstate_t+set}" = set; then
23563 echo $ECHO_N "(cached
) $ECHO_C" >&6
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 $ac_includes_default
23572 # include <wchar.h>
23576 mbstate_t x; return sizeof x;
23581 rm -f conftest.$ac_objext
23582 if { (ac_try="$ac_compile"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_compile") 2>conftest.er1
23590 grep -v '^ *+' conftest.er1 >conftest.err
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest.$ac_objext; then
23598 ac_cv_type_mbstate_t=yes
23600 echo "$as_me: failed program was
:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ac_cv_type_mbstate_t=no
23606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23609 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23610 if test $ac_cv_type_mbstate_t = yes; then
23612 cat >>confdefs.h <<\_ACEOF
23613 #define HAVE_MBSTATE_T 1
23618 cat >>confdefs.h <<\_ACEOF
23619 #define mbstate_t int
23624 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23625 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23626 if test "${emacs_cv_c_restrict+set}" = set; then
23627 echo $ECHO_N "(cached
) $ECHO_C" >&6
23629 cat >conftest.$ac_ext <<_ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 void fred (int *restrict x);
23644 rm -f conftest.$ac_objext
23645 if { (ac_try="$ac_compile"
23646 case "(($ac_try" in
23647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648 *) ac_try_echo=$ac_try;;
23650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23651 (eval "$ac_compile") 2>conftest.er1
23653 grep -v '^ *+' conftest.er1 >conftest.err
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23657 (exit $ac_status); } && {
23658 test -z "$ac_c_werror_flag" ||
23659 test ! -s conftest.err
23660 } && test -s conftest.$ac_objext; then
23661 emacs_cv_c_restrict=yes
23663 echo "$as_me: failed program was
:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 void fred (int *__restrict x);
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_compile") 2>conftest.er1
23690 grep -v '^ *+' conftest.er1 >conftest.err
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest.$ac_objext; then
23698 emacs_cv_c_restrict=__restrict
23700 echo "$as_me: failed program was
:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23703 emacs_cv_c_restrict=no
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23712 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23713 case "$emacs_cv_c_restrict" in
23714 yes) emacs_restrict=restrict;;
23715 no) emacs_restrict="";;
23716 *) emacs_restrict="$emacs_cv_c_restrict";;
23718 if test "$emacs_restrict" != __restrict; then
23720 cat >>confdefs.h <<_ACEOF
23721 #define __restrict $emacs_restrict
23726 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23727 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23728 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23729 echo $ECHO_N "(cached
) $ECHO_C" >&6
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 void fred (int x[__restrict]);
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_compile") 2>conftest.er1
23755 grep -v '^ *+' conftest.er1 >conftest.err
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23759 (exit $ac_status); } && {
23760 test -z "$ac_c_werror_flag" ||
23761 test ! -s conftest.err
23762 } && test -s conftest.$ac_objext; then
23763 emacs_cv_c_restrict_arr=yes
23765 echo "$as_me: failed program was
:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 emacs_cv_c_restrict_arr=no
23771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23774 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23775 if test "$emacs_cv_c_restrict_arr" = yes; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define __restrict_arr __restrict
23785 # Set up the CFLAGS for real compilation, so we can substitute it.
23786 CFLAGS="$REAL_CFLAGS"
23787 CPPFLAGS="$REAL_CPPFLAGS"
23789 #### Find out which version of Emacs this is.
23790 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23791 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23792 if test x"${version}" = x; then
23793 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23794 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23795 { (exit 1); exit 1; }; }
23798 ### Specify what sort of things we'll be editing into Makefile and config.h.
23799 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23835 cat >>confdefs.h <<_ACEOF
23836 #define EMACS_CONFIGURATION "${canonical}"
23840 cat >>confdefs.h <<_ACEOF
23841 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23845 cat >>confdefs.h <<_ACEOF
23846 #define config_machfile "${machfile}"
23850 cat >>confdefs.h <<_ACEOF
23851 #define config_opsysfile "${opsysfile}"
23855 cat >>confdefs.h <<_ACEOF
23856 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23860 cat >>confdefs.h <<_ACEOF
23861 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23865 cat >>confdefs.h <<_ACEOF
23866 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23870 cat >>confdefs.h <<_ACEOF
23871 #define UNEXEC_SRC ${UNEXEC_SRC}
23875 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23877 cat >>confdefs.h <<\_ACEOF
23878 #define HAVE_X_WINDOWS 1
23882 if test "${USE_X_TOOLKIT}" != "none
" ; then
23884 cat >>confdefs.h <<\_ACEOF
23885 #define USE_X_TOOLKIT 1
23889 if test "${HAVE_X11}" = "yes" ; then
23891 cat >>confdefs.h <<\_ACEOF
23896 if test "${HAVE_XFREE386}" = "yes" ; then
23898 cat >>confdefs.h <<\_ACEOF
23899 #define HAVE_XFREE386 1
23903 if test "${HAVE_MENUS}" = "yes" ; then
23905 cat >>confdefs.h <<\_ACEOF
23906 #define HAVE_MENUS 1
23910 if test "${GNU_MALLOC}" = "yes" ; then
23912 cat >>confdefs.h <<\_ACEOF
23913 #define GNU_MALLOC 1
23917 if test "${REL_ALLOC}" = "yes" ; then
23919 cat >>confdefs.h <<\_ACEOF
23920 #define REL_ALLOC 1
23930 #### Report on what we decided to do.
23931 #### Report GTK as a toolkit, even if it doesn't use Xt.
23932 #### It makes printing result more understandable as using GTK sets
23933 #### toolkit_scroll_bars to yes by default.
23934 if test "${HAVE_GTK}" = "yes"; then
23939 Configured
for \
`${canonical}'.
23941 Where should the build process find the source code? ${srcdir}
23942 What operating system and machine description files should Emacs use?
23943 \`${opsysfile}' and \`${machfile}'
23944 What compiler should emacs be built with?
${CC} ${CFLAGS}
23945 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23946 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23947 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23948 What window system should Emacs use?
${window_system}
23949 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23951 if test -n "${x_includes}"; then
23952 echo " Where
do we
find X Windows header files?
${x_includes}"
23954 echo " Where
do we
find X Windows header files? Standard
dirs"
23956 if test -n "${x_libraries}"; then
23957 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23959 echo " Where
do we
find X Windows libraries? Standard
dirs"
23962 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23963 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23964 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23965 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23966 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23967 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23968 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23969 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23970 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23971 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23974 if test $USE_XASSERTS = yes; then
23975 echo " Compiling with asserts turned on.
"
23976 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23980 if test "$USE_X_TOOLKIT" = GTK; then
23981 case "$canonical" in
23983 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23984 will probably get a crash on startup. If this happens
, please use another
23985 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23991 if test "$HAVE_CARBON" = "yes"; then
23993 echo "Warning
: The Mac Carbon port is currently unsupported and has
23994 known problems. It is not recommended
for use by non-developers.
23995 Read the emacs-devel archives
for more information.
"
23999 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24000 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24005 # Remove any trailing slashes in these variables.
24006 test "${prefix}" != NONE &&
24007 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24008 test "${exec_prefix}" != NONE &&
24009 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24011 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24012 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24013 ## from Makefile.c can correctly provide the arg `-traditional' to the
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24024 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24025 $EGREP "yes..
yes" >/dev/null 2>&1; then
24026 CPP_NEED_TRADITIONAL=no
24028 CPP_NEED_TRADITIONAL=yes
24033 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
24035 ac_config_commands="$ac_config_commands default
"
24037 cat >confcache <<\_ACEOF
24038 # This file is a shell script that caches the results of configure
24039 # tests run on this system so they can be shared between configure
24040 # scripts and configure runs, see configure's option --config-cache.
24041 # It is not useful on other systems. If it contains results you don't
24042 # want to keep, you may remove or edit it.
24044 # config.status only pays attention to the cache file if you give it
24045 # the --recheck option to rerun configure.
24047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24049 # following values.
24053 # The following way of writing the cache mishandles newlines in values,
24054 # but we know of no workaround that is simple, portable, and efficient.
24055 # So, we kill variables containing newlines.
24056 # Ultrix sh set writes to stderr and can't be redirected directly,
24057 # and sets the high bit in the cache file unless we assign to the vars.
24059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24060 eval ac_val=\$$ac_var
24064 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24065 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24068 _ | IFS | as_nl) ;; #(
24069 *) $as_unset $ac_var ;;
24075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24076 *${as_nl}ac_space=\ *)
24077 # `set' does not quote correctly, so add quotes (double-quote
24078 # substitution turns \\\\ into \\, and sed turns \\ into \).
24081 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24084 # `set' quotes correctly as required by POSIX, so do not add quotes.
24085 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24098 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24099 if test -w "$cache_file"; then
24100 test "x
$cache_file" != "x
/dev
/null
" &&
24101 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24102 echo "$as_me: updating cache
$cache_file" >&6;}
24103 cat confcache >$cache_file
24105 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24106 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24111 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24112 # Let make expand exec_prefix.
24113 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24115 DEFS=-DHAVE_CONFIG_H
24119 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24120 # 1. Remove the extension, and $U if already installed.
24121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24122 ac_i=`echo "$ac_i" | sed "$ac_script"`
24123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24124 # will be set to the directory where LIBOBJS objects are built.
24125 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24126 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24128 LIBOBJS=$ac_libobjs
24130 LTLIBOBJS=$ac_ltlibobjs
24134 : ${CONFIG_STATUS=./config.status}
24135 ac_clean_files_save=$ac_clean_files
24136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24137 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24138 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24139 cat >$CONFIG_STATUS <<_ACEOF
24141 # Generated by $as_me.
24142 # Run this file to recreate the current configuration.
24143 # Compiler output produced by configure, useful for debugging
24144 # configure, is in config.log if it exists.
24147 ac_cs_recheck=false
24149 SHELL=\${CONFIG_SHELL-$SHELL}
24152 cat >>$CONFIG_STATUS <<\_ACEOF
24153 ## --------------------- ##
24154 ## M4sh Initialization. ##
24155 ## --------------------- ##
24157 # Be more Bourne compatible
24158 DUALCASE=1; export DUALCASE # for MKS sh
24159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24163 # is contrary to our usage. Disable this feature.
24164 alias -g '${1+"$@"}'='"$@
"'
24165 setopt NO_GLOB_SUBST
24167 case `(set -o) 2>/dev/null` in
24168 *posix*) set -o posix ;;
24177 # Avoid depending upon Character Ranges.
24178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24181 as_cr_digits='0123456789'
24182 as_cr_alnum=$as_cr_Letters$as_cr_digits
24184 # The user is always right.
24185 if test "${PATH_SEPARATOR+set}" != set; then
24186 echo "#! /bin/sh" >conf$$.sh
24187 echo "exit 0" >>conf$$.sh
24189 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24197 # Support unset when possible.
24198 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24206 # We need space, tab and new line, in precisely that order. Quoting is
24207 # there to prevent editors from complaining about space-tab.
24208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24209 # splitting by setting IFS to empty value.)
24214 # Find who we are. Look in the path if we contain no directory separator.
24216 *[\\/]* ) as_myself
=$0 ;;
24217 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24218 for as_dir
in $PATH
24221 test -z "$as_dir" && as_dir
=.
24222 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24228 # We did not find ourselves, most probably we were run as `sh COMMAND'
24229 # in which case we are not to be found in the path.
24230 if test "x$as_myself" = x
; then
24233 if test ! -f "$as_myself"; then
24234 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24235 { (exit 1); exit 1; }
24238 # Work around bugs in pre-3.0 UWIN ksh.
24239 for as_var
in ENV MAIL MAILPATH
24240 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24250 LC_TELEPHONE LC_TIME
24252 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24253 eval $as_var=C
; export $as_var
24255 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24259 # Required to use basename.
24260 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24261 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24267 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24268 as_basename
=basename
24274 # Name of the executable.
24275 as_me
=`$as_basename -- "$0" ||
24276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24277 X"$0" : 'X\(//\)$' \| \
24278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24280 sed '/^.*\/\([^/][^/]*\)\/*$/{
24299 as_lineno_1
=$LINENO
24300 as_lineno_2
=$LINENO
24301 test "x$as_lineno_1" != "x$as_lineno_2" &&
24302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24305 # uniformly replaced by the line number. The first 'sed' inserts a
24306 # line-number line after each line using $LINENO; the second 'sed'
24307 # does the real work. The second script uses 'N' to pair each
24308 # line-number line with the line containing $LINENO, and appends
24309 # trailing '-' during substitution so that $LINENO is not a special
24310 # case at line end.
24311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24312 # scripts with optimization help from Paolo Bonzini. Blame Lee
24313 # E. McMahon (1931-1989) for sed's syntax. :-)
24325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24328 ' >$as_me.lineno
&&
24329 chmod +x
"$as_me.lineno" ||
24330 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24331 { (exit 1); exit 1; }; }
24333 # Don't try to exec as it changes $[0], causing all sort of problems
24334 # (the dirname of $[0] is not the place where we might find the
24335 # original and so on. Autoconf is especially sensitive to this).
24336 .
"./$as_me.lineno"
24337 # Exit status is that of the last command.
24342 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24348 ECHO_C
= ECHO_N
= ECHO_T
=
24349 case `echo -n x` in
24351 case `echo 'x\c'` in
24352 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24359 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24360 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24366 rm -f conf$$ conf$$.exe conf$$.
file
24367 if test -d conf$$.dir
; then
24368 rm -f conf$$.dir
/conf$$.
file
24374 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24376 # ... but there are two gotchas:
24377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24379 # In both cases, we have to default to `cp -p'.
24380 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24382 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24387 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24388 rmdir conf$$.dir
2>/dev
/null
24390 if mkdir
-p .
2>/dev
/null
; then
24393 test -d .
/-p && rmdir .
/-p
24397 if test -x / >/dev
/null
2>&1; then
24398 as_test_x
='test -x'
24400 if ls -dL / >/dev
/null
2>&1; then
24407 if test -d "$1"; then
24413 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24414 ???[sx]*):;;*)false;;esac;fi
24418 as_executable_p
=$as_test_x
24420 # Sed expression to map a string onto a valid CPP name.
24421 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24423 # Sed expression to map a string onto a valid variable name.
24424 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24429 # Save the log message, to keep $[0] and so on meaningful, and to
24430 # report actual input values of CONFIG_FILES etc. instead of their
24431 # values after options handling.
24433 This file was extended by emacs $as_me 23.0.50, which was
24434 generated by GNU Autoconf 2.61. Invocation command line was
24436 CONFIG_FILES = $CONFIG_FILES
24437 CONFIG_HEADERS = $CONFIG_HEADERS
24438 CONFIG_LINKS = $CONFIG_LINKS
24439 CONFIG_COMMANDS = $CONFIG_COMMANDS
24442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24447 cat >>$CONFIG_STATUS <<_ACEOF
24448 # Files that config.status was made for.
24449 config_files="$ac_config_files"
24450 config_headers="$ac_config_headers"
24451 config_commands="$ac_config_commands"
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24457 \`$as_me' instantiates files from templates according to the
24458 current configuration.
24460 Usage: $0 [OPTIONS] [FILE]...
24462 -h, --help print this help, then exit
24463 -V, --version print version number and configuration settings, then exit
24464 -q, --quiet do not print progress messages
24465 -d, --debug don't remove temporary files
24466 --recheck update $as_me by reconfiguring in the same conditions
24467 --file=FILE[:TEMPLATE]
24468 instantiate the configuration file FILE
24469 --header=FILE[:TEMPLATE]
24470 instantiate the configuration header FILE
24472 Configuration files:
24475 Configuration headers:
24478 Configuration commands:
24481 Report bugs to <bug-autoconf@gnu.org>."
24484 cat >>$CONFIG_STATUS <<_ACEOF
24486 emacs config.status 23.0.50
24487 configured by $0, generated by GNU Autoconf 2.61,
24488 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24490 Copyright (C) 2006 Free Software Foundation, Inc.
24491 This config.status script is free software; the Free Software Foundation
24492 gives unlimited permission to copy, distribute and modify it."
24499 cat >>$CONFIG_STATUS <<\_ACEOF
24500 # If no file are specified by the user, then we need to provide default
24501 # value. By we need to know if files were specified by the user.
24507 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24508 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24519 # Handling of the options.
24520 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24522 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24523 echo "$ac_cs_version"; exit ;;
24524 --debug |
--debu |
--deb |
--de |
--d |
-d )
24526 --file |
--fil |
--fi |
--f )
24528 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24529 ac_need_defaults
=false
;;
24530 --header |
--heade |
--head |
--hea )
24532 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24533 ac_need_defaults
=false
;;
24535 # Conflict between --help and --header
24536 { echo "$as_me: error: ambiguous option: $1
24537 Try \`$0 --help' for more information." >&2
24538 { (exit 1); exit 1; }; };;
24539 --help |
--hel |
-h )
24540 echo "$ac_cs_usage"; exit ;;
24541 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24542 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24545 # This is an error.
24546 -*) { echo "$as_me: error: unrecognized option: $1
24547 Try \`$0 --help' for more information." >&2
24548 { (exit 1); exit 1; }; } ;;
24550 *) ac_config_targets
="$ac_config_targets $1"
24551 ac_need_defaults
=false
;;
24557 ac_configure_extra_args
=
24559 if $ac_cs_silent; then
24561 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24565 cat >>$CONFIG_STATUS <<_ACEOF
24566 if \$ac_cs_recheck; then
24567 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24568 CONFIG_SHELL=$SHELL
24569 export CONFIG_SHELL
24570 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24574 cat >>$CONFIG_STATUS <<\_ACEOF
24578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24579 ## Running $as_me. ##
24585 cat >>$CONFIG_STATUS <<_ACEOF
24589 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24593 cat >>$CONFIG_STATUS <<\_ACEOF
24595 # Handling of arguments.
24596 for ac_config_target
in $ac_config_targets
24598 case $ac_config_target in
24599 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24600 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24601 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24602 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24603 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24604 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24605 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24606 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24607 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24608 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24609 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24610 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24611 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24613 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24614 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24615 { (exit 1); exit 1; }; };;
24620 # If the user did not use the arguments to specify the items to instantiate,
24621 # then the envvar interface is used. Set only those that are not.
24622 # We use the long form for the default assignment because of an extremely
24623 # bizarre bug on SunOS 4.1.3.
24624 if $ac_need_defaults; then
24625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24630 # Have a temporary directory for convenience. Make it in the build tree
24631 # simply because there is no reason against having it here, and in addition,
24632 # creating and moving files from /tmp can sometimes cause problems.
24633 # Hook for its removal unless debugging.
24634 # Note that there is a small window in which the directory will not be cleaned:
24635 # after its creation but before its name has been assigned to `$tmp'.
24639 trap 'exit_status=$?
24640 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24642 trap '{ (exit 1); exit 1; }' 1 2 13 15
24644 # Create a (secure) tmp directory for tmp files.
24647 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24648 test -n "$tmp" && test -d "$tmp"
24651 tmp
=.
/conf$$
-$RANDOM
24652 (umask 077 && mkdir
"$tmp")
24655 echo "$me: cannot create a temporary directory in ." >&2
24656 { (exit 1); exit 1; }
24660 # Set up the sed scripts for CONFIG_FILES section.
24663 # No need to generate the scripts if there are no CONFIG_FILES.
24664 # This happens for instance when ./config.status config.h
24665 if test -n "$CONFIG_FILES"; then
24672 for ac_last_try
in false false false false false
:; do
24673 cat >conf$
$subs.
sed <<_ACEOF
24674 SHELL!$SHELL$ac_delim
24675 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24676 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24677 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24678 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24679 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24680 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24681 exec_prefix!$exec_prefix$ac_delim
24682 prefix!$prefix$ac_delim
24683 program_transform_name!$program_transform_name$ac_delim
24684 bindir!$bindir$ac_delim
24685 sbindir!$sbindir$ac_delim
24686 libexecdir!$libexecdir$ac_delim
24687 datarootdir!$datarootdir$ac_delim
24688 datadir!$datadir$ac_delim
24689 sysconfdir!$sysconfdir$ac_delim
24690 sharedstatedir!$sharedstatedir$ac_delim
24691 localstatedir!$localstatedir$ac_delim
24692 includedir!$includedir$ac_delim
24693 oldincludedir!$oldincludedir$ac_delim
24694 docdir!$docdir$ac_delim
24695 infodir!$infodir$ac_delim
24696 htmldir!$htmldir$ac_delim
24697 dvidir!$dvidir$ac_delim
24698 pdfdir!$pdfdir$ac_delim
24699 psdir!$psdir$ac_delim
24700 libdir!$libdir$ac_delim
24701 localedir!$localedir$ac_delim
24702 mandir!$mandir$ac_delim
24703 DEFS!$DEFS$ac_delim
24704 ECHO_C!$ECHO_C$ac_delim
24705 ECHO_N!$ECHO_N$ac_delim
24706 ECHO_T!$ECHO_T$ac_delim
24707 LIBS!$LIBS$ac_delim
24708 build_alias!$build_alias$ac_delim
24709 host_alias!$host_alias$ac_delim
24710 target_alias!$target_alias$ac_delim
24711 MAINT!$MAINT$ac_delim
24712 build!$build$ac_delim
24713 build_cpu!$build_cpu$ac_delim
24714 build_vendor!$build_vendor$ac_delim
24715 build_os!$build_os$ac_delim
24716 host!$host$ac_delim
24717 host_cpu!$host_cpu$ac_delim
24718 host_vendor!$host_vendor$ac_delim
24719 host_os!$host_os$ac_delim
24721 CFLAGS!$CFLAGS$ac_delim
24722 LDFLAGS!$LDFLAGS$ac_delim
24723 CPPFLAGS!$CPPFLAGS$ac_delim
24724 ac_ct_CC!$ac_ct_CC$ac_delim
24725 EXEEXT!$EXEEXT$ac_delim
24726 OBJEXT!$OBJEXT$ac_delim
24728 GREP!$GREP$ac_delim
24729 EGREP!$EGREP$ac_delim
24730 LN_S!$LN_S$ac_delim
24731 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24732 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24733 INSTALL_DATA!$INSTALL_DATA$ac_delim
24734 RANLIB!$RANLIB$ac_delim
24735 INSTALL_INFO!$INSTALL_INFO$ac_delim
24736 GZIP_PROG!$GZIP_PROG$ac_delim
24737 MAKEINFO!$MAKEINFO$ac_delim
24738 LIBSOUND!$LIBSOUND$ac_delim
24739 PKG_CONFIG!$PKG_CONFIG$ac_delim
24740 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24741 ALSA_LIBS!$ALSA_LIBS$ac_delim
24742 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24743 SET_MAKE!$SET_MAKE$ac_delim
24744 XMKMF!$XMKMF$ac_delim
24745 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24746 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24747 RSVG_LIBS!$RSVG_LIBS$ac_delim
24748 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24749 GTK_LIBS!$GTK_LIBS$ac_delim
24750 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24751 DBUS_LIBS!$DBUS_LIBS$ac_delim
24752 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24753 XFT_LIBS!$XFT_LIBS$ac_delim
24754 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24755 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24756 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24757 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24758 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24759 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24760 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24761 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24762 ALLOCA!$ALLOCA$ac_delim
24763 liblockfile!$liblockfile$ac_delim
24764 LIBOBJS!$LIBOBJS$ac_delim
24765 NEED_SETGID!$NEED_SETGID$ac_delim
24766 KMEM_GROUP!$KMEM_GROUP$ac_delim
24767 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24768 GETOPT_H!$GETOPT_H$ac_delim
24769 GETOPTOBJS!$GETOPTOBJS$ac_delim
24770 version!$version$ac_delim
24773 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24775 elif $ac_last_try; then
24776 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24777 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24778 { (exit 1); exit 1; }; }
24780 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24784 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24785 if test -n "$ac_eof"; then
24786 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24787 ac_eof
=`expr $ac_eof + 1`
24790 cat >>$CONFIG_STATUS <<_ACEOF
24791 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24795 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24796 s/^/s,@/; s/!/@,|#_!!_#|/
24799 s/'"$ac_delim"'$/,g/; t
24801 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24802 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24803 rm -f conf$
$subs.
sed
24804 cat >>$CONFIG_STATUS <<_ACEOF
24810 for ac_last_try
in false false false false false
:; do
24811 cat >conf$
$subs.
sed <<_ACEOF
24812 configuration!$configuration$ac_delim
24813 canonical!$canonical$ac_delim
24814 srcdir!$srcdir$ac_delim
24815 lispdir!$lispdir$ac_delim
24816 locallisppath!$locallisppath$ac_delim
24817 lisppath!$lisppath$ac_delim
24818 x_default_search_path!$x_default_search_path$ac_delim
24819 etcdir!$etcdir$ac_delim
24820 archlibdir!$archlibdir$ac_delim
24821 bitmapdir!$bitmapdir$ac_delim
24822 gamedir!$gamedir$ac_delim
24823 gameuser!$gameuser$ac_delim
24824 c_switch_system!$c_switch_system$ac_delim
24825 c_switch_machine!$c_switch_machine$ac_delim
24826 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24827 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24828 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24829 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24830 machfile!$machfile$ac_delim
24831 opsysfile!$opsysfile$ac_delim
24832 carbon_appdir!$carbon_appdir$ac_delim
24833 LTLIBOBJS!$LTLIBOBJS$ac_delim
24836 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24838 elif $ac_last_try; then
24839 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24840 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24841 { (exit 1); exit 1; }; }
24843 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24847 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24848 if test -n "$ac_eof"; then
24849 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24850 ac_eof
=`expr $ac_eof + 1`
24853 cat >>$CONFIG_STATUS <<_ACEOF
24854 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24858 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24859 s/^/s,@/; s/!/@,|#_!!_#|/
24862 s/'"$ac_delim"'$/,g/; t
24864 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24865 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24866 rm -f conf$
$subs.
sed
24867 cat >>$CONFIG_STATUS <<_ACEOF
24874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24876 # trailing colons and then remove the whole line if VPATH becomes empty
24877 # (actually we leave an empty line to preserve line numbers).
24878 if test "x$srcdir" = x.
; then
24879 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24880 s/:*\$(srcdir):*/:/
24881 s/:*\${srcdir}:*/:/
24883 s/^\([^=]*=[ ]*\):*/\1/
24889 cat >>$CONFIG_STATUS <<\_ACEOF
24890 fi # test -n "$CONFIG_FILES"
24893 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24896 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24898 case $ac_mode$ac_tag in
24900 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24901 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24902 { (exit 1); exit 1; }; };;
24903 :[FH
]-) ac_tag
=-:-;;
24904 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24921 -) ac_f
="$tmp/stdin";;
24922 *) # Look for the file first in the build tree, then in the source tree
24923 # (if the path is not absolute). The absolute path cannot be DOS-style,
24924 # because $ac_f cannot contain `:'.
24928 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24930 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24931 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24932 { (exit 1); exit 1; }; };;
24934 ac_file_inputs
="$ac_file_inputs $ac_f"
24937 # Let's still pretend it is `configure' which instantiates (i.e., don't
24938 # use $as_me), people would be surprised to read:
24939 # /* config.h. Generated by config.status. */
24940 configure_input
="Generated from "`IFS=:
24941 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24942 if test x
"$ac_file" != x-
; then
24943 configure_input
="$ac_file. $configure_input"
24944 { echo "$as_me:$LINENO: creating $ac_file" >&5
24945 echo "$as_me: creating $ac_file" >&6;}
24949 *:-:* |
*:-) cat >"$tmp/stdin";;
24954 ac_dir
=`$as_dirname -- "$ac_file" ||
24955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24956 X"$ac_file" : 'X\(//\)[^/]' \| \
24957 X"$ac_file" : 'X\(//\)$' \| \
24958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24964 /^X\(\/\/\)[^/].*/{
24979 -*) as_dir
=.
/$as_dir;;
24981 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24985 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24986 *) as_qdir
=$as_dir;;
24988 as_dirs
="'$as_qdir' $as_dirs"
24989 as_dir
=`$as_dirname -- "$as_dir" ||
24990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24991 X"$as_dir" : 'X\(//\)[^/]' \| \
24992 X"$as_dir" : 'X\(//\)$' \| \
24993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24999 /^X\(\/\/\)[^/].*/{
25012 test -d "$as_dir" && break
25014 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25015 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25016 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25017 { (exit 1); exit 1; }; }; }
25021 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25023 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25024 # A ".." for each directory in $ac_dir_suffix.
25025 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25026 case $ac_top_builddir_sub in
25027 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25028 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25031 ac_abs_top_builddir
=$ac_pwd
25032 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25033 # for backward compatibility:
25034 ac_top_builddir
=$ac_top_build_prefix
25037 .
) # We are building in place.
25039 ac_top_srcdir
=$ac_top_builddir_sub
25040 ac_abs_top_srcdir
=$ac_pwd ;;
25041 [\\/]* | ?
:[\\/]* ) # Absolute name.
25042 ac_srcdir
=$srcdir$ac_dir_suffix;
25043 ac_top_srcdir
=$srcdir
25044 ac_abs_top_srcdir
=$srcdir ;;
25045 *) # Relative name.
25046 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25047 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25048 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25050 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25060 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25061 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25065 cat >>$CONFIG_STATUS <<\_ACEOF
25066 # If the template does not know about datarootdir, expand it.
25067 # FIXME: This hack should be removed a few years after 2.60.
25068 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25070 case `sed -n '/datarootdir/ {
25079 ' $ac_file_inputs` in
25080 *datarootdir
*) ac_datarootdir_seen
=yes;;
25081 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25082 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25083 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25085 cat >>$CONFIG_STATUS <<_ACEOF
25086 ac_datarootdir_hack='
25087 s&@datadir@&$datadir&g
25088 s&@docdir@&$docdir&g
25089 s&@infodir@&$infodir&g
25090 s&@localedir@&$localedir&g
25091 s&@mandir@&$mandir&g
25092 s&\\\${datarootdir}&$datarootdir&g' ;;
25096 # Neutralize VPATH when `$srcdir' = `.'.
25097 # Shell code in configure.ac might set extrasub.
25098 # FIXME: do we really want to maintain this feature?
25099 cat >>$CONFIG_STATUS <<_ACEOF
25103 cat >>$CONFIG_STATUS <<\_ACEOF
25105 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25106 s
&@configure_input@
&$configure_input&;t t
25107 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25108 s
&@srcdir@
&$ac_srcdir&;t t
25109 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25110 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25111 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25112 s
&@builddir@
&$ac_builddir&;t t
25113 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25114 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25115 s
&@INSTALL@
&$ac_INSTALL&;t t
25116 $ac_datarootdir_hack
25117 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25120 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25122 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25123 which seems to be undefined. Please make sure it is defined." >&5
25124 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25125 which seems to be undefined. Please make sure it is defined." >&2;}
25129 -) cat "$tmp/out"; rm -f "$tmp/out";;
25130 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25139 # Transform confdefs.h into a sed script `conftest.defines', that
25140 # substitutes the proper values into config.h.in to produce config.h.
25141 rm -f conftest.defines conftest.
tail
25142 # First, append a space to every undef/define line, to ease matching.
25143 echo 's/$/ /' >conftest.defines
25144 # Then, protect against being on the right side of a sed subst, or in
25145 # an unquoted here document, in config.status. If some macros were
25146 # called several times there might be several #defines for the same
25147 # symbol, which is useless. But do not sort them, since the last
25148 # AC_DEFINE must be honored.
25149 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25150 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25151 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25152 # PARAMS is the parameter list in the macro definition--in most cases, it's
25153 # just an empty string.
25154 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25155 ac_dB
='\\)[ (].*,\\1define\\2'
25163 s/^[ ]*#[ ]*define[ ][ ]*//
25168 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25169 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25170 ' >>conftest.defines
25172 # Remove the space that was appended to ease matching.
25173 # Then replace #undef with comments. This is necessary, for
25174 # example, in the case of _POSIX_SOURCE, which is predefined and required
25175 # on some systems where configure will not decide to define it.
25176 # (The regexp can be short, since the line contains either #define or #undef.)
25178 s,^[ #]*u.*,/* & */,' >>conftest.defines
25180 # Break up conftest.defines:
25181 ac_max_sed_lines
=50
25183 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25184 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25185 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25187 ac_in
='$ac_file_inputs'
25188 ac_out
='"$tmp/out1"'
25189 ac_nxt
='"$tmp/out2"'
25193 # Write a here document:
25194 cat >>$CONFIG_STATUS <<_ACEOF
25195 # First, check the format of the line:
25196 cat >"\$tmp/defines.sed" <<\\CEOF
25197 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25198 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25202 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25204 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25205 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25206 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25207 grep . conftest.
tail >/dev
/null ||
break
25208 rm -f conftest.defines
25209 mv conftest.
tail conftest.defines
25211 rm -f conftest.defines conftest.
tail
25213 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25214 cat >>$CONFIG_STATUS <<\_ACEOF
25215 if test x
"$ac_file" != x-
; then
25216 echo "/* $configure_input */" >"$tmp/config.h"
25217 cat "$ac_result" >>"$tmp/config.h"
25218 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25219 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25220 echo "$as_me: $ac_file is unchanged" >&6;}
25223 mv "$tmp/config.h" $ac_file
25226 echo "/* $configure_input */"
25232 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25233 echo "$as_me: executing $ac_file commands" >&6;}
25238 case $ac_file$ac_mode in
25241 ### Make the necessary directories, if they don't exist.
25242 for dir
in etc lisp
; do
25243 test -d ${dir} || mkdir
${dir}
25246 # Build src/Makefile from ${srcdir}/src/Makefile.c
25247 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25248 # This must be done after src/config.h is built, since we rely on that file.
25250 # Now get this: Some word that is part of the ${srcdir} directory name
25251 # or the ${configuration} value might, just might, happen to be an
25252 # identifier like `sun4' or `i386' or something, and be predefined by
25253 # the C preprocessor to some helpful value like 1, or maybe the empty
25254 # string. Needless to say consequent macro substitutions are less
25255 # than conducive to the makefile finding the correct directory.
25256 undefs
="`echo $top_srcdir $configuration $canonical |
25257 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25258 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25261 echo creating src
/epaths.h
25262 ${MAKE-make} epaths-force
25264 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25265 # `..' to `. .' unless invoked with -traditional
25267 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25268 CPPFLAGS
="$CPPFLAGS -traditional"
25271 echo creating lib-src
/Makefile
25273 rm -f junk.c junk1.c junk2.c
25274 sed -e '/start of cpp stuff/q' \
25275 < Makefile.c
> junk1.c
25276 sed -e '1,/start of cpp stuff/d'\
25277 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25278 < Makefile.c
> junk.c
25279 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25280 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25281 cat junk1.c junk2.c
> Makefile.new
25282 rm -f junk.c junk1.c junk2.c
25283 chmod 444 Makefile.new
25284 mv -f Makefile.new Makefile
25287 echo creating src
/Makefile
25289 rm -f junk.c junk1.c junk2.c
25290 sed -e '/start of cpp stuff/q' \
25291 < Makefile.c
> junk1.c
25292 sed -e '1,/start of cpp stuff/d'\
25293 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25294 < Makefile.c
> junk.c
25295 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25296 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25298 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25299 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25300 cat junk1.c junk2.c
> Makefile.new
25301 rm -f junk.c junk1.c junk2.c
25302 chmod 444 Makefile.new
25303 mv -f Makefile.new Makefile
25306 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25307 echo creating src
/.gdbinit
25308 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25311 # This is how we know whether to re-run configure in certain cases.
25312 touch src
/config.stamp
25320 { (exit 0); exit 0; }
25322 chmod +x
$CONFIG_STATUS
25323 ac_clean_files
=$ac_clean_files_save
25326 # configure is writing to config.log, and then calls config.status.
25327 # config.status does its own redirection, appending to config.log.
25328 # Unfortunately, on DOS this fails, as config.log is still kept open
25329 # by configure, so config.status won't be able to write to it; its
25330 # output is simply discarded. So we exec the FD to /dev/null,
25331 # effectively closing config.log, so it can be properly (re)opened and
25332 # appended to by config.status. When coming back to configure, we
25333 # need to make the FD available again.
25334 if test "$no_create" != yes; then
25336 ac_config_status_args
=
25337 test "$silent" = yes &&
25338 ac_config_status_args
="$ac_config_status_args --quiet"
25340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25343 # would make configure fail if this is the last instruction.
25344 $ac_cs_success ||
{ (exit 1); exit 1; }